phpbb embedded on wordpress tempate install questions

johncummings
User w
User w
Posts: 19
Joined: Tue Mar 15, 2022 10:38 am

phpbb embedded on wordpress tempate install questions

Post by johncummings »

Hi,

I want to make sure I have the instructions correct. My first attemped failed, but I think that was because of my error.

1) What exactly does this do? Does this make my forum look like it is part of my website with the same menu? I think it does, but want to make sure.

2) Do I need to re-install or refresh this everytime I modifiy my website? For example, if I add some new pages and navigation menus what needs to be done.

3) Does installing this have any dependencies? Does it require the (awesome) iframe template integration?

4) install steps - do I have this correct?

. Set the WP forum template page and create a blank page in WP. my forum is installed in the root directory, so I will chose a name other than forum
. create and rebuild WP_w3all_phpBB page template

. I am going to use the default page gap and fancy URL

. Update the overall header with your code

. copy the iframeResizer modules into phpbb root folder.

. Recompile the phpbb template from phpbb acb

. update overall header

Does this sound right?

Thanks
JOhn Cummings

.

johncummings
User w
User w
Posts: 19
Joined: Tue Mar 15, 2022 10:38 am

Re: phpbb embedded on wordpress tempate install questions

Post by johncummings »

I'm confused about the rebuild "page-forum.php" instructions.

Do I simply copy the file from the w3all-phpbb-integration/addons folder to my active template folder? The new page I created is "board", not forum since my/forum directory is in the root directory. Does this file need to be renamed to page-board.php?

Thanks

User avatar
axew3
w3all User
w3all User
Posts: 2497
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: phpbb embedded on wordpress tempate install questions

Post by axew3 »

1) Yes, as you can see here, phpBB display into an iframe, inside a page in WP.
As you see here at axew3.com example
wordpress is installed into folder /w3
the phpBB is installed on
/w3/forums
on same wp folder,
so i created forum, that into active template folder so will be created as
page-forum.php
(because if the phpBB folder is on same folder of wp (so where wp-includes or wp-content folders exists), the page-forum need to be named into something else)
You need to create it via plugin admin, where related page-forum option
WP_w3all phpBB embedded on WordPress Template
and even if you go to create it manually coping the related file into addons plugin folder and pasting it into active template folder, the setting of the page-forum name you choose, need to be set into this option, it is required.

No, both have no dependencies, because both require the same overall_footer.html and overall_header.html js code added into phpBB template files, and as explained into iframe help procedure.
Then it is required also to have a WP blank page named with same name of the created page (so forum in this case example)

Please take care to not set ACP recompile setting as NO until you are not sure all is as you need, because once you set it as no and the overall_header code has been applied, any direct url will be redirected to the wp forum page (or whatever you called it). Read all hints that will save you from common mistakes. Just post if any trouble or doubt!
I am sure there are many points you still have not clear.
But will be easy to fix all and have an awesome template integration, let know

[EDITED]

johncummings
User w
User w
Posts: 19
Joined: Tue Mar 15, 2022 10:38 am

Re: phpbb embedded on wordpress tempate install questions

Post by johncummings »

Thanks,

I almost have it working. I think I have an issue with the "resizer" code. I thought it wasn't working, then I minimized my window and the forum showed up. When I maximized the window the forum goes away or has changed in some manner that I can not see it.

ANy clue? I will keep trying a few things .

Thanks
John

User avatar
axew3
w3all User
w3all User
Posts: 2497
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: phpbb embedded on wordpress tempate install questions

Post by axew3 »

mhhh should be
may, into page-forum (or whatever named) OR into file /wp-content/plugins/wp-w3all-phpbb-integration/views/wp_w3all_phpbb_iframe_short.php

there is this line:

Code: Select all

    // heightCalculationMethod: 'documentElementOffset', // If iframe not resize correctly, un-comment (or change with one of others available resize methods)
here the solution that i'll go to link into iframe help install (why i did not do it before?)
viewtopic.php?f=13&t=1511

johncummings
User w
User w
Posts: 19
Joined: Tue Mar 15, 2022 10:38 am

Re: phpbb embedded on wordpress tempate install questions

Post by johncummings »

Thanks,

I will try those suggestions.

Having a new issue. When I receate my page-forum.php file it is empty - zero bytes. Any idea what could cause that?

Thanks
John

User avatar
axew3
w3all User
w3all User
Posts: 2497
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: phpbb embedded on wordpress tempate install questions

Post by axew3 »

The fact that php is not allowed (someway into your configuration, but it is strange) to read the default /wp-w3all-phpbb-integration/addons/page-forum.php file? Did you removed this file into addons/ folder? If yes just re-download it if you want and put it into addons folder:
https://plugins.trac.wordpress.org/expo ... -forum.php

But this is not a problem. whatever you choose to do

the important is, that you setup the page name/slug (so forum or board or whatever)

into related admin plugin option
THEN, after it, if the file result not created or as you report it is an empty file
JUST
copy the default file /wp-w3all-phpbb-integration/addons/page-forum.php
and manually paste into your active template folder, renaming it as needed, so
page-board.php if board is the actual setting on related option, or leave as page-forum.php, if forum is your setting.
This is it

johncummings
User w
User w
Posts: 19
Joined: Tue Mar 15, 2022 10:38 am

Re: phpbb embedded on wordpress tempate install questions

Post by johncummings »

Thanks,

I shot myself in the foot. I had renamed page-forum.php while testing and never named it back. I am now able to create my page-xxxxx.php.

Back to working on the resizing issue. Everything works fine when screen is reduced, but forum isn't displaying when I'm in full screen. I will be trying your suggestions on this issue today.

Thanks again
John

johncummings
User w
User w
Posts: 19
Joined: Tue Mar 15, 2022 10:38 am

Re: phpbb embedded on wordpress tempate install questions

Post by johncummings »

I see the cause of my forum not being displayed at widths larger than 921px. Well, not sure if this statement is my issue, but my forum displays at 921px or less, but doesn't display at 922 or greater.

@media (max-width: 921px)

User avatar
axew3
w3all User
w3all User
Posts: 2497
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: phpbb embedded on wordpress tempate install questions

Post by axew3 »

yes, if another element that wrap the div that wrap the iframe apply css rules causing this, you have to adapt the css to be different in the case of the page where it display.
So you could apply these edits into page-forum(orWhatEverNamed).php of your active template folder (or related awesome iframe shortcode file /wp-content/plugins/wp-w3all-phpbb-integration/common/wp_phpbb_iframe_shortcode.php ):

where there is this line

Code: Select all

<style type=\"text/css\" media=\"screen\">
add just after, so inside this css declaration that will be loaded when page will load, may adding !important to declarations, so that any other css that affect will be overwritten

johncummings
User w
User w
Posts: 19
Joined: Tue Mar 15, 2022 10:38 am

Re: phpbb embedded on wordpress tempate install questions

Post by johncummings »

Thanks,

I'm not an expert at CSS coding.

I see the statement in page-forum.php that seems to affect my issue. the width is being set to 1px (width:1px). This setting seems to take when I am in full screen mode. If i change that to 1000px the forum shows up in full screen mode

<div id="" class="">
<iframe id="w3all_phpbb_iframe" style="width:1px;min-width:100%;*width:100%;border:0;" scrolling="no" src="<?php echo $w3all_url_to_cms; ?>"></iframe>

User avatar
axew3
w3all User
w3all User
Posts: 2497
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: phpbb embedded on wordpress tempate install questions

Post by axew3 »

Yes, may this will work better in any case, removing it?

Code: Select all

<iframe id="w3all_phpbb_iframe" style="width:100%;min-width:100%;border:0;" scrolling="no" src="<?php echo $w3all_url_to_cms; ?>"></iframe>
The way it is, was added long (years) time ago, to fix issues with safari, so that may it is time to review this inline css

johncummings
User w
User w
Posts: 19
Joined: Tue Mar 15, 2022 10:38 am

Re: phpbb embedded on wordpress tempate install questions

Post by johncummings »

That doesn't work, but at least now I know I'm in the right area.

Looks like I'm picking up the DEFAULT IFRAME width of 300px . Using the percent values for width and min-width are applying those percentages against the 300px.

Think I should just hardcode a width?

Thanks
John

johncummings
User w
User w
Posts: 19
Joined: Tue Mar 15, 2022 10:38 am

Re: phpbb embedded on wordpress tempate install questions

Post by johncummings »

Now I have a dumb question after doing some retraining!

I love the User ID integration, but for the template why not just create a page and add HTML to it? Am I missing something? Or is there a functionallity that I am not getting using this method?


I simply created a NEW PAGE and added an HTML box with this code in it and it worked fine. I got all my headers, footers and menu's without having to change any code in overall_header.html , overall_footer.html or make any administrative changes in phpbb.

<iframe src="https://myforum.com/forum/" height=1000></iframe>

Everything looks great, so wondering what I'm missing not using your embedded template? Is it the fact that someone could now access my forum directly OUTSIDE of my website if they new the URL?

Thanks
John

User avatar
axew3
w3all User
w3all User
Posts: 2497
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: phpbb embedded on wordpress tempate install questions

Post by axew3 »

John, i do not think you have the same result (and at this point also the idea of what it really do)
You can use the template integration or not!
The template integration is a thing, what the plugin do to integrate users, is totally another.
Just do not use the template integration if you do not want it.
Including an iframe your way is possible, the problem is that may it do not resize. But not only.
But of course, you can write your own code, better than this:
https://github.com/davidjbradshaw/iframe-resizer
and get the idea of mine into overall_footer.html and overall_header.html

Trust me. I am quite sure you or someone else can do best, but the idea i bring here, and that you can get for free, is practically magic and (modestly) unsurpassed ;)

Did you try the iframe shortcode?
https://www.axew3.com/w3/2022/02/the-aw ... shortcode/

johncummings
User w
User w
Posts: 19
Joined: Tue Mar 15, 2022 10:38 am

Re: phpbb embedded on wordpress tempate install questions

Post by johncummings »

Thanks,

I wasn't insulting your code, it is much better than I could do. I just don't currently have the experience to get it to work how I want it.

For now I will use the User ID integratation. This is awesome. I will revisit this topic a bit later.

This chat forum is for a small homeowners association. I'm trying to get them off of Facebook and on to a real chat forum like phpbb. If the users like the chat forum I will revisit this code to get it all working correctly.

Thanks for all the help!

John

User avatar
axew3
w3all User
w3all User
Posts: 2497
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: phpbb embedded on wordpress tempate install questions

Post by axew3 »

John, no problem you can say what you want, also insult! May do not be so hard in case please! ;)

I think your problem is just about css, and you have (but i can only imagine as i can't see) to understand why your iframe do not work as you expect.
I do not know your age, may you are very young and in short you'll be (i am sure in this case) better than me, and you'll do better!

If i can help, and you want to pm me an online example link (if u do not want to publish it here in reply), i will help you on fly to understand issues for what i can looking on outputted page code

[EDITED]

johncummings
User w
User w
Posts: 19
Joined: Tue Mar 15, 2022 10:38 am

Re: phpbb embedded on wordpress tempate install questions

Post by johncummings »

Thanks,

I'm old! I'm an old mainframe systems programmer, not a web programmer. I've had limitted training in css,html, java and those tools. I've had enough training to get myself into trouble.

I'm learning that their is no substitute for training, so taking some time to do some training.

Yes, I'm sure you are correct that my issue is in the CSS. I'm re-taking my CSS training now for a refresher.

If the users prefer a phpbb forum over Facebook(I sure hope they do) then I will come back to this.

thanks
John

johncummings
User w
User w
Posts: 19
Joined: Tue Mar 15, 2022 10:38 am

Re: phpbb embedded on wordpress tempate install questions

Post by johncummings »

I think i have figured it out. I spent 2 days doing some CSS training and now things make more sense. Well, at least the css code. I'm not familiar with php.

Well, I have the "width" issue solved. All I did was add a "width:100%" to the "div" that contained the iframe. No idea why, but the size of the div was some how only 1px without adding the "width:100%" statement. I also create a css class for the div that contains the iframe and externalized the css for both the div and iframe.

Now I need to put back the changes for overall_header and overall_footer. I removed these when I was about to give up ! Now I'm curious if all my issues are fixed.

Thanks for the help.

I will let you know how I made out.
John

User avatar
axew3
w3all User
w3all User
Posts: 2497
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: phpbb embedded on wordpress tempate install questions

Post by axew3 »

Great!
I am over to resolve ipad/safary issues, after i turned it on to check for another reported bug into the rotate image phpBB extension.
I hope to find out the way to resolve both in short

User avatar
axew3
w3all User
w3all User
Posts: 2497
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: phpbb embedded on wordpress tempate install questions

Post by axew3 »

P.S
John, look that during last update, 3 lines of code have been missed on files

addons/page-forum.php
and
views/wp_w3all_phpbb_iframe_short.php
that i detected while testing an ipad/iOS, that the iframe was so not loading correctly, when on index.
May not, may yes, it was your problem?
viewtopic.php?p=5693#p5693
these files have been fixed as explained into the post, whenever useful

johncummings
User w
User w
Posts: 19
Joined: Tue Mar 15, 2022 10:38 am

Re: phpbb embedded on wordpress tempate install questions

Post by johncummings »

Thanks,

Just getting back to this! My hobby - lol

Post Reply