1. Мы продолжаем публиковать интересные статьи на тему SocialEngine 4. Одна из статей посвящена правильному выбору сервера для вашей социальной сети, а другая содержит советы по увеличению производительности платформы. Также мы добавили большую статью о пользовательских уровнях. Ознакомиться со статьями вы можете в разделе Вопросы и Ответы SocialEngine 4.
  2. Вам кажется, что ваша версия SocialEngine 4, работает медленно?

    Голосуйте. Пишите свою версию системы, железо на чем работает и количество пользователей. Будем увеличивать производительность :-) Подробнее

  3. В связи с участившимися случаями попыток продажи пользователями форума различных "сборок" коммерческих социальных платформ, обычно основанных на SocialEngine 3, вводится новое правило для форума. Запрещается создание тем или размещение в уже созданных предложений о продаже или размещение ссылок на сайты, где происходит продажа "сборок". Пользователи, которые продолжат свою коммерческую деятельность в данном направлении, будут заблокированы. Подробнее.

Problem Чекбоксы

Discussion in 'Прочая Поддержка - Help Requests' started by Alpert108, Aug 13, 2012.

  1. Alpert108 Thread starter User


    Offline
    Message Count:
    132
    Likes Received:
    14
    My version of SE:
    3.20
    Всем привет. У меня возникла проблема с чекбоксами.
    Допустим, когда я тут /user_account_privacy.php или тут /user_account.php установлю или уберу чекбоксы, нажму "Сохранить изменения" страница обновляется и ничего не сохранятся :(
    Папку templates_c чистил, не помогло :(
    --- добавлено: Aug 13, 2012 1:43 PM ---
    Проблема :(
    Капец, что за фигня :(
    Изменения вступают в силу через некоторое время...
    --- добавлено: Aug 13, 2012 1:44 PM ---
    В "редактирование профиля" тоже самое...

    Attached Files:

  2. Gooos абырвалГ


    Offline
    • Admin
    Message Count:
    2,435
    Likes Received:
    645
    My version of SE:
    3.20
    Именно изменения или чекбоксы проявляются?
  3. Alpert108 Thread starter User


    Offline
    Message Count:
    132
    Likes Received:
    14
    My version of SE:
    3.20
    Вроде все сохраняется, но при обновлении страницы чекбоксы какие я установил пропадают.
  4. nekromancer User


    Offline
    Message Count:
    193
    Likes Received:
    25
    My version of SE:
    4.2.0
    /admin_cache.php кэширование на сколько минут стоит?
  5. Alpert108 Thread starter User


    Offline
    Message Count:
    132
    Likes Received:
    14
    My version of SE:
    3.20
    2 минуты
    --- добавлено: Aug 13, 2012 5:36 PM ---
    Может вообще отключить?
  6. nekromancer User


    Offline
    Message Count:
    193
    Likes Received:
    25
    My version of SE:
    4.2.0
    Отключать не рекомендуется, выложи user_account_privacy.tpl
  7. Alpert108 Thread starter User


    Offline
    Message Count:
    132
    Likes Received:
    14
    My version of SE:
    3.20
    Ок, но и в редактирование информации и в user_account тоже самое
  8. nekromancer User


    Offline
    Message Count:
    193
    Likes Received:
    25
    My version of SE:
    4.2.0
    Выложи пока один
  9. Alpert108 Thread starter User


    Offline
    Message Count:
    132
    Likes Received:
    14
    My version of SE:
    3.20
    Я кэширование отключил, вроде нормально стало.

    Code:
    {include file='header.tpl'}
     
    {* $Id: user_account_privacy.tpl 8 2009-01-11 06:02:53Z john $ *}
     
    <table class='tabs' cellpadding='0' cellspacing='0'>
    <tr>
    <td class='tab0'>&nbsp;</td>
    <td class='tab2' NOWRAP><a href='user_account.php'>{lang_print id=655}</a></td>
    <td class='tab'>&nbsp;</td>
    <td class='tab1' NOWRAP><a href='user_account_privacy.php'>{lang_print id=1055}</a></td>
    <td class='tab'>&nbsp;</td>
    <td class='tab2' NOWRAP><a href='user_account_pass.php'>{lang_print id=756}</a></td>
    {if $user->level_info.level_profile_delete != 0}<td class='tab'>&nbsp;</td><td class='tab2' NOWRAP><a href='user_account_delete.php'>{lang_print id=757}</a></td>{/if}
    <td class='tab3'>&nbsp;</td>
    </tr>
    </table>
     
    <img src='./images/icons/settings48.gif' border='0' class='icon_big'>
    <div class='page_header'>{lang_print id=1056}</div>
    <div>{lang_print id=1057}</div>
    <br />
    <br />
     
    {* SHOW SUCCESS MESSAGES *}
    {if $result != 0}
      <table cellpadding='0' cellspacing='0'><tr><td class='success'>
      <img src='./images/success.gif' border='0' class='icon'>{lang_print id=191}
      </td></tr></table>
    {/if}
     
     
    {* JAVASCRIPT FOR CREATING SUGGESTION BOX *}
    {literal}
    <script type="text/javascript">
    <!--
      window.addEvent('domready', function(){
        var options = {
            script:"misc_js.php?task=suggest_user&limit=10&",
            varname:"input",
            json:true,
            shownoresults:false,
            maxresults:10,
            callback: function (obj) {
              if(obj.id != '') {
                var newDiv = document.createElement('div');
                newDiv.id = 'block_'+obj.id;
                newDiv.innerHTML = "<div style='padding-left: 5px;'><div style='float: left;'><img src='./images/icons/action_delete2.gif' class='icon' style='cursor: pointer;' onClick=\"$('block_"+obj.id+"').getParent().removeChild($('block_"+obj.id+"'))\" border='0'><input type='hidden' name='user_blocklist[]' value='"+obj.id+"'></div><div><a href='profile.php?user="+obj.id+"'>"+obj.value+"</a></div><div style='clear: both;'></div></div>";
                $('blocks').insertBefore(newDiv, $('block_user'));
                $('block_user').value = '';
              }
            }
        };
        var as_json = new bsn.AutoSuggest('block_user', options);
      });
    //-->
    </script>
    {/literal}
     
    <form action='user_account_privacy.php' method='post' name='info'>
    <table cellpadding='0' cellspacing='0'>
     
    {* SHOW BLOCKLIST *}
    {if $user->level_info.level_profile_block != 0}
      <tr>
      <td class='form1' nowrap='nowrap'>{lang_print id=813}:</td>
      <td class='form2' id='blocks'>
        <div style='padding: 3px 0px 5px 0px;'>{lang_print id=814}</div>
        {section name=block_loop loop=$blocked_users}
          <div id='block_{$blocked_users[block_loop]->user_info.user_id}'>
            <div style='float: left;'><img src='./images/icons/action_delete2.gif' class='icon' style='cursor: pointer; margin-left: 5px;' onClick="$('block_{$blocked_users[block_loop]->user_info.user_id}').getParent().removeChild($('block_{$blocked_users[block_loop]->user_info.user_id}'))" border='0'><input type='hidden' name='user_blocklist[]' value='{$blocked_users[block_loop]->user_info.user_id}'></div>
            <div><a href='{$url->url_create('profile', $blocked_users[block_loop]->user_info.user_username)}'>{$blocked_users[block_loop]->user_displayname}</a></div>
            <div style='clear: both;'></div>
          </div>
        {/section}
     
        <div id='block_user_link' style='padding: 5px 0px 0px 2px; font-weight: bold;'><a href='javascript:void(0);' onClick="$('block_user_link').style.display='none';$('block_user').style.display='block';$('block_user').focus();">{lang_print id=815}</a></div>
        <input type='text' class='text' id='block_user' size='30' maxlength='50' value='' style='margin-top: 3px; display: none;'>
     
      </td>
      </tr>
    {/if}
     
    {* SHOW INVISIBILITY SETTING *}
    {if $user->level_info.level_profile_invisible == 1}
      <tr>
      <td class='form1' nowrap='nowrap'>{lang_print id=1058}:</td>
      <td class='form2'>
        <table cellpadding='0' cellspacing='0'>
        <tr>
        <td><input type='checkbox' name='user_invisible' id='invisible' value='1'{if $user->user_info.user_invisible == 1} checked='checked'{/if}>&nbsp;</td>
        <td><label for='invisible'>{lang_print id=1059}</label></td>
        </tr>
        </table>
      </td>
      </tr>
    {/if}
     
    {* SHOW PROFILE VIEWS SETTING *}
    {if $user->level_info.level_profile_views == 1}
      <tr>
      <td class='form1' nowrap='nowrap'>{lang_print id=1060}:</td>
      <td class='form2'>
        <table cellpadding='0' cellspacing='0'>
        <tr>
        <td><input type='checkbox' name='user_saveviews' id='saveviews' value='1'{if $user->user_info.user_saveviews == 1} checked='checked'{/if}>&nbsp;</td>
        <td><label for='saveviews'>{lang_print id=1061}</label></td>
        </tr>
        </table>
        <div class='form_desc' style='width: 500px;'>{lang_print id=1062}</div>
      </td>
      </tr>
    {/if}
     
    {* SHOW PROFILE PRIVACY OPTIONS *}
    {if $privacy_options|@count > 1}
      <tr>
      <td class='form1' nowrap='nowrap'>{lang_print id=967}:</td>
      <td class='form2'>
        <div style='padding: 3px 0px 5px 0px;'>{lang_print id=968}</div>
        <table cellpadding='0' cellspacing='0'>
        {* LIST PRIVACY OPTIONS *}
        {foreach from=$privacy_options key=k item=v}
          <tr>
          <td><input type='radio' name='privacy_profile' id='privacy_{$k}' value='{$k}'{if $user->user_info.user_privacy == $k} checked='checked'{/if}></td>
          <td><label for='privacy_{$k}'>{lang_print id=$v}</label></td>
          </tr>
        {/foreach}
        </table>
      </td>
      </tr>
    {/if}
     
    {* SHOW PROFILE COMMENT OPTIONS *}
    {if $comment_options|@count > 1}
      <tr>
      <td class='form1' nowrap='nowrap'>{lang_print id=969}:</td>
      <td class='form2'>
        <div style='padding: 3px 0px 5px 0px;'>{lang_print id=970}</div>
        <table cellpadding='0' cellspacing='0'>
        {* LIST COMMENT OPTIONS *}
        {foreach from=$comment_options key=k item=v}
          <tr>
          <td><input type='radio' name='comments_profile' id='comments_{$k}' value='{$k}'{if $user->user_info.user_comments == $k} checked='checked'{/if}></td>
          <td><label for='comments_{$k}'>{lang_print id=$v}</label></td>
          </tr>
        {/foreach}
        </table>
      </td>
      </tr>
    {/if}
     
    {* SHOW PROFILE SEARCH OPTIONS *}
    {if $user->level_info.level_profile_search == 1}
      <tr>
      <td class='form1' nowrap='nowrap'>{lang_print id=971}:</td>
      <td class='form2'>
        <div style='padding: 3px 0px 5px 0px;'>{lang_print id=972}</div>
        <table cellpadding='0' cellspacing='0'>
        <tr><td><input type='radio' name='search_profile' id='search_profile1' value='1'{if $user->user_info.user_search == 1} checked='checked'{/if}></td><td><label for='search_profile1'>{lang_print id=973}</label></td></tr>
        <tr><td><input type='radio' name='search_profile' id='search_profile0' value='0'{if $user->user_info.user_search == 0} checked='checked'{/if}></td><td><label for='search_profile0'>{lang_print id=974}</label></td></tr>
        </table>
      </td>
      </tr>
    {/if}
     
    {* SHOW ACTION PRIVACY SETTING *}
    {if $setting.setting_actions_privacy == 1}
      <tr>
      <td class='form1' nowrap='nowrap'>{lang_print id=811}:</td>
      <td class='form2'>
        <div style='padding: 3px 0px 5px 0px;'>{lang_print id=812}</div>
        <table cellpadding='0' cellspacing='0'>
        {section name=actiontypes_loop loop=$actiontypes}
          <tr>
          <td><input type='checkbox' name='actiontype[]' id='actiontype_id_{$actiontypes[actiontypes_loop].actiontype_id}' value='{$actiontypes[actiontypes_loop].actiontype_id}'{if $actiontypes[actiontypes_loop].actiontype_selected == 1} checked='checked'='checked'{/if}></td>
          <td><label for='actiontype_id_{$actiontypes[actiontypes_loop].actiontype_id}'>{lang_print id=$actiontypes[actiontypes_loop].actiontype_desc}</label></td>
          </tr>
        {/section}
        </table>
      </td>
      </tr>
    {/if}
     
    <tr>
    <td class='form1'>&nbsp;</td>
    <td class='form2'><input type='submit' class='button' value='{lang_print id=173}'></td>
    </tr>
    </table>
    <input type='hidden' name='task' value='dosave'>
    </form>
     
    {include file='footer.tpl'}
  10. nekromancer User


    Offline
    Message Count:
    193
    Likes Received:
    25
    My version of SE:
    4.2.0
    Ошибок нет, ничего не могу сказать.

Share This Page

All rights reserved SocEngine.ru ©