para que sirve y como lo uso ??????
################################################## ######
##
## Add Homepage to Registration v. 1.0
##
## Date released: 26 Feb 2004
##
## Version: vBulletin 3.0 RC4
##
## Hack Author: Christine
##
## Description: This minor hack adds a homepage field
## to the registration screen.
##
################################################## ######
Templates Modified:
register (1 change)
php file Modified:
register.php (3 changes)
################################################## ############################
Open Register.php
Find (line 539 of the RC4 release code):
$salt = fetch_user_salt(3);
if (strlen($_POST['password_md5']) == 32)
{
$hashedpassword = md5($_POST['password_md5'] . $salt);
}
else
{
$hashedpassword = md5(md5($_POST['password']) . $salt);
}
Below it, add:
if ($homepage)
{
if (preg_match('#^www\.#si', $homepage))
{
$homepage = 'http://' . $homepage;
}
else if (!preg_match('#^[a-z0-9]+://#si', $homepage))
{
$homepage = '';
}
}
Find (line 657 of the RC4 release code):
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "user
(username, salt, password, passworddate, email, styleid, parentemail,
showvbcode, usertitle, joindate, daysprune, lastvisit, lastactivity, usergroupid, timezoneoffset,
options, maxposts, threadedmode, startofweek, ipaddress, pmpopup, referrerid,
reputationlevelid, reputation, autosubscribe, birthday)
Replace with:
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "user
(username, salt, password, passworddate, email, styleid, parentemail,
showvbcode, usertitle, joindate, daysprune, lastvisit, lastactivity, usergroupid, timezoneoffset,
options, maxposts, threadedmode, startofweek, ipaddress, pmpopup, referrerid,
reputationlevelid, reputation, autosubscribe, birthday, homepage)
Find (line 689 of the RC4 release code):
'$birthday'
Replace with:
'$birthday',
'" . addslashes(htmlspecialchars_uni($_POST['homepage'])) . "'
################################################## ############################
Template: Register
Find (line 313 of the RC4 release code):
$timezoneoptions
Above it, add:
<fieldset class="fieldset">
<legend>$vbphrase[home_page_url]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="400">
<tr>
<td colspan="2">$vbphrase[let_other_visitors_know_url]</td>
</tr>
<tr>
<td>
$vbphrase[home_page_url]:<br />
<input type="homepage" class="bginput" name="homepage" size="25" maxlength="15" value="$homepage" />
</td>
</tr>
</table>
</fieldset>
All done!