Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Custom Online Location For A Specified User
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #1
Custom Online Location For A Specified User
This is a simple way to add a custom online location for a specified user using Template Conditionals or PHP in Templates / Complex Templates plugin:

online_row template:
Find:

Code:
{$location}

Replace with:

Code:
<if $user['uid'] == 1 then>Sleep<else>{$location}</if>

Modify it as our needs.

member_profile_online template:
Find:

Code:
{$location} @ {$location_time}


Replace with:

Code:
<if $memprofile['uid'] == 1 then>Sleep<else>{$location} @ {$location_time}</if>

Modify it as our needs.


04-07-2011 03:43 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Custom Online Location For A Specified User - RateU - 04-07-2011 03:43 AM

 Standard Tools
Forum Jump: