SilvaLau
Forum Replies Created
-
Upgrading to 7.5.1 caused fatal error and crashed my site.
Forum: Plugins
In reply to: [PPWP - Password Protect Pages] PPWP not working properly on Mobile devices?We’ve identified the issue. The logic that dynamically injects ads into password-protected pages conflicts with the PPWP plugin, which breaks both the password form and reCAPTCHA.
I’ve asked our ad provider to disable ad injection on password-protected pages, and the password form now works as intended. The new challenge is how to serve ads on those pages without breaking the plugin. Our provider is currently unable to allocate resources on their side, so we will need to handle this ourselves.
Separately, because PPWP is incompatible with Jetpack’s Markdown, we wrote a custom script to render Markdown inside the PPWP wrapper. I’m not sure if it will be of much help here, but I’ll attach the script anyway for reference.
<script>
document.addEventListener("DOMContentLoaded", function(){
const ppwpBlocks = Array.from(
document.querySelectorAll('.ppw-restricted-content')
).filter(block => !block.classList.contains('ppw-pcp-container'));
ppwpBlocks.forEach(block => {
if (block.dataset.enhanced) return;
let html = block.innerHTML;
// 1) Turn <p>***</p> or <p>---</p> into <hr>
html = html.replace(/<p>\s*(\*{3}|-{3})\s*<\/p>/gi, '<hr>');
// 2) Also catch raw lines of *** or ---
html = html.replace(
/(^|\r?\n)\s*(\*{3}|-{3})\s*(?=\r?\n|$)/g,
'$1<hr>\n'
);
// 3) Bold + italic
html = html.replace(/\*\*\*(.+?)\*\*\*/g, '<strong><em>$1</em></strong>');
// 4) Bold
html = html.replace(/\*\*(.+?)\*\*/g, '<strong>$1</strong>');
// 5) Italic (but not part of ***)
html = html.replace(
/(^|[^*])\*(?!\s)([^*]+?)(?!\s)\*(?!\*)/g,
'$1<em>$2</em>'
);
// 6) Fix any opening‐quote that got turned into a closing one
// right after <em> or <strong><em>
html = html
// bold+italic
.replace(/(<strong><em>)[\u201D\u0022]/g, '$1\u201C')
.replace(/(<strong><em>)[\u2019\u0027]/g, '$1\u2018')
// italic only
.replace(/(<em>)[\u201D\u0022]/g, '$1\u201C')
.replace(/(<em>)[\u2019\u0027]/g, '$1\u2018');
block.innerHTML = html;
block.dataset.enhanced = "true";
});
});
</script>Questions:
- How does PPWP process/render content within its wrapper?
- Why do Jetpack Markdown and third-party ad scripts fail inside it?
- Is there a recommended method to inject ads without interfering with the password form or reCAPTCHA?
Thanks in advance for any guidance.
Sample test page: https://re-library.com/others/hue94ndh4o9jeh/early-access-toc/early-access-chapter-template-2/
Password: 6877c14809c89Forum: Plugins
In reply to: [Comments - wpDiscuz] Nonce is invalid with 7.6.4I have the same issue with my site!
Forum: Plugins
In reply to: [Ad Inserter - Ad Manager & AdSense Ads] f.txt Download ProblemI got the same problem after I enabled the Adblock Detection feature, I’m using Ad Inserter Version 2.7.20
- This reply was modified 3 years ago by SilvaLau.
Forum: Plugins
In reply to: [Site Kit by Google - Analytics, Search Console, AdSense, Speed] AccessDeniedHello @adamdunnage
1. I’ve shared the site health information.
2. It happens after I tried to sign in with Google, I chose my account, selected what Site Kit can access, and pressed continue, then I get redirected to my site’s homepage with the query string.
3. I do see some console errors but they’re there regardless of if I activate the plugin or not, so I don’t think they’re related?Forum: Plugins
In reply to: [Accessibility Font Resizer] Wish: A step by step user guideTrue, this plugin is hard to use, I don’t know where to start. In the FAQ, it says create menu, create what menu exactly? I don’t see any options nor any settings or widgets. What am I supposed to do with this?!
Forum: Plugins
In reply to: [Comments - wpDiscuz] Issue with Editing Long Commenthmm… it seems fine now when I try to edit the comment:
But *after* I click “read more” to expand the comment, click “edit” and then “cancel”, all the text would be gone like this:
It would return to normal when you refresh the page though.
Example URL: https://re-library.com/2020/05/23/teaser-my-loli-brother/
Forum: Plugins
In reply to: [Comments - wpDiscuz] No Reply ButtonForum: Plugins
In reply to: [Comments - wpDiscuz] No Reply ButtonPlease check and make sure the WordPress core (native) “Break comments into pages with [X] top level comments per page the [last/first] page displayed by default” option is not enabled. More info here:
Ooh thanks
You have some js errors on your website (press F12 to see those errors), once you solve errors it should work fine.
Javascript error? uh… right, I’ll see what I can do about it…
Forum: Plugins
In reply to: [Comments - wpDiscuz] No Reply ButtonAlso, not sure if I should drop this here or start a new topic, but… just thought I’d point this out, for some reason, Google CAPTCHA doesn’t seem to be appearing in comments form that appear at the top of the thread. It does show up properly when I click a reply button, however.
Forum: Plugins
In reply to: [Comments - wpDiscuz] No Reply ButtonUpdate: I changed the comment form view to “expanded” and it is now showing, but it doesn’t work in “collapsed”.
Forum: Plugins
In reply to: [Comments - wpDiscuz] Hide Reply caused pages to expandI see, that’s a shame.
Can this please be included in future updates? It would be nice to be able to change the colors under User Labels and Badges setting.
Forum: Plugins
In reply to: [Comments - wpDiscuz] Hide Reply caused pages to expandThank you, that works.
Also, can I ask an unrelated question? It’s not related to this issue but I noticed that when we log-in with social accounts and leave a comment, our user name have different colors. Like Blue for Facebook, Light Blue for Twitter, Orange for Google, and Black for WordPress… is it possible to change those colors or are they fixed?
Forum: Plugins
In reply to: [Comments - wpDiscuz] Issues with New Updateis it possible that I can add the wpDiscuz file to exclusion instead of disabling the entire minify function?
Forum: Plugins
In reply to: [Comments - wpDiscuz] Hide Reply caused pages to expandI am using Huawei Mate 10, sir.
As for screen size…I’m not quite sure where to check that, 360×640?