MyBB Requests

Completed Need small help

Submitted by DarSider, , Thread ID: 4045

Thread Closed
DarSider
Member
Level:
0
Reputation:
13
Posts:
149
Likes:
14
Credits:
55
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

AndresXZ09
Closed Account
Level:
0
Reputation:
30
Posts:
1.22K
Likes:
139
Credits:
1.51K
24-05-2015, 03:51 AM
#3
Code:
<if $GLOBALS['mybb']->user['id'] == 1 then>Somewhere</if>

RE: Need small help

Akay
We are!
Level:
0
Reputation:
28
Posts:
946
Likes:
109
Credits:
2.05K
24-05-2015, 09:56 AM
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

DarSider
Member
Level:
0
Reputation:
13
Posts:
149
Likes:
14
Credits:
55
OP
24-05-2015, 04:16 PM
#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: 1 Guest(s)