Author |
Topic |
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 25 January 2006 : 09:38:13
|
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? < |
/Tribaliztic - www.gotlandrace.se -
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 31 January 2006 : 03:22:31
|
Am I unclear on what I want done or is this impossible? =) < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 31 January 2006 : 04:32:07
|
WEll, anything is possible, but I've never seen the code for that.< |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 31 January 2006 : 04:37:43
|
Tribaliztic, it is doable but it would require some intensive modification of post_info.asp and pop_delete.asp though.< |
portfolio - linkshrinker - oxle - twitter |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 31 January 2006 : 05:07:49
|
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...). < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 31 January 2006 : 05:33:29
|
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.< |
portfolio - linkshrinker - oxle - twitter |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 31 January 2006 : 05:44:31
|
Okay... I'll have a look at it, thanks =) < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 31 January 2006 : 05:50:18
|
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
Senior Member
Sweden
1532 Posts |
Posted - 31 January 2006 : 05:52:55
|
uh, laser.. Could you explain that again? =) < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 31 January 2006 : 06:32:41
|
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
Senior Member
Sweden
1532 Posts |
Posted - 31 January 2006 : 06:44:24
|
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 ;) < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
Karel Bata
Junior Member
United Kingdom
122 Posts |
Posted - 28 February 2006 : 08:46:04
|
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
Senior Member
Sweden
1532 Posts |
Posted - 28 February 2006 : 09:01:52
|
I think marcel did something like that on oxle? < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
Karel Bata
Junior Member
United Kingdom
122 Posts |
Posted - 28 February 2006 : 09:22:42
|
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. < |
Edited by - Karel Bata on 28 February 2006 09:23:34 |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 28 February 2006 : 10:05:32
|
Ah, you may have a point there =) Not exactly what I was asking for but the code should be similar... < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
ILLHILL
Junior Member
Netherlands
341 Posts |
Posted - 18 March 2006 : 20:38:20
|
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 < |
CLPPR.com - All The News Only Seconds Away |
|
|
Topic |
|