vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Random Password Instead of Activation Code (https://vborg.vbsupport.ru/showthread.php?t=33068)

bira 12-19-2001 12:18 AM

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.

madhouse 12-19-2001 12:35 AM

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!!

bira 12-19-2001 01:25 AM

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

madhouse 12-19-2001 02:04 AM

Files sent .......THanks

bira 12-19-2001 02:08 AM

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

madhouse 12-19-2001 05:17 PM

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..

malc 12-21-2001 09:23 AM

[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 :confused: :confused: :confused:

please help me :)

( i have vbulletin 2.2.1 on ventures online virtual hosting )

ForYou 12-22-2001 12:04 AM

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

ForYou 12-30-2001 10:19 PM

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

bira 12-30-2001 11:10 PM

$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 :)


All times are GMT. The time now is 06:48 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
  • Page Generation 0.01065 seconds
  • Memory Usage 1,749KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_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