![]() |
Your Users Post As Random Users
Hi, this is my first time posting a "hack", so please tell me if I've done something horribly wrong. :p
This is a hack I made mainly for as an April fools joke for my board. You select certain users, and whenever anyone posts, the post is listed as if it was posted by one of those users, chosen at random. On my boards, we chose the users Somebody, Nobody and Anybody. The code goes in the PHP_INCLUDE_START template. Selecting which users you want it to pick from is easy, you just add and remove array entries. For example, if I wanted it to pick from the users "Joe" and "Bob", who have userids 3 and 4, I would enter ... PHP Code:
PHP Code:
You don't need to use real userids and usernames. When I wanted things to be really crazy, I used ... PHP Code:
My members got a kick out of this, I hope you and yours do to. :) -The Computer Mutt |
A great idea for a fun April Fools hack, but you might want to put where you should add the code :)
|
It sounds great but id ont get where it goes and how it works. Do i need to change the
$randomuserchoice[1] = array( 'userid' => 3, 'username' => "Joe"); To a userid on my forum to be posted as? Or does that mean that user ID 3 will post as the name Joe. If so is there anyway to completly randomise every user on the forum who posts? |
screen please :)
|
:p
Oops. The code goes in PHP_INCLUDE_START. *Goes to change* @Allan: There's not much to see. Everyone's posts are from one of three users. |
Quote:
|
i like it, but it won't revert the posts back to their original poster, will it?
|
This is awesome. I added an extra if (rand(1, 10) ==1) statement so that it doesn't do it EVERY time. Thanks man!
|
Quote:
|
so this is a completely useless hack...
reason: your users register with a username... this hack make permanent change so ALL the posts made on the forum are made with random names... who would use this on a board anyway... logically ?! |
All times are GMT. The time now is 10:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|