Support Forums

Contacting Seller Form

This is a discussion on Contacting Seller Form within the TemplateCodes forums, part of the Third Party Support category; Is there a way to remove the "name" requirement in the "contact the owner" form? I only want email, msg ...


Go Back   68 Classifieds Forums > Third Party Support > TemplateCodes

Reply
 
Thread Tools Display Modes
Old 04-19-2010, 04:35 PM   #1
Customer
 
Join Date: Feb 2007
Posts: 69
Rep Power: 22
sbhkma is on a distinguished road
Default Contacting Seller Form

Is there a way to remove the "name" requirement in the "contact the owner" form? I only want email, msg and captcha.
sbhkma is offline   Reply With Quote
Old 04-19-2010, 06:06 PM   #2
Developer & Moderator
 
Mike-N-Tosh's Avatar
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,426
Rep Power: 75
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

This uses a javascript validation. If you do not want to require the name, then get rid of the part of the validation that checks for the name.
Code:
if (frm.name.value == '') {
	alert("{/literal}{$smarty.const.LANG_JAVASCRIPT_PLEASE_ENTER} '{$smarty.const.LANG_YOUR_NAME}{literal}'.");
	frm.name.focus();
	return(false);
}
Comment that out, so that way if you decide later you DO want to validate a name you will still have it. To comment it out just put
/* existing code ...if(blah.........
............. */

Begin comment = /*
End comment = */
__________________
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,4.2,5.0)] 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   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding upload file to contact seller form jason1971 Templates, HTML, CSS, and Design Help 12 11-15-2009 08:30 PM


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


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