Перейти к содержанию

usergeuv1

Актив
  • Постов

    209
  • Зарегистрирован

  • Посещение

  • Победитель дней

    1

Сообщения, опубликованные usergeuv1

  1. $link_url = base64_decode($link_url);

    $link_url - ссылки, попадают кодированные и не кодированные.
    Все нормально работает когда данные в закодированном виде (d3d3Lm51bGxlZC5jYw==),а как только не закодированные (www.site.cc) выдает: 
    http://�'�Y^u�

    Как избежать декодирования не закодированных данных?

  2. <div class="wa_userinfo_b4">
        <div class="left wa_userinfo_b4_1">
          <div>
            <span class="wa_userinfo_b4_m">Сообщений</span>
          </div>
          <div style="padding-top: 5px;color: #282828;">
            <span style="font-size: 15px;">{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}</span>
          </div>
        </div>
    <div class="right wa_userinfo_b4_1">
    <div><span class="wa_userinfo_b4_m">Тем</span></div>
    <div style="padding-top: 5px;color: #282828;"><span style="font-size: 15px;">{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['topics_started'] ) )"}</span></div>
    </div>
    <if test="authorcfields:|:$author['custom_fields'] != """>
    </if>
    </div>
    </div>

     Количество сообщений отображается , а тем " 0 "

    Screenshot_6.png

    Как сделать?

  3. 17 минут назад, Silence сказал:

    Попробуй

    
    "<p class='message error'>Ссылки могут видеть члены группы:" <li class='legend' data-group_id='{$member->member_group_id}'>{expression="\IPS\Member\Group::load( $member->member_group_id )"  raw="true"}</li>  ". 
    			<br />Детали о получения прав группы перейдите по  
    			<a href='http://____-/topic/2826' style='text-decoration:none;'><b>Ссылке</b></a></p> ";

     

     Fatal error: Class 'bim_hidelinkcode_topic' not found in /home/u80777777/public_html/admin/sources/classes/output/publicOutput.php(3849) : eval()'d code on line 2

     

    31 минуту назад, Silence сказал:
    
    <strong>&middot;</strong>        &nbsp;<span style='color:#FF0000'>Administrators</span>&nbsp;        <strong>&middot;</strong>        &nbsp;<span style='color:#0000FF'>Moderators</span>&nbsp;        <strong>&middot;</strong>        &nbsp;<span style='color:#000000'>Members</span>&nbsp;        <strong>&middot;</strong>        &nbsp;<span style='color:#AAAAAA'>Validating</span>&nbsp;        <strong>&middot;</strong>

    так ... ?

    Спасибо и так сойдет :)

  4. 3 минуты назад, Silence сказал:
    
    <strong>&middot;</strong>        &nbsp;<span style='color:#FF0000'>Administrators</span>&nbsp;        <strong>&middot;</strong>        &nbsp;<span style='color:#0000FF'>Moderators</span>&nbsp;        <strong>&middot;</strong>        &nbsp;<span style='color:#000000'>Members</span>&nbsp;        <strong>&middot;</strong>        &nbsp;<span style='color:#AAAAAA'>Validating</span>&nbsp;        <strong>&middot;</strong>

    так ... ?

    Да , я тоже так делал ,но хотелось что бы атоматически тянуло группы по id

  5. Изменяю файл xml хука

    вставляю

    "<p class='message error'>Ссылки могут видеть члены группы:" КАК вставить сюда ID групп для отображения?  ". 
    			<br />Детали о получения прав группы перейдите по  
    			<a href='http://____-/topic/2826' style='text-decoration:none;'><b>Ссылке</b></a></p> ";
    		

     

  6. Спасибо ребята  за ответы. Вот нашол интересующий мня скрипт 

    <style>
    ul#fonstyly {
    list-style:none;
    }
    .dsimageanimation {
    margin:0;
    width:100%;
    height:100%;
    top:0px;
    left: 0px;
    z-index: -1;
    }
    .dsimageanimation li#fonlink span#fondrive {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    background-size:100% 100%;
    -moz-background-size:100% 100%;
    -webkit-background-size:100% 100%;
    -o-background-size:100% 100%;
    -ms-background-size:100% 100%;
    background-repeat: none;
    background-attachment: fixed;
    opacity: 0;
    z-index: -1;
    -webkit-backface-visibility: hidden;
    -webkit-animation: imageAnimation 36s linear infinite 0s;
    -moz-animation: imageAnimation 36s linear infinite 0s;
    -o-animation: imageAnimation 36s linear infinite 0s;
    -ms-animation: imageAnimation 36s linear infinite 0s;
    animation: imageAnimation 36s linear infinite 0s;
    }
    .dsimageanimation li#fonlink:nth-child(1) span#fondrive {
    background-image: url(http://сайт.ru/script/img/css/cssfon_7.jpg);
    }
    .dsimageanimation li#fonlink:nth-child(2) span#fondrive {
    background-image: url(http://сайт.ru/script/img/css/cssfon_2.jpg);
    -webkit-animation-delay: 6s;
    -moz-animation-delay: 6s;
    -o-animation-delay: 6s;
    -ms-animation-delay: 6s;
    animation-delay: 6s;
    }
    .dsimageanimation li#fonlink:nth-child(3) span#fondrive {
    background-image: url(http://сайт.ru/script/img/css/cssfon_3.jpg);
    -webkit-animation-delay: 12s;
    -moz-animation-delay: 12s;
    -o-animation-delay: 12s;
    -ms-animation-delay: 12s;
    animation-delay: 12s;
    }
    .dsimageanimation li#fonlink:nth-child(4) span#fondrive {
    background-image: url(http://сайт.ru/script/img/css/cssfon_4.jpg);
    -webkit-animation-delay: 18s;
    -moz-animation-delay: 18s;
    -o-animation-delay: 18s;
    -ms-animation-delay: 18s;
    animation-delay: 18s;
    }
    .dsimageanimation li#fonlink:nth-child(5) span#fondrive {
    background-image: url(http://сайт.ru/script/img/css/cssfon_5.jpg);
    -webkit-animation-delay: 24s;
    -moz-animation-delay: 24s;
    -o-animation-delay: 24s;
    -ms-animation-delay: 24s;
    animation-delay: 24s;
    }
    .dsimageanimation li#fonlink:nth-child(6) span#fondrive {
    background-image: url(http://сайт.ru/script/img/css/cssfon_6.jpg);
    -webkit-animation-delay: 30s;
    -moz-animation-delay: 30s;
    -o-animation-delay: 30s;
    -ms-animation-delay: 30s;
    animation-delay: 30s;
    }
    @-webkit-keyframes imageAnimation {
    0% { opacity: 0;
    -webkit-animation-timing-function: ease-in; }
    8% { opacity: 1;
    -webkit-animation-timing-function: ease-out; }
    17% { opacity: 1 }
    25% { opacity: 0 }
    100% { opacity: 0 }
    }
    @-moz-keyframes imageAnimation {
    0% { opacity: 0;
    -moz-animation-timing-function: ease-in; }
    8% { opacity: 1;
    -moz-animation-timing-function: ease-out; }
    17% { opacity: 1 }
    25% { opacity: 0 }
    100% { opacity: 0 }
    }
    @-o-keyframes imageAnimation {
    0% { opacity: 0;
    -o-animation-timing-function: ease-in; }
    8% { opacity: 1;
    -o-animation-timing-function: ease-out; }
    17% { opacity: 1 }
     25% { opacity: 0 }
    100% { opacity: 0 }
    }
    @-ms-keyframes imageAnimation {
    0% { opacity: 0;
    -ms-animation-timing-function: ease-in; }
    8% {opacity: 1;
    -ms-animation-timing-function: ease-out; }
    17% { opacity: 1 }
    25% { opacity: 0 }
    100% { opacity: 0 }
    }
    @keyframes imageAnimation {
    0% { opacity: 0;
    animation-timing-function: ease-in; }
    8% { opacity: 1;
    animation-timing-function: ease-out; }
    17% { opacity: 1 }
    25% { opacity: 0 }
    100% { opacity: 0 }
    }
    </style>
    <ul class="dsimageanimation" id="fonstyly">
    <li id="fonlink"><span id="fondrive"></span></li>
    <li id="fonlink"><span id="fondrive"></span></li>
    <li id="fonlink"><span id="fondrive"></span></li>
    <li id="fonlink"><span id="fondrive"></span></li>
    <li id="fonlink"><span id="fondrive"></span></li>
    <li id="fonlink"><span id="fondrive"></span></li>
    </ul>

     

    Тему можно закрыть

  7. 7 часов назад, Dmitriy427 сказал:

     

     

     

     

    В шаблоне IPB 3.x логика raw-php работать не будет. Используйте теги "<php>", "</php>".


     

    Если скрипт лежит в корневой папке IP.Board:

    
    {parse include="file.php"}


     

    Красавчик,спаибо тебе:D

    Тему можно закрыть 

×
×
  • Создать...