Author |
Topic |
|
CalloftheHauntedMaster
Junior Member
289 Posts |
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.< |
This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums! |
Edited by - CalloftheHauntedMaster on 06 December 2006 10:10:10 |
|
cripto9t
Average Member
USA
881 Posts |
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 < |
_-/Cripto9t\-_ |
Edited by - cripto9t on 02 December 2006 11:56:14 |
|
|
CalloftheHauntedMaster
Junior Member
289 Posts |
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?< |
This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums! |
|
|
dayve
Forum Moderator
USA
5820 Posts |
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)< |
|
Edited by - dayve on 02 December 2006 21:46:44 |
|
|
CalloftheHauntedMaster
Junior Member
289 Posts |
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?< |
This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums! |
|
|
Jezmeister
Senior Member
United Kingdom
1141 Posts |
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
Junior Member
289 Posts |
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.< |
This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums! |
|
|
Jezmeister
Senior Member
United Kingdom
1141 Posts |
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
Junior Member
289 Posts |
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.< |
This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums! |
|
|
Jezmeister
Senior Member
United Kingdom
1141 Posts |
Posted - 14 December 2006 : 18:16:26
|
i might have some time this weekend if you still need someone to do this.< |
|
|
CalloftheHauntedMaster
Junior Member
289 Posts |
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.< |
This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums! |
|
|
|
Topic |
|