Author |
Topic |
stone5150
Starting Member
36 Posts |
Posted - 22 May 2007 : 21:00:39
|
I want to set it up so that users can delete their own topics even after other posts have been made.
Did I miss something in the config or is there something I need to change?
I am fairly adept at ASP. While I haven't figured out all of Snitz Forum code, I can edit it well anyway if I know where to look. |
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 22 May 2007 : 22:06:43
|
You didn't miss anything. Its set up so that only Admins and Moderators can delete a topic once posts are made. If I were to hazard a guess, its so that people won't be twats and delete a topic in a huff when someone says something they don't like.
I don't have any clean code in front of me at the moment, so I can't say exactly where to make the changes. I'd guess you'd want to look in forum.asp for where the code calls TopicMemberOptions (and you're probably going to want to look at the function itself too); and you're going to want to look at topic.asp - the exact parts escape me at the moment....
Hope that gets you started. If I get the time I may try to look a little more deeply, but to be honest I haven't had much time to do more than make a few posts and leave. =/ |
|
|
Hermes
Junior Member
Croatia
113 Posts |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 23 May 2007 : 04:21:33
|
... And pop_delete.asp, as well.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 23 May 2007 : 06:19:27
|
quote: Originally posted by Hermes
Errrm. Can not Edit Time Limit Mod > do that.
There you can set limit in minutes, hours, days for users to delete or change their posts.
Not quite what he's looking for. In the base code, if you start a new thread, and I reply, you can't delete the thread any more. He's wanting to change that so you can still delete the thread you started regardless of any replies.
quote: Originally posted by Shaggy
... And pop_delete.asp, as well.
Thanks, I knew I was forgetting something. |
|
|
stone5150
Starting Member
36 Posts |
Posted - 23 May 2007 : 09:52:17
|
Thanks, I will dig around in those 2 files when I get a chance, probably not today tho. If anyone knows what line or string I am looking for that would help greatly as well. |
|
|
stone5150
Starting Member
36 Posts |
Posted - 23 May 2007 : 10:25:59
|
I am not all that worried that people will delete topics in a huff because it is a company bulletin board that shouldn't have any of that sort of discussions anyway. If someone does I am sure someone else will complain to their supervisor and we will deal with it according to established policies. |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 23 May 2007 : 10:34:40
|
Knowing human nature, eventually someone will get into a heated discussion and delete the topic at some point in time (or by accident - ask one of my moderators...). But if you've got the policies in place, and everyone is aware of them, you shouldn't have too much grief dealing with it.
Good luck, and if you come up with a solution before one is posted please post it here so if anybody else ever needs it its available. |
|
|
stone5150
Starting Member
36 Posts |
Posted - 23 May 2007 : 10:52:48
|
We had a Toast forum for several years before this one and policies were put in place for that one as well as the old ones that date back to communication in the form of paper memos (anyone old enough to remember those?).
BTW Snitz Forums are far superior to Toast in so many ways that it is not worth the time to list how many.
If I come up with a solution to it I will post it here.
Anyway, I am off to prepare for a consulting call I have been putting off for too long. |
Edited by - stone5150 on 23 May 2007 11:24:37 |
|
|
stone5150
Starting Member
36 Posts |
Posted - 24 May 2007 : 15:14:43
|
So far I have figured out how to add the delete topic icon back regardless of a post.
topic.asp Line 887 if (AdminAllowed = 1) or (TMember_ID = MemberID and Topic_Replies < 0) then Change to if (AdminAllowed = 1) or (TMember_ID = MemberID) then
Now onto finding permissions. |
|
|
stone5150
Starting Member
36 Posts |
Posted - 24 May 2007 : 15:41:14
|
The permissions prob is in here somewhere I am pretty sure, but I can't find it. Anyone?
|
Edited by - stone5150 on 25 May 2007 10:06:35 |
|
|
stone5150
Starting Member
36 Posts |
Posted - 25 May 2007 : 10:07:36
|
I think it is in the first two IF statements, I have tried different variations but no luck so far. |
|
|
stone5150
Starting Member
36 Posts |
Posted - 30 May 2007 : 14:21:41
|
I haven't had much time to play with this lately.
Anyone have any ideas?
|
|
|
stone5150
Starting Member
36 Posts |
Posted - 11 June 2007 : 15:35:20
|
I figured out that it is this line
if (chkForumModerator(Forum_ID, strDBNTFUserName) = "1") or (mLev = 1) or (mLev = 4) then
I changed it to
if 1 = 1 then
Which works but I can't imagine that it is all that secure, but I can't work out what it should be.
Any ideas? |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 11 June 2007 : 16:26:07
|
I don't think that's the right IF you're looking for anyway... basically its checking to see if you are the topic author (mLev = 1), an Administrator (mLev = 4), or a Moderator for that forum. You'll still want that check in place unless you want to allow anybody to delete the topic. |
|
|
Topic |
|