MyBB Community Forums

Full Version: Wondering if someone could help me?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So i'm trying to edit the postbit_online & postbit_offline in the site templates.

I'm trying to add a custom line in which will only show to users with the certain UID.

the default code:
<a href="online.php" title="{$lang->postbit_status_online}" class="pbonline">Online</a>

Would you be able to tell me how to make it so i could have that original code plus another line for example like
<if $memprofile['uid'] == 1 then>original code + custom code><else>original code</if>

it's something like that but i can't get it to work /:
I'm trying to add in a new line there.

Thanks in advance!
Do you have the PHP conditionals plugin installed?
(2015-02-18, 10:25 PM)Paul H. Wrote: [ -> ]Do you have the PHP conditionals plugin installed?

Is that the one which allows you to have php in the templates then yes.
I used it to customise my reputation and where my current location was when on the forum.
Try to use not member var that var only work on member profiles.

you have to use instead that var:

$user['uid'] == 1
got it working thanks to a very good SLADEY BOYYYYYYYYYYYYYYY