Area51 @ 4seven.de

Mod Base and Testarea
It is currently 23 Feb 2025, 19:52

All times are UTC + 1 hour




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

Joined: 11 Feb 2008, 11:49
Posts: 241
Username BBCode Button

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

with this solution you kill two flys with one clap:
- you need no bbcode
- the username txt is quotable
- also good for admin/mod edits in userpost (admin say: bla bla)

just click on the [Username] button and your name will be inserted.

Image

open

posting.php

find

Code:
        'USERNAME'                => ((!$preview && $mode != 'quote') || $preview) ? $post_data['username'] : '',


after add

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


open

styles/prosilver/template/posting_buttons.html

find (the second find)

Code:
        <!-- END custom_tags --> 


after add

Code:
    <input type="button" class="button2" name="{POSTNAME}" value="{L_USERNAME}" onclick="insert_text('{POSTNAME}')" title="" />


clear all caches

can combined with Topic Viewer BBCode

_________________
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 0 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.086s | 24 Queries | GZIP : Off ]