Appending Posts...

Oct 29, 2012 at 11:01 PM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
Consider this code:

Code:
function publishPost($postMessage, $thisPoster, $lastPoster) {
$flag = $lastPoster === $thisPoster;
if ($flag) {
$lastPost.edit(getContents($lastPost) . $postMessage);
} else {
$newPost = $makePost($postMessage);
}
return $flag ? $lastPost : $newPost;
}

If a user has just posted, and they double post, make that post an edit instead. Is this possible?

I know double posting has not been a problem recently, but this would be a nice feature.
 
Oct 29, 2012 at 11:14 PM
graters gonna grate
"Heavy swords for sale. Suitable for most RPG Protagonists. Apply now!"
Join Date: Jul 2, 2008
Location: &
Posts: 1886
Age: 31
That sounds like a decent idea. Just make sure it marks the thread as unread. Also it'd be nice to notify the user that their "new" post got appended to the old one, so they don't get confused and think the post didn't go through at all.
 
Oct 29, 2012 at 11:59 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3054
This disables intentional bumps after whatever period of time though.
 
Oct 30, 2012 at 12:08 AM
graters gonna grate
"Heavy swords for sale. Suitable for most RPG Protagonists. Apply now!"
Join Date: Jul 2, 2008
Location: &
Posts: 1886
Age: 31
Maybe make the append feature only take effect if the 2 posts are within 24 hours (or some set period of time) of each other?
 
Oct 30, 2012 at 12:25 AM
The Preacher
"Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-BLEIUP"
Join Date: Feb 20, 2011
Location: lost in translation
Posts: 336
Age: 31
The problem is, sometimes double posts are useful (updates for mods for example). Also yeah bumps wouldn't work in that case.

So, what WoC said I guess?
 
Oct 30, 2012 at 2:30 AM
Bonds that separate us
Forum Administrator
"Life begins and ends with Nu."
Join Date: Aug 20, 2006
Location:
Posts: 2850
Age: 33
I think there is actually an option for this, one sec and I'll have a look

EDIT: Yes there is. The reason I've never fiddled with it is because it would kind of make it 'okay' to double post really quickly but still be an offense if one takes too long, which seems a bit unfair.
 
Oct 30, 2012 at 4:07 AM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
Oh yeah... I forgot PHP does not use dot notation for object fields and methods. What a weird language.
 
Nov 13, 2012 at 8:29 AM
Administrator
Forum Administrator
"Life begins and ends with Nu."
Join Date: Jul 15, 2007
Location: Australia
Posts: 6211
Age: 38
Actually it makes more sense to me to use a dot for concatenation than a plus symbol like in javascript.

In php:
'1'+1=2

In javascript:
'1'+1='11'

Testing...

It's implemented.
I set it to work within 99999999999999999999999999999999999999999999 minutes of the previous post, so we should be pretty safe.
 
Nov 13, 2012 at 9:52 AM
Bonds that separate us
Forum Administrator
"Life begins and ends with Nu."
Join Date: Aug 20, 2006
Location:
Posts: 2850
Age: 33
Does it still bump the thread in question? There are legitimate reasons someone might want to dp-bump, e.g. to update their own or group threads with new content.
 
Nov 13, 2012 at 7:01 PM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
So it really works?

EDIT: So it does!
 
Nov 13, 2012 at 7:06 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
I feel as though a great burden has been lifted from me
 
Nov 13, 2012 at 7:19 PM
Lvl 1
Forum Moderator
"Life begins and ends with Nu."
Join Date: May 28, 2008
Location: PMMM MMO
Posts: 3713
Age: 32
No more

double posts

ever
 
Nov 13, 2012 at 7:25 PM
daughter of chivalry
"Bleep, Bloop, Bleep, Bloop"
Join Date: Jun 12, 2009
Location: Edge of the universe
Posts: 1564
Butts

Butts

Incredible
 
Nov 13, 2012 at 9:06 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3054
I am

really excited

Also you should probably decrease 999999... minutes to whatever constitutes a few days, as there are legitimate reasons for DP'ing (or at least for bumping)

Also has this been run on all currently existing double posts?
 
Nov 13, 2012 at 9:35 PM
Based Member
"Life begins and ends with Nu."
Join Date: Dec 31, 2011
Location: United States
Posts: 2314
Age: 27
Question:

Does your post count increase when you do this?

No, it does not!

Also, yeah, I agree with Lace. I think that there are some cases in which double-posting is justifiable. (I.E., when you're releasing a new version of a mod on your dev thread and it's been some days, which I did a few times on the thread for my fourth ending mod.)
 
Nov 13, 2012 at 9:39 PM
The Eternal Darkness
"Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-BLEIUP"
Join Date: Feb 12, 2012
Location: The Enemy of the Truth
Posts: 314
Age: 108
I'm going to be technical here.
9999999999999999 minutes = 6944444444444.444 days.
99999999999999999999999999999999999999999999 = who knows how long.
So basically it's entirely impossible to double post to announce the update of a mod in one's own lifetime, or something like that.

Wow, that is... grim.
 
Nov 13, 2012 at 9:42 PM
Senior Member
"Master using it, and you can have this!"
Join Date: Oct 18, 2012
Location: United States
Posts: 82
Age: 25
Thank god I don't have to worry about double posting now.
 
Nov 13, 2012 at 9:49 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3054
kay so I tested and it does bump, but now we are unable to un-bump
in retrospect I shoulda bumped a less ancient thread
 
Nov 13, 2012 at 9:50 PM
Professional Whatever
"Life begins and ends with Nu."
Join Date: Jan 13, 2011
Location: Lasagna
Posts: 4481
I'd say three days would be a good limit. Maybe five.

Nevermind since it bumps it wouldn't really matter
 
Top