Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 2
Goto page 1, 2  Next
 
Reply with quote Download Post 
Post Where To Change The Call To Overall_header.tpl 
 
I appreciate if anyone can suggest me if it i spossible

What if I make a copy of overall_header.tpl and call it with different names and call each one depending on which forum it is.

Where exactly I can change the call Lets say for example

I copied overall_header.tpl and create another tpl file with different name like music_header.tpl.

Where exactly I can put the if condition so that whenever user enters music forum he will see music_header.tpl instead of overall_header.tpl.


Any help in this regard is greatly appreciated.

Thanks
 



 
charadesSend private message  
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 
 
if for quick answer
I'm thinking that you have to leave original header only minimized [without logo ,change height to minimum]
and add new different pictures like header
 




____________
*VOLVO CLUB*
 
difusSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Where To Change The Call To Overall_header.tpl 
 
You have to edit the page_header.php

Code: [Download] [Hide]
  1.     $template->set_filenames(array('overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl')); 


You need to add a condition check there...

Or you can use the simple_header and add everything you need in the tpl... to do this add:
Code: [Download] [Hide]
  1. $gen_simple_header = true; 


In the page you are parsing... of course before the inclusion of page_header...
 




____________
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]
You have to edit the page_header.php

Code: [Download] [Hide]
  1.     $template->set_filenames(array('overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl')); 


You need to add a condition check there...

Or you can use the simple_header and add everything you need in the tpl... to do this add:
Code: [Download] [Hide]
  1. $gen_simple_header = true; 


In the page you are parsing... of course before the inclusion of page_header...


Wow How did I missed this post...

I failed to understand and I sincerely request you to be please explain me.

I feel stupid but I don't want to change something with half knowledge.

Please Mighty ...
 



 
charadesSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Where To Change The Call To Overall_header.tpl 
 
It means that you have at least 2 ways to apply what you want to apply...

If you want to use the first one you should use a condition check before that assignment.

Something like this:
Code: [Download] [Hide] [Select]
if ( isset($_GET[POST_FORUM_URL]) )
{
    $tmp_forum_id = intval($_GET[POST_FORUM_URL]);
}
if ($tmp_forum_id == 1)
{
...
}

Add your code instead of the dots.

Let me know it this is just fine for you.
 




____________
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]
It means that you have at least 2 ways to apply what you want to apply...

If you want to use the first one you should use a condition check before that assignment.

Something like this:
Code: [Download] [Hide] [Select]
if ( isset($_GET[POST_FORUM_URL]) )
{
    $tmp_forum_id = intval($_GET[POST_FORUM_URL]);
}
if ($tmp_forum_id == 1)
{
...
}

Add your code instead of the dots.

Let me know it this is just fine for you.


I really did suck MG in making this change.      

I sincerely request you to please let me know what's wrong in this coding....and please keep in mind I don't have any knowledge of PHP whatsoever.


// Parse and show the overall header.
include($phpbb_root_path . 'includes/functions_rate.'.$phpEx);
if ( isset($_GET[POST_FORUM_URL]) )
{
 $tmp_forum_id = intval($_GET[POST_FORUM_URL]);

    if ($tmp_forum_id == 1)
    {
    $template->set_filenames(array(
        'overall_header' => ( empty($gen_simple_header) ) ? 'instrumental_header.tpl' : 'simple_header.tpl')
    );
    }
    else if ($tmp_forum_id == 2)
    {
    $template->set_filenames(array(
        'overall_header' => ( empty($gen_simple_header) ) ? 'vocal_header.tpl' : 'simple_header.tpl')
    );
    }
                else
    {
        $template->set_filenames(array(
        'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl')
    );
    }
}
//
// Generate logged in/logged out status
//

 



 
charadesSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Where To Change The Call To Overall_header.tpl 
 
The code you posted should work... isn't it?
 




____________
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 code you posted should work... isn't it?


No mighty it is not working. These are the situation's after I modified the code.
  • First situation is overall forum.

    It is appearing without any borders and totally white back ground similar to Lo-Fi Version instead of Full version


  • For those forums for which there is no special overall header

    Everything is fine


  • .And For those forums which are in the IF condition where I wanted to see the new header files this is what I get.

    Template->loadfile(): No files found for handle instrumental_header  

    or

    Template->loadfile(): No files found for handle vocal_header  


I am sure these is something else which I need to do along with the code which I modified above but unable to find out what and where exactly I need to change
 



 
charadesSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Where To Change The Call To Overall_header.tpl 
 
Are you sure to have used this code and the files are present in the template folders?

Code: [Download] [Hide]
  1. // Parse and show the overall header.  
  2. include($phpbb_root_path . 'includes/functions_rate.'.$phpEx);  
  3. if ( isset($_GET[POST_FORUM_URL]) )  
  4. {  
  5.     $tmp_forum_id = intval($_GET[POST_FORUM_URL]);  
  6.  
  7.     if ($tmp_forum_id == 1)  
  8.     {  
  9.         $template->set_filenames(array('overall_header' => ( empty($gen_simple_header) ) ? 'instrumental_header.tpl' : 'simple_header.tpl'));  
  10.     }  
  11.     elseif ($tmp_forum_id == 2)  
  12.     {  
  13.         $template->set_filenames(array('overall_header' => ( empty($gen_simple_header) ) ? 'vocal_header.tpl' : 'simple_header.tpl'));  
  14.     }  
  15.     else  
  16.     {  
  17.         $template->set_filenames(array('overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl'));  
  18.     }  
  19. }  
  20. //  
  21. // Generate logged in/logged out status  
  22. // 

 




____________
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]
Are you sure to have used this code and the files are present in the template folders?

Code: [Download] [Hide]
  1. // Parse and show the overall header.  
  2. include($phpbb_root_path . 'includes/functions_rate.'.$phpEx);  
  3. if ( isset($_GET[POST_FORUM_URL]) )  
  4. {  
  5.     $tmp_forum_id = intval($_GET[POST_FORUM_URL]);  
  6.  
  7.     if ($tmp_forum_id == 1)  
  8.     {  
  9.         $template->set_filenames(array('overall_header' => ( empty($gen_simple_header) ) ? 'instrumental_header.tpl' : 'simple_header.tpl'));  
  10.     }  
  11.     elseif ($tmp_forum_id == 2)  
  12.     {  
  13.         $template->set_filenames(array('overall_header' => ( empty($gen_simple_header) ) ? 'vocal_header.tpl' : 'simple_header.tpl'));  
  14.     }  
  15.     else  
  16.     {  
  17.         $template->set_filenames(array('overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl'));  
  18.     }  
  19. }  
  20. //  
  21. // Generate logged in/logged out status  
  22. // 


Yes Mighty I made sure all the files are present and I have coded exactly what you have in your post.
 



 
charadesSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Where To Change The Call To Overall_header.tpl 
 
It is strange, because the header is parsed correctly, while the error shows that you don't have those files...

Can you attach here in a zip file what you did? I need the page_header and the files you are going to include with the full path.

Thanks.
 




____________
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]
It is strange, because the header is parsed correctly, while the error shows that you don't have those files...

Can you attach here in a zip file what you did? I need the page_header and the files you are going to include with the full path.

Thanks.


I Sent you in the PM MG.

I sincerely appreciate your help in this regard.

God Bless you along with me
 



 
charadesSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Where To Change The Call To Overall_header.tpl 
 
I've checked your files and they are modified in the right way.

Are you sure to uploading the tpl files in the right folder?

I can't see no reason for this code not working correctly.
 




____________
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]
I've checked your files and they are modified in the right way.

Are you sure to uploading the tpl files in the right folder?

I can't see no reason for this code not working correctly.


Up on further research this is what I found which might give you an idea on why it is happenning.

http://www.phpbbstyles.com/viewtopic.php?p=86224

I will also work on this in Trial and Error method for a while until I hear from you.

This would be gret help if somehow i can get this thing working in my board.

and last but not least is WYSIWYG.  

But I sincerely request to find a solution for this and let me know while
I also do some tweaking to the code.

I wish I learnt PHP but neverthless will give it a shot.
 



 
charadesSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Where To Change The Call To Overall_header.tpl 
 
charades wrote: [View Post]
Mighty Gorgon wrote: [View Post]
I've checked your files and they are modified in the right way.

Are you sure to uploading the tpl files in the right folder?

I can't see no reason for this code not working correctly.


Up on further research this is what I found which might give you an idea on why it is happenning.

http://www.phpbbstyles.com/viewtopic.php?p=86224

I will also work on this in Trial and Error method for a while until I hear from you.

This would be gret help if somehow i can get this thing working in my board.

and last but not least is WYSIWYG.  

But I sincerely request to find a solution for this and let me know while
I also do some tweaking to the code.

I wish I learnt PHP but neverthless will give it a shot.


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.
 



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


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


  

 

  cron