Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 preventing users deleting/editing their posted msg
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

kreijns
Starting Member

1 Posts

Posted - 11 October 2002 :  06:03:15  Show Profile
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  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 October 2002 :  07:19:06  Show Profile
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)

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 October 2002 :  07:28:28  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 October 2002 :  07:52:12  Show Profile
It has always been like that.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 October 2002 :  08:00:35  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 October 2002 :  08:27:04  Show Profile
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.

Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 22 November 2002 :  05:44:29  Show Profile  Visit richfed's Homepage
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]
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 22 November 2002 :  07:08:09  Show Profile
The way I changed it, moderators can still edit/delete (I think ).
Go to Top of Page

Lussypoo
Starting Member

26 Posts

Posted - 22 November 2002 :  07:29:27  Show Profile
Is it possible to allow the author to edit but not delete their posts?
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 22 November 2002 :  07:46:35  Show Profile
Yes it is possible. Look at my earlier post. I have not tested it but should work.
Go to Top of Page

Lussypoo
Starting Member

26 Posts

Posted - 23 November 2002 :  01:48:40  Show Profile
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!
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 23 November 2002 :  02:01:59  Show Profile
I altered mine so they can still edit, just not delete. I'll dig up the changes I made & post here
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 23 November 2002 :  04:16:24  Show Profile
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
Go to Top of Page

gareth_moore_2000
Junior Member

United Kingdom
262 Posts

Posted - 24 November 2002 :  10:03:00  Show Profile
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 !
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 24 November 2002 :  15:45:45  Show Profile
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.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.55 seconds. Powered By: Snitz Forums 2000 Version 3.4.07