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

sonicfrenzy

Quote from: porkstar on Feb 13, 2009 01:36 PM
i hate it cuz you get a lot of home work that sometimes gives you a headache.
thats one the most reasons way i hate shcool!!!  >:(
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!! >:(

Shadow84786

I hate School because all the students get me in trouble there douche bags
Signature

goku33339


ewan

i HATE school it's a prison for me that i can get out of at 3:30 in the afternoon
lucky i am not a border at the school meaning sleep there

xoshaow3

school is horrible.... theres so many choices... work, work, lunch, work, work, homework, homework, sleep and repeat.

XxfroodyxX

I Wouldent Belive Anyone That Says They Like School :-\
Signature


Super Empra

Quote from: XxfroodyxX on Feb 16, 2009 04:19 AM
I Wouldent Belive Anyone That Says They Like School :-\

What if I like school? I don't but some lessons and teachers are nice/fun.
Signature

If you're reading this, your a NOOB!!!

Know Your ABCs

I like school :) But you have a reason to hate it! That really sucks :(
Signature
_.-'-~...:D"Which secret plan? Why, the one THAT IS A SECRET!" XD Robotnik on "The Adventures of Sonic the Hedgehog":D...~-'-._

525055

School is actually a haven for me. I just wish that all the guys would keep their mouths shut so the teacher could say what she wants to say!

Guyman300

Quote from: sonicfrenzy on Feb  9, 2009 01:32 PM
school is the thing that gets me in trouble for no reason!!

I don't get in trouble too often, but when I do get in trouble it's because  I get sooo bored I have to keep my sanity by throwing something like a broken crayon.
Signature
. . . Hi.

chet

well... i think school was preety nice...
Signature
Your reading my sig
2. Now your saying/thinking thats a stupid fact.
4. You didnt notice that i skipped 3.
5. Your checking it now.
6. Your smiling.
7. Your still reading my signature.
8. You know all you have read is true.
10. You didnt notice that i skipped 9.
11. Your checking it now.
12. You didnt notice there are only 10 facts
O o
/¯/___________________________ _ __/
| ITS OVER NINE THOUSAAAAAAAAAAND!!!
\_\¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯ ¯¯

sonici

Signature
I play ROBLOX and my account name is sonicschall at the sick hangout ROBLOX

Zonic10

School is a prison and place brainwashing facility. Your are forced to learn crap that you won't even use later in life, and end up having terrorists hating your liberal views Dx.

NiGHTS

Quote from: Zonic10 on Jun 14, 2009 04:41 AM
School is a prison and place brainwashing facility. Your are forced to learn crap that you won't even use later in life, and end up having terrorists hating your liberal views Dx.

rite some reasons why i might liek school

1) i get to sleep xD
2) I get entertained by saying something bad about CoD cause all people in my year are obsessed
3) some tachers are ok
4) friends
Signature

Zonic10

Quote from: NiGHTS on Jun 14, 2009 04:52 AM
rite some reasons why i might liek school

1) i get to sleep xD
2) I get entertained by saying something bad about CoD cause all people in my year are obsessed
3) some tachers are ok
4) friends

Darn you are so lucky....