php forum help

They have: 3 posts

Joined: Jul 2006

Hello everybody

I'm rather new to website development but i know lots of HTML script and JavaScript

I have got the phpbb.com files for a forum but how can i intergrade it into my site?

They have: 33 posts

Joined: Aug 2005

script_master wrote: Hello everybody

I'm rather new to website development but i know lots of HTML script and JavaScript

I have got the phpbb.com files for a forum but how can i intergrade it into my site?

By integrate I am assuming you mean linking in and out from the rest of your site.

Linking in shouldn't be too difficult - wherever in your site you want to be able to jump to the phpBB forum, just do something along these lines:



Modify "phpBBforum/index.php" to point to the index.php file for phpBB, wherever you've placed it. And, of course, all this image, title and id stuff should be modified to suit your design.

Getting phpBB to link back to the rest of your site is a bit more problematic. The simplest method I know is to modify the overall_header.tpl template file, but you still have to do this for every template (skin) you make available to your users.

Look in the overall_header.tpl file for the table structure that defines its title banner and navigation bar. In the default template, subSilver, it is the last table structure in the file, and within that table you're looking for these lines:

{SITENAME}
{SITE_DESCRIPTION} 

and change them to:

{SITENAME}

{SITE_DESCRIPTION} 

This modification causes the SITENAME (the title of your phpBB forum) to become a link back to the other part of your site. I've highlighted where the forum title was changed into a return link. You can use the phpBB variable SITENAME as the visible text for the link if it suits your design, or put in text as you would any other link. Just remember it will change the title of your forum page.

Alternatively, if you follow further into this table structure (beyond the point with the class="mainmenu" you'll find the point where you can add your back-link in as a navigation menu item.

Hope that helps...

They have: 2 posts

Joined: Jul 2006

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.