Support Forums

Removing validation conditions

This is a discussion on Removing validation conditions within the Technical Support forums, part of the Technical Support Forums category; During the Placing and Ad process, users will be entering in their Listing Details (Step 3). Right now the validation ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-15-2009, 01:20 AM   #1
Member
 
Join Date: May 2009
Posts: 66
Rep Power: 0
Exclamation Removing validation conditions

During the Placing and Ad process, users will be entering in their Listing Details (Step 3). Right now the validation JS is mandating that when you get to the "Link to your website" that the value entered must start with "http://" otherwise the real time validator flags the field as an invalid value. So say the user just put in "www.msn.com" as the value, it triggers the error message. How do I remove this condition? If I can't remove this condition, then how do I make the error line longer to include into the error message something like this: "Please enter a valid url - example: http://www.yourwebsite.com". Please help.
__________________
68C | Developer License | Running v4.1.3
industrialpost is offline  
Old 06-15-2009, 06:47 AM   #2
Just get on with it!
 
michael's Avatar
 
Join Date: Jan 2007
Location: Milton Keynes, England
Posts: 460
Rep Power: 29
michael is just really nice michael is just really nice
Default

Thanks for posting this, I'd meaning to ask about it myself.

I wonder if it would be too difficult to include http:// automatically in the field with it only being overriden in the rarer case of a user actually including it in the URL?

Looking forward to some more knowledgable input.
__________________
M Michael
V4.1.9 Developer - Modified 3 Column Default Template


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline  
Old 06-15-2009, 07:53 AM   #3
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,037
Rep Power: 29
bowers01 is on a distinguished road
Default

not tested but try this.
Find
value="{$url}"
and replace it with value="http://{$url}" in theory it should work fine.
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is online now  
Old 06-15-2009, 07:56 AM   #4
Just get on with it!
 
michael's Avatar
 
Join Date: Jan 2007
Location: Milton Keynes, England
Posts: 460
Rep Power: 29
michael is just really nice michael is just really nice
Default

Thanks Nick, I will try that out later today.

__________________
M Michael
V4.1.9 Developer - Modified 3 Column Default Template


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline  
Old 06-15-2009, 07:57 AM   #5
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,936
Rep Power: 57
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

I haven't tested this, but it should work.

In your step3.tpl file around line 192 find this:
PHP Code:
<input name="url" id="url" type="text" value="{$url}" size="{$smarty.const.FIELD_SIZE}" /> 
change the variable {$url} to this:
PHP Code:
{$url|default:'http://'
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Old 06-15-2009, 10:08 AM   #6
Member
 
Join Date: May 2009
Posts: 66
Rep Power: 0
Thumbs up

Thanks for the replies guys. This works and it will make posters more aware of what values are required and not a guess. You are awesome!
__________________
68C | Developer License | Running v4.1.3
industrialpost is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
changing the terms and conditions in designer version darkqueen Templates, HTML, CSS, and Design Help 2 06-09-2009 08:03 PM
Terms and Conditions Javascript Error nagrap2 Technical Support 1 04-30-2009 04:51 PM
Page Editor - Terms and Conditions - Where's Link? RandyB Technical Support 2 11-24-2008 05:30 PM
Terms & Conditions missing from Navagation Menu sporthorsebreeder Templates, HTML, CSS, and Design Help 6 04-05-2006 06:03 PM


All times are GMT -4. The time now is 06:43 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0