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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Mod Posted Messages Control
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

GauravBhabu
Advanced Member

4288 Posts

Posted - 19 December 2002 :  08:52:49  Show Profile
Mod Posted Messages Control

Author: Rakesh Jain(GauravBhabu)
Posted: 19 December, 2002
Update: 19 December, 2002 11:34
        01 January, 2003 See Step 9 and Step 10

Support: Help: Mod Posted Messages Control



Features:
  • Allows/Disllows Editing of Posted Messages. (completed)

  • Allows/Disllows Deleting of Posted Messages. (completed)


Note: Both Restriction to edit and restriction to delete posts will be turned on/off together.


Mod Requires editing/addition of new code in following files:
  • config.asp - (Addition - 2 statements)
  • admin_config_features.asp - (Addition - 1 Statement Block - 14 Statements)
  • pop_config_help.asp - (Addition - 1 Statement Block - 15 Statements)
  • active.asp - (Modification - 1 Statement)
  • topic.asp - (Modification - 3 Statements)
  • forum.asp - (Modification - 1 Statement)
  • post.asp - (Addition - 5 Statements)
  • post_info.asp - (Addition - 5 Statements)
  • pop_delete.asp - (Modification - 1 Statement)



Instructions:


Step 1

File: config.asp
Line: 391

Add the following statement

strAllowPostEditing = Application(strCookieURL & "STRALLOWPOSTEDITING")



Line: 127

Add the following statement

Dim strAllowPostEditing



Step 2

File: admin_config_features.asp
Line: 291

Add following statements just below the Line 291


"<tr valign=""middle"">" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right"">" & vbNewLine & _
"  <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
"   <b>Allow Post Editing:</b> " & vbNewLine & _
"  </font>" & vbNewLine & _
" </td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """>" & vbNewLine & _
"  <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
"  On:<input type=""radio"" class=""radio"" name=""strAllowPostEditing"" value=""1""" & chkRadio(strAllowPostEditing,0,false) & "> " & vbNewLine & _
"  Off:<input type=""radio"" class=""radio"" name=""strAllowPostEditing"" value=""0""" & chkRadio(strAllowPostEditing,0,true) & ">" & vbNewLine & _
"  <a href=""JavaScript:openWindow3('pop_config_help.asp?mode=features#allowPostEditing')"">" & getCurrentIcon(strIconSmileQuestion,"","") & "</a>" & vbNewLine & _
"  </font>" & vbNewLine & _
" </td>" & vbNewLine & _
"</tr>" & vbNewLine & _



Step 3

File: pop_config_help.asp
Line: 332

Add following statements just below the Line 332
"<tr>" & vbNewLine & _
" <td bgcolor=""" & strCategoryCellColor & """><a name=""allowPostEditing""></a>" & vbNewLine & _
"  <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strCategoryFontColor & """ >" & vbNewLine & _
"   <b>What does Allow Post Editing do?</b>" & vbNewLine & _
"  </font>" & vbNewLine & _
" </td>" & vbNewLine & _
"</tr>" & vbNewLine & _
"<tr>" & vbNewLine & _
" <td bgcolor=""" & strForumCellColor & """>"  & vbNewLine & _
"  <font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strForumFontColor & """>" & vbNewLine & _
"   Turns On/Off the ability of a member to edit the posted messages." & vbNewLine & _
"   <a href=""#top"">" & getCurrentIcon(strIconGoUp,"Go To Top Of Page","align=""right""") & "</a>" & vbNewLine & _
"  </font>" & vbNewLine & _
" </td>" & vbNewLine & _
"</tr>" & vbNewLine & _



Step 4

File: active.asp
Line: 739

Find the following statement

if (Topic_Status > 0 and Topic_Author = MemberID) or (ModerateAllowed = "Y") then


Modify/Replace the above statement as below:

if (Topic_Status > 0 and Topic_Author = MemberID and strAllowPostEditing = "1") or (ModerateAllowed = "Y") then



Step 5

File: topic.asp
Line:822

Find the following statement

if (AdminAllowed = 1 or TMember_ID = MemberID) then


Modify/replace the above statement to look like as below

if ((AdminAllowed = 1) or (TMember_ID = MemberID and strAllowPostEditing = "1")) then


Line: 619

Find the following statement

if (AdminAllowed = 1 or Reply_MemberID = MemberID) then


Modify/replace the above statement to look like as below

if ((AdminAllowed = 1) or (Reply_MemberID = MemberID and strAllowPostEditing = "1")) then



Step 6

File: forum.asp
Line:860

Find the following statement

if ((Topic_Status > 0 and Topic_Author = MemberID) or (AdminAllowed = 1)) and ArchiveView = "" then


Modify/replace the above statement to look like as below

if ((Topic_Status > 0 and Topic_Author = MemberID and strAllowPostEditing = "1") or (AdminAllowed = 1)) and ArchiveView = "" then



Step 7

File: post.asp
Line: 117

Find the following statement

if strRqMethod = "Edit" or _


Add the following statements just before the above statement


if strRqMethod = "Edit" or strRqMethod = "EditTopic" then
 if mLev <= 2 and strAllowPostEditing = "0" then
  Go_Result "No Permissions to edit the posted messages"
 end if
end if



Step 8

File: post_info.asp
Line: 128

Find the following statement

if MethodType = "Edit" or _


Add the following statements just before the above statement


if (MethodType = "Edit" or MethodType = "EditTopic") then
 if mLev <= 2 and strAllowPostEditing = "0" then
  Go_Result "No Permissions to edit the posted messages." , 0
 end if
end if


Restrict post deletion along with restriction to edit posts Added: 1/1/2003


Step 9

File: topic.asp
Line:652
Find the following statement

if (AdminAllowed = 1 or Reply_MemberID = MemberID) then


Modify/replace the above statement to look like as below

if ((AdminAllowed = 1) or (Reply_MemberID = MemberID and strAllowPostEditing = "1")) then



Step 10

File: pop_delete.asp
Line: 86

Find the following statement
if (chkForumModerator(Forum_ID, strDBNTFUserName) = "1") or (mLev = 1) or (mLev = 4) then '## is Allowed


Modify/replace the above statement to look like as below

if (chkForumModerator(Forum_ID, strDBNTFUserName) = "1") or _
   (mLev = 1 and strAllowPostEditing = "1") or (mLev = 4) then '## is Allowed



Notes(Please Read):


Update Notes:
  • Added changes required for forum.asp

  • Added additional changes required to restrict deletion of posts. 1/1/2003

Edited by - GauravBhabu on 01 January 2003 17:27:11

Ez4arab
Junior Member

479 Posts

Posted - 19 December 2002 :  10:11:17  Show Profile  Visit Ez4arab's Homepage
i have a good idea which is disallow editing after forexample 30 min. this mean member can edit his/her topic after the 30 min he can not do any thing.

Ez4arab web site Ez4arab |
Go to Top of Page

zbenggg
Junior Member

Israel
227 Posts

Posted - 19 December 2002 :  10:15:44  Show Profile
Ez4arab righteous !
this to be very good MOD...

I love Israel
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 19 December 2002 :  10:19:42  Show Profile
Ez4arab, I read about this in another message posted by you. I will like to have more feedback on the Mod before enhancing the existing features or adding more features.
Go to Top of Page

David K
Junior Member

494 Posts

Posted - 19 December 2002 :  10:59:23  Show Profile  Send David K an AOL message  Send David K an ICQ Message  Send David K a Yahoo! Message
There's a glich in your MOD, there's no edit icon in topic.asp and in active.asp, but what about forum.asp and search.asp?
zbenggg noticed it in forum.asp
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 19 December 2002 :  11:10:44  Show Profile
quote:
Originally posted by David K

There's a glich in your MOD, there's no edit icon in topic.asp and in active.asp


David K, I think the glich is in somewhere else. Please try to know the forum code better. Check it again and make sure that you check it yourself.


quote:
Originally posted by David K

but what about forum.asp and search.asp?
zbenggg noticed it in forum.asp



search.asp
Edit Icon? Where?

forum.asp

I will fix that.

Edited by - GauravBhabu on 19 December 2002 11:23:36
Go to Top of Page

David K
Junior Member

494 Posts

Posted - 19 December 2002 :  11:23:33  Show Profile  Send David K an AOL message  Send David K an ICQ Message  Send David K a Yahoo! Message
the first part (active.asp and topic.asp) is the way it's supposed to be!
Go to Top of Page

Ez4arab
Junior Member

479 Posts

Posted - 19 December 2002 :  11:58:16  Show Profile  Visit Ez4arab's Homepage
i think if I am not wrong, you need to add table in the database call it STRALLOWPOSTEDITING otherwise it will not work. you don’t mention do this

[INSERT]
CONFIG_NEW
(C_VARIABLE,C_VALUE)#(' STRALLOWPOSTEDITING ','0')
[End]

Ez4arab web site Ez4arab |
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 19 December 2002 :  12:01:22  Show Profile
Ez4arab, You are not required to do that. It will be created automatically via function SetConfigValue in inc_fumc_admin.asp
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 20 December 2002 :  06:47:12  Show Profile  Visit richfed's Homepage
This is an excellent mod idea & very much needed. I love the edit feature, but it can be, and has been, abused. Do you anticipate any tie-in to membership duration? Or, the ability to assign the edit/delete privilege to individual members ... something along those lines?

Thanks for working on this & providing it here!

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

zbenggg
Junior Member

Israel
227 Posts

Posted - 20 December 2002 :  09:12:19  Show Profile
I wish...

I love Israel
Go to Top of Page

Dave.
Senior Member

USA
1037 Posts

Posted - 24 December 2002 :  00:14:59  Show Profile
I like this MOD, but:
quote:

Features:

Allows/Disallows Editing of Posted Messages. (completed)

Allows/Disallows Deleting of Posted Messages. (Planned)



without the Allows/Disallows for deleting posts, what is the point, I mean I could just delete the post, and write a new one. Seems kind of "semi-useful" but thats just my opinion.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 24 December 2002 :  07:15:20  Show Profile
quote:
Originally posted by Dave6625

I like this MOD, but:
quote:

Features:

Allows/Disallows Editing of Posted Messages. (completed)

Allows/Disallows Deleting of Posted Messages. (Planned)



without the Allows/Disallows for deleting posts, what is the point, I mean I could just delete the post, and write a new one. Seems kind of "semi-useful" but thats just my opinion.



That is the reason I mentioned:> Allows/Disallows Deleting of Posted Messages. (Planned)
Go to Top of Page

Dave.
Senior Member

USA
1037 Posts

Posted - 24 December 2002 :  09:46:39  Show Profile
So.... when do you think it will be available?
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 01 January 2003 :  17:27:52  Show Profile
Updated to restrict deletion of posts.
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 04 January 2003 :  09:35:31  Show Profile  Visit richfed's Homepage
THANKS!

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
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.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07