1. WARNING - This part of forum is for English language writed posts ONLY! Any other language isn't alowed! Please respect forum rules, otherwise, your posts will be deleted, and you will be warned, one time only!
  2. Nobody can help you if you did not specify the version of your SE and/or plufgin.
  3. Мы продолжаем публиковать интересные статьи на тему SocialEngine 4. Одна из статей посвящена правильному выбору сервера для вашей социальной сети, а другая содержит советы по увеличению производительности платформы. Также мы добавили большую статью о пользовательских уровнях. Ознакомиться со статьями вы можете в разделе Вопросы и Ответы SocialEngine 4.
  4. Вам кажется, что ваша версия SocialEngine 4, работает медленно?

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

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

Question Netlog Default Template by SocialenginePro

Discussion in 'Help Requests & Support' started by MisterWizard, Nov 25, 2013.

  1. MisterWizard Thread starter Moderator


    Offline
    • Moderator
    Message Count:
    185
    Likes Received:
    235
    My version of SE:
    4.6.0
    I am trying to change the function of drop down menu for the "more" tab... right now, I have to click on the tab to get it to drop down and click on it again to get it to close... I would like it to open upon hover and close when mouse is moved away from menu container. I have played with a lot of function changes but cannot get it to work outside of replacing "click" with "mouseover" but then it will drop down upon hover but I have to click to close... Any ideas anyone? THANKS!

    Here is my widget index.tpl code:
    Code:
    <?php
    /**
     * SocialEngine
     *
     * @category   Application_Extensions
     * @package    Netlogtemplate
     * @copyright  Copyright 2010-2011 SocialEnginePro
     * @license    http://www.socialenginepro.com
     * @author     Vadim
     */
    ?>
     
    <?php if ( $this->navigation->count()>=9 ) { ?>
    <script type="text/javascript">
    window.addEvent('domready', function() {
    $('netlogtemplate_navigation_more').addEvent('click', function(){     
    $('netlogtemplate_navigation_dropdown').toggle();
    });
    });
    </script>
    <?php } ?>
     
    <?php if ( $this->navigation->count()<9 ) { ?>
    <?php echo $this->navigation()
    ->menu()
    ->setContainer($this->navigation)
    ->setPartial(null)
    ->setUlClass('navigation')
    ->render();
    ?>
    <?php } else { ?>
    <ul class="navigation">
    <?php
    $counter = 1;
    foreach ( $this->navigation as $navig ) {
    if ( $counter==9 ) {
    print '<li><a href="javascript://" id="netlogtemplate_navigation_more">More &rArr;</a></li></ul><ul id="netlogtemplate_navigation_dropdown" class="navigation_dropdown">';
    }
    print '<li>' . $this->htmlLink($navig->getHref(), $navig->getLabel()) . '</li>';
    $counter++;
    }
    ?>
    </ul>
    <?php } ?>
  2. SPQR Super-Moderator


    Offline
    • Super Moderator
    Message Count:
    282
    Likes Received:
    215
    There is a function in javascript - onmouseover and you need it if you wanna to open that menu on mouse hover., and close on mouse out
    also, you need to make some changes in css codes - add if necessary some parts..

    use Google, and you will find solution for that easy....

    ADD:

    take look at this part of code :
    Code:
    addEvent('click', function
    event is "click" and you need to be onmouseover - probably here is a catch...experiment with that.
  3. MisterWizard Thread starter Moderator


    Offline
    • Moderator
    Message Count:
    185
    Likes Received:
    235
    My version of SE:
    4.6.0

    I did and it didn't work. Replaced 'click' with 'mouseover'. Also tried replacing '.toggle();' with 'various events like 'mouseout'

Share This Page

All rights reserved SocEngine.ru ©