Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Minimum Character Limit Mod & More

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
CalloftheHauntedMaster Posted - 01 December 2006 : 13:37:53
Did an extensive search and wasn't able to locate anything. The server timing out didn't really help...

Anyways, I'm trying to get a mod that'll require at least 10 characters in a post before posting it. Pretty simple. Problem is that I don't know much about snitz coding...

Does such a mod exist? Can someone write it if it does not?



Edit: got another question...

Is there a mod that will allow only gmods and admins to edit a member's profile so as to enable or disable it completely without the particular member being able to ever override that?

http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=50686

^That mod allows members to choose to enable or disable their own avatars. But I want gmods and admins to have that option alone. Kinda like where admins can edit a member's custom title and only they can do that. It's the same thing for avatars only the two options here are enable and disable.

I'm also trying to get the same thing for signatures. Again, enable or disable for every unique member when editing their profiles.<
10   L A T E S T    R E P L I E S    (Newest First)
CalloftheHauntedMaster Posted - 14 December 2006 : 18:23:12
quote:
Originally posted by Jezmeister

i might have some time this weekend if you still need someone to do this.




Absolutely. Please let me know via email or posting here when you can help out with this.<
Jezmeister Posted - 14 December 2006 : 18:16:26
i might have some time this weekend if you still need someone to do this.<
CalloftheHauntedMaster Posted - 04 December 2006 : 16:48:09
quote:
Originally posted by Jezmeister

i'd do it for free but not right now, got too much work, a weekend or something. this place is far too communal to take money lol



Even better. How about you email me at cothm88@gmail.com when you've got some time?

Meanwhile, if anyone else is interested in undertaking this challenge () just let me know.<
Jezmeister Posted - 04 December 2006 : 16:30:49
i'd do it for free but not right now, got too much work, a weekend or something. this place is far too communal to take money lol<
CalloftheHauntedMaster Posted - 04 December 2006 : 16:24:51
quote:
Originally posted by Jezmeister

I think the mod you linked to lets them choose whether they see avatars or not, not whether they can have them.

wouldn't be too hard though, just add an extra field in the avatar table and members table, eg M_AVATAR_STATUS and M_SIG_STATUS or something, in the profile edit page allow admins to set the value of it to 1 or 0 (i suppose you could use on or off but my brain works in binary, and its more simple lol), and then add code around the avatar/sig edit code - let it display if the value is 1 (or 0 and member is admin) and not display if it's 0, you'll also have to add some hidden fields in that case so not as to confuse the database update, just add the fields again as hidden with value "" or whatever you want to display when they can't edit it.




What you're saying makes sense. However, I'm not very coding-smart about these things. Simply put, I code with readme files. If you could help out with that, I'd be much appreciated.
However, I don't want members to have the options of enabling or disabling their sigs and avatars, only admins.

If anyone is willing to do this, I could pay a small fee (under $25) for these codes to be written and added to my server, provided they actually work.<
Jezmeister Posted - 04 December 2006 : 15:39:10
I think the mod you linked to lets them choose whether they see avatars or not, not whether they can have them.

wouldn't be too hard though, just add an extra field in the avatar table and members table, eg M_AVATAR_STATUS and M_SIG_STATUS or something, in the profile edit page allow admins to set the value of it to 1 or 0 (i suppose you could use on or off but my brain works in binary, and its more simple lol), and then add code around the avatar/sig edit code - let it display if the value is 1 (or 0 and member is admin) and not display if it's 0, you'll also have to add some hidden fields in that case so not as to confuse the database update, just add the fields again as hidden with value "" or whatever you want to display when they can't edit it.<
CalloftheHauntedMaster Posted - 03 December 2006 : 12:30:02
Eh, it's alright. As long as it does the intended job.

Anyhow, any ideas on how to enable/disable sigs and avatars by admins?<
dayve Posted - 02 December 2006 : 21:45:45
One thing to keep in mind, you will have an issue with this of someone quotes another person because it will count their text as well. An example where this may be an issue is when someone quotes another poster and they simply use an emoticon (which is something I hate when another poster does)<
CalloftheHauntedMaster Posted - 02 December 2006 : 13:55:55
cripto9t, I added your code and everything seems to be working perfectly. Thank you.

I'll monitor it to make sure nothing was adversely affected, but all seems well. Thanks again!

Now when, can someone please help with the enable/disable sigs and avatars issue?<
cripto9t Posted - 02 December 2006 : 11:53:39
For the minimum character thing

In post_info.asp find this code (close to the top of file)
if MethodType = "Edit" or _
MethodType = "EditTopic" or _
MethodType = "Reply" or _
MethodType = "ReplyQuote" or _
MethodType = "TopicQuote" then
	'## check if topic exists in TOPICS table
	set rsTCheck = my_Conn.Execute ("SELECT TOPIC_ID FROM " & strActivePrefix & "TOPICS WHERE TOPIC_ID = " & Topic_ID)
	if rsTCheck.EOF or rsTCheck.BOF then
		set rsTCheck = nothing
		Go_Result "Sorry, that Topic no longer exists in the Database", 0
	end if
	set rsTCheck = nothing
end if

'set rs = Server.CreateObject("ADODB.RecordSet")


Add this code above it
'## Minimum character mod
'## Change this to number of character you want 
    intMinPostChar = 10
'##

select case MethodType
        case "Topic", "EditTopic", "TopicQuote", "Reply", "Edit", "ReplyQuote"
        postTxt = trim(Request.Form("Message"))
        if len(postTxt) < intMinPostChar then Go_Result "Your post must contain at least " & intMinPostChar & " characters.", 0
end select
<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000 Version 3.4.07