Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2001
Posts: 83
Member
Member
Offline
Joined: Mar 2001
Posts: 83
Because the member who created a topic can anytime delete it, also if it's now a long topic with hundreds of replies I've make this small hack.

- a member can delete a topic, if he is topic starter, but only if there are no replies
- admins and mods can always delete the topic

Code
code:

Sponsored Links
Joined: Apr 2001
Posts: 94
Member
Member
Offline
Joined: Apr 2001
Posts: 94
Sounds gr8!Big THX,man!

Joined: Jan 2001
Posts: 421
Member
Member
Offline
Joined: Jan 2001
Posts: 421
if you dont want them deleting the posts, why not just not allow thhem to in the CP?

Joined: Jan 2001
Posts: 156
Member
Member
Offline
Joined: Jan 2001
Posts: 156
yea thats what i thought too... i set it to that my members can modify but not delete there post, only admins and mods can do that. thats a normal feature and was in existence in the 5 series as well

Joined: Mar 2001
Posts: 83
Member
Member
Offline
Joined: Mar 2001
Posts: 83
I want allow my members to delete their own posts. If someone thinks he wrote bs, why not deleting this? But they should not delete a complete, maybe long, topic.

If you allow your member to delete posts, the topic starter could always delete other posts with this.

I found this a bad solution in UBB5 and now it's the same in UBB6.

Sponsored Links
Joined: Apr 2001
Posts: 94
Member
Member
Offline
Joined: Apr 2001
Posts: 94
Hack seems to dont work...so ill take the cp solution...

Joined: Feb 2001
Posts: 67
Member
Member
Offline
Joined: Feb 2001
Posts: 67
CLOSE.
if they write bs... thei can alway's edit instead of delete.


What Would UBB look like with out hacks?
Joined: Jun 2001
Posts: 50
Member
Member
Offline
Joined: Jun 2001
Posts: 50
This hack screws up the Subject line when the topic-starter edits the post.

First edit it inserts | between each character. Second time it turns it into a string of asll available characters ("|A|B|C|", "|1|2|3| and so on).

Dont know how or why...it's just one little piece of code.

Oh, and when I try to uninstall it by working backwards, it corrupts the page cuz the line is off somehow.

Other than that, though, it does what it's supposed to.

Joined: May 2001
Posts: 24
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 24
Quote
quote:
Any ideas how to fix that?


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
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)