PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#1 2009-02-17 22:16:46

Kuro
New member
Registered: 2007-03-09
Posts: 7

Problem: Miniportal - wiki

I'm adding a mini port to my site and I've edited it all correctly, but when a user goes to view the forum.php(the forums) the sidebar stays on the side and doesn't go away.

Code:

http://wiki.punres.net/Miniportal

I want the sidebar strictly only on the index.php not throughout the forums, especially when one is viewing/posting topics.

Any suggestions at what i would edit? and how I would go about editing(my php knowledge is quite limited)

Thanks in advance.

Last edited by Kuro (2009-02-17 23:18:45)

Offline

 

#2 2009-04-19 19:48:13

Mark
Moderator
From: North West England
Registered: 2005-06-06
Posts: 1165

Re: Problem: Miniportal - wiki

You can do this by adding another .tpl file. The one that is mentioned on the miniportal tutorial, and main.tpl that you should already have.

Then, Inside header.php, find where the .tpl files are included, and add a line before main.tpl to see if the file is index.php, if it is, make it use new.tpl, otherwise it will go on and use main.tpl


Cant find something you want? try searching
Also try the wiki

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.