Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-18-2008, 01:35 AM
Frank H. Shaw Frank H. Shaw is offline
 
Join Date: Aug 2007
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 11-18-2008, 01:36 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 11-18-2008, 01:43 AM
Frank H. Shaw Frank H. Shaw is offline
 
Join Date: Aug 2007
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 11-18-2008, 01:44 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 11-18-2008, 02:07 AM
Frank H. Shaw Frank H. Shaw is offline
 
Join Date: Aug 2007
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 11-18-2008, 03:06 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 11-18-2008, 03:09 AM
Frank H. Shaw Frank H. Shaw is offline
 
Join Date: Aug 2007
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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
Reply With Quote
  #8  
Old 11-18-2008, 03:21 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 11-18-2008, 03:26 AM
Frank H. Shaw Frank H. Shaw is offline
 
Join Date: Aug 2007
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 11-18-2008, 03:26 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have no idea. I wasn't about to go through all of them.
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 01:21 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.05177 seconds
  • Memory Usage 2,255KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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