Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 2 of 2
Goto page Previous  1, 2
 
Reply with quote Download Post 
Post 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.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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.
 



 
charadesSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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...
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
charadesSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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 .
 



 
charadesSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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';

 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
charadesSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.

     
 



 
charadesSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 2 of 2
Goto page Previous  1, 2


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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