Previous Thread
Next Thread
Print Thread
Rate Thread
#315694 09/15/2007 9:52 PM
Joined: Sep 2005
Posts: 136
Journeyman
Journeyman
Offline
Joined: Sep 2005
Posts: 136
My UBB needs to have a double posting block. I run an RPG that is turned based and I can't have newbies posting three times in a row because their impatient.

Sponsored Links
Joined: Feb 2007
Posts: 329
Yarp™
Yarp™
Offline
Joined: Feb 2007
Posts: 329
If it's just the newbees, wouldn't correcting them solve the problem?

Update:

Also, describe exactly the situation where somebody is not allowed to post. We cannot make anything when we don't know the exact conditions of the no-go situation.

Last edited by blaaskaak; 09/16/2007 4:54 AM.
blaaskaak #315705 09/16/2007 12:01 PM
Joined: Sep 2005
Posts: 136
Journeyman
Journeyman
Offline
Joined: Sep 2005
Posts: 136
My Role-Playing Game is 'Turn Based'. When a player makes a post, they are required to wait for the next person to respond before they can post again.

I have impatient players who want to play so bad they keep posting in the same thread multiple times in a row instead of waiting their turn.

There was an old mod years ago that would prevent them from posting in the same thread two times in a row.

Kelly Posts
Sarah Posts
Sarah Posts again to add on to first post impatiently

Mod
Kelly Posts
Sarah Posts
Sarah Tries again and is prevented until the next user responds

Joined: Feb 2007
Posts: 329
Yarp™
Yarp™
Offline
Joined: Feb 2007
Posts: 329
That's pretty easy to build in for you.

Is that in all forums of your board, or in specific ones?

And mods/admins are allowed to post twice in a row?

blaaskaak #315711 09/16/2007 3:45 PM
Joined: Sep 2005
Posts: 136
Journeyman
Journeyman
Offline
Joined: Sep 2005
Posts: 136
Admin and mods are find but all of the forums for all members


Sponsored Links
Joined: Feb 2007
Posts: 329
Yarp™
Yarp™
Offline
Joined: Feb 2007
Posts: 329
okay, I'll give it a go. Still have the addpost script in my texteditor for the "post&close" hack I posted earlier today.

blaaskaak #315713 09/16/2007 4:35 PM
Joined: Feb 2007
Posts: 329
Yarp™
Yarp™
Offline
Joined: Feb 2007
Posts: 329
ok, done...

open /scripts/addpost.inc.php

find
Code
	$query_vars = array($Parent,$Main,$post_is_topic,$date,$IP,$Subject,$BodySig,$DefaultBody,$Approved,$Icon,$haspoll,$hasfile,$convert,$posterid,$ParentUser,$addsig,0,$postername,$md5_stamp);

add before
Code
	// -----------------------------------------------------------------------------
// Check if the latest post in this topic is by the same user. If so, deny post.
if (($post_is_topic == 0) && ($user['USER_MEMBERSHIP_LEVEL'] == "User")) {
$query = "
SELECT TOPIC_LAST_POSTER_ID
FROM {$config['TABLE_PREFIX']}TOPICS
WHERE TOPIC_ID = ?
AND TOPIC_LAST_POSTER_ID = ?
";
$sth = $dbh->do_placeholder_query($query,array($Main,$posterid),__LINE__,__FILE__);
while(list($check) = $dbh->fetch_array($sth)) {
$html -> not_right('You cannot post in a topic where the last reply is your own');
}
}

The error message users get is somewhere on the bottom, you can edit that if you want.

blaaskaak #315719 09/16/2007 7:02 PM
Joined: Sep 2005
Posts: 136
Journeyman
Journeyman
Offline
Joined: Sep 2005
Posts: 136
It works, thanks!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)