PDA

View Full Version : Navigation of subforum to follow forum template look


globalstrata
05-31-2004, 12:59 PM
I would like to make sure that when I click on any of the navigation menus such as faqs, member list, calendar, search, from my subforum pages, for them to show my subforum headers and footers instead of my main Forum header and footer. In other words, for the navigation pages look to adapt depending on the forum that I am at. So if I am in the main forum (http://www.hamptonroadstech.com), when I click on any of the menus, they should show with my main forum header and footer. However, if I am in one of the sub-forum (http://www.hamptonroadstech.com/forumdisplay.php?f=47) with diferent look, then when I click on any of the menus, the template should follow the sub-forum format where the click was made from.

Does any one has any idea how to do this? :ermm:

Gladys

dstruct2k
05-31-2004, 03:08 PM
Edit global.php to pick up what style was in use on the last page viewed, and apply that style to the current page. :)

You probably would also have to add a line of code that adds a cookie saying what style was on the last page viewed. Add a line of code like this:$styleid = $laststyle; You would have to run this code at the end of every page though: $laststyle = whatever would get the current styleid from whatever source avaliable;
---line of code to write $laststyle to the vb cookie---


Might want someone that knows more about cookies to do this. :)