Author |
Topic  |
kreijns
Starting Member
1 Posts |
Posted - 11 October 2002 : 06:03:15
|
Hi,
we are using Snitz here at the Open Universiteit Nederland. One issue that we study is group communication (flaming, disinhibited behavior and so on). Is there a possibility preventing even the owners of the messages to delete or to edit their messages. We, namely, have to log all messages.
Karel Kreijns |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 11 October 2002 : 06:55:59
|
You need to edit some code to do that. I'm just guessing, because I haven't tried it, but you may try to change the chkUser function in inc_common.asp, so that it will never return the value 2. Change it so that when it now returns 2, it will return 1 after your change.
I don't know whether this is enough, but you can always try and let me know. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 11 October 2002 : 07:19:06
|
File inc_func_common.asp
Find the following statements around Lines 900-901
if (rsCheck("MEMBER_ID") & "" = fAuthor & "") and (cLng(rsCheck("M_LEVEL")) <> 3) then
chkUser = 1 '## Author
Modify as below
if (rsCheck("MEMBER_ID") & "" = fAuthor & "") and (cLng(rsCheck("M_LEVEL")) <> 3) then
chkUser = 2 '## Author
Ruirib, mLev = 1 is for Author (Edit/delete Priveleges for own Posts) mLev = 2 is Normal User (No Edit/delete priveleges)
|
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 11 October 2002 : 07:28:28
|
quote: Originally posted by GauravBhabu
Ruirib, mLev = 1 is for Author (Edit/delete Priveleges for own Posts) mLev = 2 is Normal User (No Edit/delete priveleges)
Gaurav,
Hmmm... Funny thing. I was convinced it was the other way around, and I'm almost positive I had seen this somewhere.
For this version you seem indeed to be right. Don't know where I found that, but I have posted about this several times... |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 11 October 2002 : 07:52:12
|
It has always been like that. |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 11 October 2002 : 08:00:35
|
Yeah, just checked that on 3.3.05. I don't know how I got a different idea...
Anyway, just changing the value returned by chkUser won't do it. The mlev value is not checked to enable the icon that allows post editing. Instead a comparison is made between the current MemberID and the Id of the topic or reply author.
I guess it will mean a lot more code changes to all the pages where the edit icon is shown (active.asp, topic.asp, forum.asp) and even to post.asp. A lotta changes indeed...
|
Snitz 3.4 Readme | Like the support? Support Snitz too |
Edited by - ruirib on 11 October 2002 08:09:37 |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 11 October 2002 : 08:27:04
|
quote: Instead a comparison is made between the current MemberID and the Id of the topic or reply author
That is design error. IMO that should be corrected.
Anyway, Following statements in pop_delete.asp also need to be changed
chkUser5 = 1 '## Author
chkUser3 = 1 '## Author
As below
chkUser5 = 2 '## Author
chkUser3 = 2 '## Author
This will prevent deletion of posts by authors.
|
 |
|
richfed
Average Member
  
United States
999 Posts |
Posted - 22 November 2002 : 05:44:29
|
Doing this will still allow moderators to edit/delete, correct?
I am wondering if it is possible to allow the privledge by user ID. In other words, after a user has "proven" themselves a responsible member of the forum, allowing them to edit/delete their own posts. Up to that point - to be determined by the Admin - they can't.
Is that a plausible function? |
Rich [size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1] |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 22 November 2002 : 07:08:09
|
The way I changed it, moderators can still edit/delete (I think ). |
 |
|
Lussypoo
Starting Member
26 Posts |
Posted - 22 November 2002 : 07:29:27
|
Is it possible to allow the author to edit but not delete their posts? |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 22 November 2002 : 07:46:35
|
Yes it is possible. Look at my earlier post. I have not tested it but should work. |
 |
|
Lussypoo
Starting Member
26 Posts |
Posted - 23 November 2002 : 01:48:40
|
As far as I can tell it completely denies you editing AND deleting from a regular account. I just wish they could still edit. Thanks though! |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 23 November 2002 : 02:01:59
|
I altered mine so they can still edit, just not delete. I'll dig up the changes I made & post here |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 23 November 2002 : 04:16:24
|
OK, test this out but I think it's all I did to retain the edit privilege for normal members, but NOT have delete privilege.
Changes are made ONLY to pop_delete.asp
approx. Line 728:
Response.Write("Only the Author, Moderators and Administrators can delete Replies.") change to
Response.Write("Only Moderators and Administrators can delete Replies.")
approx .Line 800
if cLng(rsCheck("MEMBER_ID")) = cLng(rsCheck("T_AUTHOR")) and cLng(rsCheck("T_REPLIES")) < 1 then
chkUser5 = 1 '## Author
else
change to
if cLng(rsCheck("MEMBER_ID")) = cLng(rsCheck("T_AUTHOR")) and cLng(rsCheck("T_REPLIES")) < 1 then
chkUser5 = 2 '## Author
else
approx. Line 838
if cLng(rsCheck("MEMBER_ID")) = cLng(rsCheck("R_AUTHOR")) then
chkUser3 = 1 '## Author
else
change to
if cLng(rsCheck("MEMBER_ID")) = cLng(rsCheck("R_AUTHOR")) then
chkUser3 = 2 '## Author
else
I think that is all that is needed  |
 |
|
gareth_moore_2000
Junior Member
 
United Kingdom
262 Posts |
Posted - 24 November 2002 : 10:03:00
|
GauravBhabu: your suggestions dont work at all (version 3.4.03)
laser: that does work, tho it still shows the delete icons in forum and topic.asp ! |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 24 November 2002 : 15:45:45
|
You're right Gareth, my aim was just to remove the privilege. I wanted the icons left there for the moderators and admin and I didn't bother figuring out how to remove them for normal members. |
 |
|
Topic  |
|