word game?

Castelnau RB Pyrenée, France(Zone 8a)

Hi, I've tried four times to add to the word game in J&C, but nothing happens. I tried the preview and it showed in that but nothing is coming up on the thread itself.
I've posted there before OK.......

........ah - have you set it not to accept a word that's been used before? If so very clever!


This message was edited Monday, Dec 9th 2:46 AM

Yes, you got it. It looks for duplicate postings, and doesn't post the duplicate. In case of short posts, it's easy to "Dup" yourself. :)

Castelnau RB Pyrenée, France(Zone 8a)

Aaah - so not just on that thread, but on any forum?
Coooooooool!!

Yep, that's right. All forums. It happened a couple years ago when someone's browser got stuck and it get re-posting the same post over and over again, a dozen times or so. So, I put the dupcheck in and it's worked well ever since! :)

dave

Castelnau RB Pyrenée, France(Zone 8a)

Oh well, when I want to cheat and use the same word again in the christmas game, i'll just have to add a :) or something LOL ;)

Well, I think it only looks for dups in the past 24 hours. So, if you wait 24 hours, you can once again post the same content (I think).

dave

Castelnau RB Pyrenée, France(Zone 8a)

Longer than that.
1st was Dec 7th 12.33am. Posted it again Dec 9th 02.40isham
:)

Alright, I was wrong. :) Perhaps it goes back through all the old posts.

Castelnau RB Pyrenée, France(Zone 8a)

Sharp intake of breath! Ooooh I'll have to be crafty to cheat then LOL :)

Toadsuck, TX(Zone 7a)

No cheating Hillary!! It's Christmas after all! Love ya!



"eyes"

Thumbnail by eyesoftexas
Castelnau RB Pyrenée, France(Zone 8a)

LOLOL "eyes" Ooops got caught ;-D

and unlike H Clinton, I only have one l in Hilary ;~)
you too eyes
H

Toadsuck, TX(Zone 7a)

Good..............I don't want ya ever being anything like her!! Now, let's go play!!

"eyes"

Spicewood, TX(Zone 8b)

Dupcheck? Isn't that the Solomon's landlord on Third Rock?

Dupcheck is what I describe as a "duplicate check". I assign a variable to '$dupcheck' and call my check function. If it returns a 1, then I know this is a duplicate.

So, I end up saying (in my script):

$dupcheck = Check_for_dup($forumpost);
if (! $dupcheck) {
// post away //
} else {
// It's a duplicate post, so ignore it. //
}

Does that clear things up? :-)

Dave

Toadsuck, TX(Zone 7a)

What ya got in yer eggnog Dave??? :)


"eyes"

Thumbnail by eyesoftexas
Matthews, MO(Zone 6b)

Dupcheck is the landlord off Third Rock! "eyes" it does look like his fingers been in trouble. :))

Spicewood, TX(Zone 8b)

LOL! I was just funnin', Dave. Thought it was a cute coinkee-dink. *Big, goofy grin!*

This message was edited Monday, Dec 9th 8:05 PM

Well, if you read it, it does actually make sense. :)

Grove City, OH(Zone 6a)

I love reading other people's programming. Thanks for sharing a tiny bit of yours :D

I often make up really bizarre variable names after a program is running, just to give other programmers a good grin.

Well, lupine, if you like that, how's this? It's my recursive category search that I use in the journals, tradelists, and stores.


function PrintParent($catid) {
if (! $names[$catid]) { $names[$catid] = "Untitled"; }
print "($catid) [a href="$SCRIPT_NAME?pcatid=$catid"]$names[$catid][/a] ([a href="./editcat.php?catid=$catid"]Edit[/a])n [UL id="clist"]n";
if ($childlist[$catid]) {
if ($clist = GetArrayFromDaveStr($childlist[$catid])) {
reset($clist); while (list ($foo, $bar) = each ($clist)) {
if ($childlist[$foo]) {
print PrintParent($foo);
} else {
if (! $names[$foo]) { $names[$foo] = "Untitled"; }
print "[LI]($foo) [a href="$SCRIPT_NAME?pcatid=$foo"]$names[$foo][/a] ([a href="./editcat.php?catid=$foo"]Edit[/a])n";
}
}
}
}
}

Grove City, OH(Zone 6a)

Do you have a maximum for number of responses in a thread? That one is going high!!!

No maximum is imposed, so you can nest categories all you want. I've tested through 25 nested categories, but I'm sure it can go into thousands.

dave

Castelnau RB Pyrenée, France(Zone 8a)

nested categories??

Yes, it's just what it sounds - categories inside other categories. This is what makes the journal categories work.

dave

Post a Reply to this Thread

Please or sign up to post.
BACK TO TOP