How Can I Make The Location Header Wider? »  Show posts from    to     

Icy Phoenix


Old Support Topics - How Can I Make The Location Header Wider?



jz [ Sun 10 Jun, 2007 02:53 ]
Post subject: How Can I Make The Location Header Wider?
Hi there,

I wanted to make the header/table where these links appear: Home » Forum » Icy Phoenix Support » General Support

I had a look at index_body.tpl but cannot figure out how?

Any ideas?


Zuker [ Sun 10 Jun, 2007 04:14 ]
Post subject: Re: How Can I Make The Location Header Wider?
That it's inside every section template i think


jz [ Sun 10 Jun, 2007 16:27 ]
Post subject: Re: How Can I Make The Location Header Wider?
I only use aphrodite, but not sure where that bit of code is...


Zuker [ Sun 10 Jun, 2007 16:47 ]
Post subject: Re: How Can I Make The Location Header Wider?
For ex. For changing

Home » Forum » Icy Phoenix Support » General Support » How Can I Make The Location Header Wider?

you have to edit viewtopic_body.tpl for example

Post a screenshot of what u want to change and 'll told u where it's in the template ;)


Artie [ Sun 10 Jun, 2007 23:17 ]
Post subject: Re: How Can I Make The Location Header Wider?
Zuker wrote: [View Post]

you have to edit viewtopic_body.tpl for example


It is also in viewforum_body.tpl


Zuker [ Mon 11 Jun, 2007 00:00 ]
Post subject: Re: How Can I Make The Location Header Wider?
Artie wrote: [View Post]
Zuker wrote: [View Post]

you have to edit viewtopic_body.tpl for example


It is also in viewforum_body.tpl


What i sayd it's in viewtopic.

The rest (Home » Forum » Icy Phoenix Support » General Support) it's where u sayd


Aexo [ Mon 11 Jun, 2007 11:51 ]
Post subject: Re: How Can I Make The Location Header Wider?
It is in overall_header.tpl. Isn't it?


jz [ Mon 11 Jun, 2007 12:08 ]
Post subject: Re: How Can I Make The Location Header Wider?
That's where I thought it was, I might be blind...

basicly I wanted to change it the way it was in XS,,, with the nav_quick_links box shwing under the Home » Forum » Icy Phoenix Support table.

I see in MG themes is still like that.. :?


Zuker [ Mon 11 Jun, 2007 13:10 ]
Post subject: Re: How Can I Make The Location Header Wider?
I still do not understand what u whant to change :?


jz [ Thu 14 Jun, 2007 17:06 ]
Post subject: Re: How Can I Make The Location Header Wider?
See the pick,

I want to make the Quick Nav table to appear below the table see pick2.
snap1_1181833554_613876
snap2


moreteavicar [ Thu 14 Jun, 2007 19:58 ]
Post subject: Re: How Can I Make The Location Header Wider?
You have to edit each body template file for that... but if you have site-wide left menu activated, then it can't be done.

The reason is the integration of forum/global headers (menus), which will interfere with that, due to the nature of how the system works.
The "sidebar" is a consequence of an addition in overall_header.tpl which adds the side bar and optional center blocks via {PORTAL_HEADERLEFT} and {PORTAL_HEADERCENTER}. These are initial columns that get parsed before the nav_links table, so will always occupy that space to the left. The main body template file gets parsed after overall_header.tpl, where the horizontal navlinks is contained, and thus will appear to the right of the site-wide sidebar on the left ("headerleft").

On the otherhand, if you don't want to have a site-wide left sidebar, and wanted to change the nav links layout on the forum page, then you simply need to disable site-wide header block (navlinks) in CMS (confusion can arise here because in phpBBXS navlinks used to be called navquicklinks, and in fact the template file is still called that, whereas the horizontal block used to be called navlinks, and is still specified as that in the <div> tags). If you still want to see the nav_quick_links menu on the left, but below the horizontal links bar, (as on index.php page) then you need to edit index_body.tpl after the nav links section (after </div> ), and just above:
Code: [Hide]
  1. <!-- BEGIN switch_show_news -->  
  2. <div align="center">{XS_NEWS}</div>  
  3. <!-- END switch_show_news -->  
  4. {BOARD_INDEX} 


You need to add something like <!-- INCLUDE nav_quick_links.tpl -->
However, it won't be as straight forward as in phpBBXS because of missing table and td tags. You'll need to experiment in that file until the layout looks right. To get an idea, I suggest you look at the phpBBXS templates, in particular nav_box.tpl, which has a line to include nav_quick_links.tpl (and index_body.tpl a line to include nav_box.tpl) to reverse the changes MG made for icyphoenix. You'll notice nav_box starts off with <table><tr><td>, but doesn't close the opening ones in that file. Instead, those tags are closed a the bottom of index_body.tpl. These tags are important to help control the positioning of the nav box and the forum.


jz [ Fri 15 Jun, 2007 02:07 ]
Post subject: Re: How Can I Make The Location Header Wider?
moreteavicar,

thank you for the clear explanation...
I still want the quick links menu to show, but wanted to have it like XS. I tried correcting the code but I'm no coder so will leave it.


moreteavicar [ Fri 15 Jun, 2007 15:20 ]
Post subject: Re: How Can I Make The Location Header Wider?
Probably a wise choice, on the basis of amount of effort for not much visual change! I forgot to explain the reason that the horizontal navlinks is coded in each body template file, rather than one simple file like for nav_quick_links.tpl, and that is because it is page sensitive - for example you'll notice it provides options for viewing posts in the forum, and for viewing slideshows in the album.

A while back I had been working on creating a single file equivalent, which determined what page was being viewed and created the navigation options accordingly - basically lumping all the nav links sections from all body files into a single file, with a case selection process. It'd be a while before I go back to toying with that, but the main motivation for that was to make it easier for creating new templates (I wanted mouse hover effects for nav links in my theme, which meant editing too many files). And now, this thread suggests another use for a single file nav_links, i.e. you could put it wherever you wanted, and hence a better CMS!


Mighty Gorgon [ Wed 20 Jun, 2007 01:50 ]
Post subject: Re: How Can I Make The Location Header Wider?
moreteavicar wrote: [View Post]
Probably a wise choice, on the basis of amount of effort for not much visual change! I forgot to explain the reason that the horizontal navlinks is coded in each body template file, rather than one simple file like for nav_quick_links.tpl, and that is because it is page sensitive - for example you'll notice it provides options for viewing posts in the forum, and for viewing slideshows in the album.

A while back I had been working on creating a single file equivalent, which determined what page was being viewed and created the navigation options accordingly - basically lumping all the nav links sections from all body files into a single file, with a case selection process. It'd be a while before I go back to toying with that, but the main motivation for that was to make it easier for creating new templates (I wanted mouse hover effects for nav links in my theme, which meant editing too many files). And now, this thread suggests another use for a single file nav_links, i.e. you could put it wherever you wanted, and hence a better CMS!

I raised this may months ago in hidden section...

It's not difficult to create a common header in the overall_header, but it requires time and extra coding in PHP to enable/disable switches.

I'll do it sooner or later because I would like to change this as well.




Powered by Icy Phoenix