We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

how can i hide or remove online | Forum

Onur
Onur Sep 20 '19


{script}

{literal}

$(function(){

    $("form[name='MainSearchForm'] [name='match_sex']").change(

        function(){ OW.trigger("memberx.lookin_for_changed", $(this).val()); }

    );

});

{/literal}

{/script}


{if isset($menu)}{$menu}{/if}


{if isset($authMessage)}

<div class="ow_anno ow_std_margin ow_nocontent">{$authMessage}</div>

{else}

<div class="clearfix">

    <div class="ow_superwide ow_automargin">

        {if $usernameSearchEnabled==true}

            {form name=UsernameSearchForm}

            <h3 class="ow_std_margin">{text key="memberx+search_by_username"}</h3>

            <table class="ow_table_1 ow_form">

                <tr class=" ow_tr_first ow_question_tr ow_tr_last">

                    {cycle assign='alt' values='ow_alt1,ow_alt2'}

                    <td class="{$alt} ow_label">

                        {label name='username'}

                    </td>

                    <td class="{$alt} ow_value">

                        {input name='username'}

                        <div style="height:1px;"></div>

                        {error name='username'}

                    </td>

                </tr>

            </table>

            <div class="clearfix userach_submit_button">

                <div class="ow_right">

                    {submit name='SearchFormSubmit'}

                </div>

            </div>

            {/form}

        {/if}

        {form name=MainSearchForm}

        {if $usernameSearchEnabled==true}

            <h3 class="ow_std_margin">{text key="memberx+advanced_search"}</h3>

        {/if}

        <table class="ow_table_1 ow_form">

                

                <tr class="ow_question_tr">

                    {cycle assign='alt' values='ow_alt1,ow_alt2'}

                    <td class="{$alt} ow_label">

                        {label name='accountType'}

                    </td>

                    <td class="{$alt} ow_value">

                        {input name='accountType'}

                        <div style="height:1px;"></div>

                        {error name='accountType'}

                    </td>

                </tr>

                

                <tr class="ow_question_tr">

                    {cycle assign='alt' values='ow_alt1,ow_alt2'}

                    <td class="{$alt} ow_label">

                        {label name='online'}

                    </td>

                    <td class="{$alt} ow_value">

                        {input name='online'}

                        <div style="height:1px;"></div>

                        {error name='online'}

                    </td>

                    

                    

                </tr>

                

                

                <tr class="ow_tr_last ow_question_tr {$question_prefix}with_photo">

                    {cycle assign='alt' values='ow_alt1,ow_alt2'}

                    <td class="{$alt} ow_label">

                        {label name='with_photo'}

                    </td>

                    <td class="{$alt} ow_value">

                        {input name='with_photo'}

                        <div style="height:1px;"></div>

                        {error name='with_photo'}

                    </td>

                </tr>

                

                {if $hasFriends}

                

                    <tr class="ow_question_tr">

                        {cycle assign='alt' values='ow_alt1,ow_alt2'}

                        <td class="{$alt} ow_label">

                            {label name='friends_only'}

                        </td>

                        <td class="{$alt} ow_value">

                            {input name='friends_only'}

                            <div style="height:1px;"></div>

                            {error name='friends_only'}

                        </td>

                    </tr>

                    

                {/if}

                

               

            </table>

            <div class="ow_preloader ow_std_margin memberx_preloader" style="display:none;"></div>

            <div class="questions_div memberx_transition">

                <table class="ow_table_1 ow_form">

                {if !empty($questionList)}

                {foreach from=$questionList key='section' item='questions'}

                    {if !empty($section) }

                    <tr class="{$section_prefix}{$section} ow_tr_first {if empty($visibilityList['sections'][$section])}ow_hidden{/if}" ><th colspan="3">{text key="base+questions_section_`$section`_label"}</th></tr>

                    {/if}

                    {foreach from=$questions item='question' name='question'}

                        <tr class="{$question_prefix}{$question.name} ow_question_tr {if $smarty.foreach.question.last}ow_tr_last{/if} {if empty($visibilityList['questions'][$question.name])}ow_hidden{/if}">

                            {cycle assign='alt' values='ow_alt1,ow_alt2'}

                            <td class="{$alt} ow_label">

                                {label name=$question.name}

                            </td>

                            <td class="{$alt} ow_value">

                                {input name=$question.name}

                                <div style="height:1px;"></div>

                                {error name=$question.name}

                            </td>

                        </tr>

                    {/foreach}

                    <tr class="{$section_prefix}{$section} ow_tr_delimiter {if empty($visibilityList['sections'][$section])}ow_hidden{/if}"><td></td></tr>

                {/foreach}

                {/if}

                

            </table>

            <div class="clearfix userach_submit_button">

                <div class="ow_right">

                    {submit name='SearchFormSubmit'}

                </div>

            </div>

            </div>

        {/form}

    </div>

</div>

{/if}


{script}{literal}


$("form[name='MainSearchForm'] [name='accountType']").change(function(){

        

    var accountType = $(this).val();

    

    if (accountType){

        var url = this.getAttribute('change-url') + '?accounttype=' + accountType;

        window.location.href=url;

    }

    

});




{/literal}{/script}


how can i hide here online and with photos section. i am removing them after i cant search nobody? someone will give a ideal?

Onur
Onur Sep 20 '19
i want to remove this section.

               <tr class="ow_question_tr">                    {cycle assign='alt' values='ow_alt1,ow_alt2'}                    <td class="{$alt} ow_label">                        {label name='online'}                    </td>                    <td class="{$alt} ow_value">                        {input name='online'}                        <div style="height:1px;"></div>                        {error name='online'}                    </td>                                                        </tr>                                                <tr class="ow_tr_last ow_question_tr {$question_prefix}with_photo">                    {cycle assign='alt' values='ow_alt1,ow_alt2'}                    <td class="{$alt} ow_label">                        {label name='with_photo'}                    </td>                    <td class="{$alt} ow_value">                        {input name='with_photo'}                        <div style="height:1px;"></div>                        {error name='with_photo'}                    </td>                </tr>



dave Leader
dave Sep 20 '19
So just to be clear, you want users who are online that have photos to not show online?   Is that correct?
Onur
Onur Sep 21 '19
i want to remove or hide section on search.  because everybody has a photo and when you are chooseing online it is not finding nobody sometimes. better without with photos and online section
Onur
Onur Sep 21 '19
here
dave Leader
dave Sep 21 '19
I dont show that on my oxwall test site (online or photo) but go to your admin questions and uncheck the search box for those items, i think that will do it.


admin/users/profile questions/  then click the properties tab at the top right of the page and uncheck online and photos under the search column.    i think thats how... let me know please.

The Forum post is edited by dave Sep 21 '19
Onur
Onur Sep 21 '19

Quote from dave I dont show that on my oxwall test site (online or photo) but go to your admin questions and uncheck the search box for those items, i think that will do it.


admin/users/profile questions/  then click the properties tab at the top right of the page and uncheck online and photos under the search column.    i think thats how... let me know please.

i dont have admin question section any option for online and withphoto.
dave Leader
dave Sep 21 '19
OK maybe we can do it with css.  Do you know what the css class is for that section?  I can look if you give me your site url.


I want to wait to do it via html till last optiion.

The Forum post is edited by dave Sep 21 '19
Onur
Onur Sep 23 '19
I hid all inputs which i dont want. and i removed labs names. now is ok. 
 thanks for reply.
Aprillos
Aprillos Dec 15 '19
 PROFILE QUESTION username  how can i remove it