Using index_body.tpl's variables in overall_header.tpl

This forum is now closed. Please ask all styles-related questions in the phpBB 3.0 Styles Support & Discussion Forum.
Locked
Jeffro_DLP
Registered User
Posts: 9
Joined: Sun Sep 19, 2004 3:08 pm

Using index_body.tpl's variables in overall_header.tpl

Post by Jeffro_DLP » Sun Sep 19, 2004 3:12 pm

I am trying to use the variables in index_body.tpl in overall_header.tpl.

Example:

Code: Select all

<a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a>
I would like to use the above code inside overall_header.tpl. When I try the values are empty.

Any help will be appreciated.

Jeffro_DLP
Registered User
Posts: 9
Joined: Sun Sep 19, 2004 3:08 pm

Post by Jeffro_DLP » Mon Sep 20, 2004 3:45 pm

Anyone? Basically I want to be able to list the categories and forums on the left menu of the left side of the page here:

http://www.dirtbikeforums.com/community/index.php

These variables used do not get parsed on overall_header.tpl like they are in index_body.tpl.

Jeffro_DLP
Registered User
Posts: 9
Joined: Sun Sep 19, 2004 3:08 pm

Post by Jeffro_DLP » Mon Sep 20, 2004 10:56 pm

Admins? Can you help me out here? Am I not making sense? I would like to have the forums listed in overall_header.tpl in addition to index_body.tpl.

Thanks.

User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Post by Arty » Tue Sep 21, 2004 9:07 am

You can't use it in overall_header.tpl.

1. Those are loop variables. You should start loop before using it
2. Those variables are set after overall_header.tpl is shown, so you can use it only in index_body.tpl and overall_footer.tpl
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework

Locked

Return to “[2.0.x] Styles Development & Discussion”