Gaffer
08-22-2002, 05:24 AM
i have been trying to get this working so i can set up some glow and other stuff for members but for some reason the below coding won't work
this one is set to change there member title to what ever is hard coded whats wrong with this code
################################
#File to edit admin/funtion.php#
################################
############
#Find this:#
############
right below this
if ($avatarurl=="" or ($bbuserinfo[userid]>0 and !($bbuserinfo[showavatars]))) {
$post[avatar]="";
} else {
eval("\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
}
if ($post[customtitle]==2) {
$post[usertitle] = htmlspecialchars($post[usertitle]);
}
########################
#And add this below it:#
########################
// begin hard coding member stuff
$post[specialusertitle] = $post[usertitle];
if ($post[userid] == 21) { $post[specialusertitle] = "something here"; }
// end Hard Coding member Stuff
################################################## ###
#Then go edit your postbit template and change this:#
################################################## ###
[usertitle]
to this:
[specialusertitle]
________________________________________________
this one is set to change there member title to what ever is hard coded whats wrong with this code
################################
#File to edit admin/funtion.php#
################################
############
#Find this:#
############
right below this
if ($avatarurl=="" or ($bbuserinfo[userid]>0 and !($bbuserinfo[showavatars]))) {
$post[avatar]="";
} else {
eval("\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
}
if ($post[customtitle]==2) {
$post[usertitle] = htmlspecialchars($post[usertitle]);
}
########################
#And add this below it:#
########################
// begin hard coding member stuff
$post[specialusertitle] = $post[usertitle];
if ($post[userid] == 21) { $post[specialusertitle] = "something here"; }
// end Hard Coding member Stuff
################################################## ###
#Then go edit your postbit template and change this:#
################################################## ###
[usertitle]
to this:
[specialusertitle]
________________________________________________