Log in

View Full Version : disable names


jacobskinner811
12-01-2010, 01:31 AM
does anyone know how to disable the block making users all have a different name...i want people to be able to use there real names like facebook. i dont know if removing the block would mess anything up or not tho....if anyone has heard of a way to do this or knows someone who might be able to please let me know

DataHero
12-01-2010, 11:02 AM
Waht you could do is to replace the $post[musername] in postbit for example, and use a custom profile field there.

jacobskinner811
12-01-2010, 10:06 PM
I have been hearing people talk about the profile field...would that change everything that normally has the user names...for example the links to peoples profiles?... or would it just change the name above the profile pic?

DataHero
12-02-2010, 07:55 AM
Only doing so in postbit will not change the rest, no. This is just right out of the top of my head, but what you could do is to make a plug-in at global_start (correct me if I'm wrong, anybody?) and use a str_replace() as to replace the variables. For instance, make sure to make your own variable, ie.


$var1 = /*var of modification(s) or your own*/;


And use that as to replace the current one, ie:


$find = $post[musername];
$replace = $yourvar;
$subj = 'Array of strings or so here';

str_replace($find, $replace, $subj);


Could be wrong as to the approach of method, but there should be a way to globally replace variables instead of ahving to edit each template.