Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by bira bira is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

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

As per request, this is verstion 2.0 of the Random Password hack.

I am starting a new thread for this, because users of vB 2.0.3 and down should use version 1.0 of this hack, whereas users if v.2.2.0 and up should use this version.

[hr]

Purpose: When a new user regsiters, he is e-mailed a password generated randomly. He will not be able to log in until he receives this e-mail and uses that password. (the same happens if an existing user changes his e-mail address).

After installing this hack, you will have three options essentially:

1) Don't verify the e-mail is valid.
In this case the user selects his own password and nothing is sent to him.

2) Verify the e-mail is valid by sending an activation code
This is how vBulletin works now: a user selects his own password during registration, and the BB Mailer sends him an activation code / link that he needs to use before he's able to post

3) Verify the e-mail is valid by sending a random password
In this case the user DOES NOT select a password but instead he receives a randomly generated password by e-mail. He will not be able to log in / post until he receives and uses this password.

Installation: download the attached installer and run it in your admin directory. All changes that need to be made manually to scripts and/or templates are listed there.

[high]Important: If you previously installed this hack, select the "upgrade" option and not the "new install"[/high]

Cheers,

Bira

Show Your Support

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

Comments
  #32  
Old 12-19-2001, 12:18 AM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

madhouse - if you select in Options, in Admin CP, to "verify e-mail" (yes) and "send random password instead of activation code" (yes) -- then you are NOT supposed to be able to enter a password: one will be mailed to you.
Reply With Quote
  #33  
Old 12-19-2001, 12:35 AM
madhouse's Avatar
madhouse madhouse is offline
 
Join Date: Nov 2001
Location: USA
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok i got that much but even when i select the send user random password ...i created a temp account and its saying wrong password and this is the password the database generated...
Also when i elect to go to the email activation code...there is no longer a password box there for them to create a password...
So what gives there?
By the way thanks for the fast response!!
Reply With Quote
  #34  
Old 12-19-2001, 01:25 AM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

madhouse, I can only presume that you missed something in the installation. If you send me all the relevant files (member.php, register.php and admin/functions.php) I'll take a look and see if anything is missing there. My e-mail is goren@atlasf1.com
Reply With Quote
  #35  
Old 12-19-2001, 02:04 AM
madhouse's Avatar
madhouse madhouse is offline
 
Join Date: Nov 2001
Location: USA
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Files sent .......THanks
Reply With Quote
  #36  
Old 12-19-2001, 02:08 AM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok madhouse, I looked at your files and found your error

Open register.php and find (lines 42-48 in your script) :

Code:
    // Send Random Password Instead of Activation Code (v2.0)
      if ($randpassword=="1") {
         eval("\$register_passwordbit = \"".gettemplate('register_nopassword')."\";");
      } else {
         eval("\$register_passwordbit = \"".gettemplate('register_yespassword')."\";");
      }    
// Send Random Password Instead of Activation Code (v2.0)
You placed this code in the WRONG place. Cut it out of the script and paste it BEFORE:

Code:
      if ($who=="adult") {
        eval("dooutput(\"".gettemplate("registeradult")."\");");
      } else {
        eval("dooutput(\"".gettemplate("registercoppa")."\");");
      }
(on line 199 in your script after cutting the above code).

So the end result will be:

PHP Code:
// Send Random Password Instead of Activation Code (v2.0)
      
if ($randpassword=="1") {
         eval(
"\$register_passwordbit = \"".gettemplate('register_nopassword')."\";");
      } else {
         eval(
"\$register_passwordbit = \"".gettemplate('register_yespassword')."\";");
      }    
// Send Random Password Instead of Activation Code (v2.0)

      
if ($who=="adult") {
        eval(
"dooutput(\"".gettemplate("registeradult")."\");");
      } else {
        eval(
"dooutput(\"".gettemplate("registercoppa")."\");");
      } 
This will fix your problem
Reply With Quote
  #37  
Old 12-19-2001, 05:17 PM
madhouse's Avatar
madhouse madhouse is offline
 
Join Date: Nov 2001
Location: USA
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank bira...that fixed that,now i know i am in the wrong area to ask this but has anyone seen the welcome panel hack here?I saw it a while back but now its like it has disappeared..
Reply With Quote
  #38  
Old 12-21-2001, 09:23 AM
malc malc is offline
 
Join Date: Oct 2001
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by malc
Hello,

I installed this hack on my forum I am recorded I well receive the mall with the password, but he says to me that my password is incorrect

please help me

( i have vbulletin 2.2.1 on ventures online virtual hosting )
Reply With Quote
  #39  
Old 12-22-2001, 12:04 AM
ForYou ForYou is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ther is ERROR like this

Parse error: parse error in /home/virtual/montada/home/httpd/html/montada/member.php on line 593

Help me

Regards
Reply With Quote
  #40  
Old 12-30-2001, 10:19 PM
ForYou ForYou is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello bira,
how can i placed this line with my line in member.php

your script line is :

$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',cust omtitle='".intval($customtitle)."',usertitle='".ad dslashes($customtext)."',email ='".addslashes(htmlspecialchars($email))."',parent email='".addslashes(htmlspecia lchars($parentemail))."',coppauser='$coppauser',ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',usergroupid='$bbuserinfo[usergroupid]'$changepw WHERE userid='$bbuserinfo[userid]'");

my member.php line like this

$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',cust omtitle='$customtitle',usertitle='".addslashes($cu stomtext)."',email='".addslash es(htmlspecialchars($email))."',parentemail='".add slashes(htmlspecialchars($pare ntemail))."',coppauser='$coppauser',homepage='".ad dslashes(htmlspecialchars($hom epage))."',icq='".addslashes(htmlspecialchars($icq ))."',aim='".addslashes(htmlsp ecialchars($aim))."',yahoo='".addslashes(htmlspeci alchars($yahoo))."',usergroupi d='$bbuserinfo[usergroupid]',country='".addslashes($country)."', gender='$gender' $awaysql WHERE userid='$bbuserinfo[userid]'");

there is install gender hack and away message hack ..

please help me

Regards
Reply With Quote
  #41  
Old 12-30-2001, 11:10 PM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',customtitle='".intval($c ustomtitle)."',usertitle='".addslashes($customtext )."',email='".addslashes(htmlspecialchars($email)) ."',parentemail='".addslashes(htmlspecialchars($pa rentemail))."',coppauser='$coppauser',homepage='". addslashes(htmlspecialchars($homepage))."',icq='". addslashes(htmlspecialchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))."',usergroupid='$bbus erinfo[usergroupid]'[high],gender='$gender' $awaysql $changepw[/high] WHERE userid='$bbuserinfo[userid]'");

That will do the trick
Reply With Quote
Reply


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 05:46 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.04785 seconds
  • Memory Usage 2,316KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (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
  • (3)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