The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm trying to create a page that allows visitors to enter their email address to be added to a mailing list. I was going to just use the HTML <form>, but the 'mailto:' code keeps forcing email programs open, something that is messy and I don't want. Because of this I've elected to go with a PHP script instead.
Here is the code I have for the form itself: PHP Code:
I've tried creating a vB page as documented here but either the form php script is ignored or I get errors. Here is the vB page I created (called newslettersubscription.php): PHP Code:
And with this file it calls a template, one I created called newsletter_subscription: Code:
{vb:stylevar htmldoctype} <html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"> <head> <title>{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}</title> {vb:raw headinclude} {vb:raw headinclude_bottom} </head> <body> {vb:raw header} {vb:raw navbar} <div id="pagetitle"> <!-- <h1>{vb:raw pagetitle}</h1> --> </div> <center><h2 class="blockhead">Newsletter Subscription</h2></center> <div class="blockbody"> <div class="blockrow"> </div> </div> {vb:raw footer} </body> </html> Any help would be greatly appreciated. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|