phpbb3.3.5 and TNG

For support and discussion related to templates and themes in phpBB 3.3.
Post Reply
User avatar
joneshy1
Registered User
Posts: 38
Joined: Wed Jan 05, 2022 10:57 pm
Location: Goose Creek, SC USA
Name: John Jones
Contact:

phpbb3.3.5 and TNG

Post by joneshy1 »

Good morning all. I use TNG as my main site and have added phpbb3.3.5 as my forum. I have in TNG 'extrapages' that aleady have my header and footer coded. All I need to add is the page(s) or app that I want to 'integrate' into my TNG site. I'll upload an example.

I've tried all the methods of 'integrating' phpbb into a website, but none of them worked for me. So after looking at the example.php file and looking at the screenshot of what its doing, I think I need to add some sort of include or call on another link. This is all on my local server and NOT on the live site yet. Any thoughts or ides will be greatly appreciated,

Scrrenshot:
phpbb in tng.jpg
my ourphpbb3.php:

Code: Select all

<?php
include( "./tng_begin.php"); // at the beginning only one point if TNG is on the same level as this file
if( !$cms['support'] )
	$cms['tngpath'] = "./"; // same as above. Otherwise two points if this file is in a subfolder to the main directory

$yourtitle = "myphpbb3"; // or something else

$yourlink = "/ourphpbb3.php"; // do not forget the subfolder if this file is not in the main directory! (/subfolder/ourguestbook.php)

$logstring = "<a href=\"$yourlink\">$yourtitle</a>";
writelog($logstring);
preparebookmark($logstring);

tng_header( $yourtitle, $flags ); 
?>
<h1 class="header"><img src="img/tng_hist.gif" class="headericon"/>&nbsp;<?php echo $text['myphpbb3']; ?></h1><br clear="left"/>
<?php include('../phpBB3/styles/prosilver/template/index.html'); // one point as above. If using Lazarus Guestbook, Do not forget the folder name where the file gbinclude.php is located!
tng_footer( "" );
?>
I think thats it. if you need more info, just let me know. Thanks in advance. and oh, phpbb3 should be showing uo in the white space where it reads PHPBB2 Forum.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: phpbb3.3.5 and TNG

Post by Lumpy Burgertushie »

usually the best way to do this is to find a phpBB style that looks similar to your style/them for your main site.
then you can edit the html/css files of the overall_header.html and overall_footer.html ( if required ) files of that
phpBB style to include the html/css of your main site.
it can be difficult to do it using php includes so I have found it easier to just use the actual html/css of your main site
instead of trying to include php files etc.

robert
although tng does stand for the next generation, it is not the same next generation that I and probably most people,
assume. it was confusing until I visited your site and looked at the footer.
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
joneshy1
Registered User
Posts: 38
Joined: Wed Jan 05, 2022 10:57 pm
Location: Goose Creek, SC USA
Name: John Jones
Contact:

Re: phpbb3.3.5 and TNG

Post by joneshy1 »

Lumpy, I've tried every way i found in this forum about modding the overall files and never could get anything to work. The prosilver theme and my tng theme match pretty good.

Now All the overall files methods I've tried and didn't work, maybe i wasn't doing something right, but all the instructions were vague to me so i may have been putting this code in the wrong place and that code somewhere else. I wish there was a detailed tutorial type instruction on how to do the overall method and I'll try it again....I just need to know what goes where in those 2 overall files. i think I have all the other files needed still on the site somewhere. (my localhost site). thanks man.

EDIT: And where do i put the files from tng? in the folder where the overall files are? i mean what would be easier instead of calling files from 3 different locations?
User avatar
joneshy1
Registered User
Posts: 38
Joined: Wed Jan 05, 2022 10:57 pm
Location: Goose Creek, SC USA
Name: John Jones
Contact:

Re: phpbb3.3.5 and TNG

Post by joneshy1 »

I have another question or 2 but we can close this thread. i'll start a new one. thanks
User avatar
joneshy1
Registered User
Posts: 38
Joined: Wed Jan 05, 2022 10:57 pm
Location: Goose Creek, SC USA
Name: John Jones
Contact:

Re: phpbb3.3.5 and TNG

Post by joneshy1 »

this isn't closed yet.

I'm trying to use the overall_header and footer methods described by several people who supposedly knew how to integrate phpbb with TNG Genealogy. These members' last activity on the board here was in 2008. I think I've created the right files for including, but they either have to be wrong or in the wrong part(s) of the overall_ files. The only thing I got showing in my browser is the very footer of the main phpbb3 screen (and it's not formatted properly...). Another thing with that is you can click on a few links and the phpbb files think they're in the main tng folder instead of the main phpbb3 folder.

I hope you can understand what I'm talking about....any ideas or suggestions will be appreciated. Thanks

EDIT: here's a link of what Ive been trying to explain:viewtopic.php?t=1104925
EDIT: Should I reinstall phpbb and put it under the tng folder? Right now it's www/phpbb3 and www/tng. how about www/tng/phpbb3?
User avatar
halil16
Registered User
Posts: 1262
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil
Contact:

Re: phpbb3.3.5 and TNG

Post by halil16 »

I recommend you use the style I use. The author is no longer active. But the styles work and are easy to modify.

https://www.phpbb.com/customise/db/styl ... elegance2/
or
https://www.phpbb.com/customise/db/style/basic/

Note: This analogy took a lot of time for me. But it feels good to be able to.
* Hire me at fiverr for your phpBB board.
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
I'm learning English...
Contributions: #Hashtag, Elegance, Latte
User avatar
joneshy1
Registered User
Posts: 38
Joined: Wed Jan 05, 2022 10:57 pm
Location: Goose Creek, SC USA
Name: John Jones
Contact:

Re: phpbb3.3.5 and TNG

Post by joneshy1 »

Thank for the input. Right now, if you look at my site and the forum, you'll see I tried matching up some colors to somewhat look like the rest of the site. by no means integrated but hey.......

I still would like to try the integration again, but that's kind of been put on the back burner for now. Thanks again joker.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 5850
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: phpbb3.3.5 and TNG

Post by thecoalman »

joneshy1 wrote: Sun Jan 09, 2022 11:19 pm EDIT: Should I reinstall phpbb and put it under the tng folder? Right now it's www/phpbb3 and www/tng. how about www/tng/phpbb3?
I'm unfamiliar with TNG but generally speaking with most content management systems most people put them in the root of the domain www.example.com/cms_pages and then the forum as subfolder www.example.com/forum/

A CMS typically tries to handle every request so a request for www.example.com/forum/ may be processed by the CMS first. If you add the forum as subfolder to the CMS directory you may need to be edit the .htaccess file for the CMS so it ignores requests for www.example.com/forum/. The other thing is don't create any pages with CMS using /forum or /forum/.

As far as the edits to template files make sure you are purging phpBB's cache from the ACP after editing them, also you will need to clear the browsers cache for .css edits. A refresh usually works or you can try holding ctrl and hit F5 which should clear everything.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
User avatar
joneshy1
Registered User
Posts: 38
Joined: Wed Jan 05, 2022 10:57 pm
Location: Goose Creek, SC USA
Name: John Jones
Contact:

Re: phpbb3.3.5 and TNG

Post by joneshy1 »

OK, thanks for the info coalman. definitely put this in the notes too.
Post Reply

Return to “[3.3.x] Styles Support & Discussion”