0 Members and 1 Guest are viewing this topic.

Hi,

Anyone who can point me in the right direction regarding removing (or hide) the country selection on the searchbar?

\Oversjanten

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: How to modify (remove / hide) country selection from searchbar?
« Reply #1 on: April 23, 2017, 10:50:41 PM »
Hi oversjanten,

Do you want to hide it from the quests only and members can see it when logged in?
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

Re: How to modify (remove / hide) country selection from searchbar?
« Reply #2 on: April 25, 2017, 07:03:36 PM »
Hi Pharg,

I want to hide it from all users, 'cause my primary audience is Danish, nationalities...

Best regards
Oversjanten ( Claus )

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: How to modify (remove / hide) country selection from searchbar?
« Reply #3 on: April 25, 2017, 10:25:28 PM »
Hi Oversjanten,

If it was me I would remove all countries and just leave Denmark in.

This way your Danish members can use the search bar.

In the admin area, go to Manage Countries/States and start removing all countries but leave Denmark and that's it.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

Re: How to modify (remove / hide) country selection from searchbar?
« Reply #4 on: April 26, 2017, 04:07:06 AM »
Hi Pharg,

I have already done it like that ;-), but I think it would look better if the choice would't be given / shown.
- there is no reason to show something, if your'e not using it ;-)

Best regards
Oversjanten ( Claus )

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: How to modify (remove / hide) country selection from searchbar?
« Reply #5 on: April 26, 2017, 06:51:33 AM »
Hi oversjanten,

Ok to remove it, go to the index.tpl and find this code on line 38 and delete it.
Code: [Select]
     <div class="headbgbox">
        <div class="big_search">
{include file="searchprofile.tpl"}
</div>
            <div class="small_search">
{include file="searchprofile_min.tpl"}
</div>
            </div>

All gone.

I can see that members will still want a search though.
« Last Edit: April 26, 2017, 06:53:16 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

Re: How to modify (remove / hide) country selection from searchbar?
« Reply #6 on: April 26, 2017, 07:45:49 PM »
Hi Pharg,

You're right, this is not what I'm looking for. ;-)
I only want to remove the country part of the searchbar, see screendump attached.

Best regards
Oversjanten ( Claus )

Re: How to modify (remove / hide) country selection from searchbar?
« Reply #7 on: April 26, 2017, 08:14:46 PM »
Hi Pharg,

I think i've solved it...in this way..

in the searchprofile_min.tpl:

Code: [Select]
    <tr>
<td1 class="searchtxt"> {lang mkey='country'}: </td1>
<td1>
<!-- <select class="searchselect" name="lookcountry" style='width: 110px;  margin-bottom:3px;' onChange="simplesearchZip(this.value);">
  {html_options options=$lang.allcountries selected=$simplesearch.lookcountry }
        </select>-->
       </td1>
    </tr>

which seems to be working :-)

Best regards
Oversjanten ( Claus )

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: How to modify (remove / hide) country selection from searchbar?
« Reply #8 on: April 26, 2017, 09:38:47 PM »
Hi Oversjanten,

I am happy you found a way your happy with  :)
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35