Unpaginate phpbbV3 threads

By gollum Last update Jul 7, 2008 — Installed 351 times.

broken on a forum...

in
Subscribe to broken on a forum... 3 posts, 2 voices



Peter Harkins Scriptwright

Howdy, thanks for sharing the code. I tried running it on eg. http://a320.freeforums.org/new-style-psp-confir... with the Included pages set to http://a320.freeforums.org/* but it doesn't work. The console just outputs 'Unpaginator found no items matching "undefined"'.

Any idea how to fix this? I've tinkered with it a bit, checked the XPath queries with FireFinder, and everything looks OK, I can't see where it's breaking.

 
gollum Script's Author

Hi Peter, I re-installed everything ... Johan's consumer script, then this script. Added http://a320.freeforums.org/* to "Included Pages" in "Manage User Scripts", loaded your page, and paginator works ok for me.

Do you have other scripts before this one (higher in the chain) modifying the page at all?

 
Peter Harkins Scriptwright

Got ift fixed, your comment about "higher in the chain" led me to it. I can't write an include line for just the topic list or just the threads, so both were running. But the topic list's selector doesn't work with this theme. It was your Unpaginate phpbbV3 topics that was producing the error message.

I changed one line of code to fix it:
var posts = '//ul[contains(@class,"topics")]/li';

I just removed the bit about a forumbg class, that didn't exist on this forum.

Thanks for your help and for sharing these scripts.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel