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 Offline

I type Like navaho

Registered: 03/10/00
Posts: 25565
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 Offline

I type Like navaho

Registered: 03/10/00
Posts: 25565
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 (), 51 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Ubb - Buy It!
best forum software
Latest Posts
[7.2.1] - Naked shoutbox
by MithofOT
08/31/10 01:58 PM
[7.5.5] getting $_COOKIE to work
by gtho4
08/29/10 12:28 AM
Jelsoft Bought
by AllenAyres
08/20/10 04:44 PM
UBBDev Now Running Threads 7.5.6
by AllenAyres
08/18/10 07:59 PM
How do I add another field to the profile page?
by Gizmo
08/05/10 09:24 AM
UBB developer needed.
by AllenAyres
08/03/10 02:57 PM
New Mods
How do I add another field to the profile page?
by Vee
08/05/10 06:02 AM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
Newest Members
stevebrummie, Neronrg, Vee, dessy, Manish
13533 Registered Users
Top Posters
AllenAyres 25565
JoshPet 11330
Rick 8373
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438
(Views)Popular Topics
Known public proxy servers 1224347
Finished-[6.5.2] Games Arcade Deluxe v1.9 375009
Integrated Index Page (IIP) 5.3.1 345193
Integrated Index Page (IIP) 5.1.1 322504
TLD Bv2.1 Released - Threads Links Directory 301614
[6.0x] Who's Online 4.0.0 [Finished] 267207
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 244632
[6.3.x] [beta] Hit Hack 2.0 197599
[7.x] Gizmo's Embedding BBCode (Pre UBB.T7.3) 173774
FlashChat & UBB.threads 169520
Forum Stats
13533 Members
59 Forums
37128 Topics
290448 Posts

Max Online: 686 @ 06/28/07 07:04 AM
Featured Member
Registered: 07/03/01
Posts: 811

 

 

 
fusionbb message board php hacks