KingPuyol
01-29-2007, 10:00 PM
This is a simple portal that I just took some of my time to make, I will make a better version of this when I have time.
All you have to do is:
1) Open the portal.php file and edit the $forumpath variable to your forum path, if you don't know how, upload the vbpath.php file to your forum directory and access it via the browser to get the forum path.
2) Upload the portal.php file anywhere you want (It doesn't have to be in the forum directory), and you can also rename the file if you want, depending on your needs.
3) Go to the Style Manager, and create a new template called: portal and paste the following in it:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header
<br />
<!-- Content -->
<font size="4"><center>Welcome to $vboptions[bbtitle]!</center></font><br />
<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>
<table align="center">
<tr>
<if condition="$show['member']">
<td valign="top" nowrap="nowrap" align="center">
<div class="smallfont" align="center">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong> (<a href="$vboptions[bburl]/login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a>)<br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase><br />
<a href="$vboptions[bburl]/$vboptions[forumhome].php">
<b>Go to the forum >></b></a>
<br /><br />
</div>
</td>
<else />
<td nowrap="nowrap" style="padding:0px">
<!-- login form -->
<form action="$vboptions[bburl]/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="$vboptions[bburl]/clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
<tr><td align="center" colspan="3"><a href="$vboptions[bburl]/register.php">Not A Member Yet? Register Now!</a><br /><a href="$vboptions[bburl]/faq.php?faq=vb_user_maintain#faq_vb_why_register" target="_blank">Want to know why you should register?</a><br /><br /></td></tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->
</td>
</if>
</tr>
</table>
<!-- DO NOT REMOVE THESE LINES BELOW -->
<table><tr><td><font class="smallfont"><a href="https://vborg.vbsupport.ru/showthread.php?t=137919" target="_blank">Simple Portal</a> by: <a href="http://www.barcaclub.net/forum/member.php?u=1" target="_blank">KingPuyol</a></font></td></tr></table>
<!-- /Content -->
<br />
$footer
</body>
</html>
Remember to do this to every style you have, or else it won't work with that style.
One more thing, as I said the next version will be way better than this, so for now, not everything is PHRASED, but most of the things it is, so if you are using this in a different language other than English, then remember to edit the portal template.
PLEASE MARK AS INSTALLED.
All you have to do is:
1) Open the portal.php file and edit the $forumpath variable to your forum path, if you don't know how, upload the vbpath.php file to your forum directory and access it via the browser to get the forum path.
2) Upload the portal.php file anywhere you want (It doesn't have to be in the forum directory), and you can also rename the file if you want, depending on your needs.
3) Go to the Style Manager, and create a new template called: portal and paste the following in it:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header
<br />
<!-- Content -->
<font size="4"><center>Welcome to $vboptions[bbtitle]!</center></font><br />
<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>
<table align="center">
<tr>
<if condition="$show['member']">
<td valign="top" nowrap="nowrap" align="center">
<div class="smallfont" align="center">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong> (<a href="$vboptions[bburl]/login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a>)<br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase><br />
<a href="$vboptions[bburl]/$vboptions[forumhome].php">
<b>Go to the forum >></b></a>
<br /><br />
</div>
</td>
<else />
<td nowrap="nowrap" style="padding:0px">
<!-- login form -->
<form action="$vboptions[bburl]/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="$vboptions[bburl]/clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
<tr><td align="center" colspan="3"><a href="$vboptions[bburl]/register.php">Not A Member Yet? Register Now!</a><br /><a href="$vboptions[bburl]/faq.php?faq=vb_user_maintain#faq_vb_why_register" target="_blank">Want to know why you should register?</a><br /><br /></td></tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->
</td>
</if>
</tr>
</table>
<!-- DO NOT REMOVE THESE LINES BELOW -->
<table><tr><td><font class="smallfont"><a href="https://vborg.vbsupport.ru/showthread.php?t=137919" target="_blank">Simple Portal</a> by: <a href="http://www.barcaclub.net/forum/member.php?u=1" target="_blank">KingPuyol</a></font></td></tr></table>
<!-- /Content -->
<br />
$footer
</body>
</html>
Remember to do this to every style you have, or else it won't work with that style.
One more thing, as I said the next version will be way better than this, so for now, not everything is PHRASED, but most of the things it is, so if you are using this in a different language other than English, then remember to edit the portal template.
PLEASE MARK AS INSTALLED.