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: 25452
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: 25452
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 (), 22 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks