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.
Getting Stats Box to work in 2.3
dleffler
New
I like stats box, but it didn't work in v2.3 since it wasn't loading the stylesheet, so I fixed it by changing line #88
from
$Sender->AddCSSFile($this->GetResource('design/statsbox.css', FALSE, FALSE));
to
$Sender->addCssFile('statsbox.css', 'plugins/StatsBox');
3
Comments
I uploaded 1.5.1 with your changes.
Thanks!
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.
Hi, I was unable to connect the plugin
Vanilla 2.3
There is a missing single quote in line 88, change to this
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Look, I installed this plugin
and there are changes
private function _AddResources($Sender, $Forced = FALSE) {
if(C('Plugins.StatsBox.DisableCSS', FALSE) == FALSE || $Forced) {
$Sender->AddCSSFile('statsbox.css', 'plugins/StatsBox');
}
}
So ? I don't understand what you are saying... hgtonight uploaded a new version and it had this problem on that line and that caused the fatal error. Do what you want. Fix it or don't . It's up to you.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
@vrijvlinder
Thank you for your reply, but I do not understand what should I change. Plugin the already updated.
THE PLUGIN THAT WAS UPLOAD UPDATED VERSION 1.5.1 HAS A MISTAKE THAT CAUSE A FATAL ERROR !!!!!!!
IN THE PLUGIN THIS LINE HAS A MISTAKE LOOKS LIKE THIS
$Sender->AddCSSFile('statsbox.css', 'plugins/StatsBox);
TO FIX THAT MISTAKE MAKE LINE LOOK LIKE THIS
$Sender->AddCSSFile('statsbox.css', 'plugins/StatsBox');
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
I also know how to cry, pressing Caps Lock :-)
private function _AddResources($Sender, $Forced = FALSE) {
if(C('Plugins.StatsBox.DisableCSS', FALSE) == FALSE || $Forced) {
$Sender->AddCSSFile('statsbox.css', 'plugins/StatsBox);
}
}
This part of the code with the updated plugin.
I give up... you must need glasses or are stubborn and refuse to read my comments.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
))) well, you've written:
IN THE PLUGIN THIS LINE HAS A MISTAKE LOOKS LIKE THIS$Sender->AddCSSFile('statsbox.css', 'plugins/StatsBox);
next:
TO FIX THAT MISTAKE MAKE LINE LOOK LIKE THIS $Sender->AddCSSFile('statsbox.css', 'plugins/StatsBox');
where I see the difference?
https://open.vanillaforums.com/discussion/comment/245126/#Comment_245126
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
very clever )
@vrijvlinder Thanks for finding that, not sure how a broken plugin got committed
Updated to 1.5.2
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 would guess that you are entering the age of need for reading glasses ? Welcome to my world !!
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌