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
word game?
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. :)
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
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
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.
Sharp intake of breath! Ooooh I'll have to be crafty to cheat then LOL :)
LOLOL "eyes" Ooops got caught ;-D
and unlike H Clinton, I only have one l in Hilary ;~)
you too eyes
H
Good..............I don't want ya ever being anything like her!! Now, let's go play!!
"eyes"
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
Dupcheck is the landlord off Third Rock! "eyes" it does look like his fingers been in trouble. :))
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. :)
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";
}
}
}
}
}
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
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
More DG Site Updates Threads
-
Site Update 6/18/2025
started by IBtyen
last post by IBtyenAug 25, 202518Aug 25, 2025 -
Site Update 9/8/2025
started by IBtyen
last post by IBtyenSep 09, 20250Sep 09, 2025 -
Site Update 10/1/2025
started by IBtyen
last post by IBtyenMar 31, 202629Mar 31, 2026 -
DG Site Update 3/23/2026
started by IBtyen
last post by IBtyenMar 23, 20260Mar 23, 2026
