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

Random Adventures

Started by Light the Hedgehog, Jul 2, 2009 10:21 AM

Previous topic - Next topic

1 Guest

Light the Hedgehog

me; hey, isn't that Shooting Star?

Shooting Star: *is riding the big wave*

Princessofthechaosemerald


Light the Hedgehog

Shooting Star: HI GUYS! long time no see!

Mephiles The Dark Hedgehog

Quote from: Light the Hedgehog on Jul  3, 2009 06:31 AM
Shooting Star: HI GUYS! long time no see!
Shiver: AHHH!!! - falls down through the waves - HELP ME HELP ME!!!!! screamed shiver
Silver: Dont worry son i rescue you! -  grab a surfboard out of no were and picks him up and drags him to shore -
Shiver: im sorry Dad i messed up!
Silver: Dont worry the F*ck River did it
Shiver: Dont worry I promise never to do any crazy thing in the waves
                 KIDS REMEMBER NOT TO SLEEP ON YOUR SURFBOARD OR PEE WITH YOUR PENIS
BECAUSE YOU DIE!
Signature


Light the Hedgehog

Shooting Star:...*jumsp off his surf board*..anyway, no time for relaxing. LOOK! *points at meteor g* Meteor G's come back for it's  revenge!!! >.<

me: MASHIA!

Mashia: *floats over to me* yes?

me: it's time. this time your going to team up with speed.

Mashia: ROGER DAT! *floatst over to speed*

Speed: what?

Mashia: *points at meteor G*

Speed: oh..*grabs mashia* CYBER MERGE! *merges with Mashia*.....

Mashia: *morphs into a dragon head and attatches self to Speed's hand*...your are now..MegaMan!

Speed: *megaman armor appears on him* WHOA! this is sweet!

xaio

*starts falling from the sky* OHSHIWATCHOUT!!!!!(crashes into water) (looses voice from crash) KIRBY!!!!!
entering:kooby
type: ??(has copy ability like kirby)
speacialty: kicking ppl causes him to talk a different launguage. he hold on to languages to help out in his adventure ater on.
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!!!!

Princessofthechaosemerald

Elana:...akward..>.>

Ben The Werehog

ben: *is fighting link*
Signature
so.....................bored...........

Light the Hedgehog

MegaMan (speed): HERE WE GO! *dashes at meteor g..but gets hurt from it's radiation* OOF!

Ben The Werehog

Signature
so.....................bored...........

Light the Hedgehog

OOC: WHOA! SINCE WHEN DID I LET YOU IN HERE, BEN?! YOU ENTERED WITH OTU PERMISSION! WARNING WARNING!RULES OF ROLEPLAYING HAVE BEEN BROKEN BY BEN!  >:( >:( >:(

MegaSpeed: OH SNAP!

Meteor G: DESTROY ALL OF THEM!
KILL THEM ONE BY ONE!
TEAR THEM INTO SHREDS!
THIS WILL BE SO FUN! *sends out a heck load of enemies*

MegaSpeed:....yeah.....we're in some deep crud now.

Ben The Werehog

OOC: oh so you starded hateing me again?
Signature
so.....................bored...........

Light the Hedgehog

OOC: i was just KIDDING! sheesh ben. don't you know sarcasm when you see it?

Ben The Werehog

OOC: ummmmmmmmmm........... OH I DONO!!!!!!!!!!!!!
Signature
so.....................bored...........

Light the Hedgehog

OOC: LOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOL.

MegaSpeed:....*transforms into a different megaman*