first poster = moderator? - Posted (1665 Views)
Senior Member
tribaliztic
Posts: 1532
1532
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 -
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Senior Member
tribaliztic
Posts: 1532
1532
Am I unclear on what I want done or is this impossible? =)
<
/Tribaliztic
- www.gotlandrace.se -
Posted
Member Locked
laser
Posts: 3859
3859
WEll, anything is possible, but I've never seen the code for that.<
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
Tribaliztic, it is doable but it would require some intensive modification of post_info.asp and pop_delete.asp though.<
Posted
Senior Member
tribaliztic
Posts: 1532
1532
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 -
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
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.<
Posted
Senior Member
tribaliztic
Posts: 1532
1532
Okay... I'll have a look at it, thanks =)
<
/Tribaliztic
- www.gotlandrace.se -
Posted
Member Locked
laser
Posts: 3859
3859
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.<
Posted
Senior Member
tribaliztic
Posts: 1532
1532
uh, laser.. Could you explain that again? =)
<
/Tribaliztic
- www.gotlandrace.se -
Posted
Member Locked
laser
Posts: 3859
3859
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 ? wink<
Posted
Senior Member
tribaliztic
Posts: 1532
1532
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 -
You Must enter a message