The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
||||
|
||||
![]()
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
|
#3
|
|||
|
|||
![]()
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 |
#4
|
||||
|
||||
![]()
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
|
#5
|
|||
|
|||
![]()
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 |
#6
|
||||
|
||||
![]()
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.
|
#7
|
|||
|
|||
![]()
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:
// #################### 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 |
#8
|
||||
|
||||
![]()
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.
|
#9
|
|||
|
|||
![]()
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. |
#10
|
||||
|
||||
![]()
I have no idea. I wasn't about to go through all of them.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|