Xen Media Gallery (Media Gallery for XenForo) [Paid] [Deleted]

Status
Not open for further replies.
Sorry... I missed this.

It requires you to change the execution order of the navigation tabs code event listeners.

Generally speaking these are the steps:
  1. Enable Debug mode in your XenForo config.php file
  2. Log in to your Admin CP
  3. Go to the Development tab
  4. Click Code Event Listeners
  5. Scroll down until you find the add-on you wish to change, e.g. Xen Media Gallery
  6. Below that the Code Event Listeners are listed. Look for navigation_tabs, click on it.
  7. Change the Execution Order from its default of 10 to something lower, e.g. 5
  8. Disable Debug mode.
That should make the Media tab appear first. Follow the same instructions for the other add-ons. The other add-ons will need to have a higher execution order than Xen Media Gallery if you want the Media tab to appear first. As an alternative to lowering the execution order of the Media tab, you could just make the others higher than 10.


Sweet thanks!

What about changing the "Media" dropdown content from the navigation bar?

Also how do I change the dropdown contents for just Media? I've done this for Forum already but that was simple because in the "Navigation" template there was a section specific for "Forum" but for "Media", "Wiki" and "Feedback" they all seem to be using the <!-- extra tabs: middle --> code.
 
Sorry... I really should read posts fully :D

There's a template, xengallery_tab_links, edit that however you like.
 
Sorry... I really should read posts fully :D

There's a template, xengallery_tab_links, edit that however you like.


Nice, but is there a way to change the dropdown menu without changing the nav links that show up under the nav bar after you click into Media. Normally these are the same thing but following http://xenforo.com/community/resources/giving-selected-navigation-tabs-dropdown-menus.406/ I was able to have my "forums" dropdown show something different compared to what showed up after I clicked into.

How do I do this with Media? I have a feeling I need to add a if statement somewhere in the navigation template under <!-- extra tabs: middle -->.
 
Well this is maybe that code in the navigation template:

Code:
                <li class="navTab {$extraTabId} {xen:if $extraTab.selected, 'selected', 'Popup PopupControl PopupClosed'}">
           
                    <a href="{$extraTab.href}" class="navLink">{$extraTab.title}<xen:if is="{$extraTab.counter}"><strong class="itemCount"><span class="Total">{$extraTab.counter}</span><span class="arrow"></span></strong></xen:if></a>
                    <a href="{$extraTab.href}" class="SplitCtrl" rel="Menu"></a>
                   
                    <div class="{xen:if {$extraTab.selected}, 'tabLinks', 'Menu JsOnly tabMenu'} {$extraTabId}TabLinks">
                        <div class="primaryContent menuHeader">
                            <h3>{$extraTab.title}</h3>
                            <div class="muted">{xen:phrase quick_links}</div>
                        </div>
                        {xen:raw $extraTab.linksTemplate}
                    </div>
                </li>

You could add the bit in red:

Rich (BB code):
                <li class="navTab {$extraTabId} {xen:if $extraTab.selected, 'selected', 'Popup PopupControl PopupClosed'}">
           
                    <a href="{$extraTab.href}" class="navLink">{$extraTab.title}<xen:if is="{$extraTab.counter}"><strong class="itemCount"><span class="Total">{$extraTab.counter}</span><span class="arrow"></span></strong></xen:if></a>
                    <a href="{$extraTab.href}" class="SplitCtrl" rel="Menu"></a>
                   
                    <div class="{xen:if {$extraTab.selected}, 'tabLinks', 'Menu JsOnly tabMenu'} {$extraTabId}TabLinks">
                        <div class="primaryContent menuHeader">
                            <h3>{$extraTab.title}</h3>
                            <div class="muted">{xen:phrase quick_links}</div>
                        </div>
                        <xen:if is="{$extraTabId} == 'xengallery'">
                            <ul class="secondaryContent blockLinksList">
                                <li><a href="http://www.google.co.uk">Google</a></li>
                            </ul>
                        </xen:if>
                        {xen:raw $extraTab.linksTemplate}
                    </div>
                </li>

The appearance of this isn't quite what you want, though. And you can't edit the order of the existing ones without editing the template I pointed out to you earlier.

If i was to do it for the resources tab:

upload_2013-10-29_13-34-5.webp
 
Well this is maybe that code in the navigation template:

Code:
                <li class="navTab {$extraTabId} {xen:if $extraTab.selected, 'selected', 'Popup PopupControl PopupClosed'}">
         
                    <a href="{$extraTab.href}" class="navLink">{$extraTab.title}<xen:if is="{$extraTab.counter}"><strong class="itemCount"><span class="Total">{$extraTab.counter}</span><span class="arrow"></span></strong></xen:if></a>
                    <a href="{$extraTab.href}" class="SplitCtrl" rel="Menu"></a>
                 
                    <div class="{xen:if {$extraTab.selected}, 'tabLinks', 'Menu JsOnly tabMenu'} {$extraTabId}TabLinks">
                        <div class="primaryContent menuHeader">
                            <h3>{$extraTab.title}</h3>
                            <div class="muted">{xen:phrase quick_links}</div>
                        </div>
                        {xen:raw $extraTab.linksTemplate}
                    </div>
                </li>

You could add the bit in red:

Rich (BB code):
                <li class="navTab {$extraTabId} {xen:if $extraTab.selected, 'selected', 'Popup PopupControl PopupClosed'}">
         
                    <a href="{$extraTab.href}" class="navLink">{$extraTab.title}<xen:if is="{$extraTab.counter}"><strong class="itemCount"><span class="Total">{$extraTab.counter}</span><span class="arrow"></span></strong></xen:if></a>
                    <a href="{$extraTab.href}" class="SplitCtrl" rel="Menu"></a>
                 
                    <div class="{xen:if {$extraTab.selected}, 'tabLinks', 'Menu JsOnly tabMenu'} {$extraTabId}TabLinks">
                        <div class="primaryContent menuHeader">
                            <h3>{$extraTab.title}</h3>
                            <div class="muted">{xen:phrase quick_links}</div>
                        </div>
                        <xen:if is="{$extraTabId} == 'xengallery'">
                            <ul class="secondaryContent blockLinksList">
                                <li><a href="http://www.google.co.uk">Google</a></li>
                            </ul>
                        </xen:if>
                        {xen:raw $extraTab.linksTemplate}
                    </div>
                </li>

The appearance of this isn't quite what you want, though. And you can't edit the order of the existing ones without editing the template I pointed out to you earlier.

If i was to do it for the resources tab:

View attachment 60177

That doesn't really help. Basically what I'm trying to do is make the dropdown content different from the links that show up under the nav bar once you click in. Is this possible?

edit: Nvm I got it!
 
Last edited:
I know what you're trying to do. That was the best I could come up with at the time. I've thought about it a little more, though:
Rich (BB code):
                <li class="navTab {$extraTabId} {xen:if $extraTab.selected, 'selected', 'Popup PopupControl PopupClosed'}">
         
                    <a href="{$extraTab.href}" class="navLink">{$extraTab.title}<xen:if is="{$extraTab.counter}"><strong class="itemCount"><span class="Total">{$extraTab.counter}</span><span class="arrow"></span></strong></xen:if></a>
                    <a href="{$extraTab.href}" class="SplitCtrl" rel="Menu"></a>
                 
                    <div class="{xen:if {$extraTab.selected}, 'tabLinks', 'Menu JsOnly tabMenu'} {$extraTabId}TabLinks">
                        <div class="primaryContent menuHeader">
                            <h3>{$extraTab.title}</h3>
                            <div class="muted">{xen:phrase quick_links}</div>
                        </div>
                        <xen:if is="{$extraTabId} == 'xengallery'">
                            <xen:include template="xengallery_tab_links_yours" />
                        <xen:else />
                            {xen:raw $extraTab.linksTemplate}
                        </xen:if>
                    </div>
                </li>

Try this..

Find the template xengallery_tab_links. Copy everything in there. Create a new template and call it "xengallery_tab_links_yours". Paste in the original template code and then modify that how you wish. That should do it... I think :|
 
just curious if the xfr user albums importer was ever finished. also, i see there hasn't been an update on xf in about three months. when is the next version coming out? thanks!
 
just curious if the xfr user albums importer was ever finished. also, i see there hasn't been an update on xf in about three months. when is the next version coming out? thanks!

When it is ready.

The importers for User Albums and XenMedio are still planned.
 
It's all still in development. I keep trickling little bits of information and new bits. I'll be releasing a more substantial preview soon.
 
For some reason, when someone posts a new media item... a alert balloon does not pop up at the tab?
Have you heard of this issue before?
 
I'm not sure what you're referring to.

Have we discussed that in this thread? Or is there a thread about it at Xen Media Gallery website?

If there's not a thread in the Suggestions forum over at XMG then it almost definitely won't be considered.
 
Hey @Chris Deeming not sure if this has been reported, I suppose I should report on your site just don't have an account yet.

However when disabling the plugin, accessing the news feed throws an error:

Code:
An exception occurred: Undefined index: xengallery_media in /home/******/public_html/*****/library/XenForo/ViewPublic/Helper/NewsFeed.php on line 30

[LIST=1]
[*]XenForo_Application::handlePhpError() in XenForo/ViewPublic/Helper/NewsFeed.php at line 30
[*]XenForo_ViewPublic_Helper_NewsFeed::getTemplates() in XenForo/ViewPublic/NewsFeed/View.php at line 11
[*]XenForo_ViewPublic_NewsFeed_View->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 227
[*]XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlPublic.php at line 67
[*]XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/ViewRenderer/Abstract.php at line 249
[*]XenForo_ViewRenderer_Abstract->renderSubView() in XenForo/ViewRenderer/HtmlPublic.php at line 64
[*]XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/FrontController.php at line 572
[*]XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
[*]XenForo_FrontController->run() in /home/******/public_html/dev/index.php at line 13
[*]
[/LIST]
 
Thanks for the report Russ,

It's a XenForo bug, actually.

I have reported it here: http://xenforo.com/community/thread...nvalid-data-when-an-add-on-is-disabled.63018/

For now, you could think about truncating the xf_user_news_feed_cache database table which will remove any invalid data from that table. It means all user's news feeds will be empty until new items are added in there.

Alternatively re-enable the Gallery :)

Thanks for the heads up, ya we have it on our dev server to make sure our styles look good with your plugin and disable/enable it once in awhile, just noticed that today. I'll keep an eye out on the bug report thanks.
 
Chris Deeming said:
1.3 is almost definitely going to be out in good time before Christmas... but an importer for IPB is and always has been much longer term, unfortunately.

1.3 will include importers for Xen Medio and XFR User Albums.

Admittedly, the most popular galleries will probably be next on the agenda. One of those would be IPB.
As Christmas is only a month away, is XMG 1.3 release imminent or will it take longer?
 
Status
Not open for further replies.
Back
Top Bottom