Embedding board into the site navigation

I will no longer provide phpBB2 support due to phpBB2's EOL announcement. If you need help with phpBB2 you can try phpBB2 Refugees.
Locked
WK_tmp
Posts: 12
Joined: Fri Jan 19, 2007 2:50 am
Contact:

Embedding board into the site navigation

Post by WK_tmp » Wed Jan 31, 2007 5:55 am

Hi David,

Every page on my site has top and bottom html-sections with navigation links to the main site sections including phpBB forum.

On the contrary every page of phpBB forum (standart release) has only name of my site but does not refs to my homepage.

So it is good idea to add standart navigation panels of my site pages (top and bottom) to the phpBB templates.

Short study of the issue points me on the /template/subSilver/ folder with simple_header.tpl and simple_footer.tpl insertions. They are proceeded by /includes/page_header.php and page_tail.php code.

For example I plan following change of simple_footer.tpl

Code: Select all

/* FIND
</table>

/* ADD here html-code for my site bottom navigation panel

</body>
</html>
My question: Are these changes enough or changes are more wide?

Admin pages (with own header/footer) I exclude from the problem.

User avatar
DavidIQ
Site Admin
Posts: 581
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post by DavidIQ » Wed Jan 31, 2007 7:47 am

It's actually overall_header.tpl and overall_footer.tpl. The ones that have simple in their names are used for pop-up boxes I believe.

WK_tmp
Posts: 12
Joined: Fri Jan 19, 2007 2:50 am
Contact:

Post by WK_tmp » Wed Jan 31, 2007 9:47 am

DavidIQ wrote:It's actually overall_header.tpl and overall_footer.tpl.
I see relation to Admin activities in overall_footer.tpl

Code: Select all

<div align="center"><span class="copyright"><br />{ADMIN_LINK}<br />
and only being logged in as Admin I can see link to admin centre. So I decided that simple_footer.tpl is used for others :roll:

User avatar
DavidIQ
Site Admin
Posts: 581
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post by DavidIQ » Wed Jan 31, 2007 1:20 pm

That's just the link for the Admin Panel that shows up at the bottom of the forum pages.

WK_tmp
Posts: 12
Joined: Fri Jan 19, 2007 2:50 am
Contact:

Post by WK_tmp » Fri Feb 02, 2007 4:00 am

DavidIQ wrote:It's actually overall_header.tpl and overall_footer.tpl. The ones that have simple in their names are used for pop-up boxes I believe.
Yes. You were quite right. Thank you.

One detail.
overall_footer.tpl allowes use of html-comments within its body, e.g.
<!-- START my site bottom navigation block -->

But overall_header.tpl works incorrectly with foreign comments.
Output html-page is corrupted.

May be the word START/END within comment is keyword for any processing?

User avatar
DavidIQ
Site Admin
Posts: 581
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post by DavidIQ » Fri Feb 02, 2007 7:39 am

These lines are the ques for the php pages to generate or not generate. They're part of the actual page codes that are invoked when the pages are generated. There's a couple of things that overall_header.tpl has such as <!-- BEGIN switch_enable_pm_popup --> and <!-- BEGIN switch_user_logged_out -->. If you want to use such tags you would have to add code to page_header.php

Locked

Who is online

Users browsing this forum: No registered users and 1 guest