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.
Can i Move This Week's Leaders Board Into Home Page
Xfronter
New
I want to Move Or Copy This Leaderbord in my Forums Home Page Side Bar.
What can i Do ??? This link Shows The Leader Bord thaksalava.com/badges/detail/24/verified-member
Tagged:
0
Comments
http://vanillaforums.org/discussion/28180/yaga-leaderboardmodule-render-on-recent-discussions-page-in-panel-not-on-activity-page
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
{module name="LeaderBoardModule" timespan="w"}
Its'nt Work For me. Can you Explain More About This.
@Xfronter said:Can i Move This Week's Leaders Board Into Home Page
yes. you can and yes you may.
well, it doesn't work because the underlying code of the plugin does not support that. If you read the comment carefully. it states it won't work. so the bottom line is it doesn't work.
In the comment I should have means, it is not done, it is hypothetical
what you can do is read the other comment that does work! not the hypotheticals.
also see:
http://vanillaforums.org/discussion/comment/220791/#Comment_220791
you are going to need to jump to a new plateau. learn some things e.g. about events, plugins, themehooks, adding a module to a theme, and not just cutting an pasting.
the info is all on the forum, documentation, and wiki. just requires some studying.
either modify to place just on your home page or whatever controller you want for whatever timeslot you want. it's practically all there for you in several examples.
http://vanillaforums.org/discussion/comment/217089/#Comment_217089
http://vanillaforums.org/discussion/comment/220790/#Comment_220790
http://vanillaforums.org/discussion/comment/220794/#Comment_220794
then one day you can say:
http://vanillaforums.org/discussion/comment/220795/#Comment_220795
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
What is the actuall file to add module.
public function DiscussionsController_Render_Before($Sender) { $this->_AddResources($Sender); if(C('Yaga.LeaderBoard.Enabled', FALSE)) { // add leaderboard modules to the activity page $Module = new LeaderBoardModule(); $Module->GetData('w'); $Sender->AddModule($Module); $Module = new LeaderBoardModule(); $Sender->AddModule($Module); } } private function _AddResources($Sender) { $Sender->AddCssFile('reactions.css', 'yaga');
Aplications->Vanilla->controllers
What is the File to Add this Code,
(im really sorry im Noob )
determine what controller your homepage uses by looking at the url!
see the controller name after the /
e.g.
http://vanillaforums.org/discussion/30994/
discussion is controller
http://vanillaforums.org/profile/Xfronter
profile is controller
http://vanillaforums.org/discussions
discussions is controller.
http://vanillaforums.org/categories/tutorials
categories is the controller.
or you can look at dashboard routes defaultcontroller.
it will be either discussions or categories most likely depending on what you selected as your homepage.
To make a plugin or add method to themehook (either will work).
read this discussion where op was was forced to learn how to make a plugin. although unhappy with me, was forced to learn.
http://vanillaforums.org/discussion/30943/adding-a-notifications-menu-item
also here is an example of how to add a function to a theme hook.
http://vanillaforums.org/discussion/30890/this-is-how-you-can-add-different-apple-touch-icons-and-favicons-using-a-theme-hook
then you will comeback and say that was awesome, I learned how to make a plugin and/or a themehook, and I understand events.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I hard to learn this, but i dont understand how to add leader board in sidebar home page.
Hhmm.. i think because I don't understand about code and my English is bad.
@jobbatam This works in Yaga 1.1:
{module name="LeaderBoardModule" timespan="w"}
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.
Where this code i need to place?
please help...
Any smarty template. Most common would be
/themes/yourtheme/views/default.master.tpl
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.
I have tried,
But, nothing happen...
any code i need to add?