// 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 } }

My Baby~

Started by Dracoslythe, Jul 10, 2009 09:56 AM

Previous topic - Next topic

1 Guest

Dracoslythe


That silver thing is my old tablet, a 4x3
That thing is four years old, can you believe it?

That gray thing is my new tablet, 8x6~  <3333
Can't wait to use it~
Signature



Princessofthechaosemerald

Quote from: Dracoslythe on Jul 10, 2009 09:56 AM

That silver thing is my old tablet, a 4x3
That thing is four years old, can you believe it?

That gray thing is my new tablet, 8x6~  <3333
Can't wait to use it~
that is an effing large tablet i cant wait to steal it it's wonderful and a cant wait to see your work useing the tablet (i dunno if that came out right)

Dracoslythe

Quote from: Elana-The-hedgehog on Jul 10, 2009 09:59 AM
that is an effing large tablet i cant wait to steal it it's wonderful and a cant wait to see your work useing the tablet (i dunno if that came out right)
bad news.
it's fucking up.  >_>
Signature



Princessofthechaosemerald

Quote from: Dracoslythe on Jul 10, 2009 10:07 AM
bad news.
it's fucking up.  >_>
*dramatic gasp* o.o b-but it's owned by the almighty Dracoslythe it shouldent be Fucking up D:

Elija2

You call it 'your baby'?

HOLY CRAP YOU HAVE THE SAME PRINTER AS ME!

Princessofthechaosemerald

my printer needs ink D:

Dracoslythe

Quote from: Elija2 on Jul 10, 2009 10:11 AM
You call it 'your baby'?

HOLY CRAP YOU HAVE THE SAME PRINTER AS ME!
lol yes.  My tablet is my lifeline.

AND LOL
Signature



Princessofthechaosemerald

Quote from: Dracoslythe on Jul 10, 2009 10:14 AM
lol yes.  My tablet is my lifeline.

AND LOL

take away draco's tablet and she dies D:

.....nuff said for now

xaio

4-YEAR OLDS... at least yours doesn't talk  :-X
Signature

T3T
THE BRO SOCIETY!!!
bros:
michael(shiner)
HMS7
jeexx
light
sonic360
wind
wtf? i jsut noticed!! RENDEL'S NOT ON HERE!!!
i thank rendel for the sexy pic he drew me!! http://i44.tinypic.com/2hg662d.png
cartoon ver. http://i43.tinypic.com/zj8fly.png

i JIMP'd ~Jizzed In My Pants~ cause
John (same name <333)
Draco
jkid
rendel
(runnin outta space so you know who you are) ARE EPICALL!!!!