takick

About me: Web Designer and front end developer, totally out of my depth here but I want to learn and making a Elgg social network seemed like an interesting way to jump in at the deep end!
Email: admin@vanillaspiced.com

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • takick replied on the discussion topic Elgg topbar customisation - tools drop down
    Thanks Cash, that worked great!! Took me a while to figure out which bits to remove, in the end I went with this...   $menu = get_register('menu');//var_export($menu);if (is_array($menu) && sizeof($menu) > 0) {   ... view reply
  • takick has a new avatar
    takick
  • takick has updated their profile
  • takick added a new discussion topic Elgg topbar customisation - tools drop down in the group Elgg Technical Support
    Hi there Total newbie here so please be gentle :O) I am customising the topbar, getting on well with it but just one thing I can't seem to figure out. I want to keep the 'Tools' drop down and have it auto update with plugins ad only show to logged...
    • 1. remove the javascript in the that view

      2. You can do the rest through CSS. Change the css on ul.topbardropdownmenu ul so that it is not hidden. Float the li elements. Probably need to adjust the width of the ul.

    • Thanks Cash, that worked great!!

      Took me a while to figure out which bits to remove, in the end I went with this...

       

      $menu = get_register('menu');

      //var_export($menu);

      if (is_array($menu) && sizeof($menu) > 0) {
          $alphamenu = array();
          foreach($menu as $item) {
              $alphamenu[$item->name] = $item;
          }
          ksort($alphamenu);

      ?>

      <ul class="topbardropdownmenu">
          <?php
              foreach($alphamenu as $item) {
                  echo "<li><a href=\"{$item->value}\">" . $item->name . "</a></li>";
              }
          ?>

      </ul>

      <?php
      }

       

      Not sure if that is totally right but it worked!! Next I want to add a drop down menu beside the avatar icon with the users name and a drop down of user specific links such as 'settings, edit profile, friends, change profile image' etc any advice would be gratefully received?

      Thanks again

  • takick joined the group Elgg Technical Support