Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Personalization Trick re : Username

Aloittaja Knight2211, joulukuu 06, 2005, 09:27:20 AP

« edellinen - seuraava »

Knight2211

I was on a site that some one had scripted into their post something that caused the member that was reading the post to think it was directed towards them, as the viewer's username was in the post. The persona was not an admin or mod, so it had to just be something that was entered into the post window. Any ideas? 

Knight2211

Maybe I should make this clearer.

ie

Hey {viewer's username}, what do you think of this?

Everyone one that was logged in would see thier username inserted.

Thantos

Well in SMF 1.1 it is real real real easy :)
Lets just create a BBC tag [you]

Open Subs.php
Find                         array(
                                
'tag' => 'white',
                                
'before' => '<span style="color: white;">',
                                
'after' => '</span>',
                        ),


Add after
                        array (
                                
'tag' => 'you',
                                
'before' => $user_info['name'],
                                
'after' => '',
                        ),



Advertisement: