Post by King JulianGuest on Nov 13, 2009 21:37:29 GMT -5
Hi. I'm making another suggestion. Just trying to make hvv better. Though I don't really know what to put in the portal. It is up to you like. This is just a basic portal shown to users when they first visit your forum. It also adds a button to your menu bar allowing users to access the portal from within the forum. You can use any HTML coding you like here. However, it is probably worth mentioning that you'll need to include a link to the main page of the forum otherwise you may have trouble getting into the forum. Here are the codes:
Main Header:
Main Header:
<div id="portal" style="display: none;">
<!-- Put any tables or other stuff for your portal below here -->
<table align="center" class="bordercolor" cellpadding="4" cellspacing="1">
<tr>
<td class="windowbg">
<center>
Contents of your "Portal" will go here. Any HTML can be used.
<br />
<a href="index.cgi">View Forum</a>
</center>
</td>
</tr>
</table>
<!-- Put any tables or other stuff for your portal above here -->
</div>
<script type="text/javascript">
<!--
/* basic portal - ross - open source */
if((location.href.match(/\.com\/?(index.cgi)?\??$/) && !document.referrer.match(location.href.split(/\./)[0])) || location.href.match(/page=portal/)) {
document.getElementsByTagName('table').item(0).style.display = 'none';
document.write(document.getElementById('portal').innerHTML);
document.write('<div style="display: none;">');
} else {
document.getElementsByTagName('td').item(5).innerHTML += '<a href="?page=portal">[View Portal]</a>';
}
//-->
</script>
Main Footer:
</div>
And that is it.
<!-- Put any tables or other stuff for your portal below here -->
<table align="center" class="bordercolor" cellpadding="4" cellspacing="1">
<tr>
<td class="windowbg">
<center>
Contents of your "Portal" will go here. Any HTML can be used.
<br />
<a href="index.cgi">View Forum</a>
</center>
</td>
</tr>
</table>
<!-- Put any tables or other stuff for your portal above here -->
</div>
<script type="text/javascript">
<!--
/* basic portal - ross - open source */
if((location.href.match(/\.com\/?(index.cgi)?\??$/) && !document.referrer.match(location.href.split(/\./)[0])) || location.href.match(/page=portal/)) {
document.getElementsByTagName('table').item(0).style.display = 'none';
document.write(document.getElementById('portal').innerHTML);
document.write('<div style="display: none;">');
} else {
document.getElementsByTagName('td').item(5).innerHTML += '<a href="?page=portal">[View Portal]</a>';
}
//-->
</script>
Main Footer:
</div>
And that is it.