vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   registration image on register,php image goes not refresh (https://vborg.vbsupport.ru/showthread.php?t=196582)

Frank H. Shaw 11-18-2008 01:35 AM

registration image on register,php image goes not refresh
 
I have taken it upon my self to change the name of the register.php page and I changed all references to the page in the templets by seraching through the all templets looking for the text string register.php. {to stop spam}

Everything seems to work just fine except the registration image which when you click on the link under the registration image you get the little spin indactor spinning but the actual image never gets changed. It seems the ony way to change the registration image text in the registration image box or window on the page is to refresh the register.php in the browser.

Please note I change the register.php to something like registerxx.php.

I am using version VB 3.6.8 with PHP 5.2.3 and MYSQL 5.0.45

THANKS

Frank H. Shaw

SEOvB 11-18-2008 01:36 AM

Instead of going thru all that trouble as i'm sure you'll need to change items on the register.php page, and inside javascript files, install more spam prevention measures such as reCaptcha, isBot and/or other methods to stop spam dead in its tracks

Frank H. Shaw 11-18-2008 01:43 AM

I have everything working but the image refreshing what does the image use to refresh its self can you explain where one will look for that information?

THANKS

SEOvB 11-18-2008 01:44 AM

I'm not sure where, but I'd imagine its some where in one of the javascript files (inside the clientscript folder) that handles the refreshing of the image since it seems to be handled via ajax

Frank H. Shaw 11-18-2008 02:07 AM

I found the file in clientscript folder vbulletin_ajax_imagereg and looked through it looking for a reference to the register.php but did not find any such reference. I did see the refresh part in the ajax - so what i think i am looking for is how does the register.php keep track of the current page so when the refresh happens it updates the register.php.

is it stored in some header or what?

Maybe in a session varable but i do not know how vb tracks these things I hope someone has a idea as to where I might find this information?

For example the "forumhome" i see that a .php is added to the end of this in register.php so one can ask how does that value get loaded or set in the first place if I changed the name of the file and if the image uses the formhome when it does a refresh the value in the forumhome would not reflex the name of the file being changed.

This I would think might be related to the problem i might be seeing - so i need to ask how is this value set in what script might i find this and how is this used?

THANKS

Frank H. Shaw

THANKS

Lynne 11-18-2008 03:06 AM

Did you leave the line at the top of the register.php page where THIS_SCRIPT is defined alone? If you changed that, you may have some other problems too.

Frank H. Shaw 11-18-2008 03:09 AM

I will list the changes I made in the templetes and maybe you have some other places I might have missed in my lack of knowledge of VB as whole.

Activateform
<form action="registerxx.php?do=activate" method="post">

<phrase 1="registerxx.php?$session[sessionurl]do=requestemail">$vbphrase[you_lost_activation_code_or_username]</phrase>

activate_requestemail

<form action="registerxx.php?do=emailcode" method="post">

FORUMHOME
<phrase 1="faq.php$session[sessionurl_q]" 2="registerxx.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>

Modifyprofile
<form action="registerxx.php?do=coppaform" method="post">

Navbar

<td class="vbmenu_control"><a href="registerxx.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>

Register

<form action="registerxx.php?do=addmember" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);">

register_rules

<form action="registerxx.php?do=register" method="post">

<phrase 1="$vboptions[bbtitle]" 2="$vboptions[forumhome].php$session[sessionurl_q]" 3="registerxx.php?$session[sessionurl]do=coppaform" 4="$vboptions[webmasteremail]">$vbphrase[coppa_rules_description]</phrase>

register_verify_age

<form action="registerxx.php?do=checkdate" method="post" onsubmit="return checkform(this)">

STANDARD_ERROR

<div class="smallfont"><phrase 1="registerxx.php?$session[sessionurl]do=signup">$vbphrase[admin_required_register]</phrase></div>

STANDARD_ERROR_LITE

<div class="smallfont"><phrase 1="registerxx.php?$session[sessionurl]do=signup">$vbphrase[admin_required_register]</phrase></div>

STANDARD_ERROR_LOGIN

<div class="smallfont"><phrase 1="registerxx.php?$session[sessionurl]do=signup">$vbphrase[admin_required_register]</phrase></div>

Looking above did I have to change any place other then what i have done above

THANKS

Frank H. Shaw

--------------- Added [DATE]1226985269[/DATE] at [TIME]1226985269[/TIME] ---------------

Quote:

Originally Posted by Lynne (Post 1667868)
Did you leave the line at the top of the register.php page where THIS_SCRIPT is defined alone? If you changed that, you may have some other problems too.

I did change this line to

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'registerxx');

What does this line do I have tried changing this line back to the way it was

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'register');

It does not fix the image verification problem - either way i set it?

what does this do?

--------------- Added [DATE]1226985664[/DATE] at [TIME]1226985664[/TIME] ---------------

Until I know more about the

define('THIS_SCRIPT', 'register');

I will keep it set to the orginal script

So what kind of problems can i have if i change that line?

what does it do?

THANKS

Lynne 11-18-2008 03:21 AM

I'll assume you got all the places in the templates - it's pretty easy to do a search of those files. However, 'register.php' is used several times in the php files (6 times in 3.7.3) and then 'register' is also used several times (223 times). Those are going to be the harder ones to track down because in some places they are talking about the name of the php page, other times the word defined as THIS_SCRIPT, other times it's a switch that may or may not be related to the page name, and who knows what the other times are. You will need to go through most of those and figure out if you need to change it or not.

Frank H. Shaw 11-18-2008 03:26 AM

Are any related to the image verifation because that is the only thing that does not work ?

It is the refreshing of the actaul image that i can not figure out the rest of my register.php under a another name works just fine as I tested it every place i could find.

Lynne 11-18-2008 03:26 AM

I have no idea. I wasn't about to go through all of them.


All times are GMT. The time now is 12:52 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.01608 seconds
  • Memory Usage 1,743KB
  • 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
  • (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