What Do You Need In The Xf2 Xengallery Version? Vote for your choices here: http://www.sonnb.com/threads/what-do-you-need-in-the-xf2-xengallery-version.1539/

Question How Can I Move The Gallery Tab?

Discussion in 'XenGallery' started by ReneS, Jun 19, 2014.

  1. ReneS

    ReneS Authorized Member Authorized

    Hello,
    how can I move the Gallery tab between members and community? (to the left)

    [​IMG]
     
  2. sonnb

    sonnb Administrator Staff Member

    It depends, I am not sure how is your "Community" tab has been injected but edit:

    library\sonnb\XenGallery\Listener.php line 298:
    PHP:
                $extraTabs['sonnb_xengallery'] = array(
                    
    'title' => new XenForo_Phrase('sonnb_xengallery_gallery'),
                    
    'href' => XenForo_Link::buildPublicLink('full:gallery'),
                    
    'selectedTabId' => XenForo_Application::getOptions()->sonnbXG_disableNavPopup '' $selectedTabId,
                    
    'position' => 'middle',
                    
    'linksTemplate' => 'sonnb_xengallery_navbar_template',
                );
    to
    PHP:
                $extraTabs['sonnb_xengallery'] = array(
                    
    'title' => new XenForo_Phrase('sonnb_xengallery_gallery'),
                    
    'href' => XenForo_Link::buildPublicLink('full:gallery'),
                    
    'selectedTabId' => XenForo_Application::getOptions()->sonnbXG_disableNavPopup '' $selectedTabId,
                    
    'position' => 'home',
                    
    'linksTemplate' => 'sonnb_xengallery_navbar_template',
                );
    might help you.
     
  3. ReneS

    ReneS Authorized Member Authorized

    Hello sonnb,

    How can I replace the tabs?
     

    Attached Files:

  4. sonnb

    sonnb Administrator Staff Member

    You can try to set 'position' to 'end'.
     
  5. ReneS

    ReneS Authorized Member Authorized

    not good...

    community outside the far right and the left for gallery
     

    Attached Files:

  6. sonnb

    sonnb Administrator Staff Member

    The only way you can do that it. Enable debug mode, modify the execution order of the event "navigation_tabs" of XenGallery and "Mitglieder" (I do not know what it is).
     
  7. ReneS

    ReneS Authorized Member Authorized

    It depends, I am not sure how is your "Community" tab has been injected but edit:

    library\sonnb\XenGallery\Listener.php line 298:

    this will not work with the new Version :(
     
  8. sonnb

    sonnb Administrator Staff Member

    Just change the line: 'position' => 'home', it will work.
     
  9. ReneS

    ReneS Authorized Member Authorized

    Thank you, my mistake :(
     

Share This Page