The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Inserting java script on the registration page
Hello,
I'm trying to insert a java script at the registration page, and the registration confirmation page. Would one of you be so kind as to point me towards the template or file(s) I need to modify to do this? I've found registration.php but am unable to find the registration completion page. I'm assuming the best way to insert this is through the template manager? The script is pretty basic: Code:
<input type="hidden" name="OI_FORM_IDENTIFIER" value=""/> <SCRIPT LANGUAGE="JavaScript" SRC="http://www.blahblahblah.js"></SCRIPT> Any help would be much appreciated. I've searched the forum, the manual, the docs, google, etc. |
#2
|
||||
|
||||
templategroup name="Registration"
template name="register" So, Edit Templates -> Registration -> register |
#3
|
|||
|
|||
Yes, I got that far, as per my OP, but am looking specifically for the registration confirmation page. I need to add it to the "register.php?do=addmember" page.
|
#4
|
||||
|
||||
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)
|
#5
|
|||
|
|||
Thanks Lynne-
By using your instructions, I've found where I can insert the script to run in the registration template, however am still having a tough time finding where to add the second part of the script at the "register.php?do=addmember" page which displays the registration confirmation and instructions to check email. It looks like it uses the same template, but drops a few other things in that second registration page. What I'm wanting to add is to that specific "register.php?do=addmember" page where the java script will insert opt-in type offers for new users that register. Basically, once a new user completes registration, they're given a couple of banners which they can click (banners provided from the script). I can't find where / which template I'd use in that do=addmember page where I can safely do this. Other than headers, footers, error messages, etc, which won't work as those are used in other places in the forum and I only want the script to run at that one single page. Again, I appreciate your help, and any further guidance. |
#6
|
|||
|
|||
The "registration complete" page is actually a standard "error" page displaying a phrase (registration_complete). You could add stuff to that phrase, or you could redirect to another page, although that looks to be a little tricky to do via plugins because there are a couple other things that could happen at that point (handling COPPA users and email confirmation).
|
#7
|
|||
|
|||
Quote:
|
#8
|
|||
|
|||
I think it can be any html, so I don't see why it couldn't include javascript (inside <script>...</script> tags of course).
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|