Where To Change The Call To Overall_header.tpl »  Show posts from    to     

Icy Phoenix


Old Support Topics - Where To Change The Call To Overall_header.tpl



Mighty Gorgon [ Fri 23 Mar, 2007 23:47 ]
Post subject: Re: Where To Change The Call To Overall_header.tpl
charades wrote: [View Post]
If I open ths specific sub forum in the sense the one's which has
forum_id 10 or 20 then I can see my new banner.

When I open any other forum or any other page I see the

Template Load file error message.

Any help is greatly appreciated.

I've tested your code and it was working for me.

I think you have some other error somewhere... but at the moment I have no time to try to investigate further.

If you just want a different banner for each forum I think you can use the forum rules feature and include there the code you wish... If I remember well, it supports HTML.


charades [ Sun 06 May, 2007 04:57 ]
Post subject: Re: Where To Change The Call To Overall_header.tpl
Mighty Gorgon wrote: [View Post]
charades wrote: [View Post]
If I open ths specific sub forum in the sense the one's which has
forum_id 10 or 20 then I can see my new banner.

When I open any other forum or any other page I see the

Template Load file error message.

Any help is greatly appreciated.

I've tested your code and it was working for me.

I think you have some other error somewhere... but at the moment I have no time to try to investigate further.

If you just want a different banner for each forum I think you can use the forum rules feature and include there the code you wish... If I remember well, it supports HTML.


Thanks Mighty. I have found the issue with my code and fixed it.

However this banner is only visible as long as user doesn't click any topic and stays on the main forum page.

In other words if user comes to General Support forum user sees the banner that I want but once user clicks any topic in General support, main banner shows up but not the one which is for the General support Forum.

I appreciate any help regarding this.


Mighty Gorgon [ Mon 07 May, 2007 01:11 ]
Post subject: Re: Where To Change The Call To Overall_header.tpl
That's because the forum id isn't in the url anymore... you need to add an extra SQL for this...


charades [ Mon 07 May, 2007 15:43 ]
Post subject: Re: Where To Change The Call To Overall_header.tpl
Mighty Gorgon wrote: [View Post]
That's because the forum id isn't in the url anymore... you need to add an extra SQL for this...


Should it be added in page_header.php or viewtopic.php?

I also appreciate if you can help me out in writing the SQL.

Hope I am not asking too much...

Thanks in Advance Mighty


charades [ Sun 13 May, 2007 01:13 ]
Post subject: Re: Where To Change The Call To Overall_header.tpl
Mighty Gorgon wrote: [View Post]
That's because the forum id isn't in the url anymore... you need to add an extra SQL for this...


Can anyone please help me in figuring out how to do this.

I somehow need to capture the forum url when opening a topic of that forum.

I have made my changes to page_header.php so as to show different banner for different forum.

However when any topic in the forum is being clicked main banner is appearing instead of the banner I wanted.

Many thanks in advance .


Mighty Gorgon [ Sun 20 May, 2007 13:37 ]
Post subject: Re: Where To Change The Call To Overall_header.tpl
The SQL may be something like this, but you have to adjust it.

Code: [Hide] [Select]
$sql = 'SELECT p.forum_id FROM ' . POSTS_TABLE . ' AS p WHERE p.post_id = ' . $post_id . ' LIMIT 1';


charades [ Thu 31 May, 2007 00:21 ]
Post subject: Re: Where To Change The Call To Overall_header.tpl
Mighty Gorgon wrote: [View Post]
The SQL may be something like this, but you have to adjust it.

Code: [Hide] [Select]
$sql = 'SELECT p.forum_id FROM ' . POSTS_TABLE . ' AS p WHERE p.post_id = ' . $post_id . ' LIMIT 1';


I know I am bugging alot . But I appreciate if you can let me know to which file I should write or tweak this SQL


charades [ Wed 06 Jun, 2007 14:35 ]
Post subject: Re: Where To Change The Call To Overall_header.tpl
Please Please Please help me in figuring this stuff out.

I am unable to understand. You can call me a bummer but I sincerely appreciate if anyone can help me in this.

I want different headers for different forums.

I was able to go half way through meaning I can see the header I wanted to for a specific forum.

But once I open any topic in that forum I see my original header and not the one which is specific to that forum.

Reason is forum_id is not part of the url anymore.

I have tried n number of ways but may be I am unable to understand some things properly.

I beg you guys to please help me in figuring this thing out.





Powered by Icy Phoenix