Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Problem with Post Preview extension and Forum Statistics
When I try to use the Post Preview extension (http://lussumo.com/addons/?PostBackAction=AddOn&AddOnID=84) and Forum Statistics extension (http://lussumo.com/addons/?PostBackAction=AddOn&AddOnID=53) I get the following error.
If I disable Forum Statistics, it's fine.
Notice: Undefined variable: Head in ./vanilla/extensions/Statistics/default.php on line 28
Fatal error: Call to a member function AddStyleSheet() on a non-object in
./vanilla/extensions/Statistics/default.php on line 28
If I disable Forum Statistics, it's fine.
0
This discussion has been closed.
Comments
Find (around line 28):
$Head->AddStyleSheet("extensions/Statistics/style.css");
Replace with:
if(!eregi("extensions/PreviewPost/ajax.php", $_SERVER['REQUEST_URI'])) { $Head->AddStyleSheet("extensions/Statistics/style.css"); }
I don't know if there's a better way of doing it...but hey, it works.
if(!isset($Head)) return; $Head->AddStyleSheet(...);
- BBInsertBar
- LiveSearch
- SavedSearches
Umm... IMHO, i think it should be a rule for addonsMany thx
&& (isset($Head))
Or just plain:
if (isset($Head)) {
Smile
JQuery
JQThickBox
MultiFileUpload
Attachments
SoftWrap
AjaxQuote
AddComments