MyBB Requests

Completed Need small help

Submitted by DarSider, , Thread ID: 4045

Thread Closed
21-05-2015, 04:09 PM
#1
Hello all !
I saw a tutorial in a forum (FV) about how to do custom "Time Spent Online" using PHP codes in templates (with the plugin of course)
I want to do the same in Online page (Adding for example "Somewhere" instead of "Seing profile..." , but i don't know which variable to use in the if condition :/
I tested some variables but not working

Thanks
- Web Developer & Designer

Website : https://developement.design/
Skype : ef.team
Email : [email protected]

RE: Need small help

OP
#2
anyone to help out :( ?
- Web Developer & Designer

Website : https://developement.design/
Skype : ef.team
Email : [email protected]

RE: Need small help

#3
Code:
<if $GLOBALS['mybb']->user['id'] == 1 then>Somewhere</if>

RE: Need small help

This post was last modified: 24-05-2015, 09:56 AM by Akay
#4
^ actually it is this...

In the online_row template:

Find
Code:
{$location}

Replace with
Code:
<if $user['uid'] == 1 then>Waiting for someone til they recognize this...<else>{$location}</if>

RE: Need small help

OP
#5
Thank you :D
I thought you ignored my request
+2 Reputation
- Web Developer & Designer

Website : https://developement.design/
Skype : ef.team
Email : [email protected]

Users browsing this thread: 3 Guest(s)