Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 17 Oct 2002, 20:05
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Real name: Mathiau
Wink [req] Min, word count to submit post [/req]

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
Reply With Quote
  #2  
Old 17 Oct 2002, 20:20
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser
shouldnt be very hard (at least the char counter):

open newreply.php

find
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

below add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
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.
Reply With Quote
  #3  
Old 17 Oct 2002, 20:29
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.
Reply With Quote
  #4  
Old 17 Oct 2002, 21:02
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser
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.
Reply With Quote
  #5  
Old 17 Oct 2002, 21:10
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Originally posted by Xenon
anotzher disadvantage is that some which haven't enabled javascript won't see that

my code works for all users
True. Maybe a combination of the 2 then. Isn't that how the max char allowed works?
Reply With Quote
  #6  
Old 18 Oct 2002, 13:12
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser
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.
Reply With Quote
  #7  
Old 18 Oct 2002, 14:51
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Real name: Mathiau
^^^^

sweet guys!, okay, shall try this out
__________________
Life isn't short, your just dead for too long
Reply With Quote
  #8  
Old 20 Nov 2002, 16:10
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Real name: Mathiau
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
Reply With Quote
  #9  
Old 20 Nov 2002, 16:17
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser
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.
Reply With Quote
  #10  
Old 21 Nov 2002, 06:23
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Real name: Mathiau
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
Reply With Quote
  #11  
Old 21 Nov 2002, 13:02
Julio Julio is offline
 
Join Date: Oct 2002
Mathiau:

Please let us kow if it works for you using both mods.

a) PHP mod

and

b) Template mod
Reply With Quote
  #12  
Old 22 Nov 2002, 01:07
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Real name: Mathiau
Originally posted by Xenon
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

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 30


also - erwin or Xenon - where exactly should i paste his code in the newreply template?
__________________
Life isn't short, your just dead for too long

Last edited by Mathiau : 22 Nov 2002 at 01:12.
Reply With Quote
  #13  
Old 22 Nov 2002, 12:27
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser
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.
Reply With Quote
  #14  
Old 23 Nov 2002, 06:34
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Real name: Mathiau
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
Reply With Quote
  #15  
Old 23 Nov 2002, 10:52
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 19:10.

Layout Options | Width: Wide Color: