Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Module SlotType
nimh
New
Vanilla: Version 2.1.5 / Yaga Version 1.0.3
I'm attempting to load the leaderboard module on the panel of every page.
I've added:
{if !InSection ("ActivityList")} {module name="LeaderBoardModule" SlotType="w"} {/if}
Tip was taken from this post: http://blog.vanillaforums.com/help/vanilla-forums-friday-theme-tip-adding-leaderboard/
It works but only loads the All Time Leaders, which as I understood is only supposed to work with an "a" SlotType. I'm mostly interested in it working with "m" as monthly seemed better for smaller (and slower) communities.
Emptying the cache had no effect. Any ideas?
0
Comments
http://vanillaforums.org/discussion/28180/yaga-leaderboardmodule-render-on-recent-discussions-page-in-panel-not-on-activity-page#latest
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Thanks for using my addon!
Yaga has similar but not identical functionality. The leaderboard module I wrote does not accept constructor variables to set type. I rely on calling a second
GetData($SlotType)
method after creation.This means my module cannot be added via smarty as anything other than 'All Time Leaders'.
I would welcome a patch that changes this and will add it to the issue list over on GitHub: https://github.com/hgtonight/Application-Yaga/issues/52
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Thank you, it works in a plugin nicely, switching to a DiscussionsController places it on Recent Discussions, but not on any other page (particularly would like it on ItemDiscussions too.) I tried Base_Render but we've got it everywhere now, and thus dupes itself on Activity.
you could either
clone the DiscussionsController method and add DiscussionController as well
or you could
B
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Perfection, added categoriescontroller too, and learned a bit along the way. Thanks for the help!