PDA

View Full Version : Custum username prefix per domain


TheLuggs
21st February 2007, 11:11
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. :)

TheLuggs
21st February 2007, 11:26
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