Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Feature Requests

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st February 2007, 11:11
TheLuggs TheLuggs is offline
Junior Member
 
Join Date: Feb 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Custum username prefix per domain

I wanted a definable prefix for each domain, so i tried the following

I resolved it the following way:
Added a field to varchar(255) "prefix" isp_isp_web

added following line to username plugin:
$user_prefix = str_replace("[PREFIX]",$web["prefix"],$user_prefix);

Of course would it be nice if i could actually configure it on the site admin page.
Reply With Quote
Sponsored Links
  #2  
Old 21st February 2007, 11:26
TheLuggs TheLuggs is offline
Junior Member
 
Join Date: Feb 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by TheLuggs
I wanted a definable prefix for each domain, so i tried the following

I resolved it the following way:
Added a field to varchar(255) "prefix" isp_isp_web

added following line to username plugin:
$user_prefix = str_replace("[PREFIX]",$web["prefix"],$user_prefix);

Of course would it be nice if i could actually configure it on the site admin page.
Oh and i added:
$user_prefix = str_replace("[TITLE]",$web["title"],$user_prefix);

which also helps, because the domain is too long as a prefix for most customers
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
High Load (>4.00), Clamscan / SpamAssassin DOCK42 General 8 30th May 2007 17:02
Username Prefix mphayesuk General 5 19th March 2006 22:32
Using the domain as prefix protocol Installation/Configuration 7 17th November 2005 16:20
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs pontifex HOWTO-Related Questions 2 26th October 2005 17:54
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58


All times are GMT +2. The time now is 00:42.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.