Page 1 of 1

Embedding board into the site navigation

Posted: Wed Jan 31, 2007 5:55 am
by WK_tmp
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.

Posted: Wed Jan 31, 2007 7:47 am
by DavidIQ
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.

Posted: Wed Jan 31, 2007 9:47 am
by WK_tmp
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:

Posted: Wed Jan 31, 2007 1:20 pm
by DavidIQ
That's just the link for the Admin Panel that shows up at the bottom of the forum pages.

Posted: Fri Feb 02, 2007 4:00 am
by WK_tmp
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?

Posted: Fri Feb 02, 2007 7:39 am
by DavidIQ
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