Page 3 of 7

Re: Need some help install WP W3ALL

Posted: Mon Feb 27, 2017 10:18 pm
by Goofkop
i already done that!

https://www.axew3.com/w3/2016/02/embed- ... esponsive/

The strange thing is on my mobile it works and both browsers on my laptop not.

Re: Need some help install WP W3ALL

Posted: Mon Feb 27, 2017 11:12 pm
by axew3
1) still there is on top of your page this message
Notice: Undefined variable: w3all_wlastopicspost_max in /sites/bakkersbaas.nl/www/wp-content/plugins/wp-w3all-phpbb-integration/wp_w3all.php on line 68 Warning: max(): When only one parameter is given, it must be an array in /sites/bakkersbaas.nl/www/wp-content/plugins/wp-w3all-phpbb-integration/wp_w3all.php on line 68
so you have not change the new patched 1.6.4 files as above explained.

2) check that into your overall_footer, you have not copy/paste only the code, but also code lines

1
2
3
etc ect etc until 31

remove all these lines, recompile stale template and you'll be done.
copy the code from here:

Code: Select all

<script type="text/javascript">
 
$(document).on('mouseup', '.postimage', function(){
      var w3allappend = "getw3all_lightbox";
if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
});
 
  $(document).on("click", "a", function() {
   var href = $(this).attr("href");
   var w3allappend = href;
 
 if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
 
});
 
$(document).on('click', '.quick-login', function(){ 
var w3allappend = "phpbb_quick_login";
if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
});
 
 $('form').on('submit', function() {
 var href = $(this).attr("action");
 var ck1 = '#preview';
 var ck1r = (href.indexOf(ck1) > -1);
 if(ck1r == false){
 var w3allappend = href;
 if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
 }
});
</script>
<script type="text/javascript" src="iframeResizer.contentWindow.min.js" defer></script>

Re: Need some help install WP W3ALL

Posted: Tue Feb 28, 2017 9:06 am
by Goofkop
The error is gone. Thank You again axew3.

But i don't get the forum on the right way. My overall_footer. html you can see here!
Your code is on the right spot?

Code: Select all

		<!-- EVENT overall_footer_content_after -->
	</div>

<!-- EVENT overall_footer_page_body_after -->

<div id="page-footer" class="page-footer" role="contentinfo">
	<!-- INCLUDE navbar_footer.html -->

	<div class="copyright">
		<!-- EVENT overall_footer_copyright_prepend -->
		{CREDIT_LINE}
		<!-- IF TRANSLATION_INFO --><br />{TRANSLATION_INFO}<!-- ENDIF -->
		<!-- EVENT overall_footer_copyright_append -->
		<!-- IF DEBUG_OUTPUT --><br />{DEBUG_OUTPUT}<!-- ENDIF -->
		<!-- IF U_ACP --><br /><strong><a href="{U_ACP}">{L_ACP}</a></strong><!-- ENDIF -->
	</div>

	<div id="darkenwrapper" class="darkenwrapper" data-ajax-error-title="{L_AJAX_ERROR_TITLE}" data-ajax-error-text="{L_AJAX_ERROR_TEXT}" data-ajax-error-text-abort="{L_AJAX_ERROR_TEXT_ABORT}" data-ajax-error-text-timeout="{L_AJAX_ERROR_TEXT_TIMEOUT}" data-ajax-error-text-parsererror="{L_AJAX_ERROR_TEXT_PARSERERROR}">
		<div id="darken" class="darken">&nbsp;</div>
	</div>

	<div id="phpbb_alert" class="phpbb_alert" data-l-err="{L_ERROR}" data-l-timeout-processing-req="{L_TIMEOUT_PROCESSING_REQ}">
		<a href="#" class="alert_close">
			<i class="icon fa-times-circle fa-fw" aria-hidden="true"></i>
		</a>
		<h3 class="alert_title">&nbsp;</h3><p class="alert_text"></p>
	</div>
	<div id="phpbb_confirm" class="phpbb_alert">
		<a href="#" class="alert_close">
			<i class="icon fa-times-circle fa-fw" aria-hidden="true"></i>
		</a>
		<div class="alert_text"></div>
	</div>
</div>

</div>

<div>
	<a id="bottom" class="anchor" accesskey="z"></a>
	<!-- IF not S_IS_BOT -->{RUN_CRON_TASK}<!-- ENDIF -->
</div>

<script type="text/javascript" src="{T_JQUERY_LINK}"></script>
<!-- IF S_ALLOW_CDN --><script type="text/javascript">window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery.min.js?assets_version={T_ASSETS_VERSION}">\x3C/script>');</script><!-- ENDIF -->
<script type="text/javascript" src="{T_ASSETS_PATH}/javascript/core.js?assets_version={T_ASSETS_VERSION}"></script>
<!-- INCLUDEJS forum_fn.js -->
<!-- INCLUDEJS ajax.js -->
<!-- IF S_ALLOW_CDN -->
	<script type="text/javascript">
		(function($){
			var $fa_cdn = $('head').find('link[rel="stylesheet"]').first(),
				$span = $('<span class="fa" style="display:none"></span>').appendTo('body');
			if ($span.css('fontFamily') !== 'FontAwesome' ) {
				$fa_cdn.after('<link href="{T_ASSETS_PATH}/css/font-awesome.min.css" rel="stylesheet">');
				$fa_cdn.remove();
			}
			$span.remove();
		})(jQuery);
	</script>
<!-- ENDIF -->

<!-- IF S_COOKIE_NOTICE -->
	<script src="{T_ASSETS_PATH}/cookieconsent/cookieconsent.min.js?assets_version={T_ASSETS_VERSION}"></script>
	<script>
		window.addEventListener("load", function(){
			window.cookieconsent.initialise({
				"palette": {
					"popup": {
						"background": "#0F538A"
					},
					"button": {
						"background": "#E5E5E5"
					}
				},
				"theme": "classic",
				"content": {
					"message": "{LA_COOKIE_CONSENT_MSG}",
					"dismiss": "{LA_COOKIE_CONSENT_OK}",
					"link": "{LA_COOKIE_CONSENT_INFO}"
				}
			})});
	</script>
<!-- ENDIF -->

<!-- EVENT overall_footer_after -->

<!-- IF S_PLUPLOAD --><!-- INCLUDE plupload.html --><!-- ENDIF -->
{$SCRIPTS}

<!-- EVENT overall_footer_body_after -->
<script type="text/javascript">

$(document).on('mouseup', '.postimage', function(){
      var w3allappend = "getw3all_lightbox";
if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
});

  $(document).on("click", "a", function() {
   var href = $(this).attr("href");
   var w3allappend = href;

 if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);

});

$(document).on('click', '.quick-login', function(){
var w3allappend = "phpbb_quick_login";
if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
});

 $('form').on('submit', function() {
 var href = $(this).attr("action");
 var ck1 = '#preview';
 var ck1r = (href.indexOf(ck1) > -1);
 if(ck1r == false){
 var w3allappend = href;
 if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
 }
});
</script>
<script type="text/javascript" src="http://www.bakkersbaas.nl/forum/iframeResizer.contentWindow.min.js" defer></script>
</body>
</html>
The iframeResizer.contentWindow.min.js file is in my forum map so you can see.
http://imgur.com/a/nSZHs

And i recompile the new template under ACP.

Isn't it weird that in on my mobile works on my laptop or computer didn't?
http://imgur.com/a/Oebal

Re: Need some help install WP W3ALL

Posted: Tue Feb 28, 2017 9:24 am
by axew3
you target origin not coincide debugging your page return this:

Code: Select all

Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘http://www.bakkersbaas.nl’) does not match the recipient window’s origin (‘http://bakkersbaas.nl’).
[ATTACHMENT REMOVED]

SOLUTION:

on WP admin WP_w3all config page there is PATH and URL setting:
if you have set as URL
http://www.bakkersbaas.nl/forum
set it as
http://bakkersbaas.nl/forum
Or the contrary.

Re: Need some help install WP W3ALL

Posted: Tue Feb 28, 2017 9:25 am
by axew3
have you setup as URL on wp_w3all config
http://bakkersbaas.nl
OR
http://www.bakkersbaas.nl

Re: Need some help install WP W3ALL

Posted: Tue Feb 28, 2017 10:06 am
by Goofkop
Upload your page-forum.php renamed it to page-forums.php because i used the name forums to Create or rebuild WordPress forum page template.

Didn't work.

Did yesterday a whole new installation and didn't use a custom config.php but the one that is in my phpbb folder.
Here you can see.
http://imgur.com/a/dkQHJ

What do you precisely mean with:
have you setup as URL on wp_w3all config
http://bakkersbaas.nl
OR
http://www.bakkersbaas.nl