FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  Who is OnlineWho is Online   Join! (free) Join! (free)  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  • Welcome
  • Guest

How to make your forum Dual Portal (phpbb2)

 
Post new topic   Reply to topic    myfreeforum.org Forum Index -> Portal components
View previous topic :: View next topic  
Author Message
Please Register and Login to this forum to stop seeing this advertising.






Add Karma

rated by members
Add Comment
Show Comments


online/offline
Posted:     Post subject:

Back to top
Nick(NR)
Moderator
Moderator
FLAG

Virtual Cash: 21710

Joined: 06 May 2006
Posts: 5310


Location: Medway, Kent
Add Karma

rated by 43 members
Add Comment
Show Comments

I'm better than Jose!
online/offline
PostPosted: Fri Oct 13, 2006 12:34 pm    Post subject: How to make your forum Dual Portal (phpbb2)  Reply with quote

You will need to change the portals in the code below to what you want.

You'll need to ADD this piece of code into your overall_header.tpl file AT THE BOTTOM

Code:
<table width="100%" border="0" cellspacing="0" cellpadding="4">
  <tr>
<!-- BEGIN switch_forum_view -->
    <td width="15%" align="center" valign="top">{MYFF.CURRENTTIME}<br />{MYFF.LOGIN}<br />{MYFF.TOPPOSTERS}</td>
<!-- END switch_forum_view -->
    <td valign="top" align="center">


and the bit below needs to be ADDED into your overall_footer.tpl file AT THE TOP

Code:
</td>
<!-- BEGIN switch_forum_view -->
    <td width="15%" align="center" valign="top">{MYFF.CURRENTTIME}<br />{MYFF.LOGIN}<br />{MYFF.TOPPOSTERS}</td>
<!-- END switch_forum_view -->
  </tr>
</table>


JUST TO MAKE THIS CLEAR
the width of the portal cells have been set to 15% so they expand and contract with varying screen resolutions to reduce the portals from squashing up the index page of your forum, you can however change them in a trial and error manner, so they are slightly wider.

As you can see I've placed the portal code into a 1 row 3 column table, also you'll notice the table is left open in the headers code and the table closes in the footers code, the reason for this is that the index body automatically gets placed in the middle cell with the portals either side.

Screenshot of it in action on my forum:


Click to see full size image
_________________
CALM TIME: When calm time is called, all posters in a topic must refrain from posting and take a time out to calm down.


Last edited by Nick(NR) on Thu Apr 03, 2008 4:15 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Nick(NR)
Moderator
Moderator
FLAG

Virtual Cash: 21710

Joined: 06 May 2006
Posts: 5310


Location: Medway, Kent
Add Karma

rated by 43 members
Add Comment
Show Comments

I'm better than Jose!
online/offline
PostPosted: Sat Nov 03, 2007 3:35 pm    Post subject: Reply with quote

This guide for dual portal has been revised, as it was a long time coming tbh, spotted a table error no one has pointed out for over a year? and the code played silly buggers with the width of portals on both sides ,hopefully that is now resolved.


_________________
CALM TIME: When calm time is called, all posters in a topic must refrain from posting and take a time out to calm down.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    myfreeforum.org Forum Index -> Portal components All times are GMT
Page 1 of 1
 
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Card File  Gallery  Forum Archive
Powered by phpBB © 2001, 2005 phpBB Group
Create your own free forum | Buy a domain to use with your forum