One thread on the website refuses to load for me

Macallik86

Superstar
Supporter
Joined
Dec 4, 2016
Messages
6,785
Reputation
1,587
Daps
22,362

Every time I visit, it just returns a blank page.

Ironically it's a thread that I created. Worth noting that I have my settings to show 50 pages per post. My uneducated guess is that there's something unique w/i this thread relative to others... perhaps the lengthier than normal articles or something benign that was copied over from one of the articles is throwing my computer for a loop?

Curious if anyone has experienced something similar and has a resolution. Here's a screenshot of the

Edit:I think there's something that's been injected w/i the thread that is being blocked completely by either my ad/privacy blocker:

o5ey6is.png


It seems to be something unique about that thread that is flagging a rejection
 

bnew

Veteran
Joined
Nov 1, 2015
Messages
63,082
Reputation
9,641
Daps
172,656
OP I temporarily changed my "posts per page" settings to 50 and got the same console error you did along with a blank page when I clicked on your link. the thread does load up when I changed it to 35 posts per page so you might consider doing that.
 

bnew

Veteran
Joined
Nov 1, 2015
Messages
63,082
Reputation
9,641
Daps
172,656

coli thread broken? too many embeds on a coli thread and the page won't load cause your preferences is set to more than 15 pages per post? heres a bookmarklet that will set the page back to 15 posts per page and when you're ready to change it back to your predefined settings (ex. 20, 25 35, 50) just press the bookmarklet again.

to change the number of posts per page in the code, copy the code to a text editor and press ctrl-F for the find option; look for "35" and replace 35 with the number of posts you'd prefer and add the bookmarklet to your browser.

What the Bookmarklet Does on a XenForo-Compatible Forum

This bookmarklet allows you to quickly switch the number of posts displayed per page in thread view between 15 and 35 posts per page. This is useful for fixing a known XenForo bug where some thread pages fail to load properly when using certain post-per-page settings.


How It Works (Step-by-Step)

1️⃣ Loads the Preferences Page

  • When you click the bookmarklet, it first makes a request to your account preferences page (/account/preferences).
  • It does this in the background without opening a new tab or navigating away from your current page.

2️⃣ Reads Your Current Setting

  • The script extracts the current posts-per-page setting from the page’s form data.
  • If your setting is already 15 posts per page, it will change it to 35 posts per page.
  • If it is anything other than 15, it will change it back to 15 posts per page.

3️⃣ Submits the Updated Setting

  • The script then sends a request to update your preference on XenForo’s server.
  • This is the same as manually changing it via the forum settings page, but done instantly in the background.

4️⃣ Shows a User-Friendly Notification

  • A small toast notification appears in the top-right corner of your screen.
  • It confirms whether the setting change was successful or failed.
  • The notification disappears after a few seconds, so it doesn’t clutter your screen.

5️⃣ Reloads the Page

  • If the setting change was successful, the script automatically reloads the page after a short delay.
  • This ensures that XenForo applies the new post count setting without requiring manual action.

Why This is Useful

✅ Fixes the XenForo Thread Loading Bug

  • Some XenForo forums experience issues where certain thread pages don’t load properly when using more than 15 posts per page.
  • This bookmarklet allows you to instantly switch to 15 posts per page to fix the issue.
✅ Lets You Toggle Back to 35 Posts Easily

  • If you prefer seeing more posts per page, running the bookmarklet again switches back to 35 posts per page automatically.
✅ Saves Time (No Manual Navigation Needed)

  • Normally, you would have to navigate to account settings, find the option, change it, and save the setting.
  • With this bookmarklet, everything happens in one click.
✅ Non-Destructive – No Other Preferences Are Changed

  • The script only modifies the posts-per-page setting and leaves all your other preferences untouched.
✅ Works in Dark Mode and Light Mode

  • The toast notification is styled to be readable in both dark and light themes on the forum.

How to Use the Bookmarklet

1️⃣ Copy the Code (from my previous response).
2️⃣ Create a New Bookmark in your browser.
3️⃣ Paste the Code into the URL Field (in the bookmark's settings).
4️⃣ Click the Bookmark When Needed on any XenForo forum page.


Final Summary

This bookmarklet is a one-click solution to instantly fix XenForo thread page loading issues by toggling between 15 and 35 posts per page. It automates the process, shows clear notifications, and saves you time from manually adjusting settings.



Below is an updated bookmarklet that toggles your posts‑per‑page setting between 15 and 35. This version uses brief, styled toast notifications designed to be legible in both light and dark modes. It fetches your current preferences form (extracting the CSRF token and all necessary fields), toggles the value of the posts‑per‑page setting, then POSTs the updated form back to your account preferences before reloading the page.



To install, create a new bookmark and paste the entire code (on one line) into the bookmark’s URL field:




How It Works​


  1. Toast Notifications:
    The showToast function creates a fixed-position container (if not already present) and appends a styled message box. The styling uses semi‑transparent backgrounds and white text to ensure readability in both light and dark modes.
  2. Fetching Preferences:
    The bookmarklet loads your preferences form from /account/preferences, then uses a DOMParser to extract the form (which includes your CSRF token and other necessary hidden fields).
  3. Toggling the Setting:
    It checks the current value of dpp_custom_config[posts]. If it’s "15", it sets it to "35"; otherwise, it changes it to "15".
  4. Submitting the Update:
    The updated FormData is POSTed back to /account/preferences with the proper credentials and headers.
  5. Reloading:
    Upon success, a toast confirms the update before reloading the page.

This bookmarklet should work for XenForo installations where the posts‑per‑page setting is stored as shown in your provided HTML. Adjust the selectors or endpoint if your installation differs.


tBpRvod.gif
 
Last edited:
Top