Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by Scott MacVicar Scott MacVicar is offline
Developer Last Online: Mar 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-03-2001 Last Update: Never Installs: 9
 
No support by the author.

This generates a random password and sends it along with the activation email that users are sent. For this to work you must have verify email enabled. You obviously don't want to send a random password to an email which might not exist.

hack suggested by psico.

Note this is not as advanced as the one by bira, it simply sends a random password on register, it doesn't sent a random pass if they change email.

Last updated on 04th of November 2001 14:45GMT

now includes an option to turn the random password option on and off within the admin cpanel.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 11-09-2001, 09:38 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

line 198 please.

the line 3 is where the error is occuring on the code that is being evaluated.
Reply With Quote
  #13  
Old 11-09-2001, 10:01 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wish I could show you line 198 but the php file stops at line 141.

?

Next
Reply With Quote
  #14  
Old 11-14-2001, 03:50 PM
malc malc is offline
 
Join Date: Oct 2001
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by The Realist
On installing all works fine, but an error is showing up on top of the registration page:

Parse error: parse error in /home/sites/home/web/forum/register.php(198) : eval()'d code on line 3


I Installed as per Instructions?

Any help?

me too
Reply With Quote
  #15  
Old 11-14-2001, 07:47 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mail your register.php file to

software@pp-network.com

both of you and i will check and sort the hack for you i don't understand whats wrong as it works fine on my test board.
Reply With Quote
  #16  
Old 11-14-2001, 10:09 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PPN,

I'm pretty sure emailing full vB files is prohibited by the license agreement.
Reply With Quote
  #17  
Old 11-15-2001, 03:15 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm em how about upload in an attachment here and i will edit it and then re-upload as only liscenced people can download the files.

If not then em i'll make the hack documentation easier to understand :/
Reply With Quote
  #18  
Old 01-09-2002, 07:44 AM
updon's Avatar
updon updon is offline
 
Join Date: Jan 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PPN,

Since no one got back to you about this error and it popped up when I installed this hack, here goes:

same error:
Code:
Parse error: parse error in /usr/www/mypath/public_html/2002/talk/register.php(201) : eval()'d code on line 3
which makes it so that the "Your email will be randomly generated and emailed to you" type message doesn't show up on the register page.

From my register.php, line 201:

Code:
       eval("\$passbit = \"".gettemplate("register_randompass")."\");");
and my register_randompass template is:

Code:
<tr><td bgcolor="#13486D" colspan="2"><normalfont><b>A Password will be sent to you once you finish registering. You will be able to change it after you have logged in</b></normalfont></td></tr>
Please let me know if you need more info...

Thanks,

Updon

oh yeah! Other than the small error message it works great.
Reply With Quote
  #19  
Old 01-14-2002, 02:07 AM
updon's Avatar
updon updon is offline
 
Join Date: Jan 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code in the vb_random_pass.txt file is incorrect

Code:
if ($randompass) {
  eval("\$passbit = \"".gettemplate("register_randompass")."\");"); 
} else {
  eval("\$passbit = \"".gettemplate("register_pass")."\");"); 
}
There is an extra ) on each line.

This is how I got it to work:
Code:
if ($randompass) {
  eval("\$passbit = \"".gettemplate("register_randompass")."\";"); 
} else {
  eval("\$passbit = \"".gettemplate("register_pass")."\";"); 
}
Reply With Quote
  #20  
Old 01-14-2002, 03:48 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks dude i never got that error when i was using it, i will adjust the text file in the first post shortly.
Reply With Quote
  #21  
Old 02-19-2002, 01:48 PM
Wolf42's Avatar
Wolf42 Wolf42 is offline
 
Join Date: Nov 2001
Location: Vienna, Austria, Europe
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, PPN! And thanks to updon it is running very well.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:00 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04950 seconds
  • Memory Usage 2,291KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete