Where To Change The Call To Overall_header.tpl


Goto page Previous  1, 2

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.

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.

Profile PM  
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... :roll:

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... :roll:


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 :)

Profile PM  
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... :roll:


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 .

Profile PM  
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: [Download] [Hide] [Select]
$sql = 'SELECT p.forum_id FROM ' . POSTS_TABLE . ' AS p WHERE p.post_id = ' . $post_id . ' LIMIT 1';

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: [Download] [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 :(

Profile PM  
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.

:cry: :cry: :cry:

Profile PM  
Goto page Previous  1, 2

Page 2 of 2


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.171s (PHP: 11% SQL: 89%)
SQL queries: 10 - Debug Off - GZIP Enabled