User Prank

Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
Locked
User avatar
Stoker
Site Admin
Site Admin
Posts: 3525
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

User Prank

Post 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.
Board rules! No PM support
User avatar
Foggy
BBCoder II
BBCoder II
Posts: 13
Joined: 01 Jun 2010, 00:30

Re: User Prank

Post by Foggy »

Oooh, that's EVIL.

I like it! :D
[center]~~ Artificial intelligence is no match for natural stupidity. ~~[/center]
Locked