Paid Memberships Pro
https://github.com/strangerstudios/paid-memberships-pro
is a great plugin, thank you to let me discover that there is a good substitute for memberpress (which do not exist as free version).
I will test (and surely use!) it more deeply asap.
Let fix all. First, i see that you set all ok about the JS code (header and footer) but into the overall_footer.html there is a problem:
why there is two times the same code added into the overall_footer.html?
Seem that you added the same JS code two times, remove the one or the other and leave one in place:
Code: Select all
<script type="text/javascript">
// START MANDATORY CHANGES
var w3allAllowDomain = 'https://www.suicidekingscarclub.com'; // MANDATORY! // Set/Change this value with your WordPress URL (example: https://axew3.com)
var wordpress_url_page_forum = 'https://www.suicidekingscarclub.com/forums'; // MANDATORY! // (DO NOT ADD/INCLUDE final slash here) Url that point to your iframed wordpress forum page
var w3all_custom_wp_w3fancyurl = 'suicidekings'; // MANDATORY! If you changed the default w3 to have 'fancy URL' query string into the related WP plugin admin option, then change this value to match the same as it is the fancy URL setting
// END MANDATORY CHANGES
var w3allappend = false;
var boardU = "https://www.suicidekingscarclub.com/forum/";
// Lightbox scroll fix:
// remove /* and */ to activate, also more below to complete ...
/*
$(".postimage").on("click", function(event) {
var pos = event.pageY - 100;
$(parent.window).scrollTop( 200 );
var el = document.getElementById("lightbox");
$("#lightboxOverlay").on("click", function() {
$(parent.window).scrollTop( pos );
});
$(".lb-close").on("click", function() {
$(parent.window).scrollTop( pos );
});
$(".lightbox").on("click", function() {
$(parent.window).scrollTop( pos );
});
});
*/
function w3allNormalize_phpBBUrl(href){
// try to 'normalize' passed relative links: needed all after last slash /
// exception are kind of passed urls like: /phpbb323/app.php/help/faq
// and if SEO mods that may assign some different kind of links values
// by the way, SEO absolute urls http(s) should be (all?) already considered here ...
var phpbbRUrl = href.split(/^.+?(\w+.+)$/);
if( href.indexOf('app.php') > -1 ){ // since the previous not 'normalize' this type of passed value (and may miss something else)
phpbburl = href.split(/^.+?(app\.php.+)$/);
w3allappend = phpbburl[1];
} else if ( /^https?/ig.exec(href) !== null ){ // absolute http(s) passed: try to 'normalize' a possible seo mod
phpbburl = href.split(boardU);
w3allappend = phpbburl[1];
} else if ( phpbbRUrl[1] && phpbbRUrl[1].length > 1 ){ // 'normalize' any other
w3allappend = phpbbRUrl[1];
} else if ( phpbbRUrl[0].length > 1 ){
w3allappend = phpbbRUrl[0];
}
// ... if still not normalized
if(/^\W/ig.exec(w3allappend) !== null){
w3allappend = w3allappend.split(/^.+?(\w+.+)$/);
if(w3allappend[1]){
w3allappend = w3allappend[1];
}
if ( w3allappend[1] && w3allappend[1].charAt(0) == '/' ){
w3allappend = w3allappend[1].substr(1);
}
}
return w3allappend;
}
$(document).on("click", "a", function(e) {
var href = $(this).attr("href");
var w3all_onview_attach = (href.indexOf('file.php') > -1);
if( this.getAttribute('target') !== null ){
e.preventDefault();
window.open(href,'_blank');
return;
}
if ( href.charAt(0) == '#' || href.indexOf('\./download\/file\.php') > -1 ){ return; }
// external link?
if ((this.href.indexOf(boardU) > -1) != true){
if(/^(f|ht)tps?:\/\//i.test(href))
{
e.preventDefault();
parent.location.replace(href);
return;
}
}
if ( /\/adm\//ig.exec(href) !== null )
{
e.preventDefault();
parent.location.replace(href);
return;
}
if ( href.indexOf('view=print') > -1 !== false )
{
e.preventDefault();
window.open(href,'_blank');
return;
}
if ( href.indexOf('quickmod') > -1 ) {
w3allNOappend = true;
return;
}
if( /posting\.php\?mode=[reply|post|bump]/ig.exec(href) !== null || /mcp\.php\?/ig.exec(href) !== null ){
w3allNOappend = true;
}
// complete Lightbox correct attachment display // activate removing /* and */
// or used to open on new tab attachments
/*
if(w3all_onview_attach !== false){
e.preventDefault();
window.open(href,'_blank');
return;
} */
w3allappend = w3allNormalize_phpBBUrl(href);
if ('parentIFrame' in window){
if( typeof w3allNOappend == 'undefined' || w3allNOappend == false ){
window.parentIFrame.sendMessage(w3allappend);
}
}
});
// w3all UPDATES for phpBB events
if(window.self !== window.top){
$("#quickmod,.bookmark-link").on("click", function(event) {
var pos = window.scrollY + document.querySelector('#quickmod').getBoundingClientRect().top;
$(parent.window).scrollTop( 200 );
$("#darkenwrapper").on("click", function() {
$(parent.window).scrollTop( pos );
});
$("#darken").on("click", function() {
$(parent.window).scrollTop( pos );
});
});
var pmn = "0";
var w3all_phpbb_u_logged = "";
var hash = window.location.hash.substr(1);
if( hash == 'unread' ){
var postN = 1;
$( "h3 > a" ).each(function (e) {
ns = this.href.split('#p');
if( typeof ns != 'undefined' && /viewtopic.php\?p=/ig.exec(this.href) != null ){
if(ns[1] > postN){
w3lh = ns[1];
}
}
})
if( typeof w3lh != 'undefined' ){
hash = "p" + w3lh;
}
}
if( typeof w3allNOappend == 'undefined' || w3allNOappend == false )
{
$( window ).on( "load", function()
{
location.hash = "#" + hash;
if( location.hash.length < 2 ){
var w3all_lochash = 0;
} else {
var w3all_lochash = $(location.hash).offset().top;
}
var w3append = '#w3all_phpbbpmcount=' + pmn + '#w3all_phpbb_u_logged=' + w3all_phpbb_u_logged + '#w3all_lochash=' + w3all_lochash;
window.parent.postMessage({
//'func': 'w3all_ajaxup_from_phpbb',
'message': JSON.stringify(w3append)
}, w3allAllowDomain);
// fix vertical iframe centered in certain cases
var w3iOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);
if(w3iOS == false)
{
var bd = document.getElementsByTagName("body");
var t = document.getElementById(bd[0].getAttribute("id"));
if( typeof t != 'undefined' || t != false )
{
t.setAttribute("style", "position:fixed;top:0%;left:0%;width:100%;margin:0px;");
}
}
});
}
/*if (window.performance){
if( performance.getEntriesByType("navigation")[0].type == 'back_forward' )
{
var w3E = performance.getEntriesByType("navigation");
var w3ER = w3allNormalize_phpBBUrl(w3E[0].name);
parent.w3all_phpbb_pushUrlToParentOnBackForward(w3ER);
}
}*/
} // END if(window.self !== window.top){
</script>
<script type="text/javascript" src="https://www.suicidekingscarclub.com/forum/iframeResizer.contentWindow.min.js" defer></script>
Ok, then i just registered on fly onto your site to try out what it happen and it seem to me that there is a problem with the appended index.php on redirect.
So will be fixed on coming 2.7.5.
So, if using page forum,
open page-forums.php (as you named it) into your active template folder with a text editor and change the following lines please:
Code: Select all
$w3all_url_to_cms_sw .= (substr($w3all_url_to_cms, -1) == '/' ? '' : '/index.php');
Code: Select all
$w3all_url_to_cms_sw .= (substr($w3all_url_to_cms, -1) == '/' ? '' : '/');
Code: Select all
document.location.replace('".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."/');
Code: Select all
document.location.replace('".$w3allhomeurl."/".$wp_w3all_forum_folder_wp."/');
/wp-content/plugins/wp-w3all-phpbb-integration/views/wp_w3all_phpbb_iframe_short.php
OR, if you activated the option for custom files (Use custom files to display Last Topics Widgets, Login Widget and Shortcodes)
and so you copied all /views/ folder files, into/inside the custom created folder
/wp-content/plugins/wp-w3all-custom
then you have to edit the file
/wp-content/plugins/wp-w3all-custom/wp_w3all_phpbb_iframe_short.php.
Give a shot when done.
Let see after this applied what it happen!
[EDITED]