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

ugh i hate school... -_-'

Started by Gleech, Jan 6, 2009 01:13 PM

Previous topic - Next topic

1 Guest

Gleech

because of school im not gonna be on to see all my friends who live in europe, because by the time i can get on the PC, its gonna be like 5 PM CT (on a good day)... before my break ended i could get on all i wanted all day long, but now i have stupid school -_-' so this is kinda a hi for every time im not on in the morning (over here)/after noon (over there)... i may pop up before i have to start doin school (im homeschooled) but i may be playin AC:CF/AC:LGTTC (this is europe's version, i have AC:CF, its pretty much the same)... so yeah, i will be on later in the day (REALLY late for you ppl in europe...), but this doesnt mean i'll stop roleplaying! I'll most likely have a new post by the time you get up in the morning/get on in the day.
Signature

Quote from: SonicFan47 on Dec 16, 2008 08:00 PM
I don't care in the Ryan/Jason debate. I can't tell the difference
but I favor JALEEL WHITE!

werehogsupersonic

who doesn't hate school gleech(cause i hate it)?
Signature
i made this myself

Gleech

Quote from: werehogsupersonic on Jan  6, 2009 01:42 PM
who doesn't hate school gleech(cause i hate it)?
hmm, lemme think: My mom -.-' she said she didnt hate school when she was a kid, i was like, "WHAT!?!?!?!" >.>
Signature

Quote from: SonicFan47 on Dec 16, 2008 08:00 PM
I don't care in the Ryan/Jason debate. I can't tell the difference
but I favor JALEEL WHITE!

shadow the hedghog

i dout like school becas of the work we have to do

Elija2

Quote from: Gleech on Jan  6, 2009 03:28 PM
hmm, lemme think: My mom -.-' she said she didnt hate school when she was a kid, i was like, "WHAT!?!?!?!" >.>

*gasp* It's impossible to like school... or at least impossible to like 100% of it.

Hakudamashi

F*CKING THING SUX  >:(
UTHEY DARE FORCE ME TO LEARN CRAP IN A WELL PLANNED FRCED CHILD LABOUR SEQUENCE AND REFRAIN US FROM GOOD TIMES,HANGIN WITH FRIENDS AND T.V. IN THEIR LAIR >=0
*points at my icon*
Signature
OR ELSE!
Compliments to our Goddess for this piece of superspecialawesome!
DO NOTCLICK!
m'kay

Elija2

Quote from: windlessusher on Jan  6, 2009 04:57 PM
F*CKING THING SUX  >:(
UTHEY DARE FORCE ME TO LEARN CRAP IN A WELL PLANNED FRCED CHILD LABOUR SEQUENCE AND REFRAIN US FROM GOOD TIMES,HANGIN WITH FRIENDS AND T.V. IN THEIR LAIR >=0
*points at my icon*

Not into the pit! It BUUUURRNSS!!!

Tavy

Let me think, if you r gonna be active at 5 PM it means I'll be able to RP whit you at.... (I dunno math, my calculator is gold!) at 01 AM?! OMHG! I hope in the weekends we will chat more time, I hate the timeline here.. :/
Signature
I like to be called 'fat coon', ain't that true? ^^

Reaver77

I actually like school...
I just don't like waking up for it (5:30 am...that should be illegal)
Signature

Tavy

Quote from: Reaver77 on Jan  8, 2009 06:24 AM
I actually like school...
I just don't like waking up for it (5:30 am...that should be illegal)
Can I die now that I heard that?
Signature
I like to be called 'fat coon', ain't that true? ^^

darkness shadow

Quote from: Reaver77 on Jan  8, 2009 06:24 AM
I actually like school...
I just don't like waking up for it (5:30 am...that should be illegal)
you like school...

i only find it bearable because of my freinds there are a real laugh
Signature
supa emeraldz

thnx rival, again
shineh emeraldz =D

Reaver77

Well its not that bad for me...
I have 3 classes at school
All of which are fun, due to either having friends or just cool teachers

Then I go to College for a Web Design class
Which I just use to surf the web and talk to people and whatnot

Then I go home
4 bus rides per day gives me plenty of time to listen to music and get work done...I never have homework

:P
Signature

Hakudamashi

u lucky bastard  >:(
being that look MUST be illegal
Signature
OR ELSE!
Compliments to our Goddess for this piece of superspecialawesome!
DO NOTCLICK!
m'kay

werehogsupersonic

now that is just impossibile no homework im jealous >:(.
Signature
i made this myself

sonicfrenzy

-_-* i know how you fell........ one day i drop a pencil and i tried to pick it up,when i pick it up i got sespended!!!!!!!!!!!!!!!!!  >:(
Signature
<a href="http://tinypic.com" target="_blank"><img src="http://i35.tinypic.com/i2nlsp.jpg" border="0" alt="Image and video hosting by TinyPic"></a> pikagir, or girchu? you decide, LOL WUT!            and DON"T SPAM!! >:(