|
Post by thesuki on Apr 10, 2007 0:00:29 GMT
I've noticed a lot of people--mainly newbies--double posting rather than using the Modify button. The code person on my forum has found a code to stop double posting for all but staff. Would the Mods be interested in adding this code? I can get it from my person and share it.
|
|
|
Post by Celra on Apr 10, 2007 0:05:01 GMT
I think thats a great Idea! I've seen someone triple post yesterday and I told them to edit it and there reply was "I would but I'm to lazy!" and I kinda got annoyed by that I mean its not brain surgery it takes a few minutes!
|
|
|
Post by hoagiegal1970 on Apr 10, 2007 1:07:47 GMT
Yes, please share.
|
|
|
Post by thesuki on Apr 10, 2007 1:41:04 GMT
Okay, she gave me the code. This disables douple posting for all but the specified people. It goes in the Global Footers. The part that's in red is where you have to put in the names of the people you want to allow to double post. In our case, it was the mods, since we only have 4.
<script type="text/javascript"> <!-- /* Prevent double posting - Global footers
Created by Peter */
// Change message here var noDoubleMess = "You are not allowed to double post.";
// Array of usernames that can double post, ie...["admin", "peter"] var canDouble = ["admin", "phantomsiren", "soraoathkeeper", "changeofheart", "nagaina"];
function checkLast(curuser){ var iStaff = false; for(c = 0; c < canDouble.length; c ++){ if(canDouble[c] == curuser){ iStaff = true; break; } } var re = new RegExp("user=" + curuser + "$"); var iTable = document.getElementsByTagName("table"); for(t = 0; t < iTable.length; t ++){ if(iTable.item(t).cellPadding == "4" && iTable.item(t).cellSpacing == "1" && iTable.item(t).innerHTML.match(/>Topic Summary<\//)){ var lastRow = iTable.item(t).rows.item(iTable.item(t).rows.length - 2).cells.item(0); if(!iStaff && lastRow.getElementsByTagName("a").item(0).href.match(re)){ document.postForm.message.value = noDoubleMess; for(e = 0; e < document.postForm.elements.length; e ++){ document.postForm.elements[e].disabled = true; } } } } }
if(location.href.match(/=post/i) && document.postForm){ checkLast(document.cookie.match(/\buser=(\w+)/i)[1]); }
//--> </script>
|
|
|
Post by NumbuhInfinity on Apr 10, 2007 4:16:05 GMT
What about when you double-post in a thread that hasn't been replied to for like, days or weeks and you wanted to revive it to say something new?
|
|
|
Post by numbuheightbitstar on Apr 10, 2007 4:26:06 GMT
I imagine you could just ask someone else to revive it for you.
That's what friends are for.
|
|
|
Post by thesuki on Apr 10, 2007 5:09:37 GMT
Actually, she made a boo boo. That code only disables Quick Reply. This One disables Double Posting for 24 hours. So if no one response for a full day, then you can double post.
|
|
|
Post by Shwoo on Apr 11, 2007 9:43:13 GMT
Added, thanks.
EDIT: It's not working. At least, I don't think it's working.
|
|
|
Post by thesuki on Apr 11, 2007 14:12:00 GMT
The proboards test with the ads seems to be messing it up. ><
|
|
|
Post by Shwoo on Apr 12, 2007 3:21:19 GMT
Or maybe it's because I didn't read the instructions properly. (sweatdrops) Now it should work.
|
|
|
Post by thesuki on Apr 12, 2007 4:50:00 GMT
No, it's the ads. Like I said, my forum had it just before these ad things started going weird. It worked until then.
EDIT: Nevermind. it's working now. ;D
|
|