Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2001
Posts: 83
X
XNet Offline OP
Member
OP Offline
Member
X
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
S
Member
Offline
Member
S
Joined: Apr 2001
Posts: 94
Sounds gr8!Big THX,man!

Joined: Jan 2001
Posts: 421
B
Member
Offline
Member
B
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
R
Member
Offline
Member
R
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
X
XNet Offline OP
Member
OP Offline
Member
X
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
S
Member
Offline
Member
S
Joined: Apr 2001
Posts: 94
Hack seems to dont work...so ill take the cp solution...

Joined: Feb 2001
Posts: 67
C
Member
Offline
Member
C
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
O
Member
Offline
Member
O
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
S
Junior Member
Offline
Junior Member
S
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
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,557
Posts293,856
Members13,847
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,819
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 70
Gizmo 16
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20210915)
Responsive Width:

PHP: 7.3.29 Page Time: 0.016s Queries: 32 (0.009s) Memory: 0.8228 MB (Peak: 0.8746 MB) Data Comp: Zlib Server Time: 2021-12-06 15:11:04 UTC
Valid HTML 5 and Valid CSS