Infosite
« Search Results »

Welcome Guest. Please Login or Register.
Dec 19, 2009, 11:16pm



Table Title
Contents of Left Box Contents of Center Box Contents of Right Box

Infosite :: Search Results
10 Most Recent Posts1 Result Found

Result 1 of 1:
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: The code (Read 212 times)
All Seeing Eyes
Administrator
*****
member is offline




[homepage]

Joined: Dec 2006
Posts: 5
Karma: 0
 The code
« Result #1 on Oct 1, 2007, 5:51pm »

This is basically the 'Basic Portal' code, for this one i've made a table for links/descriptions.
you could either use this for displaying all your sites, or several sites in a 'ring', or if you make some hidden boards, you can probably think of other uses.

The code:
Add this part to Main Header, red part is the inner table

<div id="portal" style="display: none;">
<!-- Put any tables or other stuff for your portal below here -->

<table align="center" width="728" class="bordercolor" cellpadding="4" cellspacing="1">
<tr>
<td class="windowbg" width="728" >
<center>

[color=Red]<table width="700" border="1">

<tr>
<td width="100%" height="20" class="titlebg" colspan="2">
<font size="4"><B>My sites</B></font>
</td>
</tr>
<tr>
<td width="20%" height="50" class="windowbg" align="center" >
<a href="URL"<font size="4"><B>NAME</B></font></a></td>
<td width="80%" height="50" class="windowbg" border="1" >
<font size="2">DESCRIPTION</font>
</td>
</tr>
<tr>
<td width="20%" height="50" class="windowbg" align="center" >
<a href="URL"<font size="4"><B>NAME</B></font></a></td>
<td width="80%" height="50" class="windowbg" border="1" >
<font size="2">DESCRIPTION</font>
</td>
</tr>
<tr>
<td width="20%" height="50" class="windowbg" align="center" >
<a href="URL"<font size="4"><B>NAME</B></font></a></td>
<td width="80%" height="50" class="windowbg" border="1" >
<font size="2">DESCRIPTION</font>
</td>
</tr>
<tr>
<td width="20%" height="50" class="windowbg" align="center" >
<a href="URL"<font size="4"><B>NAME</B></font></a></td>
<td width="80%" height="50" class="windowbg" border="1" >
<font size="2">DESCRIPTION</font>
</td>
</tr>

</table>


<br />
<a href="index.cgi">View Forum</a>
</center>
</td>
</tr>

</table>
<br /><br /><br /><br />
<!-- 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>


Not forgetting this in Main Footer

</div>

---------------------
the 'view forum' link (marked green) could be moved to one of the cells instead of being below the table, then you can add a description.
--------------------
To add more cells, duplicate this part

<tr>
<td width="20%" height="50" class="windowbg" align="center" >
<a href="URL"<font size="4"><B>NAME</B></font></a></td>
<td width="80%" height="50" class="windowbg" border="1" >
<font size="2">DESCRIPTION</font>
</td>
</tr>
« Last Edit: Oct 1, 2007, 5:54pm by admin »Link to Post - Back to Top  IP: Logged



Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!