Plugin fails with Cherry Framework 4
-
Hi, when i use this plugin to embed the phpbb forum into the page-community.php in combination with Cherry framework it fails. I’m getting undefined variable errors. And have no idea how to fix it.
The plugin does work with theme Twenty Fifteen/Seventeen etc. but not with a Cherry Framewokr theme.
-
Ok solved it, somehow all the users were removed from wordpress not sure why..
Forum works the way it should and i can log in again. Appreciate your help alot!
Thanks again.
I do have a question. this is supposed to be a modal correct? seems like its not working as it is placed above the iframe. instead of hidden. any ideas?
Also iframe responsive isn’t working either, ive added the resizer js files to the overall_footer.html.
i am using a subdomain preview.websitename.com

some wifi problem this night here …
line 1124
on actual 1.7.1:
$wpdb->query("UPDATE $wpu_db_utab SET meta_value = '$subscriber' WHERE user_id = '$user_id' AND meta_key = 'wp_capabilities'");
is a query that should not return (in case) this kind of error.
So i can’t at moment understand from where it can come out.can you provide the code from lines, 1100 until 1130 of your file?
about iframe page forum: it work on any template i’ve test it, but maybe i’ve not test something like your. Probably instead, you need to setup correctly the domain setting about js. Hints about are on same page-forum and on overall_footer.html code where:
// document.domain = 'localhost'; // un-comment and set this value ...i see that maybe the error can come out due to another reason, and this let me see finally there is a problem when an user is passed to be inserted also into phpBB but was not created in WP due to an error.
Download the patched class.wp.w3all-phpbb.php file and substitute it.
The problem about the error in case of WP user error insertion should be resolved now:
https://plugins.trac.ww.wp.xz.cn/export/HEAD/wp-w3all-phpbb-integration/trunk/class.wp.w3all-phpbb.phpabout the js code check well the hints on file page-forum(or what you have name it).php and on overall_footer.html js code, about:
// document.domain = 'localhost'; // un-comment and set this value to your domain (ex. axew3.com)....-
This reply was modified 9 years ago by
axew3.
The login and forum works fine now.
However the Iframe responsive i can’t get it to work. ive included the iframeResizer.contentWindow.min.js and changed the paths to preview.mydomain.com but still not being resized.
Any ideas?
np, thank to you, since i try to test all the evil code i add time by time, but as it is very hard to imagine all times any possible bug or wrong code (as in this case), thank to you another bug has been resolved in the while.
About iframe these are steps you need to check well:
1) copy/paste the file iframeResizer.contentWindow.min.js into your phpBB root (the file is inside addons/resizer folder as explained on procedure).
2) check that the code you add into overall_footer.html where
<script type="text/javascript" src="iframeResizer.contentWindow.min.js" defer></script>the src attribute, need to point to the correct file (it can be also an url instead than relative path, so like
<script type="text/javascript" src="http://mysite/myphpBB/iframeResizer.contentWindow.min.js" defer></script>on page-forum(or whatYouHaveNameIt).php and into the overall_footer.html code, check for line:
// document.domain =
change on both files into
document.domain = 'yourdomain.com';Remember also that phpBB require to recompile the template, or done modifications to his template files not affect (to overall_footer.html in this case). Open phpBB ACP, and so under:
Server Configuration -> Load settings -> Recompile stale style components set to YES and save. Load one time a phpBB full forum page. So reset to NO and save other time the option.Hi,
I followed the steps correctly but still the same result. Ill give you the url where you can see the forum and i think something else is wrong aswell? the login modal shouldn’t be visible above the forum, but open via a button or automatically somehow?
Have a look here: Forum Page Location
Greets!
-
This reply was modified 8 years, 12 months ago by
revoxis.
i do not know this template,
maybe as many others more complex than default (which the code is coded on) it add things in several different ways and not work properly if you not edit it adding the code into-
can you provide maybe the original file, and on fly i can try to see, if possible, to add the code into it (if it will be possible without installing)
I mean the page.php file of the template you use.edited:
the page is ok, it return error about resizeryou have a js error
ReferenceError: iFrameResize is not defined
because the code on header that should be added by page forum, isn’t included for some reason. Have you add the code manually?the function wp_w3all_add_ajax()
seem that not exist so there is not the needed code on header, that include js library to resize, so you see the iframe not resized when you open the page-
This reply was modified 8 years, 12 months ago by
axew3.
Alright so finally i got it to work but i had to include 2 files:
<script type='text/javascript' src='http://preview.mydomain.com/forum/iframeResizer.contentWindow.min.js?ver=1.0'></script> <script type='text/javascript' src='http://preview.mydomain.com/forum/iframeResizer.js?ver=1.0'></script>I couldn’t find anywhere i had to include iframeResier.js …
Last question:

Why is the REGISTER / login visible? shouldn’t that be hidden inside a modal or something?
phpBB logins forms are visible, (you can remove via js in case or css or remove/edit manually from phpBB template or do with anything else). The js code on page-forum, when you click into a login form, fire the openmodal: this is a work around of first versions. But now, we can completely remove this part about openmodal and choose a more elegant and effective way.
What the openmodal do? Send login credentials to phpBB and phpBB redirect to page forum. This the trick to update wp state after login done into iframe, or the user will result logged into iframe (phpBB) and not into WP until the WP page not reload.
But now, due to phpBB events passed into overall_footer.html js code where
// to send to wp at once here, like this: #w3all_phpbbpmcount=val#w3all_phpbbnotifycount=val#etc etc etc var w3appendevents = '#w3all_phpbbpmcount=' + pmn + '#w3all_phpbb_u_logged=' + w3all_phpbb_u_logged + w3allScrollBottom; parent.w3all_ajaxup_from_phpbb(w3appendevents);we can pass to our WP page forum, the phpBB user state logged/not logged: nothing more easy than so, to check the user state into WP, and if not logged, update his state (without using the openmodal login that point to real phpBB and redirect to wp forum page).
Hope my bad ENg let you understand something, the iframe mode is going to be improved and improved … any help on this is very (as ever) welcome also!
-
This reply was modified 8 years, 12 months ago by
axew3.
Hey, thanks for all the help its fully working now.
I have another question. Any idea how i can make a “my account” button in the header of the wordpress site? if you click it it should go to the page-community and open the UCP.php in the iframe. ive tried several things but none are working, maybe you have an idea how to make that happen?
Greetins!
the link that will point to correct redirect ucp.php for your domain will be for example:
http://yourdomain.com/community/?mode=ucppractically, append /?mode=ucp to the link that point to your WP forum embed page.
Alright after many attempts and database migrations the forum stopped showing up, could you help me with it?
No idea why its not showing up, all i know is the iframe gives width: 1px; url in src is correct.
Hi! i correctly see the forum at url you provide (even if top is not well vertical aligned, the main word ‘Preview Forum’ is cut under an header element. I see all ok, while i should see what? Nothing?
have you in the while resolved? -
This reply was modified 9 years ago by
The topic ‘Plugin fails with Cherry Framework 4’ is closed to new replies.