Page 1 of 1

User Prank

Posted: 04 Mar 2010, 22:14
by Stoker
User Prank

Author: Stoker
Description: An easy joke for You to play Your users. Copying the php Debug error message and showing different messages to different users.
You just have to use their username.
Only 1 file edit per template.
Demo:
debugjoke.png

Instructions:
Open styles/yourstyle/template/overall_header.html
Find (this is the prosilver find, but you just need to find the starting body tag):

Code: Select all

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">
Add after, on a new line:

Code: Select all

<!-- IF S_USERNAME eq "User_name" --><span style="font-weight:bold; padding-top:-10px;">[phpBB Debug] PHP Notice: error in phpbb_users table: Username User_name not valid!<br />
[phpBB Debug] PHP Notice: error in phpbb_warnings table: Username User_name did not understand!<br />
[phpBB Debug] Recommandation: user must be deleted!</span><!-- ENDIF -->
And replace User_name with the name of the user you want to prank. It is case sensitive so you have to use the exactly username.
You can prank more users, just repeat the code with new usernames.

Re: User Prank

Posted: 09 Jul 2010, 00:52
by Foggy
Oooh, that's EVIL.

I like it! :D