Page 1 of 1

Adding a table to template but only in forum home

Posted: Fri Aug 22, 2008 2:27 pm
by Grimmjow
Hi,

I'm modifying subsilver2 to add a shoutbox on the top of the forum list, and I'm adding the proper code to overall_header.html

The problem is that the shoutbox appears for every page the user navigates, private messages, profile, etc. I'd like to make it appear only when the forum home is loaded, maybe I should add a conditional comment

Code: Select all

<!-- IF ...
But I don't know where to look for a reference about those commands, could anyone help about it? Thanks

Re: Adding a table to template but only in forum home

Posted: Fri Aug 22, 2008 2:30 pm
by stevemaury
What file are you putting the code in? Should be index_body.html or maybe viewforum_body.html, depending on where you want it.

EDIT - I now have read your post three times and am still unclear. Do you want the shoutbox on the index page, the forum page or in a particular forum?

Re: Adding a table to template but only in forum home

Posted: Fri Aug 22, 2008 2:51 pm
by Grimmjow
Hi, sorry for me not being enough clear :(

Now that you made me re-read my post, maybe you gave me a clue for the answer.

I want the shout box only in the forum index... so maybe I have to edit index_body.html instead of overall_header.html as I did instead?

Thanks