vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Your Users Post As Random Users (https://vborg.vbsupport.ru/showthread.php?t=79163)

fly 04-01-2005 02:17 PM

Quote:

Originally Posted by nexialys
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 ?!

nononononono

The POSTS made while this hack are on cant be reversed, but once you remove the code, posts return to normal.

btw, it doesn't seem to work with quick reply

fly 04-01-2005 02:22 PM

For quick reply to work, make the IF statement say:

PHP Code:

if ((($_POST['do'] == 'postthread') and ($_POST['sbutton'] == 'Submit New Thread'))
    or ((
$_POST['do'] == 'postreply') and ($_POST['sbutton'] == 'Submit Reply'))
    or ((
$_POST['do'] == 'postreply') and ($_POST['sbutton'] == 'Post Quick Reply'))) 

Why does it have to check the button at all though?

GamerzWorld 04-01-2005 05:00 PM

How do i exempt user ids?

GamerzWorld 04-01-2005 05:15 PM

Hmm its only working for some usergroups lol

fly 04-01-2005 05:18 PM

Quote:

Originally Posted by GamerzWorld
How do i exempt user ids?

This should work:
PHP Code:

// vvvvvvvvvvvvv The Computer Mutt's Post As Random User Hack vvvvvvvvvvvvv

    
if ((($_POST['do'] == 'postthread') and ($_POST['sbutton'] == 'Submit New Thread'))
    or ((
$_POST['do'] == 'postreply') and ($_POST['sbutton'] == 'Submit Reply'))
    or ((
$_POST['do'] == 'postreply') and ($_POST['sbutton'] == 'Post Quick Reply')))
    {

        if (
$bbuserinfo['userid'] != || $bbuserinfo['userid'] != 2){ //Put the exempt IDs in here
            
$bodies = array();

            
$randomuserchoice[1] = array(
                
'userid' => 93,
                
'username' => "DigitalMocking");

             
$randomuserchoice[2] = array(
                 
'userid' => 175,
                 
'username' => "jaxxor");

            
$randomuser rand(1,count($randomuserchoice));
            
$bbuserinfo['userid'] = $randomuserchoice[$randomuser]['userid'];
            
$bbuserinfo['username'] = $randomuserchoice[$randomuser]['username'];
        }
    }
// ^^^^^^^^^^^^^ The Computer Mutt's Post As Random User Hack ^^^^^^^^^^^^^ 

Add the IDs to the 2nd IF statement I put in there (See the comment I put in there...). If you need to add more IDs, just put 2 pipes || between the IDs.

EDIT: That code also adds quick reply to the switch...

GamerzWorld 04-01-2005 05:40 PM

Why are some users still posting in there user name :(

GamerzWorld 04-01-2005 05:45 PM

Also

if ($bbuserinfo['userid'] != 1 || $bbuserinfo['userid'] != 2){ //Put the exempt IDs in here
$bodies = array(171);

Didnt work :/

fly 04-01-2005 05:48 PM

Quote:

Originally Posted by GamerzWorld
Why are some users still posting in there user name :(

They are probably using quick reply, the code OP posted doesn't affect the quick reply.

fly 04-01-2005 05:48 PM

Quote:

Originally Posted by GamerzWorld
Also

if ($bbuserinfo['userid'] != 1 || $bbuserinfo['userid'] != 2){ //Put the exempt IDs in here
$bodies = array(171);

Didnt work :/

What is
PHP Code:

 $bodies = array(171); 

edit: Can you post the exact code you're using?

GamerzWorld 04-01-2005 06:04 PM

Just copied yours.. and added inbetween gaps 171


All times are GMT. The time now is 05:12 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01053 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete