![]() |
|
|
Thread Tools |
|
#1
|
||||
|
||||
|
Hey all
Was curious, if someone has any free time, pending on how simple this would be To make a hack were there has to be a minimum amount of words / characters in a reply, before it can be posted? So lets say you have to post 30 characters or more, if you don't, when you try to post that reply, you will be told, "sorry, your post has to have at least 30 characters" or something like that...?
__________________
Life isn't short, your just dead for too long No members have liked this post.
|
|
#2
|
||||||||
|
||||||||
|
shouldnt be very hard (at least the char counter):
open newreply.php find
below add:
__________________
Unfortunatelly i am completely out of vbulletin buisness, so i won't upgrade any of my hacks anymore. Everyone who wants to upgrade my hacks or use part of my codes is allowed to do so, without needing any special permission by me anymore. You just have to mention my full name if you want to reuse some of my work, thats all i ask for. No members have liked this post.
|
||||||||
|
#3
|
||||
|
||||
|
Or instead of letting the message go through and redirect to the error template, you can modify the javascript in the template that checks the message length by adding this:
Untested, but should work. Advantage is that a message pops up if the post is too short (just like if it's too long) instead of redirecting the whole page. Disadvantage is that you have to change the code in newreply, newthread and quickreply. ![]() No members have liked this post.
|
||||
|
#4
|
||||
|
||||
|
anotzher disadvantage is that some which haven't enabled javascript won't see that
![]() my code works for all users
__________________
Unfortunatelly i am completely out of vbulletin buisness, so i won't upgrade any of my hacks anymore. Everyone who wants to upgrade my hacks or use part of my codes is allowed to do so, without needing any special permission by me anymore. You just have to mention my full name if you want to reuse some of my work, thats all i ask for. No members have liked this post.
|
|
#5
|
||||
|
||||
Isn't that how the max char allowed works?No members have liked this post.
|
|
#6
|
||||
|
||||
|
yes, you're right, the combination is used for maxchars too
![]() and yes a combination would be best ![]()
__________________
Unfortunatelly i am completely out of vbulletin buisness, so i won't upgrade any of my hacks anymore. Everyone who wants to upgrade my hacks or use part of my codes is allowed to do so, without needing any special permission by me anymore. You just have to mention my full name if you want to reuse some of my work, thats all i ask for. No members have liked this post.
|
|
#7
|
||||
|
||||
|
^^^^
sweet guys!, okay, shall try this out ![]()
__________________
Life isn't short, your just dead for too long No members have liked this post.
|
|
#8
|
||||
|
||||
|
Hey guys
is there any special way i should put both of them together? or just copy and paste one after the other? Also where exactly should i paste this code?
__________________
Life isn't short, your just dead for too long No members have liked this post.
|
|
#9
|
||||
|
||||
|
well, copy and paste them one after th other is impossible.
my change is a codechange to newreply.php erwins instead is a change of the newreply template
__________________
Unfortunatelly i am completely out of vbulletin buisness, so i won't upgrade any of my hacks anymore. Everyone who wants to upgrade my hacks or use part of my codes is allowed to do so, without needing any special permission by me anymore. You just have to mention my full name if you want to reuse some of my work, thats all i ask for. No members have liked this post.
|
|
#10
|
||||
|
||||
|
AHAH okay ke kew - so just put each in it's correct template / file
![]() easy enough! althought knowing me i will be back..lol
__________________
Life isn't short, your just dead for too long No members have liked this post.
|
|
#11
|
|||
|
|||
|
Mathiau:
Please let us kow if it works for you using both mods. a) PHP mod and b) Template mod No members have liked this post.
|
|
#12
|
||||
|
||||
well, i put yours in, but it did not seem to stop anything with less then 15 characters in it, - changed it to 15 from 30also - erwin or Xenon - where exactly should i paste his code in the newreply template?
__________________
Life isn't short, your just dead for too long No members have liked this post.
Last edited by Mathiau : 22 Nov 2002 at 01:12. |
|
#13
|
||||
|
||||
|
hmm, the code is corect, it should work.
have you uploaded the file correctly? also have you tested it in a thread? it won't work for creating new threads, because there you have to edit newthread.php
__________________
Unfortunatelly i am completely out of vbulletin buisness, so i won't upgrade any of my hacks anymore. Everyone who wants to upgrade my hacks or use part of my codes is allowed to do so, without needing any special permission by me anymore. You just have to mention my full name if you want to reuse some of my work, thats all i ask for. No members have liked this post.
|
|
#14
|
||||
|
||||
|
ahaha
silly me! i was doing a new thread! it works - going to the next page - so trying the pop up code now so i got em both in.Do u by chance know where i need to paste Eriwins code...?
__________________
Life isn't short, your just dead for too long No members have liked this post.
|
|
#15
|
||||
|
||||
|
ahh
![]() hmm, just know somewhere in the javascript code where messagelenght is checked, but can't tell more, i'm a javascript noob ![]()
__________________
Unfortunatelly i am completely out of vbulletin buisness, so i won't upgrade any of my hacks anymore. Everyone who wants to upgrade my hacks or use part of my codes is allowed to do so, without needing any special permission by me anymore. You just have to mention my full name if you want to reuse some of my work, thats all i ask for. No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 09:31.




- changed it to 15 from 30
