No widget and no parallax showing in the iframe
-
Well, the subject says it all. The WP page is configured as it should, it has been saved. The configuration has been followed and verified and the page template was rebuild. The forum (3.2) is showing as it should but no parallax at the top and no widget on the page.
Webpage is https://rivoq.ca
The url to the iframe where the parallax and widget should appear is https://rivoq.ca/forum
the forum alone is at https://rivoq.ca/forum-archive
Any help will be appreciated.
Best regards
Alex
-
hey alex, sorry but i see it look very nice and working now! Perhaps i’ve not well understand the problem?
Apparently no, it is not working. If you go on the main page of the website at https://rivoq.ca you will see the post on the left and the widgets on the right, including the login widget, the last posts, the tags, etc. You’ll see the same configuration with the parallax (Fixed image) showing at the top if you click on Contact in the menu. But if you go to the forum page by the menu (COMMUNAUTé RIVOQ > FORUM DE DISCUSSION) to see it implemented in the iframe, you will not see the widget and the Parallax.
ok i will try … sorry, due and for, my English …
the parallax (Fixed image)
i have not well understand so.
But resuming, you would like to have the page forum, that should display on top the google map, or you would like to have the page forum, with top as is on main page, and also right widget, so the forum would be inside post’s column.
You would like one of these two?In fact I would like the page in the iframe (/forum) to be managed by the template as it should.
Let me explain with images. ??
If you look at the “Contact” page, for example. You’ll see the the widget on the right and the “Post”, which is a form, in the rest of the page. And at the top you can see the Parallax. Here is the direct link for this page: https://rivoq.ca/contact/
And here is the image of the page:
Here are the details about where the things are:
Now, that is the forum page right now, without widgets or Parallax (direct link here):
And that is a photoshopped image of how the forum should looks like fully integrated in the page, managed by WP as it should, with the widget and the Parallax in the header:
I hope that will help you to help me. ??
-
This reply was modified 8 years, 2 months ago by
rivoq.
well, yes of course,
It is commonly very easy thing to realize this, as in this old simple example
https://www.axew3.com/w3/w3all-phpbb-two-columns/the point is just this: open your template page, that could be one in the template folder, named something like theme-twocolumn.php or something like this, or, just a single thame page, that will contain maybe more complex code tht display different pages layout. But normally you’ll find the page named two-column…..php
Duplicate this page, and name it page-forum.php or whatever you have named the forum page in WP and in wp_w3all template config.
Open the page you’ve duplicate and rename to page-forum.php and just after the
very starting code
<?php
paste this code:
/** * The default basic template to display content for WP_w3all embedded phpBB * @package WordPress * @subpackage wp_w3all */ // - axew3.com - // // START DO NOT MODIFY $w3forum_id = isset($_GET["forum_id"]) ? $_GET["forum_id"] : ''; $w3topic_id = isset($_GET["topic_id"]) ? $_GET["topic_id"] : ''; $w3post_id = isset($_GET["post_id"]) ? $_GET["post_id"] : ''; $w3mode = isset($_GET["mode"]) ? $_GET["mode"] : ''; $w3phpbbsid = isset($_GET["sid"]) ? $_GET["sid"] : ''; $w3phpbb_viewforum = isset($_GET["viewforum"]) ? $_GET["viewforum"] : ''; $w3phpbb_viewtopic = isset($_GET["viewtopic"]) ? $_GET["viewtopic"] : ''; $w3phpbb_start = isset($_GET["start"]) ? $_GET["start"] : ''; $w3allhomeurl = get_home_url(); if( preg_match('/[^0-9]/',$w3phpbb_start) OR preg_match('/[^0-9]/',$w3topic_id) OR preg_match('/[^0-9]/',$w3phpbb_viewtopic) OR preg_match('/[^0-9]/',$w3phpbb_viewforum) OR preg_match('/[^0-9]/',$w3forum_id) OR preg_match('/[^0-9]/',$w3post_id) OR preg_match('/[^0-9A-Za-z]/',$w3mode) OR preg_match('/[^0-9A-Za-z]/',$w3phpbbsid) ){ die("Something goes wrong with your URL request, <a href=\"$w3allhomeurl\">please leave this page</a>."); } $w3logout = $w3mode; $w3urlscheme = parse_url($w3all_url_to_cms); $w3urlscheme = $w3urlscheme['scheme']; $w3all_target_server = preg_replace('/^[^\.]*\.([^\.]*)\.(.*)$/', '\1.\2',$w3all_url_to_cms); // REVIEW this // build correct links x iframe if (!empty($w3forum_id) && empty($w3phpbb_viewforum)){ $uiframe = "/viewtopic.php?f=".$w3forum_id."&p=".$w3post_id."#p".$w3post_id.""; $w3all_url_to_cms .= $uiframe; } elseif (!empty($w3phpbb_viewforum) && !empty($w3post_id) ) { $w3all_url_to_cms = $w3all_url_to_cms . "/viewtopic.php?f=". $w3phpbb_viewforum ."&p=".$w3post_id."#p".$w3post_id."";//exit; } elseif (!empty($w3forum_id) && !empty($w3topic_id)) { $w3all_url_to_cms . "/viewtopic.php?f=". $w3phpbb_viewforum ."&t=".$w3topic_id.""; } elseif (!empty($w3phpbb_viewforum) && empty($w3phpbb_viewtopic)) { $w3all_url_to_cms = $w3all_url_to_cms . "/viewforum.php?f=". $w3phpbb_viewforum .""; } elseif (!empty($w3phpbb_viewtopic) && empty($w3phpbb_start)) { $w3all_url_to_cms = $w3all_url_to_cms . "/viewtopic.php?f=". $w3phpbb_viewforum ."&t=".$w3phpbb_viewtopic.""; } elseif (!empty($w3phpbb_viewtopic) && !empty($w3phpbb_start)) { $w3all_url_to_cms = $w3all_url_to_cms . "/viewtopic.php?f=". $w3phpbb_viewforum ."&t=".$w3phpbb_viewtopic."&start=".$w3phpbb_start.""; } elseif (stristr($w3mode, "register")) { $w3all_url_to_cms = $w3all_url_to_cms . "/ucp.php?mode=register"; } elseif (stristr($w3mode, "sendpassword")) { $w3all_url_to_cms = $w3all_url_to_cms . "/ucp.php?mode=sendpassword"; } elseif (stristr($w3mode, "login")) { $w3all_url_to_cms = $w3all_url_to_cms . "/ucp.php?mode=login"; } elseif (stristr($w3mode, "logout")) { $w3all_url_to_cms = $w3all_url_to_cms . "/ucp.php?mode=logout&sid=". $w3phpbbsid .""; } else { $w3all_url_to_cms = $w3all_url_to_cms; } // the modal screen // css function wp_w3all_css_modal_login() { $w3all_cssmodal = "<style type=\"text/css\"> .w3allmodalDialog { position: fixed; font-family: Arial, Helvetica, sans-serif; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,0.8); z-index: 99999; opacity:0; -webkit-transition: opacity 400ms ease-in; -moz-transition: opacity 400ms ease-in; transition: opacity 400ms ease-in; pointer-events: none; } .w3allmodalDialog:target { opacity:1; pointer-events: auto; } .w3allmodalDialog > div { width: 400px; position: relative; margin: 10% auto; padding: 5px 20px 13px 20px; border-radius: 10px; background: #fff; background: -moz-linear-gradient(#fff, #999); background: -webkit-linear-gradient(#fff, #999); background: -o-linear-gradient(#fff, #999); } .w3allclose { background: #606061; color: #FFFFFF; line-height: 25px; position: absolute; right: -12px; text-align: center; top: -10px; width: 24px; text-decoration: none; font-weight: bold; -webkit-border-radius: 12px; -moz-border-radius: 12px; border-radius: 12px; -moz-box-shadow: 1px 1px 3px #000; -webkit-box-shadow: 1px 1px 3px #000; box-shadow: 1px 1px 3px #000; } .w3allclose:hover { background: #333; } </style> "; echo $w3all_cssmodal; } add_action('wp_head','wp_w3all_css_modal_login'); wp_enqueue_script("jquery"); function wp_w3all_hook_jresizer() { // <script type=\"text/javascript\" src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js\"></script> $s = "<script type=\"text/javascript\" src=\"".plugins_url()."/wp-w3all-phpbb-integration/addons/resizer/iframeResizer.min.js\"></script> "; echo $s; } add_action('wp_head','wp_w3all_hook_jresizer'); // END DO NOT MODIFY // Start a default WordPress page
So, it depend on how your page is dine, you need to remove the code that output the central content, and replace it with this code:
<!-- START w3all_cssmodal_login div --> <div id="w3allopenModal" class="w3allmodalDialog"> <div> <a href="#w3allclose" title="Close" class="w3allclose">X</a> <form method="post" action="<?php echo $w3all_url_to_cms; ?>/ucp.php?mode=login" class=""> <h3><a href="<?php echo $wp_w3all_forum_folder_wp; ?>/?mode=register">Register</a></h3> <label for="username"><span>Username:</span> <input type="text" tabindex="1" name="username" id="username" size="10" class="" title="Username"></label> <label for="password"><span>Password:</span> <input type="password" tabindex="2" name="password" id="password" size="10" class="" title="Password" autocomplete="off"></label> <br /><br /><a href="<?php echo $wp_w3all_forum_folder_wp; ?>/?mode=sendpassword">I forgot my password</a> <span class="">|</span> <label for="autologin">Remember me <input type="checkbox" tabindex="4" name="autologin" id="autologin"></label> <input type="submit" tabindex="5" name="login" value="Login" class=""> <input type="hidden" name="redirect" value="<?php echo home_url().'/index.php/'.get_option( 'w3all_forum_template_wppage' ); ?>"> </form> </div> </div><!-- END w3all_cssmodal_login div --> <!-- START iframe div --> <div class=""> <noscript><h3>Your browser seem to have Javascript disabled, you can't load correctly the forum page at this Url. Please enable Javascript on your browser or <a href="<?php echo $w3all_url_to_cms;?>">visit the full forum page here</a>.<br /><br /></h3></noscript> <iframe style="width:100%;border:0 !important;" src="<?php echo $w3all_url_to_cms; ?>"></iframe> <?php echo "<script type=\"text/javascript\"> iFrameResize({ log : false, inPageLinks : true, targetOrigin: '".$w3urlscheme."://".$w3all_target_server."', // heightCalculationMethod:'bodyScroll', // if page not resize to phpBB template bottom, uncomment this messageCallback : function(messageData){ // Callback fn when message is received // $ has been replaced with jQuery global object // use wp jquery libs without loading the lib from external resources jQuery('p#callback').html( '<b>Frame ID:</b> ' + messageData.iframe.id + ' <b>Message:</b> ' + messageData.message ); // w3all simple js check and redirects var w3all_passed_url = messageData.message.toString(); var w3all_ck = \"".$_SERVER['SERVER_NAME']."\"; var w3all_pass_ext = (w3all_passed_url.indexOf(w3all_ck) > -1); if (w3all_pass_ext == true) { window.location.replace(w3all_passed_url); } if (/^(f|ht)tps?:\/\//i.test(w3all_passed_url)) { window.location.replace(w3all_passed_url); } var w3all_ck2 = 'ucp.php?mode=login'; var w3all_pass_login = (w3all_passed_url.indexOf(w3all_ck2) > -1); if (w3all_pass_login == true) { var w3_login_modallink = '".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."/?#w3allopenModal'; window.location.replace(w3_login_modallink); } var w3all_ck3 = 'ucp.php?mode=logout'; var w3all_pass_login_out = (w3all_passed_url.indexOf(w3all_ck3) > -1); if (w3all_pass_login_out == true) { window.location.replace('".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."/'); } var w3all_ck4 = 'quickmod'; var w3all_phpBBquickmod = (w3all_passed_url.indexOf(w3all_ck4) > -1); if (w3all_phpBBquickmod == true) { window.scrollTo(0, 200); } var w3all_ck_reply = 'mode=reply'; var w3all_1_ck_reply = (w3all_passed_url.indexOf(w3all_ck_reply) > -1); if (w3all_1_ck_reply == true) { window.scrollTo(0, 200); } // if phpBB lightbox // uncomment more below if lightbox installed on phpBB var w3all_ck5 = 'getw3all_lightbox'; var w3all_phpBB_lightbox = (w3all_passed_url.indexOf(w3all_ck5) > -1); if (w3all_phpBB_lightbox == true) { // uncomment the following line here below to enable page scroll for phpBB_lightbox // window.scrollTo(0, 150); } // push passed url to the browser history if on index.php var w3all_ck8 = 'index.php'; var w3all_viewmainindex_push = (w3all_passed_url.indexOf(w3all_ck8) > -1); if (w3all_viewmainindex_push == true) { var w3matches = /index\.php$/ig.exec(w3all_passed_url); if (w3matches) { w3all_passed_url_push = '".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."'; history.replaceState('', 'Index', w3all_passed_url_push); } } // push passed url to the browser history if on viewforum.php var w3all_ck7 = 'viewforum.php'; var w3all_viewforum_push = (w3all_passed_url.indexOf(w3all_ck7) > -1); if (w3all_viewforum_push == true) { var w3matches = /viewforum\.php\?f=([0-9]+)/ig.exec(w3all_passed_url); w3all_passed_url_push = '".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."/?viewforum=' + w3matches[1]; history.replaceState('', 'Forum', w3all_passed_url_push); } // push passed url to the browser history if on viewtopic.php var w3all_ck6 = 'viewtopic.php'; var w3all_viewtopic_push = (w3all_passed_url.indexOf(w3all_ck6) > -1); if (w3all_viewtopic_push == true) { var w3matches = /viewtopic\.php\?.*([0-9]+).*&(p|t)=([0-9]+)(&start=|#p)?([0-9]+)?/ig.exec(w3all_passed_url); if(!w3matches[4]){ w3all_passed_url_push = '".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."/?viewforum=' + w3matches[1] + '&viewtopic=' + w3matches[3]; history.replaceState('', 'Topic', w3all_passed_url_push); } else if (w3matches[4] == '#p'){ w3all_passed_url_push = '".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."/?viewforum=' + w3matches[1] + '&post_id=' + w3matches[5]; history.replaceState('', 'Topic', w3all_passed_url_push); } else { w3all_passed_url_push = '".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."/?viewforum=' + w3matches[1] + '&viewtopic=' + w3matches[3] + w3matches[4] + w3matches[5]; history.replaceState('', 'Topic', w3all_passed_url_push); } } } }); var w3allogout = '".$w3logout."'; if (w3allogout == 'logout') { window.location.replace('".$w3allhomeurl."' + '/wp-login.php?action=logout'); } </script>"; ?> </div> <!-- END iframe div -->
yes it is very easy to achieve, there is an example at axew3.com:
https://www.axew3.com/w3/w3all-phpbb-two-columns/Use contact form at axew3.com, to contact me if you want, so i’ll answer and you’ll send the page file of your template, or just wait and i will post finally a little easy how to about.
[ Moderator note: your long post was flagged as spam; it has been un-spammed. ?? ]
-
This reply was modified 8 years, 2 months ago by
Steven Stern (sterndata).
Ok great! I’ll try that! ?? Thanks!
—————————
Finally it is not as easy as I first tought… It looks like the template I use do not have a specific file for a two columns page but a content part, a header part, a sidebar part… All pages seems to be done parts by parts and since I need to work on my programmer skills a feel lost in this. I’ll contact the maker of the template and will see with him if he can help me to follow your how-to showed in the previous message.-
This reply was modified 8 years, 2 months ago by
rivoq.
i viewed it after …
[ Moderator note: your long post was flagged as spam; it has been un-spammed. ?? ]
Yeah! Thank you! The only thing above is so my bad English … as you have note how many times normally i edit my posts! ??
ah! last night the post have been rejected, for this i had say i will post, it was hard night, the post lost … instead i see it is here this morning. Well!
The procedure is above, if something not clear or more trouble, just post.Yes I saw this post with the moderator comment yesterday, before going to bed. My last answer was considering it. I will need help from the template developer to figure how the template built pages because it doesn’t seems to be a simple file but many files to complete a template. I’ll check again today since I was very tires yesterday night, I should have time from work. But from what I saw it seems a lot more complex than just a php file to copy.
Np, if still in trouble after try out and you want to send the template, i will take a look into.
Your theme is probably composed of more files than a common wp theme.
In case send your email through axew3.com contact, i will answer with my email.Thanks for that offer Alessio. I just send you a message about that on your contact form from axew3.com. Since I think you will better know what is needed for the integration I think you will be in a better place to help me. But if you think it is too much work let me know and I’ll see with the developper. I really appreciate your help in this.
Best regards
AlexHello, no email has arrive.
If you ask to the theme devel they can with easy let know you where to put code that should be displayed in place of posts, creating a new page that you’ll name page-forum(orWhatever).php.
They should be able just looking into page forum what to add where, or even they should d be able to indicate you how to achieve without looking nothing. You only need to ask:
“How should i create a page with your theme, where i can put content in place of posts?” … or something like …There are only two parts: the first one on the very start, and the one that need to placed where you need to display the forum content (as on bad Eng post above, i’ve already mention)
All this joke, to simplify, on 1.5.8 will be resumed in two lines of code to be added. That will be more easy and clear.
If still in trouble, let know your email, of course i can take a look and resolve.
-
This reply was modified 8 years, 2 months ago by
- The topic ‘No widget and no parallax showing in the iframe’ is closed to new replies.