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


All times are GMT. The time now is 01:22 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.02736 seconds
  • Memory Usage 1,738KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (2)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