PDA

View Full Version : Please help with a very simple hack.


Iguacu
03-29-2003, 08:48 PM
Ok, this is such a simple hack it just goes to show how sad i am with making them =P

Ok, in my postbits i have a small section that says "Rank:" now, as of right now it will show up a user custom title, what i need it to show is ONLY a usergorup title (Administrator, Moderator, Member). Could someone please do me this favor and help me out with this o.o

flup
03-29-2003, 09:05 PM
Just DISABLE the custom titles

Iguacu
03-29-2003, 09:07 PM
Well thats great and all but i WANT there to be custom titles in a different part of the postbit.

Avatar
----
title
----
Rank
----

is how it goes.

mr e
03-29-2003, 09:23 PM
$bbuserinfo['customtitle'] is the custom title
$bbuserinfo['usertitle'] is the user's rank

Iguacu
03-29-2003, 09:49 PM
Umm, ok i put that in and all it did was make EVERYONES rank "Administrator"

o_O

Marzas
03-30-2003, 01:27 AM
you mustve edit the code, just place $bbuserinfo['usertitle'] where you want it in the postbt, i dont know why it would say admin to everyone.

Iguacu
03-30-2003, 04:07 PM
Ok, i edit the code and remove the " ' " and it places everyones rank as "Administrator" i don't edit the code at all and NOTHING shows up there.

Pollo
03-30-2003, 05:29 PM
$bbuserinfo[usertitle] displays admin, yep. I don't know what the code should be, but just confirming what he posted.

amykhar
03-30-2003, 06:53 PM
guys, thinks about it. $bbuserinfo is always YOU. Therefore, because you are an admin, it always says admin. For postbit, you want $post[usertitle]

But I think you might have been steered wrong. The customtitle field is an integer that indicates whether or not a custom title has been set. The actual custom title is then stored in the usertitle field of the database.

Amy