// SZ 2025-11-30 — override SMF expandPages for "..." pagination function expandPages(spanEl, base_link, first_page, last_page, per_page) { try { var per = parseInt(per_page, 10) || 1; // Try to derive the real maximum page count by inspecting the pagination links. var maxPage = 1; var container = spanEl && spanEl.closest ? spanEl.closest(".pagelinks") : null; if (container) { var links = container.querySelectorAll("a.nav_page"); var maxStart = 0; links.forEach(function (a) { var href = a.getAttribute("href") || ""; // Match the last . segment, e.g. topic=15206.7650 var m = href.match(/\.([0-9]+)(?:$|[^0-9])/); if (m) { var n = parseInt(m[1], 10); if (!isNaN(n) && n > maxStart) maxStart = n; } }); if (maxStart > 0) maxPage = Math.floor(maxStart / per) + 1; } // Fallback to SMF-provided last_page if DOM inspection failed. if (!maxPage || maxPage < 1) { var last = parseInt(last_page, 10); maxPage = Math.floor(last / per) + 1; if (!maxPage || maxPage < 1) maxPage = 1; } var input = prompt("Go to page (1-" + maxPage + "):"); if (input === null) return; var page = parseInt(input, 10); if (!page || page < 1 || page > maxPage) return; var start = (page - 1) * per; if (start < 0) start = 0; var url = base_link; // base_link may be an HTML string contain an tag; try to extract href try { var tmp = document.createElement("div"); tmp.innerHTML = base_link; var a = tmp.querySelector("a"); if (a && a.getAttribute("href")) { url = a.getAttribute("href"); } } catch (err) { url = base_link; } // Replace common SMF patterns with the computed offset if (url.indexOf("%1$d") !== -1) { url = url.replace("%1$d", start); } else if (url.indexOf(";start=") !== -1) { url = url.replace(/;start=\d+/, ";start=" + start); } else if (/\.0(?!\d)/.test(url)) { url = url.replace(/\.0(?!\d)/, "." + start); } window.location.href = url; } catch (e) { // fail silently } }

Love through the internet.

Started by jkid101094, Jun 18, 2009 02:24 PM

Previous topic - Next topic

1 Guest

JetTheHawk

Quote from: Dark Tails on Jun 24, 2009 09:17 AM
Sadly, it is.....
There's games where you can have virtual sex in..

lol it'd be funny if someone put that as a vip download
Signature
NO SIGNATURE

Hakudamashi

Quote from: Dark Tails on Jun 24, 2009 09:17 AM
Sadly, it is.....
There's games where you can have virtual sex in..

my,god ._.

Quote from: JetThehawk on Jun 24, 2009 09:25 AM
lol it'd be funny if someone put that as a vip download
Don't give them ideas
Signature
OR ELSE!
Compliments to our Goddess for this piece of superspecialawesome!
DO NOTCLICK!
m'kay

Dark Tails

Quote from: Elija2 on Jun 24, 2009 09:22 AM
Press up and down repeatedly for great intercourse.
o.o

SuperSonic23

Quote from: Elija2 on Jun 24, 2009 09:22 AM
Press up and down repeatedly for great intercourse.
>_<
Signature
I WUV TEH RED CHAOS EMERALD CUZ RED IS MAH FAV!!

Hakudamashi

Quote from: Elija2 on Jun 24, 2009 09:22 AM
Press up and down repeatedly for great intercourse.
only you could think of something like that :P
Signature
OR ELSE!
Compliments to our Goddess for this piece of superspecialawesome!
DO NOTCLICK!
m'kay

jkid101094

#200
Quote from: Windlessusher on Jun 24, 2009 05:38 PM
only you could think of something like that :P

>:(

You've obviously never meet my faimly....
Signature


Quote from: DracoDraco:  Saber was my bitch LONG before you heard about her.  I introduced you to FSN, loser.  D<
Oh, and still...
ILU JKIDDD

Says you. She likes me more. D<
And ILU2. o3o
IaFNSW.

Elija2


Mephiles

Quote from: Elija2 on Jun 19, 2009 07:18 AM
Well now look who hasn't answered in a couple hours. :P
I have a life, kthnx. pwnt
Signature
let's see, what gets everyone's attention? penis

Elija2

Quote from: Mephiles on Jun 24, 2009 05:53 PM
I have a life, kthnx. pwnt

Well you got me there. *walks outside* The light, it buurns! Oh wait, it's night time.

Mephiles

and I saw that earlier about comebacks. that's a big help to stop arguements. =DDDDDDDDDDDD

*goes to real life now*
Signature
let's see, what gets everyone's attention? penis

Dark Tails

Quote from: Mephiles on Jun 24, 2009 05:56 PM
and I saw that earlier about comebacks. that's a big help to stop arguements. =DDDDDDDDDDDD

*goes to real life now*
I love that game


Elija2

Quote from: Mephiles on Jun 24, 2009 05:56 PM
and I saw that earlier about comebacks. that's a big help to stop arguements. =DDDDDDDDDDDD

*goes to real life now*

Have fun, I'll miss you.

Quote from: Dark Tails on Jun 24, 2009 05:58 PM
I love that game



Man, that MMO is hard. I've already died at least once. Oh wait...

jkid101094

Signature


Quote from: DracoDraco:  Saber was my bitch LONG before you heard about her.  I introduced you to FSN, loser.  D<
Oh, and still...
ILU JKIDDD

Says you. She likes me more. D<
And ILU2. o3o
IaFNSW.

Elija2

Quote from: jkid101094 on Jun 24, 2009 06:01 PM
Where can I get that game? lol
The servers are too full so they no longer accept new members. Try this RPG instead:


jkid101094

Quote from: Elija2 on Jun 24, 2009 06:13 PM
The servers are too full so they no longer accept new members. Try this RPG instead:



Ok...

Elijah2 appeared!

jkid used Death Ray!

Elijah2 took over 9000 damage!

Elijah2 fainted!

jkid gained 0 EXP!

jkid leveled up!

jkid leveled up!

jkid leveled up!

jkid leveled up!

jkid leveled up!

Game error 666. Visit website for more info.





I should real make that! :D
Signature


Quote from: DracoDraco:  Saber was my bitch LONG before you heard about her.  I introduced you to FSN, loser.  D<
Oh, and still...
ILU JKIDDD

Says you. She likes me more. D<
And ILU2. o3o
IaFNSW.