Impedir a invisibilidade na opção perfil

3 participantes

Ver o tópico anterior Ver o tópico seguinte Ir para baixo

Tópico resolvido Impedir a invisibilidade na opção perfil

Mensagem por CR7 Oliveira 20/06/17, 09:05 pm

Detalhes da questão


Endereço do fórum: http://lsr-nwdgames.forumeiros.com
Versão do fórum: phpBB3

Descrição


Olá,

Bom estava vendo esse tutorial ( https://ajuda.forumeiros.com/t56813-tutorial-impedir-a-invisibilidade-nas-versoes-phpbb-2-e-punbb ) Vi também que são para versões phpBB 2 e punBB mesmo assim tentei, procurei o código e não achei, será possível proibir usuário de ficar invisíveis no meu também Phpbb3 ?
CR7 Oliveira

CR7 Oliveira
*****

Membro desde : 08/02/2016
Mensagens : 468
Pontos : 698

https://ajuda.forumeiros.com/

Ir para o topo Ir para baixo

Tópico resolvido Re: Impedir a invisibilidade na opção perfil

Mensagem por Harleen 20/06/17, 09:08 pm

Sim é possível, me passe o template indicado no tutorial, profile_add_body

Tópico movido de 'Questões sobre o painel de administração' para 'Questões sobre códigos'.

Até mais
Harleen

Harleen
Super Membro

Membro desde : 09/07/2012
Mensagens : 1779
Pontos : 2373

https://antenadogames.forumeiros.com/

Ir para o topo Ir para baixo

Tópico resolvido Re: Impedir a invisibilidade na opção perfil

Mensagem por CR7 Oliveira 20/06/17, 09:09 pm

Código:
<script type="text/javascript" src="{JSPWD}"></script>
<!-- BEGIN switch_display_menu -->
{UCP_TABS}
<!-- END switch_display_menu -->

{ERROR_BOX}

<div class="panel row3">
   <div class="inner">
      <span class="corners-top"><span></span></span>

      <div id="cp-main" class="ucp-main">
         <form action="{S_PROFILE_ACTION}" {S_FORM_ENCTYPE} method="post" name="post" id="ucp">
         <!-- BEGIN switch_informations_menu -->
            <h1 class="page-title">{L_REGISTRATION_INFO}</h1>
            <div class="panel">
               <div class="inner"><span class="corners-top"><span></span></span>

               <p>{L_ITEMS_REQUIRED}</p>
               <fieldset>
               <!-- BEGIN switch_namechange_disallowed -->
               <dl>
                  <dt><label>{L_USERNAME} : *</label></dt>
                  <dd><input type="hidden" name="username" value="{USERNAME}" class="inputbox" /><strong>{USERNAME}</strong></dd>
               </dl>
               <!-- END switch_namechange_disallowed -->
               <!-- BEGIN switch_namechange_allowed -->
               <dl>
                  <dt><label>{L_USERNAME} : *</label></dt>
                  <dd><input type="text" name="username" value="{USERNAME}" class="inputbox" /></dd>
               </dl>
               <!-- END switch_namechange_allowed -->
               <!-- BEGIN switch_emailchange_disallowed -->
               <dl>
                  <dt><label>{L_EMAIL_ADDRESS} : *</label></dt>
                  <dd><input type="hidden" name="email" value="{EMAIL}" />{EMAIL}</dd>
               </dl>
               <!-- END switch_emailchange_disallowed -->
               <!-- BEGIN switch_emailchange_allowed -->
               <dl>
                  <dt><label>{L_EMAIL_ADDRESS} : *</label></dt>
                  <dd><input type="text" name="email" value="{EMAIL}" class="inputbox" /></dd>
               </dl>
               <!-- END switch_emailchange_allowed -->

               <!-- BEGIN switch_change_password -->
               <dl>
                  <dt><label>{L_CHANGE_PASSWORD} : *</label></dt>
                  <dd>
                     <a href="{LINK_FOR_PASSWD_CHANGE}" target="_blank"><b>&lt;&nbsp;{L_MODIFY}&nbsp;&gt;</b></a>
                  </dd>
               </dl>
               <!-- END switch_change_password -->
               </fieldset>
               <span class="corners-bottom"><span></span></span></div>
            </div>
            <!-- BEGIN switch_span_div -->
            <!-- END switch_span_div -->

            <!-- BEGIN switch_profile_fields -->
            <h1 class="page-title">{switch_informations_menu.switch_profile_fields.L_PROFILE_FIELDS}</h1>
            <div class="panel">
               <div class="inner"><span class="corners-top"><span></span></span>
               <fieldset>
                  <!-- BEGIN field -->
                  <dl>
                     <dt>{switch_informations_menu.switch_profile_fields.field.NAME}</dt>
                     <dd>
                        {switch_informations_menu.switch_profile_fields.field.OBJECT}<br />
                        <span class="italic">{switch_informations_menu.switch_profile_fields.field.DESCRIPTION}</span>
                     </dd>
                  </dl>
                  <!-- END field -->
               </fieldset>
               <span class="corners-bottom"><span></span></span></div>
            </div>
            <!-- END switch_profile_fields -->

            <!-- BEGIN switch_register_not_display -->
            <div class="panel">
               <div class="inner"><span class="corners-top"><span></span></span>

               <p>{L_PROFILE_INFO_NOTICE}</p>
               <fieldset>
                     <!-- BEGIN switch_unsubscribe_allowed -->
                        <dl>
                           <dt><label>{L_DELETE}</label></dt>
                           <dd><input type="checkbox" name="delete_user" /><span class="italic">{L_DELETE_EXPLAIN}</span>
                           </dd>
                        </dl>
                     <!-- END switch_unsubscribe_allowed -->
               </fieldset>

               <span class="corners-bottom"><span></span></span></div>
            </div>
            <!-- END switch_register_not_display -->

            <!-- BEGIN switch_profile_fields_register -->
            <div class="panel">
               <div class="inner"><span class="corners-top"><span></span></span>
               <fieldset>
               <!-- BEGIN field -->
               <dl>
                  <dt><label>{switch_informations_menu.switch_profile_fields_register.field.NAME} :</label></dt>
                  <dd>{switch_informations_menu.switch_profile_fields_register.field.OBJECT}<br /><br /></dd>
               </dl>
               <!-- END field -->
               </fieldset>
               <span class="corners-bottom"><span></span></span></div>
            </div>
            <!-- END switch_profile_fields_register -->

            <!-- END switch_informations_menu -->


<!-- BEGIN switch_confirm_password -->
<h1 class="page-title">{L_REGISTRATION_INFO}</h1>
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<fieldset>
<dl>
        <dt><label>{L_CURRENT_PASSWORD}&nbsp;: *</label></dt>
        <dd><input type="password" name="cur_password" value="{CUR_PASSWORD}" class="inputbox" /></dd>
</dl>
</fieldset>
<span class="corners-bottom"><span></span></span>
</div>
</div>
<!-- END switch_confirm_password -->
<!-- BEGIN switch_confirm_password_new -->
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<fieldset>
<dl>
        <dt><label>{L_NEW_PASSWORD}&nbsp;: *</label></dt>
        <dd><input type="password" name="new_password" value="{NEW_PASSWORD}" class="inputbox" maxlength="25" /></dd>
</dl>
<dl>
        <dt><label>{L_CONFIRM_PASSWORD}&nbsp;: *</label></dt>
        <dd>
         <input type="password" name="password_confirm" value="{PASSWORD_CONFIRM}" class="inputbox" maxlength="25" />
         <input type="hidden" name="change_password" value="change_password" />
      </dd>
</dl>
</fieldset>
<span class="corners-bottom"><span></span></span>
</div>
</div>
<!-- END switch_confirm_password_new -->


            <!-- BEGIN switch_preferences_menu -->
            <h1 class="page-title">{L_PREFERENCES}</h1>
            <div class="panel">
               <div class="inner"><span class="corners-top"><span></span></span>

               <fieldset>
               <dl>
                  <dt><label>{L_PUBLIC_VIEW_EMAIL} :</label></dt>
                  <dd>
                     <label><input type="radio" name="viewemail" value="2" {VIEW_EMAIL_FORM} />{L_YES}</label>
                     <!-- BEGIN switch_enable_mail_view --><label><input type="radio" name="viewemail" value="2" {VIEW_EMAIL_FORM} />{L_FORM}</label>
                     <label><input type="radio" name="viewemail" value="1" {VIEW_EMAIL_MAILTO} />{L_MAILTO}</label>
                     <!-- END switch_enable_mail_view --><label><input type="radio" name="viewemail" value="0" {VIEW_EMAIL_NO} />{L_NO}</label>
                  </dd>
               </dl>
               <!-- BEGIN switch_view_pm -->
               <dl>
                  <dt><label>{L_PUBLIC_VIEW_MP}&nbsp;:</label></dt>
                  <dd>
                     <label><input type="radio" name="view_pm" value="1" {VIEW_MP_YES} />{L_YES}</label>
                     <label><input type="radio" name="view_pm" value="0" {VIEW_MP_NO} />{L_NO}</label>
                  </dd>
               </dl>
               <!-- END switch_view_pm -->
               <!-- BEGIN switch_profile_advanced -->
               <dl>
                  <dt><label>{switch_preferences_menu.switch_profile_advanced.L_ALLOW_PROFILE_MSGS} :</label></dt>
                  <dd>
                     <label><input type="radio" name="profilemsgs" value="2" {switch_preferences_menu.switch_profile_advanced.PROFILE_MSGS_ALL} />{L_ALL_USERS}</label> &nbsp;
                     <label><input type="radio" name="profilemsgs" value="1" {switch_preferences_menu.switch_profile_advanced.PROFILE_MSGS_FRIENDS} />{L_MY_FRIENDS}</label> &nbsp;
                     <label><input type="radio" name="profilemsgs" value="0" {switch_preferences_menu.switch_profile_advanced.PROFILE_MSGS_NONE} />{L_NO_ONE}</label> &nbsp;
                     <label><input type="radio" name="profilemsgs" value="-1" {switch_preferences_menu.switch_profile_advanced.PROFILE_MSGS_HIDE} />{L_HIDE_TAB}</label>
                  </dd>
               </dl>
               <!-- END switch_profile_advanced -->
               <!-- BEGIN switch_fb_connect -->
               <dl>
                  <dt><label>{switch_preferences_menu.switch_fb_connect.L_FB_LINK_ACCOUNT} :</label></dt>
                  <dd>
                     <!-- BEGIN switch_fb_account_linked -->
                     <span class="italic">{switch_preferences_menu.switch_fb_connect.switch_fb_account_linked.L_FB_ACCOUNT_LINKED}</span>
                     <!-- END switch_fb_account_linked -->

                     <!-- BEGIN switch_fb_account_not_linked -->
                            <div class="fb-login-button" onlogin="facebook_link">{switch_preferences_menu.switch_fb_connect.switch_fb_account_not_linked.L_FB_LOGIN_BUTTON}</div>
                     <!-- END switch_fb_account_not_linked -->
                  </dd>
               </dl>
               <!-- BEGIN switch_fb_account_linked -->
               <dl>
                  <dt><label>{switch_preferences_menu.switch_fb_connect.switch_fb_account_linked.L_UNLINK_FB_ACCOUNT_EXPLAIN} :</label></dt>
                  <dd>
                     <label><input type="radio" name="unlink_fb_account" value="1" />{L_YES}</label>
                     <label><input type="radio" name="unlink_fb_account" value="0" checked="checked" />{L_NO}</label>
                  </dd>
               </dl>
               <!-- END switch_fb_account_linked -->
               <!-- END switch_fb_connect -->
               <dl>
                  <dt><label>{L_NEWSLETTER_ACCEPT} :</label></dt>
                  <dd>
                     <label><input type="radio" name="newsletter" value="1" {NEWSLETTER_YES} />{L_YES}</label>
                     <label><input type="radio" name="newsletter" value="0" {NEWSLETTER_NO} />{L_NO}</label>
                     <br /><span class="italic">{L_NEWSLETTER_ACCEPT_EXPLAIN}</span>
                  </dd>
               </dl>
               <dl>
                  <dt><label>{L_HIDE_USER} :</label></dt>
                  <dd>
                     <label><input type="radio" name="hideonline" value="1" {HIDE_USER_YES} />{L_YES}</label>
                     <label><input type="radio" name="hideonline" value="0" {HIDE_USER_NO} />{L_NO}</label>
                  </dd>
               </dl>
               <dl>
                  <dt><label>{L_NOTIFY_ON_REPLY} :</label></dt>
                  <dd>
                     <label><input type="radio" name="notifyreply" value="1" {NOTIFY_REPLY_YES} />{L_YES}</label>
                     <label><input type="radio" name="notifyreply" value="0" {NOTIFY_REPLY_NO} />{L_NO}</label>
                     <br /><span class="italic">{L_NOTIFY_ON_REPLY_EXPLAIN}</span>
                  </dd>
               </dl>
               <!-- BEGIN switch_can_disable_mass_pm -->
               <dl>
                  <dt><label>{L_ENABLE_MASS_PM} : </label></dt>
                  <dd>
                     <label><input type="radio" name="allow_mass_pm" value="4" {ALLOW_MASS_PM_NOTIFY_CHECKED} />{L_YES}</label>
                     <label><input type="radio" name="allow_mass_pm" value="2" {ALLOW_MASS_PM_CHECKED} />{L_NO}</label>
                     <label><input type="radio" name="allow_mass_pm" value="0" {DISABLE_MASS_PM_CHECKED} />{L_NO_MASS_PM}</label>
                     <br /><span class="italic">{L_ENABLE_MASS_PM_EXPLAIN}</span>
                  </dd>
               </dl>
               <!-- END switch_can_disable_mass_pm -->
               <!-- BEGIN switch_notify_subscriptions -->
               <dl>
                  <dt><label>{L_NOTIFY_SUBSCRIPTIONS} :</label></dt>
                  <dd>
                     <label><input type="radio" name="notify_subscriptions" value="1" {NOTIFY_SUBSCRIPTIONS_YES} />{L_YES}</label>
                     <label><input type="radio" name="notify_subscriptions" value="0" {NOTIFY_SUBSCRIPTIONS_NO} />{L_NO}</label>
                  </dd>
               </dl>
               <!-- END switch_notify_subscriptions -->
               <dl>
                  <dt><label>{L_POPUP_ON_PRIVMSG} :</label></dt>
                  <dd>
                     <label><input type="radio" name="popup_pm" value="1" {POPUP_PM_YES} />{L_YES}</label>
                     <label><input type="radio" name="popup_pm" value="0" {POPUP_PM_NO} />{L_NO}</label>
                     <br /><span class="italic">{L_POPUP_ON_PRIVMSG_EXPLAIN}</span>
                  </dd>
               </dl>
               <dl>
                  <dt><label>{L_NOTIFY_POST_PREVENT} :</label></dt>
                  <dd>
                     <label><input type="radio" name="post_prevent" value="1" {POST_PREVENT_YES} />{L_YES}</label>
                     <label><input type="radio" name="post_prevent" value="0" {POST_PREVENT_NO} />{L_NO}</label>
                     <br /><span class="italic">{L_NOTIFY_POST_PREVENT_EXPLAIN}</span>
                  </dd>
               </dl>
               <!-- BEGIN switch_report -->
               <dl>
                     <dt><label>{switch_preferences_menu.switch_report.L_NO_REPORT_POPUP} :</label></dt>
                  <dd>
                     <label><input type="radio" name="no_report_popup" value="0" {switch_preferences_menu.switch_report.NO_REPORT_POPUP_YES} />{L_YES}</label>
                     <label><input type="radio" name="no_report_popup" value="1" {switch_preferences_menu.switch_report.NO_REPORT_POPUP_NO} />{L_NO}</label>
                  </dd>
               </dl>
               <!-- END switch_report -->
               <dl>
                  <dt><label>{L_ALWAYS_ADD_SIGNATURE} :</label></dt>
                  <dd>
                     <label><input type="radio" name="attachsig" value="1" {ALWAYS_ADD_SIGNATURE_YES} />{L_YES}</label>
                     <label><input type="radio" name="attachsig" value="0" {ALWAYS_ADD_SIGNATURE_NO} />{L_NO}</label>
                  </dd>
               </dl>
               <dl>
                  <dt><label>{L_ALWAYS_ALLOW_BBCODE} :</label></dt>
                  <dd>
                     <label><input type="radio" name="allowbbcode" value="1" {ALWAYS_ALLOW_BBCODE_YES} />{L_YES}</label>
                     <label><input type="radio" name="allowbbcode" value="0" {ALWAYS_ALLOW_BBCODE_NO} />{L_NO}</label>
                  </dd>
               </dl>
               <dl>
                  <dt><label>{L_ALWAYS_ALLOW_HTML} :</label></dt>
                  <dd>
                     <label><input type="radio" name="allowhtml" value="1" {ALWAYS_ALLOW_HTML_YES} />{L_YES}</label>
                     <label><input type="radio" name="allowhtml" value="0" {ALWAYS_ALLOW_HTML_NO} />{L_NO}</label>
                  </dd>
               </dl>
               <dl>
                  <dt><label>{L_ALWAYS_ALLOW_SMILIES} :</label></dt>
                  <dd>
                     <label><input type="radio" name="allowsmilies" value="1" {ALWAYS_ALLOW_SMILIES_YES} />{L_YES}</label>
                     <label><input type="radio" name="allowsmilies" value="0" {ALWAYS_ALLOW_SMILIES_NO} />{L_NO}</label>
                  </dd>
               </dl>
               <dl>
                  <dt><label>{L_BOARD_LANGUAGE} :</label></dt>
                  <dd>{LANGUAGE_SELECT}</dd>
               </dl>
               <dl>
                  <dt><label>{L_TIMEZONE} :</label></dt>
                  <dd>{TIMEZONE_SELECT}</dd>
               </dl>
               <dl>
                  <dt><label>{L_DATE_FORMAT} :</label></dt>
                  <dd>{DATE_FORMAT}
                     <br /><span class="italic">{CURRENT_TIME}</span>
                  </dd>
               </dl>
               </fieldset>

               <span class="corners-bottom"><span></span></span></div>
            </div>
            <!-- END switch_preferences_menu -->

            <!-- BEGIN switch_avatar_block -->
            <h1 class="page-title">{L_AVATAR_PANEL}</h1>
            <div class="panel">
               <div class="inner"><span class="corners-top"><span></span></span>

               <fieldset>
               <dl>
                  <dt><label>{L_AVATAR_EXPLAIN}</label></dt>
                  <dd>
                     {L_CURRENT_IMAGE}
                     <br />{AVATAR}
                     <br /><input type="checkbox" name="avatardel" />{L_DELETE_AVATAR}
                  </dd>
               </dl>
                                               
                                        <!-- BEGIN switch_avatar_faceyourmanga -->
                                        <dl>
                                            <dt><label>{L_FACEYOURMANGA_BUTTON_LABEL}</label></dt>
                                            <dd>
                                                <img src="{L_FACEYOURMANGA_LINK_IMG}" onclick="$('#fym_avatar_form').submit()" id="fym_banner" style="cursor:pointer;cursor:hand;" />
                                                <br />
                                                <input type="button" onclick="$('#fym_avatar_form').submit()" value="{L_FACEYOURMANGA_BUTTON_LABEL}" class="button button1" />
                                            </dd>
                                        </dl>
                                        <!-- END switch_avatar_faceyourmanga -->

                        <!-- BEGIN switch_avatar_faceyourmanga_alternate -->
                        <dl>
                            <dt><label>{L_FACEYOURMANGA_BUTTON_LABEL}</label></dt>
                            <dd>
                                <img src="{L_FACEYOURMANGA_LINK_IMG}" onclick="{switch_avatar_block.switch_avatar_faceyourmanga_alternate.ONCLICK_FYM}" id="fym_banner" style="cursor:pointer;cursor:hand;" />
                                <br />
                                <input type="button" onclick="{switch_avatar_block.switch_avatar_faceyourmanga_alternate.ONCLICK_FYM}" value="{L_FACEYOURMANGA_BUTTON_LABEL}" class="button button1" />
                            </dd>
                        </dl>
                        <!-- END switch_avatar_faceyourmanga_alternate -->
                       
               <!-- BEGIN switch_avatar_local_upload -->
               <dl>
                  <dt><label>{L_UPLOAD_AVATAR_FILE} :</label></dt>
                  <dd><input type="file" name="avatar" class="inputbox" /></dd>
               </dl>
               <!-- END switch_avatar_local_upload -->
               <!-- BEGIN switch_avatar_remote_upload -->
               <dl>
                  <dt><label>{L_UPLOAD_AVATAR_URL} :</label></dt>
                  <dd><input type="text" name="avatarurl" class="inputbox" />
                     <br /><span class="italic">{L_UPLOAD_AVATAR_URL_EXPLAIN}</span>
                  </dd>
               </dl>
               <!-- END switch_avatar_remote_upload -->
               <!-- BEGIN switch_avatar_remote_link -->
               <dl>
                  <dt><label>{L_LINK_REMOTE_AVATAR} :</label></dt>
                  <dd><input type="text" name="avatarremoteurl" class="inputbox" />
                     <br /><span class="italic">{L_LINK_REMOTE_AVATAR_EXPLAIN}</span>
                  </dd>
               </dl>
               <!-- END switch_avatar_remote_link -->
               <!-- BEGIN switch_avatar_local_gallery -->
               <dl>
                  <dt><label>{L_AVATAR_GALLERY} :</label></dt>
                  <dd><input type="submit" name="avatargallery" value="{L_SHOW_GALLERY}" class="button1" /></dd>
               </dl>
               <!-- END switch_avatar_local_gallery -->
               </fieldset>
               <span class="corners-bottom"><span></span></span></div>
            </div>
            <!-- END switch_avatar_block -->

            <fieldset class="submit-buttons">
               {S_HIDDEN_FIELDS}
               <input class="button1" type="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
               <input class="button2" type="reset" name="reset" value="{L_RESET}" />
            </fieldset>
         </form>
                                               
                        <!-- BEGIN switch_avatar_block -->
                            <!-- BEGIN switch_avatar_faceyourmanga -->
                            <form id="fym_avatar_form" action="{L_FACEYOURMANGA_LINK_URL}" method="GET" target="_blank">
                                <input type="hidden" name="lang" value="{FORUM_LANGUAGE}" />
                                <input type="hidden" name="site" value="{FORUM_HOSTNAME}" />                                           
                            </form>                           
                            <!-- END switch_avatar_faceyourmanga -->
                        <!-- END switch_avatar_block -->
      </div>
      <div class="clear"></div>
      <span class="corners-bottom"><span></span></span>
   </div>
</div>

<script type="text/javascript">
$(function(){
    $('input[name=reset]').click(function(){
        $("#pwd_good,#pwd_middle,#pwd_bad").hide();
    });
    $('input[name=new_password],input[name=username]').keyup(function() {
        if ( $('input[name=new_password]').val() != "" )
        {
            var level = passwordStrength($('input[name=new_password]').val(),$('input[name=username]').val());
        switch(level)
        {
            case 'bad' :
                $("#pwd_middle,#pwd_good").hide();
                $("#pwd_bad").show();
                break;
            case 'good' :
                $("#pwd_good,#pwd_bad").hide();
                $("#pwd_middle").show();
                break;
            case 'strong' :
                $("#pwd_middle,#pwd_bad").hide();
                $("#pwd_good").show();
                break;
            }
        }
        else
        {
            $("#pwd_middle,#pwd_good,#pwd_bad").hide();
        }
    }); 
           
    var banner_width;   
    $(window).on("resize", function(){       
        $("#fym_banner").width(banner_width /($(window).width() < 1000 ? 1.5 : 1));
    })
    .load(function(){
        banner_width = $("#fym_banner").width();
        $(this).trigger("resize");
    });
});
</script>
CR7 Oliveira

CR7 Oliveira
*****

Membro desde : 08/02/2016
Mensagens : 468
Pontos : 698

https://ajuda.forumeiros.com/

Ir para o topo Ir para baixo

Membro Entusiasta

Tópico resolvido Re: Impedir a invisibilidade na opção perfil

Mensagem por Luiz 20/06/17, 09:14 pm

Luiz

Luiz
Membro Entusiasta
Membro Entusiasta

Membro desde : 23/04/2016
Mensagens : 6645
Pontos : 7451

https://luizfelipe.dev

Ir para o topo Ir para baixo

Tópico resolvido Re: Impedir a invisibilidade na opção perfil

Mensagem por CR7 Oliveira 20/06/17, 09:19 pm

É bloquear a opção Ocultar deixei o tutorial acima na primeira mensagem e também tem uma print lá,

https://2img.net/h/oi52.tinypic.com/20kbrlc.png
CR7 Oliveira

CR7 Oliveira
*****

Membro desde : 08/02/2016
Mensagens : 468
Pontos : 698

https://ajuda.forumeiros.com/

Ir para o topo Ir para baixo

  • 0

Tópico resolvido Re: Impedir a invisibilidade na opção perfil

Mensagem por Harleen 20/06/17, 09:27 pm

Altere o template para esse
Código:
<script type="text/javascript" src="{JSPWD}"></script>
    <!-- BEGIN switch_display_menu -->
    {UCP_TABS}
    <!-- END switch_display_menu -->

    {ERROR_BOX}

    <div class="panel row3">
      <div class="inner">
          <span class="corners-top"><span></span></span>

          <div id="cp-main" class="ucp-main">
            <form action="{S_PROFILE_ACTION}" {S_FORM_ENCTYPE} method="post" name="post" id="ucp">
            <!-- BEGIN switch_informations_menu -->
                <h1 class="page-title">{L_REGISTRATION_INFO}</h1>
                <div class="panel">
                  <div class="inner"><span class="corners-top"><span></span></span>

                  <p>{L_ITEMS_REQUIRED}</p>
                  <fieldset>
                  <!-- BEGIN switch_namechange_disallowed -->
                  <dl>
                      <dt><label>{L_USERNAME} : *</label></dt>
                      <dd><input type="hidden" name="username" value="{USERNAME}" class="inputbox" /><strong>{USERNAME}</strong></dd>
                  </dl>
                  <!-- END switch_namechange_disallowed -->
                  <!-- BEGIN switch_namechange_allowed -->
                  <dl>
                      <dt><label>{L_USERNAME} : *</label></dt>
                      <dd><input type="text" name="username" value="{USERNAME}" class="inputbox" /></dd>
                  </dl>
                  <!-- END switch_namechange_allowed -->
                  <!-- BEGIN switch_emailchange_disallowed -->
                  <dl>
                      <dt><label>{L_EMAIL_ADDRESS} : *</label></dt>
                      <dd><input type="hidden" name="email" value="{EMAIL}" />{EMAIL}</dd>
                  </dl>
                  <!-- END switch_emailchange_disallowed -->
                  <!-- BEGIN switch_emailchange_allowed -->
                  <dl>
                      <dt><label>{L_EMAIL_ADDRESS} : *</label></dt>
                      <dd><input type="text" name="email" value="{EMAIL}" class="inputbox" /></dd>
                  </dl>
                  <!-- END switch_emailchange_allowed -->

                  <!-- BEGIN switch_change_password -->
                  <dl>
                      <dt><label>{L_CHANGE_PASSWORD} : *</label></dt>
                      <dd>
                        <a href="{LINK_FOR_PASSWD_CHANGE}" target="_blank"><b>&lt;&nbsp;{L_MODIFY}&nbsp;&gt;</b></a>
                      </dd>
                  </dl>
                  <!-- END switch_change_password -->
                  </fieldset>
                  <span class="corners-bottom"><span></span></span></div>
                </div>
                <!-- BEGIN switch_span_div -->
                <!-- END switch_span_div -->

                <!-- BEGIN switch_profile_fields -->
                <h1 class="page-title">{switch_informations_menu.switch_profile_fields.L_PROFILE_FIELDS}</h1>
                <div class="panel">
                  <div class="inner"><span class="corners-top"><span></span></span>
                  <fieldset>
                      <!-- BEGIN field -->
                      <dl>
                        <dt>{switch_informations_menu.switch_profile_fields.field.NAME}</dt>
                        <dd>
                            {switch_informations_menu.switch_profile_fields.field.OBJECT}<br />
                            <span class="italic">{switch_informations_menu.switch_profile_fields.field.DESCRIPTION}</span>
                        </dd>
                      </dl>
                      <!-- END field -->
                  </fieldset>
                  <span class="corners-bottom"><span></span></span></div>
                </div>
                <!-- END switch_profile_fields -->

                <!-- BEGIN switch_register_not_display -->
                <div class="panel">
                  <div class="inner"><span class="corners-top"><span></span></span>

                  <p>{L_PROFILE_INFO_NOTICE}</p>
                  <fieldset>
                        <!-- BEGIN switch_unsubscribe_allowed -->
                            <dl>
                              <dt><label>{L_DELETE}</label></dt>
                              <dd><input type="checkbox" name="delete_user" /><span class="italic">{L_DELETE_EXPLAIN}</span>
                              </dd>
                            </dl>
                        <!-- END switch_unsubscribe_allowed -->
                  </fieldset>

                  <span class="corners-bottom"><span></span></span></div>
                </div>
                <!-- END switch_register_not_display -->

                <!-- BEGIN switch_profile_fields_register -->
                <div class="panel">
                  <div class="inner"><span class="corners-top"><span></span></span>
                  <fieldset>
                  <!-- BEGIN field -->
                  <dl>
                      <dt><label>{switch_informations_menu.switch_profile_fields_register.field.NAME} :</label></dt>
                      <dd>{switch_informations_menu.switch_profile_fields_register.field.OBJECT}<br /><br /></dd>
                  </dl>
                  <!-- END field -->
                  </fieldset>
                  <span class="corners-bottom"><span></span></span></div>
                </div>
                <!-- END switch_profile_fields_register -->

                <!-- END switch_informations_menu -->


    <!-- BEGIN switch_confirm_password -->
    <h1 class="page-title">{L_REGISTRATION_INFO}</h1>
    <div class="panel">
    <div class="inner"><span class="corners-top"><span></span></span>
    <fieldset>
    <dl>
            <dt><label>{L_CURRENT_PASSWORD}&nbsp;: *</label></dt>
            <dd><input type="password" name="cur_password" value="{CUR_PASSWORD}" class="inputbox" /></dd>
    </dl>
    </fieldset>
    <span class="corners-bottom"><span></span></span>
    </div>
    </div>
    <!-- END switch_confirm_password -->
    <!-- BEGIN switch_confirm_password_new -->
    <div class="panel">
    <div class="inner"><span class="corners-top"><span></span></span>
    <fieldset>
    <dl>
            <dt><label>{L_NEW_PASSWORD}&nbsp;: *</label></dt>
            <dd><input type="password" name="new_password" value="{NEW_PASSWORD}" class="inputbox" maxlength="25" /></dd>
    </dl>
    <dl>
            <dt><label>{L_CONFIRM_PASSWORD}&nbsp;: *</label></dt>
            <dd>
            <input type="password" name="password_confirm" value="{PASSWORD_CONFIRM}" class="inputbox" maxlength="25" />
            <input type="hidden" name="change_password" value="change_password" />
          </dd>
    </dl>
    </fieldset>
    <span class="corners-bottom"><span></span></span>
    </div>
    </div>
    <!-- END switch_confirm_password_new -->


                <!-- BEGIN switch_preferences_menu -->
                <h1 class="page-title">{L_PREFERENCES}</h1>
                <div class="panel">
                  <div class="inner"><span class="corners-top"><span></span></span>

                  <fieldset>
                  <dl>
                      <dt><label>{L_PUBLIC_VIEW_EMAIL} :</label></dt>
                      <dd>
                        <label><input type="radio" name="viewemail" value="2" {VIEW_EMAIL_FORM} />{L_YES}</label>
                        <!-- BEGIN switch_enable_mail_view --><label><input type="radio" name="viewemail" value="2" {VIEW_EMAIL_FORM} />{L_FORM}</label>
                        <label><input type="radio" name="viewemail" value="1" {VIEW_EMAIL_MAILTO} />{L_MAILTO}</label>
                        <!-- END switch_enable_mail_view --><label><input type="radio" name="viewemail" value="0" {VIEW_EMAIL_NO} />{L_NO}</label>
                      </dd>
                  </dl>
                  <!-- BEGIN switch_view_pm -->
                  <dl>
                      <dt><label>{L_PUBLIC_VIEW_MP}&nbsp;:</label></dt>
                      <dd>
                        <label><input type="radio" name="view_pm" value="1" {VIEW_MP_YES} />{L_YES}</label>
                        <label><input type="radio" name="view_pm" value="0" {VIEW_MP_NO} />{L_NO}</label>
                      </dd>
                  </dl>
                  <!-- END switch_view_pm -->
                  <!-- BEGIN switch_profile_advanced -->
                  <dl>
                      <dt><label>{switch_preferences_menu.switch_profile_advanced.L_ALLOW_PROFILE_MSGS} :</label></dt>
                      <dd>
                        <label><input type="radio" name="profilemsgs" value="2" {switch_preferences_menu.switch_profile_advanced.PROFILE_MSGS_ALL} />{L_ALL_USERS}</label> &nbsp;
                        <label><input type="radio" name="profilemsgs" value="1" {switch_preferences_menu.switch_profile_advanced.PROFILE_MSGS_FRIENDS} />{L_MY_FRIENDS}</label> &nbsp;
                        <label><input type="radio" name="profilemsgs" value="0" {switch_preferences_menu.switch_profile_advanced.PROFILE_MSGS_NONE} />{L_NO_ONE}</label> &nbsp;
                        <label><input type="radio" name="profilemsgs" value="-1" {switch_preferences_menu.switch_profile_advanced.PROFILE_MSGS_HIDE} />{L_HIDE_TAB}</label>
                      </dd>
                  </dl>
                  <!-- END switch_profile_advanced -->
                  <!-- BEGIN switch_fb_connect -->
                  <dl>
                      <dt><label>{switch_preferences_menu.switch_fb_connect.L_FB_LINK_ACCOUNT} :</label></dt>
                      <dd>
                        <!-- BEGIN switch_fb_account_linked -->
                        <span class="italic">{switch_preferences_menu.switch_fb_connect.switch_fb_account_linked.L_FB_ACCOUNT_LINKED}</span>
                        <!-- END switch_fb_account_linked -->

                        <!-- BEGIN switch_fb_account_not_linked -->
                                <div class="fb-login-button" onlogin="facebook_link">{switch_preferences_menu.switch_fb_connect.switch_fb_account_not_linked.L_FB_LOGIN_BUTTON}</div>
                        <!-- END switch_fb_account_not_linked -->
                      </dd>
                  </dl>
                  <!-- BEGIN switch_fb_account_linked -->
                  <dl>
                      <dt><label>{switch_preferences_menu.switch_fb_connect.switch_fb_account_linked.L_UNLINK_FB_ACCOUNT_EXPLAIN} :</label></dt>
                      <dd>
                        <label><input type="radio" name="unlink_fb_account" value="1" />{L_YES}</label>
                        <label><input type="radio" name="unlink_fb_account" value="0" checked="checked" />{L_NO}</label>
                      </dd>
                  </dl>
                  <!-- END switch_fb_account_linked -->
                  <!-- END switch_fb_connect -->
                  <dl>
                      <dt><label>{L_NEWSLETTER_ACCEPT} :</label></dt>
                      <dd>
                        <label><input type="radio" name="newsletter" value="1" {NEWSLETTER_YES} />{L_YES}</label>
                        <label><input type="radio" name="newsletter" value="0" {NEWSLETTER_NO} />{L_NO}</label>
                        <br /><span class="italic">{L_NEWSLETTER_ACCEPT_EXPLAIN}</span>
                      </dd>
                  </dl>
                  <dl>
                      <dt><label>{L_HIDE_USER} :</label></dt>
                      <dd>
       
                <label class="gen"><b> O administrador do fórum impediu a invisibilidade.</b></label>
               
                      </dd>
                  </dl>
                  <dl>
                      <dt><label>{L_NOTIFY_ON_REPLY} :</label></dt>
                      <dd>
                        <label><input type="radio" name="notifyreply" value="1" {NOTIFY_REPLY_YES} />{L_YES}</label>
                        <label><input type="radio" name="notifyreply" value="0" {NOTIFY_REPLY_NO} />{L_NO}</label>
                        <br /><span class="italic">{L_NOTIFY_ON_REPLY_EXPLAIN}</span>
                      </dd>
                  </dl>
                  <!-- BEGIN switch_can_disable_mass_pm -->
                  <dl>
                      <dt><label>{L_ENABLE_MASS_PM} : </label></dt>
                      <dd>
                        <label><input type="radio" name="allow_mass_pm" value="4" {ALLOW_MASS_PM_NOTIFY_CHECKED} />{L_YES}</label>
                        <label><input type="radio" name="allow_mass_pm" value="2" {ALLOW_MASS_PM_CHECKED} />{L_NO}</label>
                        <label><input type="radio" name="allow_mass_pm" value="0" {DISABLE_MASS_PM_CHECKED} />{L_NO_MASS_PM}</label>
                        <br /><span class="italic">{L_ENABLE_MASS_PM_EXPLAIN}</span>
                      </dd>
                  </dl>
                  <!-- END switch_can_disable_mass_pm -->
                  <!-- BEGIN switch_notify_subscriptions -->
                  <dl>
                      <dt><label>{L_NOTIFY_SUBSCRIPTIONS} :</label></dt>
                      <dd>
                        <label><input type="radio" name="notify_subscriptions" value="1" {NOTIFY_SUBSCRIPTIONS_YES} />{L_YES}</label>
                        <label><input type="radio" name="notify_subscriptions" value="0" {NOTIFY_SUBSCRIPTIONS_NO} />{L_NO}</label>
                      </dd>
                  </dl>
                  <!-- END switch_notify_subscriptions -->
                  <dl>
                      <dt><label>{L_POPUP_ON_PRIVMSG} :</label></dt>
                      <dd>
                        <label><input type="radio" name="popup_pm" value="1" {POPUP_PM_YES} />{L_YES}</label>
                        <label><input type="radio" name="popup_pm" value="0" {POPUP_PM_NO} />{L_NO}</label>
                        <br /><span class="italic">{L_POPUP_ON_PRIVMSG_EXPLAIN}</span>
                      </dd>
                  </dl>
                  <dl>
                      <dt><label>{L_NOTIFY_POST_PREVENT} :</label></dt>
                      <dd>
                        <label><input type="radio" name="post_prevent" value="1" {POST_PREVENT_YES} />{L_YES}</label>
                        <label><input type="radio" name="post_prevent" value="0" {POST_PREVENT_NO} />{L_NO}</label>
                        <br /><span class="italic">{L_NOTIFY_POST_PREVENT_EXPLAIN}</span>
                      </dd>
                  </dl>
                  <!-- BEGIN switch_report -->
                  <dl>
                        <dt><label>{switch_preferences_menu.switch_report.L_NO_REPORT_POPUP} :</label></dt>
                      <dd>
                        <label><input type="radio" name="no_report_popup" value="0" {switch_preferences_menu.switch_report.NO_REPORT_POPUP_YES} />{L_YES}</label>
                        <label><input type="radio" name="no_report_popup" value="1" {switch_preferences_menu.switch_report.NO_REPORT_POPUP_NO} />{L_NO}</label>
                      </dd>
                  </dl>
                  <!-- END switch_report -->
                  <dl>
                      <dt><label>{L_ALWAYS_ADD_SIGNATURE} :</label></dt>
                      <dd>
                        <label><input type="radio" name="attachsig" value="1" {ALWAYS_ADD_SIGNATURE_YES} />{L_YES}</label>
                        <label><input type="radio" name="attachsig" value="0" {ALWAYS_ADD_SIGNATURE_NO} />{L_NO}</label>
                      </dd>
                  </dl>
                  <dl>
                      <dt><label>{L_ALWAYS_ALLOW_BBCODE} :</label></dt>
                      <dd>
                        <label><input type="radio" name="allowbbcode" value="1" {ALWAYS_ALLOW_BBCODE_YES} />{L_YES}</label>
                        <label><input type="radio" name="allowbbcode" value="0" {ALWAYS_ALLOW_BBCODE_NO} />{L_NO}</label>
                      </dd>
                  </dl>
                  <dl>
                      <dt><label>{L_ALWAYS_ALLOW_HTML} :</label></dt>
                      <dd>
                        <label><input type="radio" name="allowhtml" value="1" {ALWAYS_ALLOW_HTML_YES} />{L_YES}</label>
                        <label><input type="radio" name="allowhtml" value="0" {ALWAYS_ALLOW_HTML_NO} />{L_NO}</label>
                      </dd>
                  </dl>
                  <dl>
                      <dt><label>{L_ALWAYS_ALLOW_SMILIES} :</label></dt>
                      <dd>
                        <label><input type="radio" name="allowsmilies" value="1" {ALWAYS_ALLOW_SMILIES_YES} />{L_YES}</label>
                        <label><input type="radio" name="allowsmilies" value="0" {ALWAYS_ALLOW_SMILIES_NO} />{L_NO}</label>
                      </dd>
                  </dl>
                  <dl>
                      <dt><label>{L_BOARD_LANGUAGE} :</label></dt>
                      <dd>{LANGUAGE_SELECT}</dd>
                  </dl>
                  <dl>
                      <dt><label>{L_TIMEZONE} :</label></dt>
                      <dd>{TIMEZONE_SELECT}</dd>
                  </dl>
                  <dl>
                      <dt><label>{L_DATE_FORMAT} :</label></dt>
                      <dd>{DATE_FORMAT}
                        <br /><span class="italic">{CURRENT_TIME}</span>
                      </dd>
                  </dl>
                  </fieldset>

                  <span class="corners-bottom"><span></span></span></div>
                </div>
                <!-- END switch_preferences_menu -->

                <!-- BEGIN switch_avatar_block -->
                <h1 class="page-title">{L_AVATAR_PANEL}</h1>
                <div class="panel">
                  <div class="inner"><span class="corners-top"><span></span></span>

                  <fieldset>
                  <dl>
                      <dt><label>{L_AVATAR_EXPLAIN}</label></dt>
                      <dd>
                        {L_CURRENT_IMAGE}
                        <br />{AVATAR}
                        <br /><input type="checkbox" name="avatardel" />{L_DELETE_AVATAR}
                      </dd>
                  </dl>
                                                 
                                            <!-- BEGIN switch_avatar_faceyourmanga -->
                                            <dl>
                                                <dt><label>{L_FACEYOURMANGA_BUTTON_LABEL}</label></dt>
                                                <dd>
                                                    <img src="{L_FACEYOURMANGA_LINK_IMG}" onclick="$('#fym_avatar_form').submit()" id="fym_banner" style="cursor:pointer;cursor:hand;" />
                                                    <br />
                                                    <input type="button" onclick="$('#fym_avatar_form').submit()" value="{L_FACEYOURMANGA_BUTTON_LABEL}" class="button button1" />
                                                </dd>
                                            </dl>
                                            <!-- END switch_avatar_faceyourmanga -->

                            <!-- BEGIN switch_avatar_faceyourmanga_alternate -->
                            <dl>
                                <dt><label>{L_FACEYOURMANGA_BUTTON_LABEL}</label></dt>
                                <dd>
                                    <img src="{L_FACEYOURMANGA_LINK_IMG}" onclick="{switch_avatar_block.switch_avatar_faceyourmanga_alternate.ONCLICK_FYM}" id="fym_banner" style="cursor:pointer;cursor:hand;" />
                                    <br />
                                    <input type="button" onclick="{switch_avatar_block.switch_avatar_faceyourmanga_alternate.ONCLICK_FYM}" value="{L_FACEYOURMANGA_BUTTON_LABEL}" class="button button1" />
                                </dd>
                            </dl>
                            <!-- END switch_avatar_faceyourmanga_alternate -->
                         
                  <!-- BEGIN switch_avatar_local_upload -->
                  <dl>
                      <dt><label>{L_UPLOAD_AVATAR_FILE} :</label></dt>
                      <dd><input type="file" name="avatar" class="inputbox" /></dd>
                  </dl>
                  <!-- END switch_avatar_local_upload -->
                  <!-- BEGIN switch_avatar_remote_upload -->
                  <dl>
                      <dt><label>{L_UPLOAD_AVATAR_URL} :</label></dt>
                      <dd><input type="text" name="avatarurl" class="inputbox" />
                        <br /><span class="italic">{L_UPLOAD_AVATAR_URL_EXPLAIN}</span>
                      </dd>
                  </dl>
                  <!-- END switch_avatar_remote_upload -->
                  <!-- BEGIN switch_avatar_remote_link -->
                  <dl>
                      <dt><label>{L_LINK_REMOTE_AVATAR} :</label></dt>
                      <dd><input type="text" name="avatarremoteurl" class="inputbox" />
                        <br /><span class="italic">{L_LINK_REMOTE_AVATAR_EXPLAIN}</span>
                      </dd>
                  </dl>
                  <!-- END switch_avatar_remote_link -->
                  <!-- BEGIN switch_avatar_local_gallery -->
                  <dl>
                      <dt><label>{L_AVATAR_GALLERY} :</label></dt>
                      <dd><input type="submit" name="avatargallery" value="{L_SHOW_GALLERY}" class="button1" /></dd>
                  </dl>
                  <!-- END switch_avatar_local_gallery -->
                  </fieldset>
                  <span class="corners-bottom"><span></span></span></div>
                </div>
                <!-- END switch_avatar_block -->

                <fieldset class="submit-buttons">
                  {S_HIDDEN_FIELDS}
                  <input class="button1" type="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
                  <input class="button2" type="reset" name="reset" value="{L_RESET}" />
                </fieldset>
            </form>
                                                 
                            <!-- BEGIN switch_avatar_block -->
                                <!-- BEGIN switch_avatar_faceyourmanga -->
                                <form id="fym_avatar_form" action="{L_FACEYOURMANGA_LINK_URL}" method="GET" target="_blank">
                                    <input type="hidden" name="lang" value="{FORUM_LANGUAGE}" />
                                    <input type="hidden" name="site" value="{FORUM_HOSTNAME}" />                                         
                                </form>                         
                                <!-- END switch_avatar_faceyourmanga -->
                            <!-- END switch_avatar_block -->
          </div>
          <div class="clear"></div>
          <span class="corners-bottom"><span></span></span>
      </div>
    </div>

    <script type="text/javascript">
    $(function(){
        $('input[name=reset]').click(function(){
            $("#pwd_good,#pwd_middle,#pwd_bad").hide();
        });
        $('input[name=new_password],input[name=username]').keyup(function() {
            if ( $('input[name=new_password]').val() != "" )
            {
                var level = passwordStrength($('input[name=new_password]').val(),$('input[name=username]').val());
            switch(level)
            {
                case 'bad' :
                    $("#pwd_middle,#pwd_good").hide();
                    $("#pwd_bad").show();
                    break;
                case 'good' :
                    $("#pwd_good,#pwd_bad").hide();
                    $("#pwd_middle").show();
                    break;
                case 'strong' :
                    $("#pwd_middle,#pwd_bad").hide();
                    $("#pwd_good").show();
                    break;
                }
            }
            else
            {
                $("#pwd_middle,#pwd_good,#pwd_bad").hide();
            }
        });
             
        var banner_width; 
        $(window).on("resize", function(){     
            $("#fym_banner").width(banner_width /($(window).width() < 1000 ? 1.5 : 1));
        })
        .load(function(){
            banner_width = $("#fym_banner").width();
            $(this).trigger("resize");
        });
    });
    </script>

Resultado http://prntscr.com/fm3rp0
Harleen

Harleen
Super Membro

Membro desde : 09/07/2012
Mensagens : 1779
Pontos : 2373

https://antenadogames.forumeiros.com/

Ir para o topo Ir para baixo

Tópico resolvido Re: Impedir a invisibilidade na opção perfil

Mensagem por CR7 Oliveira 20/06/17, 09:35 pm

Obrigado deu certo  Muito feliz
CR7 Oliveira

CR7 Oliveira
*****

Membro desde : 08/02/2016
Mensagens : 468
Pontos : 698

https://ajuda.forumeiros.com/

Ir para o topo Ir para baixo

Tópico resolvido Re: Impedir a invisibilidade na opção perfil

Mensagem por Harleen 20/06/17, 09:35 pm

Questão marcada como Resolvida ou o Autor solicitou que ela fosse arquivada.
Tópico marcado como Resolvido e movido para Questões resolvidas.
Harleen

Harleen
Super Membro

Membro desde : 09/07/2012
Mensagens : 1779
Pontos : 2373

https://antenadogames.forumeiros.com/

Ir para o topo Ir para baixo

Ver o tópico anterior Ver o tópico seguinte Ir para o topo


Permissões neste sub-fórum
Não podes responder a tópicos