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 on register (https://vborg.vbsupport.ru/showthread.php?t=32105)

Scott MacVicar 11-03-2001 10:00 PM

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.

bokhalifa 11-04-2001 12:18 PM

Thanks PPN


GOOD updated :)

TheComputerGuy 11-04-2001 12:20 PM

another great hack by PPN

nuno 11-04-2001 05:25 PM

yeah
nice hack
tx PPN ;)

The Realist 11-09-2001 01:00 PM

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?

:(

Scott MacVicar 11-09-2001 02:43 PM

can you paste to me whats on that line, i can't seem to think what would cause that error.

The Realist 11-09-2001 03:04 PM

Its blank, nothing on there?

Scott MacVicar 11-09-2001 06:25 PM

the line above and below that then it will obviously be an eval function and i need to see what template and what the eval function parameters look like.

The Realist 11-09-2001 06:56 PM

This is the begining of the register.php and also a pic of the error.

<?php
error_reporting(7);

$templatesused = "signupadult,signupverify,modifyoptions_maxposts,r egister_birthday,modifyoptions_styleset,register_s tylecell,register_customfields,registeradult,regis tercoppa,email_newuser,emailsubject_newuser,email_ activateaccount,emailsubject_activateaccount,redir ect_registerthanks";

require("./global.php");

if ((!isset($action) or $action=="") and (!isset($a) or $a=="")) {
$action="check";
}

if ($url==$HTTP_REFERER) {
$url=urlencode($url);
}

Thanks,

;)

over 11-09-2001 07:59 PM

nice hack :) gonna isntall this 1 when i get the chance

Scott MacVicar 11-09-2001 09:38 PM

line 198 please.

the line 3 is where the error is occuring on the code that is being evaluated.

The Realist 11-09-2001 10:01 PM

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

?

Next ;)

malc 11-14-2001 03:50 PM

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 :( :( :( :(

Scott MacVicar 11-14-2001 07:47 PM

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.

Steve Machol 11-14-2001 10:09 PM

PPN,

I'm pretty sure emailing full vB files is prohibited by the license agreement.

Scott MacVicar 11-15-2001 03:15 PM

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 :/

updon 01-09-2002 07:44 AM

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.

updon 01-14-2002 02:07 AM

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")."\";");
}


Scott MacVicar 01-14-2002 03:48 PM

thanks dude i never got that error when i was using it, i will adjust the text file in the first post shortly.

Wolf42 02-19-2002 01:48 PM

Great hack, PPN! And thanks to updon it is running very well. ;)

mewgood 03-03-2002 11:35 PM

why I get this on register.php?
Parse error: parse error in /usr/local/psa/home/vhosts/mewgood.com/web_users/vbb/register.php(203) : eval()'d code on line 8

mewgood 03-04-2002 07:33 AM

can anyone help me asap?
Please
Thx

mewgood 03-04-2002 10:40 PM

thx
I got it

Pilot 05-12-2002 12:02 PM

Again needs to be standard, I HATE THE VB registration system it results in more users than not, being unverified - They don't understand this "click on link to activate stuff".

globalwin 06-18-2002 10:06 PM

where can i turn this hack on and off, I just cant find the option?


All times are GMT. The time now is 05:03 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.02395 seconds
  • Memory Usage 1,758KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete