php forum
php mysql forum
php mysql smarty
 
Topic Options
#154827 - 07/28/02 02:41 PM [6.3.x] [beta] Preventing Users to Reply to Their Own Posts
Gladius Offline
Member

Registered: 03/29/01
Posts: 148
A minor hack request... I need the exact same thing as here: http://www.ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=3&t=000539 , only now for 6.3.1. wink

http://community.infopop.net/2/OpenTopic?a=tpc&s=729094322&f=5733071413&m=4013076036 also has some clues...

Any takers?

Top
#154828 - 07/28/02 04:08 PM Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts
Graeme Offline
Junior Member

Registered: 01/05/00
Posts: 10
Loc: Canada
OK, I'll bite here..

(HOW LONG has it been since I posted at UBBDev??? smile )

Try:
in ubb_new_reply.cgi (circa line 403 in 6.3.1)
# grab last post
@rev_this_topic = reverse(@this_topic);
@last_post = split (/||/, $rev_this_topic[0]);
$last_post_num = $last_post[1];
$last_post_num++;

ADD right AFTER it:
if ($username eq $lastpost[2]) {
&StandardHTML("You cannot reply to this thread again until someone else does.");
}

Should be all you need. (NOTE: StandardHTML calls exit internally so you don't need it again)

(I tried to make it obvious enough over at community without spelling it out.. smile )

Graeme

Top
#154829 - 07/28/02 05:10 PM Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts
Gladius Offline
Member

Registered: 03/29/01
Posts: 148
Doh! Thanks...

Ok, how about expanding on this, if possible, while we're at it. (You didn't think you'd get off so easy, did you? laugh )

Can you insert a timer somewhere that WOULD allow someone to reply to their own post, but only after a certain amount of time passed? Say, 24 hrs... Which would essentially allow one bump every 24 hours. If this would be possible, our users would be overjoyed. Not to mention me. tipsy

Top
#154830 - 07/29/02 03:09 PM Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts
Gladius Offline
Member

Registered: 03/29/01
Posts: 148
Anyone? Come on people, I haven't posted a request here yet that someone couldn't hack together... Don't disappoint me. smile

Top
#154831 - 07/29/02 03:56 PM Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25461
Loc: Texas
It might help if you posts requests in the requests forum, moving there.
_________________________
- Allen wavey
- What Drives You?

Top
#154832 - 01/29/05 10:03 PM Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25461
Loc: Texas
Quote:
Originally posted by Graeme:

OK, I'll bite here..

(HOW LONG has it been since I posted at UBBDev??? smile )

Try:
in ubb_new_reply.cgi (circa line 403 in 6.3.1)
# grab last post
@rev_this_topic = reverse(@this_topic);
@last_post = split (/||/, $rev_this_topic[0]);
$last_post_num = $last_post[1];
$last_post_num++;

ADD right AFTER it:
if ($username eq $lastpost[2]) {
&StandardHTML("You cannot reply to this thread again until someone else does.");
}

Should be all you need. (NOTE: StandardHTML calls exit internally so you don't need it again)

(I tried to make it obvious enough over at community without spelling it out.. smile )

Graeme


Any idea why this wouldn't work in 6.7.x?
_________________________
- Allen wavey
- What Drives You?

Top
#154833 - 01/30/05 06:02 PM Re: [6.3.x] [beta] Preventing Users to Reply to Their Own Posts
1QuickSI Offline
Coder

Registered: 06/10/01
Posts: 705
Loc: CT
Would like to also see some sort of timer for this. But lets make it admin panel configurable.

Can someone copy this to the request forum?
_________________________
...Steven
Hostboard.com
Running UBB v6.1.0.4
Doing what NO other UBB in the world is doing.
The first & only production UBB powered by MySQL.

Top


Who's Online
0 registered (), 21 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
ubb.social
by Placebo
Yesterday at 04:25 AM
Displaying a gif for a paying member
by Iann128
01/06/09 07:04 AM
Restore The "New Topic Is Highlighted" Feature
by hikelite
01/02/09 07:41 PM
Web Hosting
by Pilgrim
01/02/09 04:13 PM
Finishing touches on a UBB migration
by AllenAyres
01/02/09 03:04 PM
Sidebar options?
by Pilgrim
12/26/08 03:40 PM
Legacy Style
by sirdude
12/24/08 07:18 PM
New Mods
Displaying a gif for a paying member
by Iann128
12/29/08 11:44 AM
Legacy Style
by Micky
12/21/08 01:36 PM
ubb.social
by
08/03/06 10:38 AM
Newest Members
bluedthunder, blaqskreen, RAICHU, sebak, BaronDriver
13371 Registered Users
Top Posters
AllenAyres 25461
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks