vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Major Additions - Updated - Member/User Generator Script for vbulletin! (https://vborg.vbsupport.ru/showthread.php?t=198838)

P.Jackson 01-14-2009 04:44 PM

Quote:

Originally Posted by RTMdotORG (Post 1711495)
ummm... then if you were logged out i dont think it would work...

edit the template: FORUMHOME_loggedinusers

delete the ,

then you should be good


Nope still works , if you delete the , from forumhome template that that will most likely mess it all up . As at the moment its fetching it twice

iNRoC 02-02-2009 11:13 PM

The product will be updated and released soon. Im editing it right now.

oleronnais 02-15-2009 08:10 AM

hello

doen't work

only visitor is ok

Brakkish 02-16-2009 06:07 AM

Edit:* I originally asked how to edit the code to make a few changes. Instead, I ended up learning a bit while trying to help myself. Thought I'd share with others (see next post)

Brakkish 02-16-2009 03:03 PM

Option #1 - [No numbers on the end of generated names]
For anyone else who'd like to remove the numbers added to the end of names;

Simply find this line of code in the usergenerator.php file
  • $user = trim($names[$i]).$n;
And replace it with -->
  • $user = trim($names[$i]); //.$n;
-----------------------------------------------------

Option #2 - [Shorter numbers on the end of generated names.]

(this will help the script avoid duplicate names if you plan on making a lot of fake users)

Alternately, in case anyone else would like to keep the names+numbers; but doesn't like how long the numbers are here here is an adjustment to the number variables that will create names with shorter number suffixes.

Example; Mike12673212 will now be something closer to Mike01 or Mike23

Find this block of code:
  • $newuser =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);

    $i = rand(0, count($names)-1);
    $n = rand(0,10);
    for($ii = rand(2, 8); $ii > 1; $ii--) {
    $n .= rand(0, 9);
    }
    $user = trim($names[$i]).$n;

    $newuser->set('username', $user);
And change it to:
  • $newuser =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);

    $i = rand(0, count($names)-1);
    $n = rand(0,1);
    for($ii = rand(1, 2); $ii > 1; $ii--) {
    $n .= rand(0, 9);
    }
    $user = trim($names[$i]).$n;

    $newuser->set('username', $user);

Additional Names - [Adding more names to the source in which the script pulls its names]

Here's a how to for anyone planning on making more than 20-30 fake users; I recommend adding more names to the source.


Find the code below: (I've shortened the names list to save space here - I'm sure you get the idea)
  • $names = array('neo', 'raydon', 'mark', 'giovanni', 'haxerrebel', 'twisted', 'metsrule', 'yankessloser', 'bigwang', 'gangstapride');
Simply add names in the same format as you see above. I've added some below as an example.
  • $names = array('neo', 'raydon', 'mark', 'giovanni', 'haxerrebel', 'twisted', 'metsrule', 'jimmyjam', 'tonka', 'tweedle', 'deedum', 'RocketMan', 'tommyboy', 'yankcranker', 'mothergoose', 'rainman', 'yankessloser', 'bigwang', 'gangstapride');

Then after you've made your changes, make sure to save your work. Then upload it - overwrite if prompted. (make sure you upload it to the same location and directory as before).





I hope this little bit helps other coding newbs like myself who were looking for a little bit more flexibility in the script.

please note* I am not the creator of the original code - nor do I make any claims to such. My thanks to it's creator. With a bit of tweaking this script can be polished into a fine tool for forum owners to give themselves a little jump start in building up their forum community.

rapics 03-10-2009 11:38 AM

i have problem with this in vBulletin 3.8.1
i install this but in admin cp=>User Generator (User Generator v1.4) not open! and show my forum home page
i can't register new members with this
online users and guests work

HaS?R 03-11-2009 06:58 PM

Thanks.I'll Try.

theFM 03-21-2009 10:18 AM

It shows me a full black page for me with nothing on it

Full black page
I use vb 3.8.1 patch 1

Kindly Please help
I used usergen 1.4

I have uploaded the files to correct places , also in my admincp it shows me the Listings of User Generator on my admincp

But when i click on that option of User Generator v1.4
It shows a full black page

By the way i have renamed by admincp address ok but it should not be a problem

Whatz wrong

omegaweapontmod 05-10-2009 08:33 PM

I get an error... :( :

Code:

Fatal error: Cannot redeclare class vS_HHR_Engine in /home/public_html/forums/includes/visionscripts/psionic_hide/global_start.php on line 13

omegaweapontmod 05-10-2009 08:34 PM

Can you help me with this?


All times are GMT. The time now is 04:33 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.01019 seconds
  • Memory Usage 1,742KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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