bradenshaw

Topic: Changing search examples & Disable location drop box on post page

Hi!

A couple things,

First off, I love the script and am very thankful that it is free!

I would like to know if you could point me in the right direction as to where I can change the search examples underneath the search bar as my site is directed towards one city only.

Same with when posting a job, I would like to disable the drop box menu for location in the "post a job" area.

Any help is greatly appreciated.

Thanks

putypuruty

Re: Changing search examples & Disable location drop box on post page

Hi,

We're glad that you like it!

To change that text, open _includes/translations.ini and search for [search]. Edit the text that you find 2 lines below it (example = "(e.g. ....")

As for your other issue: the simplest solution is to remove all the cities from inside the admin panel and leave only the city that you need. Then, open _templates/default/publish-write.tpl and find the following line

Code:
<select name="city_id" id="city_id" tabindex="3"

Go up 3 lines and add replace

Code:
<tr>

with

Code:
<tr {if $cities|@count == 1}style="display: none;"{/if}>

This will hide the Location row from the post form.

Does this fit your needs?

bradenshaw

Re: Changing search examples & Disable location drop box on post page

Hey thanks for the guidance!

The only thing...

When I replaced <tr> with <tr {if $cities|@count > 1}style="display: none;"{/if}>

Nothing happened...

I still can't get rid of that dang drop box! lol

It works good but would like to be done with the drop box for looks!

Thanks!

putypuruty

Re: Changing search examples & Disable location drop box on post page

Sorry, my bad.

You should put there @count == 1 instead of @count > 1

I tested the code on my computer but I have many cities and I had to twist the condition a little so that the combo is hidden. With the above change, it should be fine, though. Note that I've also edited the code in my first post.

bradenshaw

Re: Changing search examples & Disable location drop box on post page

Thanks again!

So in conclusion what I did was replace "<select>" with an "<option>" tag... then changed the "location_anywhere" value in translations.ini to "my city" from " and it is perfect!

This got rid of the drop box and still displays my location while posting a job.

Kudos on the service! A free product and still great support. Can't even find this kinda service from any expensive paid for products out there!

Thanks again for all your help!