Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/60806?pagenum=1
05 November 2025, 09:35
Topic
tribaliztic
first poster = moderator?
25 January 2006, 09:38
How can I make (for a certain forum) that the user starting the thread get the permission to edit/delete replies, but ONLY to his own thread?
something like "If forumID = XX and memberID = TMember_ID" I suppose?
<
Replies ...
tribaliztic
31 January 2006, 03:22
Am I unclear on what I want done or is this impossible? =) <
laser
31 January 2006, 04:32
WEll, anything is possible, but I've never seen the code for that.<
MarcelG
31 January 2006, 04:37
Tribaliztic, it is doable but it would require some intensive modification of post_info.asp and pop_delete.asp though.<
tribaliztic
31 January 2006, 05:07
Are you sure Marcel? Couldn't I just include some kind of check like the line I posted where suitable? (ie where there are icons for moderator stuff...).
<
MarcelG
31 January 2006, 05:33
Just showing the icons won't enable the user to actually delete or edit the post.
If that was the case, simulating the link would enable any user to do that, wouldn't it ?
So, in pop_delete.asp (for deleting), post.asp (the edit interface) and post_info.asp (the actual update script after editing) there are checks built in to check if the user doing the modification is authorised to do so.
Those checks would need to be updated as well.<
tribaliztic
31 January 2006, 05:44
Okay...
I'll have a look at it, thanks =) <
laser
31 January 2006, 05:50
Yeah, everywhere you see mlev, you will have to check for topic author instead. Your time might be better invested in writing a function with a boolean return value so that you can check it easily in multiple places.<
tribaliztic
31 January 2006, 05:52
uh, laser.. Could you explain that again? =) <
laser
31 January 2006, 06:32
ROFL .. np.
Most of the code checks for mlev (3-moderator, 4-admin, etc..) to see if "they" can edit the post. If you want the topic author to have moderator control I think the easiest way to do it would be to write a function to replace the mlev check. Maybe you would pass the topic_id to the function and it would return the author_id. Check that against the current member_id and if true then the post can be editted.
Does that help or not ? <
tribaliztic
31 January 2006, 06:44
Ok, at least I understand what you are writing now =) But I don't have the coding skill to do something like that. I'll leave this thread here and if anyone feel an uncontrolled urge to write this function you are welcome ;) <
Karel Bata
28 February 2006, 08:46
This would be a very cool function if used in association with the sub-forums mod - something that allowed someone posting to create their own sub-forum for which they are the moderator. <
tribaliztic
28 February 2006, 09:01
I think marcel did something like that on oxle?
<
Karel Bata
28 February 2006, 09:22
Let me re-phrase that... something that allowed someone posting to create their own sub-forum for which they are then automatically the moderator.
Less work for the webmasters, no?
Marcel's is a paying option. I would guess he sets it up manually for any users.
<
tribaliztic
28 February 2006, 10:05
Ah, you may have a point there =) Not exactly what I was asking for but the code should be similar...
<
ILLHILL
18 March 2006, 20:38
Tnis can be very interesting for my blog thingy to have the author remove comments (replies) from other members, which might be spam or unfriendly.
I'm going to check this tomorrow, to see if I can make something out of it.
Greets, D <
Zuel
19 March 2006, 10:52
I always wanted this feature as well. I created a hidden forum that only members of a certain usergroup can see. Problem is I created a News Mod that pulls the information directly from that forum and displays it on a separate page. I wanted the functionality that only moderators / Admins can start topics while everyone else can only reply. On the other page, it shows the main topic's subject and message. All replies are counted as comments.
If no one attempts then I will try it, but it won't for a while though.
I thought I would create a new column on Forum_Forum Table and specify the number (mLev) that had access to post new threads. 3 = Mod, 4 = Admin, everything else = Normal. I don't know how long it will take since it is just an idea.<
tribaliztic
20 March 2006, 06:43
Yeah, Go Zuel! Go Zuel! =) <
Zuel
22 March 2006, 13:19
I've been looking at the code and it is becoming more understandable as I view it. There are alot of things I can reuse to make this easier.
The pages to edit would be as follows: post.asp -
Going to add the functionality of who can post similar to the poll mod. Normal would be default, allows everyone to post as normal. Depending on whether the admin allows guests or not. Mods | Admins and then just Admins. Just write a lil function to grab the current forum_ID then grab that value isn't hard.
forum.asp -
Alot of variables which are easy to use. AdminAllowed would be the most useful as it already grabs who is and who isn't an admin from cookies, sessions and Mlev.
post_info.asp and pop_delete.asp -
I disagree with Marcel's response for the time being. I do not see a reason to heavily modify these files. Probably add a response of who can edit these files and why but that is about it. These forums, in theory, should act like other forums. If a moderator creates a post then only moderators, original poster and admin can edit the post. And so on.
However, I will find out in detail later on during testing if something does need to be added. Also I got some research and questions to get answered before starting.<
tribaliztic
26 March 2006, 15:45
Hm... I don't think this is what I was asking for..: If a user (any user, not only moderators) start a topic the user will get moderator status on that thread only, IF he starts the topic in that specific forum where this setting is on.<
Zuel
27 March 2006, 11:15
OH boy, did I misread. Scratch everything I said previously.<
tribaliztic
27 March 2006, 18:05
hehe english is not my native language so I suppose I could take some of the blame =) Would what I want be hard to do?
<
Zuel
28 March 2006, 14:37
Your english is fine, fully understandable in all levels. But you can never stop someone from misreading which is what I've been doing alot of lately.
Well MarcelG had it dead on. You will need to modify those files he listed above to add new functions to allow new agruments for topic starters = topic mods for each file that pertains to posting. Alot of work and code duplicating.
As much as this is a good idea, it will require alot of modding and doesn't fit the idea that I misread.<
tribaliztic
28 March 2006, 18:02
I think I'll drop this idea =) Thanks anyways guys!
<