I just got another idea....
This time, it is also about including the news/announcements form various forums, but not all together...
It would be possible to use Tabs, right?
I mean, create with html/javasript a tabbed template... something like:
- Code: Select all
echo "<table cellSpacing='1' cellPadding='1' width='100%' border='0' class='tbl-border'><tr>
<td align='center' width='33%' class='tbl2'>
<span id='welcome' onclick=\"return SetBoxText('welcome');\"><a href=\"javascript:show_hide()\"><b>".$locale['AWP018']."</b></a></span></td>
<td align='center' width='33%' class='tbl2'>
<span id='informations' onclick=\"return SetBoxText('informations');\"><a href=\"javascript:show_hide()\"><b>".$locale['AWP019']."</b></a></span></td>
<td align='center' width='33%' class='tbl2'>
<span id='copyrights' onclick=\"return SetBoxText('copyrights');\"><a href=\"javascript:show_hide()\"><b>".$locale['AWP020']."</b></a></span></td>
</tr><tr><td colspan='3' class='tbl1'><div id='box_text' style='overflow: auto; padding: 0px'> </div>";
(Code extracted from a PHP-Fusion panel, witch I was using before, code is not complete)
So when you open your page, the first tab is open (for example, Anime), and shows latest news from Anime forum. If you click on tab 2 (Games) it shows the latest news from (Games forum), and o on...
That should be possible, no?
Like this, each tab could include another annoucements file... :
Tab 1 --> Include: anime_announcements.php
Tab 2 --> Include: games_announcements.php
Tab 3 ---> ...
I mean, like this you would not have the same function more than one time in the same file...
What you think?
P.D, i found a page with something similar: http://www.ddanime.org/ but this page realoads completely... The way I mean would be without reloading the full page...




