Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Just a simple question really...

Is there a hack that would prevent a user from replying in the same topic two or three times in a row before anyone else manages to reply? I know of a couple hacks that prevent IDENTICAL double posts, but that's not our main problem. We have a bunch of stupid newbies on the boards that don't read our rules about no double posts and we have to intervene constantly.

So... Does anyone know of a hack that could do this?

Sponsored Links
Joined: Apr 2001
Posts: 57
Member
Member
Offline
Joined: Apr 2001
Posts: 57
I don't think there are any existing hacks but try this out. This will not let anyone reply if they are already the last to reply to a thread. Make a backup of postings.cgi before trying this of course! Let me know if how it goes.

FIND in postings.cgi:
$lastpost = $revreplier[0];
@lastpost = split(/||/, $lastpost);

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

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
There is the "No DUBBEL posts" hack in the database. It prevents users from posting after there User Name has posted. Use that. wink

Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Thanks for the replies.

treszoks, I'm going to try it right away. I'll let you know.

Lord Dexter, the three or four hacks such as that that are linked to in the database have no download links and the discussion thread links posted are dead. I mailed the people running this board about it but no one replied...

Joined: Sep 2000
Posts: 1,304
Addict
Addict
Offline
Joined: Sep 2000
Posts: 1,304
Moving to Questions

Sponsored Links
Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
treszoks, you rock. It works like a charm! smile
Easiest hack I've ever installed, but oh so what we needed for ages... 5 stars for ya. wink

Now just an additional question... Is there any (easy) way to have it allow mods/admins to reply twice in a row? It's no biggie, we don't really need it, just thinking of expanding this hack a bit further...

[ July 09, 2001 04:29 PM: Message edited by: Gladius ]

Joined: Nov 2000
Posts: 123
CT Offline
Member
Member
Offline
Joined: Nov 2000
Posts: 123
Just aiming for a couple of stars smile

Code
code:

Can I get a rating now too??? lol (This better work though)

Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Well I think it would have worked in normal circumstances (it did prevent everyone from posting doubles), but it didn't allow me (admin) either. But that's due to the fact that I have a bunch of other hacks installed, custom avatars & titles being among them. So where my status should normally be is a title, a
, some more text, a

, and an avatar picture... Which is a bit of a problem.
I tried inserting that whole code part into the "Admin" line, but it didn't work.

Thanks for the effort though. wink

Joined: Nov 2000
Posts: 123
CT Offline
Member
Member
Offline
Joined: Nov 2000
Posts: 123
Well, this $profileinfo[8] says your status is at profilefield 8. If you changed that, you could point it to the right profilefield.

Just look at your memberfile in the membersdir, and count the lines from above. Where you see the line 'administrator', that number should be put at $profileinfo[number]

But I have been rated! lol

Cheers,

CT.

Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Yea, I figured it out later, doh.

Thanks. wink

Sponsored Links
Joined: Apr 2001
Posts: 57
Member
Member
Offline
Joined: Apr 2001
Posts: 57
I'm glad it worked.

Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Hope the mods won't kill me for this... tipsy

Can any of you helpful people check out https://www.ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=3&t=000541 please?

I'm in need of another hack and no one seems to be able to help me there.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)