Support Forums

Hopefully easy, want to add words behind "Search text"

This is a discussion on Hopefully easy, want to add words behind "Search text" within the Templates, HTML, CSS, and Design Help forums, part of the General category; Hi there, probley an easy question for some of you, but for me its something i don't know. In the ...


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

This topic is closed.

This topic is closed to new replies.

 
Thread Tools Display Modes
Old 05-01-2011, 10:54 AM   #1
Junior Member
 
Join Date: May 2011
Posts: 9
Rep Power: 0
codybrucewilliams is on a distinguished road
Default Hopefully easy, want to add words behind "Search text"

Hi there, probley an easy question for some of you, but for me its something i don't know. In the page when you click "search", the thing i wish to change is text. The very first field by default is "Search Text", what i need to do is add the words "(can be left blank)" to it. So it would look like this:

"Search Text: (can be left blank)"

I see the page SEARCH.TPL but not really sure where i would add the additional text. Is this possible?

What about if a person even wanted to delete the "Search Text and search field box" altogether? what lines should be deleted?

Last edited by codybrucewilliams; 05-01-2011 at 11:02 AM.
codybrucewilliams is offline  
Old 05-01-2011, 01:06 PM   #2
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Quote:
Originally Posted by codybrucewilliams
Hi there, probley an easy question for some of you, but for me its something i don't know. In the page when you click "search", the thing i wish to change is text. The very first field by default is "Search Text", what i need to do is add the words "(can be left blank)" to it. So it would look like this:

"Search Text: (can be left blank)"

I see the page SEARCH.TPL but not really sure where i would add the additional text. Is this possible?

What about if a person even wanted to delete the "Search Text and search field box" altogether? what lines should be deleted?
What you are asking about and wanting to do have to do with basic web design and (X)HTML. Although, the use of smarty text also comes into play here as well, however knowing the basics of HTML you would clearly understand and see how the smarty text and where it is being used.

I'm not sure why anyone would actually want to remove the search text and field from a web page called "Search" as that would seem to defeat the whole purpose of the page.

I think that you need to spend some time learning the basics of web design/HTML. One good place to do that is w3 schools. I would recommend spending some time learning the basics about 68 Classifieds templates. You can learn about that in the online documentation and I also have a blog article about the default template, which explains a great deal about 68's templates, smarty and getting around and working with them.

In direct answer to your first question, you would need to add the text that you would like within the search.tpl file within the label element right after the smarty search text "{$smarty.const.LANG_SEARCH_TEXT}"
__________________
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  
Old 05-01-2011, 01:27 PM   #3
Junior Member
 
Join Date: May 2011
Posts: 9
Rep Power: 0
codybrucewilliams is on a distinguished road
Default thank you

thank you for fast reply, will try what you suggested at the end of your reply.

I didn't mean to ask about "removing all the search page", just the "search text" writing and the search box that goes with it.

i tried adding the text behind like you suggested to no success, adding a picture so maybe I can be more clear what i am trying to do.

http://img813.imageshack.us/i/capturelgs.jpg/

Last edited by codybrucewilliams; 05-01-2011 at 01:40 PM. Reason: new info
codybrucewilliams is offline  
Old 05-01-2011, 03:06 PM   #4
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Don't know what you actually did, but my instructions are indeed correct. In your search.tpl template file add your text right after the smarty text.

{$smarty.const.LANG_SEARCH_TEXT} (not required)

You might also want to add some inline styling as well <span style="font-size:10px;color:red;">(not required)</span>

So you would have this as the end result:
HTML Code:
<label for="searchtext">{$smarty.const.LANG_SEARCH_TEXT} <span style="font-size:10px;color:red;">(not required)</span>{$smarty.const.LANG_COLON}</label>
__________________
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  
Old 05-01-2011, 04:15 PM   #5
Junior Member
 
Join Date: May 2011
Posts: 9
Rep Power: 0
codybrucewilliams is on a distinguished road
Default oh yes, my mistake

Thank you again so much, I did initially put it in the wrong area like this:

{$smarty.const.LANG_SEARCH_TEXT (not required)}

Got it now

Sorry again for the hassle and THANK YOU for your help! much appreciated!

Last edited by codybrucewilliams; 05-01-2011 at 04:15 PM. Reason: readd
codybrucewilliams is offline  
Old 05-02-2011, 08:55 AM   #6
Staff
 
Join Date: Mar 2006
Posts: 587
Rep Power: 34
Blair will become famous soon enough
Default

Alternately, you could open your languages/english.php file and redefined the value for LANG_SEARCH_TEXT by appending "(not required)" to the existing value:

PHP Code:
define('LANG_SEARCH_TEXT''Search Text (not required)'); 
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
Blair is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use style="text-decoration: none" On Categories bowers01 Technical Support 4 12-13-2008 12:22 AM
How to change title name "Place" to "post" on main page? YourPalAl Technical Support 4 04-28-2008 10:39 PM
How to edit "Sell your Classified" text art Templates, HTML, CSS, and Design Help 4 07-18-2006 12:03 AM


All times are GMT -4. The time now is 08:03 PM.


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