The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Ok What I want to do is allow my VIP users to setup their own email addresses.
So I setup a template that looks like this: 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>
<h2 class="blockhead">V.I.P Email for {vb:raw bbuserinfo.musername}</h2>
<div class="blockbody">
<div class="blockrow">
<form name="frmEmail" method="post">
<table width="400" border="0">
<tr><td>Username:</td><td>{vb:raw bbuserinfo.username}@mydomain.com</td></tr>
<tr><td>Password:</td><td><input name="pass" size="20" type="password" /></td></tr>
<tr><td colspan="2" align="center"><hr /><input name="submit" type="submit" value="Create Email Account" /></td></tr>
</table>
</form>
<div align="center"></div>
</div>
</div>
{vb:raw footer}
</body>
</html>
PHP Code:
Code:
vBulletin Message Your submission could not be processed because a security token was missing. If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error. |
|
#2
|
|||
|
|||
|
You need to add these two lines to ANY form... for "security reasons". I don't think they actually help with anything, but vb requires it...
Code:
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
|
|
#3
|
|||
|
|||
|
AHHHH, thank you so much! That worked like a charm!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|