This topic is locked
[SOLVED]

 Hide Options Button

8/26/2012 11:06:05 PM
PHPRunner General questions
P
procheck author

Hi,
Does anyone know how to remove or hide the Search Options Button(ie equals, not equals)?

Thanks
Al

C
cgphp 8/27/2012

Uncheck the "Show basic search options (Contains, Any field)" option in the "List page settings" window. More info here: http://xlinesoft.com/phprunner/docs/edit_page_settings.htm

If necessary, reset the page in the visual editor.

P
procheck author 8/27/2012

Hi Christian,
I already have that unchecked but it removes just the top part as shown.

I also want to remove the options button.


Thanks
Al

C
cgphp 8/27/2012

Open the generated template file pagename_search_panel.htm and remove the following html code:

<div class="addOption">

<span class="runner-btnframe">

<span class="runner-btnleft"></span>

<span class="runner-btnright"></span>

<a href="#" id="showHideControlChooseMenu{$id}" class="runner-button" {$showHideCtrls_attrs}>Add field</a>

</span>

&nbsp;&nbsp;&nbsp;

<span class="runner-btnframe">

<span class="runner-btnleft"></span>

<span class="runner-btnright"></span>

<a href="#" id="showHideSearchType{$id}" class="runner-button" {$showHideCtrlsOpt_attrs}>{$showHideOpt_mess}</a>

</span>

</div>
P
procheck author 8/27/2012

Hi Christian,
I found it but I don't like making changes pages to a generated page. Is there not a way to do this in the source? I saw this { $("div.srchCritTop").remove(); } in one of your other posts which I am using to remove the criteria. I was just wondering if there was something similar that I could do here. I've tried a few things but it always removes the ADD too. Maybe the only option is to remove the whole section is visual editor and add the search with code?
Thanks
Al

C
cgphp 8/27/2012

Did you try to remove the div block from the DOM?

$("div.addOption").remove();
P
procheck author 8/27/2012

Yes I did but it removes everything including the Add button.

C
cgphp 8/28/2012
$("#showHideSearchType"+pageid).hide();



or

$("#showHideSearchType"+pageid).remove();
P
procheck author 8/28/2012

Hi Christian,
They both worked. Thank-you very much!
Al