php forum
php mysql forum
php mysql smarty
 
Topic Options
#315694 - 09/15/07 09:52 PM Double Posting
AshtarRose Offline
Journeyman

Registered: 09/22/05
Posts: 137
Loc: Columbus, OH
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.
_________________________
http://www.riddledindarkness.com * Yeah I need the Crazy Mods.

Top
#315701 - 09/16/07 03:31 AM Re: Double Posting [Re: AshtarRose]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
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.


Edited by blaaskaak (09/16/07 04:54 AM)
_________________________

Top
#315705 - 09/16/07 12:01 PM Re: Double Posting [Re: blaaskaak]
AshtarRose Offline
Journeyman

Registered: 09/22/05
Posts: 137
Loc: Columbus, OH
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
_________________________
http://www.riddledindarkness.com * Yeah I need the Crazy Mods.

Top
#315710 - 09/16/07 03:19 PM Re: Double Posting [Re: AshtarRose]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
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?
_________________________

Top
#315711 - 09/16/07 03:45 PM Re: Double Posting [Re: blaaskaak]
AshtarRose Offline
Journeyman

Registered: 09/22/05
Posts: 137
Loc: Columbus, OH
Admin and mods are find but all of the forums for all members

_________________________
http://www.riddledindarkness.com * Yeah I need the Crazy Mods.

Top
#315712 - 09/16/07 03:46 PM Re: Double Posting [Re: AshtarRose]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
okay, I'll give it a go. Still have the addpost script in my texteditor for the "post&close" hack I posted earlier today.
_________________________

Top
#315713 - 09/16/07 04:35 PM Re: Double Posting [Re: blaaskaak]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
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.
_________________________

Top
#315719 - 09/16/07 07:02 PM Re: Double Posting [Re: blaaskaak]
AshtarRose Offline
Journeyman

Registered: 09/22/05
Posts: 137
Loc: Columbus, OH
It works, thanks!
_________________________
http://www.riddledindarkness.com * Yeah I need the Crazy Mods.

Top



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks