Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,476,321
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-24-24 09:02 AM
Guest: Register | Login

Main - Posts by NightKev

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169

NightKev
Posted on 08-28-10 01:50 PM, in tvalidate() Link | Quote | ID: 135000


Cape Luigi
Level: 131

Posts: 4373/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
This will fix it so it won't explode if you have <table>/etc inside of [code] tags.

function tvalidate($str)

{
$l=strlen($str);
$isquot=0; $istag=0; $isneg=0; $iscomment=0; $params=0; $codetag=0;
$t_depth=0;

for($i=0;$i<$l;++$i)
{
if(!strcmp(substr($str,$i,6),'[code]'))
$codetag=1;
if(!strcmp(substr($str,$i,7),'[/code]'))
$codetag=0;

if(($str[$i]=='\"' || $str[$i]=='\'') && $str[$i-1]!='\\')
$isquot=!$isquot;

if($str[$i]=='<' && !$isquot)
{
$istag=1;
$isneg=0;
$params=0;
}
elseif($str[$i]=='>' && !$isquot)
$istag=0;

if($str[$i]=='/' && !$isquot && $istag)
$isneg=1;

if(!strcmp(substr($str,$i,4),"<!--"))
$iscomment=1;

if(!strcmp(substr($str,$i,3),"-->"))
$iscomment=0;

if($istag && !$params && !$iscomment && !strcasecmp(substr($str,$i,5),'table') && !$codetag)
$t_depth+=($isneg==1?-1:1);

if($t_depth<0)
return -1; //disrupture

if($istag && !$params && !$iscomment && $t_depth==0 && !strcasecmp(substr($str,$i,2),'td') && !$codetag)
return -1; //td on top level

if($istag && !$params && !$iscomment && $t_depth==0 && !strcasecmp(substr($str,$i,2),'tr') && !$codetag)
return -1; //tr on top level

if($istag && $str[$i]!=' ' && $str[$i]!='/' && $str[$i]!='<')
$params=1;
}

return $t_depth;
}


____________________

NightKev
Posted on 08-28-10 01:54 PM, in board2 Town Square - Down'n'Up Link | Quote | ID: 135002


Cape Luigi
Level: 131

Posts: 4374/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
do this, bh

Also, you should know that apparently banned users can still post via offline-posting (wasn't this fixed a long time ago? I could've sworn it was...).

____________________

NightKev
Posted on 08-29-10 01:06 AM, in tvalidate() Link | Quote | ID: 135049


Cape Luigi
Level: 131

Posts: 4376/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
Eh, it was screwing up my trying to post an IRC quote (apparently <trackwtf> == <table> ).

____________________

NightKev
Posted on 08-29-10 01:08 AM, in board2 Town Square - Down'n'Up Link | Quote | ID: 135050


Cape Luigi
Level: 131

Posts: 4377/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
Posted by ε
Posted by Nikolaj
Board2 banner
This should be brought back...
Edit: Fixed image

paul's gone though, it's an honest-to-god nostalgic RSI experience
I fixed that for you, hope you don't mind~

____________________

NightKev
Posted on 08-29-10 06:42 AM, in So There have been no pots in the last hour Link | Quote | ID: 135071


Cape Luigi
Level: 131

Posts: 4378/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
bh you screwed up the "posting" filter, the RSI.png is 30 or so pixels too high.

____________________

NightKev
Posted on 08-30-10 03:08 AM, in tvalidate() Link | Quote | ID: 135103


Cape Luigi
Level: 131

Posts: 4379/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
Also, what was wrong with the pasted code? I haven't noticed any problems with it before.

____________________

NightKev
Posted on 08-30-10 03:16 AM, in The Best Video Game Music Contest! - AND THE WINNER IS... Link | Quote | ID: 135104


Cape Luigi
Level: 131

Posts: 4380/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
25: Final Fantasy 6 - Terra's Theme
26: Ys: Order in Felghana - A Searing Struggle
27: Super Mario Galaxy - A New Galactic Empire
28: Golden Sun - Battle! Saturos

____________________

NightKev
Posted on 08-31-10 07:00 AM, in tvalidate() Link | Quote | ID: 135139


Cape Luigi
Level: 131

Posts: 4381/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
Posted by Mega-Mario
And why bother with that tvalidate() thing in first place? If I were you, I'd just throw that overcomplicated headache-inducing shit out, and simply edit/delete offending posts with the moderator powers that are given to me.
Because tvalidate() already exists, and trying to delete a post that's fucking with tables can get complicated.

____________________

NightKev
Posted on 08-31-10 07:02 AM, in So There have been no pots in the last hour Link | Quote | ID: 135140


Cape Luigi
Level: 131

Posts: 4382/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
So how are we supposed to cook without any pots?! The board will starve to death!

____________________

NightKev
Posted on 09-02-10 06:59 AM, in tvalidate() Link | Quote | ID: 135222


Cape Luigi
Level: 131

Posts: 4384/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
My first point still stands, regardless. Why try and fix it after the fact when you don't even have to worry about it in the first place ever?

____________________

NightKev
Posted on 09-02-10 07:02 AM, in board2 Town Square - Down'n'Up Link | Quote | ID: 135223


Cape Luigi
Level: 131

Posts: 4385/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
It's still offset about 30 pixels above the word...

____________________

NightKev
Posted on 09-02-10 07:17 AM, in OBJECTION! Link | Quote | ID: 135225


Cape Luigi
Level: 131

Posts: 4387/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
calm down dude

____________________

NightKev
Posted on 09-02-10 08:17 AM, in board2 Town Square - Down'n'Up Link | Quote | ID: 135228


Cape Luigi
Level: 131

Posts: 4388/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
Repetitive Strain Injury iirc.

____________________

NightKev
Posted on 09-03-10 09:05 AM, in board2 Radio! Link | Quote | ID: 135262


Cape Luigi
Level: 131

Posts: 4389/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
Posted by Nikolaj
You just bumped this thread by 4 months, good job.
It's a sticky thread, therefore bumping is mostly irrelevant. Besides he's completely on topic, unlike you.

sx/Flan/ε, do you even listen to the board2 radio?

____________________

NightKev
Posted on 09-03-10 09:08 AM, in board2 Town Square - Down'n'Up Link | Quote | ID: 135263


Cape Luigi
Level: 131

Posts: 4390/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
MM, I have my font set at the default 75%. There's no way that a 10% difference results in your text being 60+ pixels larger, that's just absurd.

____________________

NightKev
Posted on 09-03-10 09:16 AM, in The 3DS! Link | Quote | ID: 135264


Cape Luigi
Level: 131

Posts: 4391/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
Posted by Mega-Mario
[...]since Nintendo seems so good at security[...]
Clearly you've never visited http://wiibrew.org/.

____________________

NightKev
Posted on 09-05-10 04:31 AM, in The Best Video Game Music Contest! - AND THE WINNER IS... Link | Quote | ID: 135313


Cape Luigi
Level: 131

Posts: 4392/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
29: Ys: Order in Felghana - A Searing Struggle
30: Golden Sun - Battle! Saturos

____________________

NightKev
Posted on 09-07-10 01:18 AM, in happy stuffs thread (post youtubes and stuff here) Link | Quote | ID: 135344


Cape Luigi
Level: 131

Posts: 4393/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
"cooking stop" "dinner making stop"

wat

____________________

NightKev
Posted on 09-08-10 06:44 AM, in The Best Video Game Music Contest! - AND THE WINNER IS... Link | Quote | ID: 135386


Cape Luigi
Level: 131

Posts: 4396/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
Man, I don't know which to pick, they're both kickass songs... I'm tempted to vote for Ys just to balance the vote but... yeah I abstain I guess. Both of them deserve to win.

____________________

NightKev
Posted on 09-09-10 08:24 AM, in board2 Town Square - Down'n'Up Link | Quote | ID: 135444


Cape Luigi
Level: 131

Posts: 4397/4792
EXP: 26225671
Next: 198949

Since: 03-15-07

Last post: 3732 days
Last view: 3644 days
Does Opera really have such a small userbase as compared to Chrome? I would think they would at least be similar; Chrome may be Google's, but Opera has been around for quite a bit longer (though maybe a similar time as freeware, I don't know when Opera actually became free).

____________________
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169


Main - Posts by NightKev

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.256 seconds. (346KB of memory used)
MySQL - queries: 139, rows: 171/177, time: 0.246 seconds.