User Prank

Guides & Snippets for phpBB3.
Try the Snippets here and share Your own Snippets

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.
You do not have the required permissions to view the files attached to this post.

Re: User Prank

Post by Foggy »

Oooh, that's EVIL.

I like it! :D