Area51 @ 4seven.de

Mod Base and Testarea
It is currently 23 Feb 2025, 15:53

All times are UTC + 1 hour




Post new topic TOPIC_LOCKED  [ 1 post ] 
Author Message
PostPosted: 01 Oct 2011, 18:57 
Offline
Tiptop
Tiptop
User avatar

Joined: 11 Feb 2008, 11:49
Posts: 241
Topic Viewer BBCode

Shows Username or User_ID of Topic Viewer

request thread: http://www.phpbb.com/community/viewtopi ... #p12861138

Image

Make a BBCode

Quote:
BBCode usage
Code:
[topic_viewer][/topic_viewer] 


HTML replacement
Code:
{L_TOPIC_VIEWER} 


Help line
Code:
[topic_viewer][/topic_viewer] =  Insert the username of topic_viewer


open

language/en/viewtopic.php

find

Code:
$lang = array_merge($lang, array( 


before add

Code:
global $user; 


find (again)

Code:
$lang = array_merge($lang, array( 


after add

Code:
        'TOPIC_VIEWER'      => (($user->data['user_id'] != ANONYMOUS) ? $user->data['username'] : $user->lang['GUEST']), 


alternative with user_id

Code:
       'TOPIC_VIEWER'      => $user->data['user_id'],


Clear all Caches

Notes:

- Edit all available languages
- Anonymous is 'Guest'

can combined with Username BBCode Button

_________________
Mod-Bot / Service-Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic TOPIC_LOCKED  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
[ Time : 0.009s | 21 Queries | GZIP : Off ]