Go Back   PHP Link Directory Forum > PHP Link Directory (phpLD) > Mods and contribution Discussion > Mod Requests

Mod Requests Have a suggestion for a mod? Post it here. You may not always receive an answer, but phpLD devs and mod developers do regularly visit this forum. If you MUST get something done, you may need to opt for paid help.

Closed Thread
 
Thread Tools Display Modes
Old 09-22-2005   #1
Nobody
Supporter
 
Join Date: Aug 2005
Location: Sweden
Posts: 218
Default Description length check mod

Does anybody have the code to the mod that goes like this:
"Description requires between xx-xx characters."
Nobody is offline  
Old 09-25-2005   #2
Romario
 
Join Date: Sep 2005
Location: Russia
Posts: 56
Default

Min and Max check.
Romario is offline  
Old 09-25-2005   #3
Nobody
Supporter
 
Join Date: Aug 2005
Location: Sweden
Posts: 218
Default

Exactly, that's what I'm trying to say. Thank you!

Anyone? Jim, you have that mod?
Nobody is offline  
Old 10-22-2005   #4
Nobody
Supporter
 
Join Date: Aug 2005
Location: Sweden
Posts: 218
Default

I think Jim Westergren is using this mod, for instance. Please, I would be very happy of someone posted the mod here?
Nobody is offline  
Old 10-22-2005   #5
Ap0s7le
 
Join Date: Jun 2005
Location: The world
Posts: 816
Send a message via ICQ to Ap0s7le Send a message via AIM to Ap0s7le Send a message via MSN to Ap0s7le Send a message via Yahoo to Ap0s7le Send a message via Skype™ to Ap0s7le
Default

Something like this?
{url no longer in service}


-Casey
__________________
Casey Wilson / Ap0s7le
Freelance Programmer
http://www.ap0s7le.com
Need help with PHPLD? PM me

Last edited by David; 05-30-2009 at 04:40 AM.
Ap0s7le is offline  
Old 10-22-2005   #6
yktan
 
Join Date: Jun 2005
Posts: 353
Default

Beautifully done Casey!
__________________
Greatest fear in a coder\'s world: A minute bug with correct syntax.
{link removed from sig as the account seemed to be suspended}
yktan is offline  
Old 10-22-2005   #7
Nobody
Supporter
 
Join Date: Aug 2005
Location: Sweden
Posts: 218
Default

Not exactly. I like that mod and I would like to have it, but what I'm actually looking for is a mod that says "Hey! The description field must contain minimun XX letters and max XX letters." in the sumbit procedure.
Nobody is offline  
Old 10-22-2005   #8
yktan
 
Join Date: Jun 2005
Posts: 353
Default

Hi Nobody,

What you want is a validation during submission that validates whether or not a text field contains text of a certain length. To achieve that, submit.php would have to be modified. Personally, I am not able to do this now, maybe our good man Casey can give you some help?
__________________
Greatest fear in a coder\'s world: A minute bug with correct syntax.
{link removed from sig as the account seemed to be suspended}
yktan is offline  
Old 10-22-2005   #9
Ap0s7le
 
Join Date: Jun 2005
Location: The world
Posts: 816
Send a message via ICQ to Ap0s7le Send a message via AIM to Ap0s7le Send a message via MSN to Ap0s7le Send a message via Yahoo to Ap0s7le Send a message via Skype™ to Ap0s7le
Default

Hmm, so just flag an error message eh?

Yup, we can do that if you need it.
__________________
Casey Wilson / Ap0s7le
Freelance Programmer
http://www.ap0s7le.com
Need help with PHPLD? PM me
Ap0s7le is offline  
Old 02-07-2006   #10
eli03
 
Join Date: Jan 2006
Location: www.eligio.org
Posts: 122
Default

anyone want to share a mod for this topic?
__________________
SEO Philippines
eli03 is offline  
Old 02-10-2006   #11
SEO-Man
Supporter
 
Join Date: Feb 2006
Posts: 52
Default

i second that i could use this i feel it would cut down on a lot of spam.

I dont like caned spam dont taste good so please help me get rid of it.
SEO-Man is offline  
Old 02-10-2006   #12
Ap0s7le
 
Join Date: Jun 2005
Location: The world
Posts: 816
Send a message via ICQ to Ap0s7le Send a message via AIM to Ap0s7le Send a message via MSN to Ap0s7le Send a message via Yahoo to Ap0s7le Send a message via Skype™ to Ap0s7le
Default

This is doable for sure.

You can ask yktan, we get so busy that it's hard to leave the house and so sometimes it takes forever for smaller things to get done.

We'll get her hammered out.

Regards,

-Casey
__________________
Casey Wilson / Ap0s7le
Freelance Programmer
http://www.ap0s7le.com
Need help with PHPLD? PM me
Ap0s7le is offline  
Old 02-11-2006   #13
SEO-Man
Supporter
 
Join Date: Feb 2006
Posts: 52
Default

@ Ap0s7le

Thank you for the offer but $20 is more then one should pay since it dont take an hour to do and i could hire some one local to do it for that amount.

Looks like i will have to outsource this just like i have outsourced all my other work on my directory.
SEO-Man is offline  
Old 02-11-2006   #14
Ap0s7le
 
Join Date: Jun 2005
Location: The world
Posts: 816
Send a message via ICQ to Ap0s7le Send a message via AIM to Ap0s7le Send a message via MSN to Ap0s7le Send a message via Yahoo to Ap0s7le Send a message via Skype™ to Ap0s7le
Default

SEO-Man,

It depends, really.

What you would have gotten for that price was more secure then what you asked for. Do you know why?

I like to leave a site better off, and not just give them something that wont work in the future. What's nice about my mod would be that people using scripts to submit would also be checked, rather than completely bypass the JS validation.

I'm sorry that I value my time, I'm sure you could ask many here about me and find out I go above and beyond.

Heck, sometimes I overprice just to get rude people off my back.

Kind Regards,

-Casey
__________________
Casey Wilson / Ap0s7le
Freelance Programmer
http://www.ap0s7le.com
Need help with PHPLD? PM me
Ap0s7le is offline  
Old 02-11-2006   #15
SEO-Man
Supporter
 
Join Date: Feb 2006
Posts: 52
Default

Quote:
What you would have gotten for that price was more secure then what you asked for. Do you know why?

I like to leave a site better off, and not just give them something that wont work in the future. What's nice about my mod would be that people using scripts to submit would also be checked, rather than completely bypass the JS validation.
kind of like the way it should be how else would some one do it?

I mean if your going to pay for something you think some one is going to do it any different?

Quote:
Heck, sometimes I overprice just to get rude people off my back.
No its called you try and find a sucker that you can charge an hour labor for something that takes 10 mins tops.

Quote:
I'm sorry that I value my time, I'm sure you could ask many here about me and find out I go above and beyond.
yes i can see why your making an hours labor for something that takes 10 mins to do.

If i was charging peolpe an hour labor and new it would take 10 mins to do i would help out a lot of peolpe as well.

I wish you luck in finding more peolpe that are willing to pay 5 times the amount that some one should pay.

One thing i like to mention is that i never would mind paying but when i know something is over priced i feel the person is trying to take me for a ride and does not respect his clients.
SEO-Man is offline  
Old 02-11-2006   #16
Ap0s7le
 
Join Date: Jun 2005
Location: The world
Posts: 816
Send a message via ICQ to Ap0s7le Send a message via AIM to Ap0s7le Send a message via MSN to Ap0s7le Send a message via Yahoo to Ap0s7le Send a message via Skype™ to Ap0s7le
Default

Haha

You asked for a JS validation, most people would take what you said and provide you JUST that. Especially if you're paying them 5 bucks.

Today I got a bonus from a man. Strange isn't it? He must have been suckered into thinking I did a great job. Those crazy people

I'm done with the convo, it can't take over this thread because then I'll have to delete it and then it'll look like a coverup of some evil mastermind.

Thanks for your thoughts SEO-Man, I hope you find what you're looking for and it's better than I could have provided.

Kind Regards and Best Wishes.

-Casey
__________________
Casey Wilson / Ap0s7le
Freelance Programmer
http://www.ap0s7le.com
Need help with PHPLD? PM me
Ap0s7le is offline  
Old 02-11-2006   #17
SEO-Man
Supporter
 
Join Date: Feb 2006
Posts: 52
Default

Quote:
You asked for a JS validation, most people would take what you said and provide you JUST that. Especially if you're paying them 5 bucks
Well i offerd you $10 but it didnt matter what i offerd you.

The fact of the matter was i new i was getting ripped off for what i wanted.

If i wanted what you offerd then i would have said i wanted what you offerd.

Did i ask for what you offerd? NO

I feel in business you listen to your clients needs not what you want to do.

Its like if i asked you for a ford car are going to charge me the price for a BMW?
SEO-Man is offline  
Old 02-11-2006   #18
Ap0s7le
 
Join Date: Jun 2005
Location: The world
Posts: 816
Send a message via ICQ to Ap0s7le Send a message via AIM to Ap0s7le Send a message via MSN to Ap0s7le Send a message via Yahoo to Ap0s7le Send a message via Skype™ to Ap0s7le
Default

My whole point is, you asked for help to get rid of canned spam.

Plain JS wouldn't have done that, but from your site I gathered you wanted it to popup and tell them about the Min/Max.

I could have done just that, but it wouldn't have been helpful per your request in this thread to help get rid of spam.

I'm sorry for offering more than a ford, I thought you wanted a ford body, just with a decent engine.

This topic is over, please refrain from posting anymore unless it's in regards to the thread topic or all unnesessary post will be removed. That's not personal, just keeps thread hijacking down.

-Casey
__________________
Casey Wilson / Ap0s7le
Freelance Programmer
http://www.ap0s7le.com
Need help with PHPLD? PM me
Ap0s7le is offline  
Old 02-13-2006   #19
eli03
 
Join Date: Jan 2006
Location: www.eligio.org
Posts: 122
Default

bummpp. anyone want to share the script for free ? I think it's only 1 to 3 line of code in php.
__________________
SEO Philippines
eli03 is offline  
Old 02-14-2006   #20
Jim_Westergren
 
Jim_Westergren's Avatar
 
Join Date: Jul 2005
Posts: 243
Default

The first time I see this thread ...

I originally paid Casey to do it for me a long time ago. I believe $25 or something.

I am a nice guy, here it is for free:

In submit.tpl:

Code:
  		<textarea name="DESCRIPTION" rows="3" cols="37" class="text">{$DESCRIPTION}</textarea>
		{validate form="submit_link" id="v_DESCRIPTION" message=$smarty.capture.desc_l}
admin/messages.tpl:

Code:
{capture name='desc_l'}
<span class="errForm">{l}Full description requires between 100 - 255 characters.{/l}</span>{/capture}
submit.php:

Code:
	SmartyValidate :: register_validator('v_DESCRIPTION', 'DESCRIPTION:100:255', 'isLength', false, false, true, 'trim', 'submit_link');
To be placed after:

Code:
	SmartyValidate :: register_validator('v_RECPR_ONLINE', 'RECPR_URL', 'isRecprOnline', !$recpr_required, false, false, null, 'submit_link');
__________________
/ Jim Westergren
www.jimwestergren.com
Jim_Westergren is offline  
Closed Thread


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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:58 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.