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/O Code)
 MOD Needed: Bump Counter/Limiter
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

CarKnee
Junior Member

USA
297 Posts

Posted - 12 March 2004 :  09:50:06  Show Profile  Visit CarKnee's Homepage
I have vendors who are constantly editing their posts, without changing the post, just to bump it up to the top of the page.

Has anyone created a bump/edit counter/limiter?

Thanks,
CarKnee

ajhvdb
Junior Member

Netherlands
392 Posts

Posted - 12 March 2004 :  12:27:24  Show Profile
Don't no any mod maybe just a hint where to look; When an admin edits nothing changes in edit times. j
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 12 March 2004 :  16:58:12  Show Profile
Hi Carknee, This probably isn't what you need, because I don't think you can stop them by limiting edits.
They could just copy and paste a new one, right?
Anyway someone might want it, so I'll post it. I wrote and tested this real quick, and it seems to work.
What it does is hide the edit icon from the author (unless they are admin or mod) after 1 edit.
By just hiding the icon they can probably get around it by doctoring up the url.

In topic.asp find these lines around line 194
elseif lcase(strNoCookies) = "1" then
 	AdminAllowed = 1
	ForumChkSkipAllowed = 0
else   
 	AdminAllowed = 0
	ForumChkSkipAllowed = 0
end if

Right after that add this code
if Topic_LastEditBy <> "" then
    if Topic_LastEditBy <> Topic_Author then
        Topic_NoBumpName = getMemberName(Topic_LastEditBy)
    else
        Topic_NoBumpName = chkString(Member_Name,"sqlString")
    end if
    if (AdminAllowed <> 1) and (Topic_NoBumpName = strDBNTUserName) then
        NoBump = 1
    end if 
end if

Then around line 821 find this code
if AdminAllowed = 1 or TMember_ID = MemberID then
		if ((Cat_Status <> 0) and (Forum_Status <> 0) and (Topic_Status <> 0)) or (AdminAllowed = 1) then
			Response.Write	"                       <a href=""post.asp?" & ArchiveLink & "method=EditTopic&REPLY_ID=" & Topic_ID & "&TOPIC_ID=" & Topic_ID & "&FORUM_ID=" & Forum_ID & """>" & getCurrentIcon(strIconEditTopic,"Edit Topic","align=""absmiddle"" hspace=""6""") & "</a>" & vbNewLine
		end if
	end if

Replace that first line of code with this line of code
if (AdminAllowed = 1 or TMember_ID = MemberID) and (NoBump <> 1)then

This is only for the topics. You can add the NoBump variable to replies if you want.

    _-/Cripto9t\-_
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 12 March 2004 :  23:32:27  Show Profile  Visit Etymon's Homepage
Hi CarKnee,

In the TOPICS table there are four fields: T_DATE, T_LAST_POST, T_AUTHOR, and T_LAST_POSTER.

The field T_LAST_POSTER is in the db (Snitz 3.4.03 and 3.4.04 - prior versions not sure), but it not used for anything in the forums that I know of.

I don't have the time to throw this together, but the logic is something to the effect of the following:

if T_AUTHOR = T_LAST_POSTER then

    if T_DATE = T_LAST_POST_DATE then
       Allow the topic
    else
       'Do Nothing'
    end if

end if


Basically, what the above is stating is if the author and the last poster are the same person and if the original post date and the last post date are the same, then show the topic at the top, else do nothing.

Since this is only a proposal there is much more tweaking to this such as actually coding it in, however, I think it is possible to do.

This just addresses the issue of the originating post in a discussion, not replies, so it only deals with the TOPICS table. It probably could also include the REPLY table.

The logic could seek for the authors of both tables dealing with that TOPIC_ID, and if there were no authors other than the originating author, then the topic still would not be allowed to be bumped to the top. Something like:

If R_AUTHOR <> T_AUTHOR then
   Allow the topic
else
   'Do Nothing'
end if

Again, actual code does the trick.

It's been on my mind from time to time to MOD this anyways when I had the chance. Ya gave me somethin' to munch on tonight. LOL!

Cheers,

Etymon

Edited by - Etymon on 12 March 2004 23:54:45
Go to Top of Page

CarKnee
Junior Member

USA
297 Posts

Posted - 15 March 2004 :  09:34:44  Show Profile  Visit CarKnee's Homepage
Thanks for the replies... I have been a bit busy and I cant continue this right now, but I will get back to it!

THanks again!
CarkNee

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 15 March 2004 :  10:13:31  Show Profile  Visit dayve's Homepage
Didn't someone create a mod that you can set a time frame for a member to edit their post and then after that it is non modifiable?

Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 15 March 2004 :  17:18:09  Show Profile
quote:
Originally posted by dayve

Didn't someone create a mod that you can set a time frame for a member to edit their post and then after that it is non modifiable?


I thought that too, I know this has been asked for a few times. I did a few searches the other day and just came up with the requests.

<edit> I found this the other day, I just didn't read far enough.
http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=39699
Anyway the mod posted, turns edit/delete on and off. There's a dead link for a time limit upgrade.
Maybe someone has a copy. </edit>

    _-/Cripto9t\-_

Edited by - cripto9t on 15 March 2004 17:49:38
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07