The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
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? <
something like "If forumID = XX and memberID = TMember_ID" I suppose? <
/Tribaliztic
- www.gotlandrace.se -
- www.gotlandrace.se -
نوشته شده در
Am I unclear on what I want done or is this impossible? =)
<
<
/Tribaliztic
- www.gotlandrace.se -
- www.gotlandrace.se -
نوشته شده در
WEll, anything is possible, but I've never seen the code for that.<
نوشته شده در
Tribaliztic, it is doable but it would require some intensive modification of post_info.asp and pop_delete.asp though.<
portfolio - linkshrinker - oxle - twitter
نوشته شده در
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 -
- www.gotlandrace.se -
نوشته شده در
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
نوشته شده در
Okay...
I'll have a look at it, thanks =)
<
<
/Tribaliztic
- www.gotlandrace.se -
- www.gotlandrace.se -
نوشته شده در
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.<
نوشته شده در
uh, laser.. Could you explain that again? =)
<
<
/Tribaliztic
- www.gotlandrace.se -
- www.gotlandrace.se -
نوشته شده در
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 ?
<
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 ?
نوشته شده در
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 -
- www.gotlandrace.se -
Email Member
Message Member
Post Moderation
بارگزاری فایل
If you're having problems uploading, try choosing a smaller image.
پیشنمایش مطلب
Send Topic
Loading...