Support Forums

contact owner form

This is a discussion on contact owner form within the Templates, HTML, CSS, and Design Help forums, part of the General category; I am attempting to change the width of the "contact owner" form, but am having difficulty locating the proper file ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 03-03-2008, 01:09 PM   #1
Member
 
Join Date: Mar 2007
Posts: 32
Rep Power: 16
early is on a distinguished road
Default contact owner form

I am attempting to change the width of the "contact owner" form, but am having difficulty locating the proper file to edit.

I see (using "view source") that the size attribute I would like to change is currently set to 30.

<td class="formright"> <input name="email" type="text" size="30" value="" />

I have also located the "contactowner.tpl.php file and see that this is in some way controlled by:

<td class="formright"> <input name="name" type="text" size="{$smarty.const.FIELD_SIZE}" value="{$name|escape}" />

This is where I get lost... I am not sure how (or where) to change the "size" of the field to, say, 50 for example.

Thanks in advance for your help!
__________________
motorcycle-place
early is offline   Reply With Quote
Old 03-03-2008, 01:12 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

That file should be templates/default/contact/contactowner.tpl.php or contactus.tpl.php depending on which page you would like.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 03-03-2008, 01:30 PM   #3
Member
 
Join Date: Mar 2007
Posts: 32
Rep Power: 16
early is on a distinguished road
Default

Quote:
Originally Posted by suzkaw
That file should be templates/default/contact/contactowner.tpl.php or contactus.tpl.php depending on which page you would like.
Thank you for the reply.

I see where the file is located - I am just uncertain as to how to change the value of the input field length (e.g. changing from default of "30" to "50").
__________________
motorcycle-place
early is offline   Reply With Quote
Old 03-03-2008, 01:42 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Oh sorry.

What would do is find this line:
Code:
size="{$smarty.const.FIELD_SIZE}"
and change it to this:
Code:
size="50"
Or if you want to change this everywhere you can open the language file and locate:
Code:
define("FIELD_SIZE", "30");
Then change 30 to 50. Keep in mind this would global to all fields that use it.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 03-03-2008, 04:10 PM   #5
Member
 
Join Date: Mar 2007
Posts: 32
Rep Power: 16
early is on a distinguished road
Default

Got it

Thank you very much!
__________________
motorcycle-place
early is offline   Reply With Quote
Old 05-19-2008, 02:50 AM   #6
Senior Member
 
Join Date: Oct 2007
Location: victoria, Australia
Posts: 176
Rep Power: 16
paulsra is on a distinguished road
Default

im trying to do this also, but changing this alters the NAME & EMAIL ADDRESS fields, how do i go about changing the message field?

never mind: found it here ><textarea name="message" cols="74" rows="10" id="message">

Last edited by paulsra; 05-19-2008 at 04:45 AM.
paulsra is offline   Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 04:44 PM.


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