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.
Need help making certain extensions work with custom pages
I hope i'm not annoying you guys with all my support questions lol. Anyway I have a sidepanel extension and I would like to be able to have the sidepanel show up on custom pages I make that aren't made with the PageMng extension. here is the sidepanel code:
Now where it lists all those php pages in that array I tried adding my custom page "1.php" in there and the sidepanel still wouldn't show up with it. Is there a way to convert it to a global setting just like what someone did with PageMng for me? Here's the code for the PageMng that was changed to make it work with custom pages:
now if these two were the same type of if statement im sure i would have just been able to plug in the $GLOBALS..... part to it, but since they are different is there someone that can tell me how to convert it to the PageMng type so that the sidepanel will work with any custom page I make outside of PageMng?
<?php
/*
Extension Name: Sidepanel
Extension Url: http://lussumo.com/addons
Description: Enables you to insert everything you want to appear in the sidepanel easily (based on Statcounter by JP Mitchell)
Version: 1.0
Author: Thomas Schranz
Author Url: http://suitcase.at
*/
if(in_array($Context->SelfUrl, array("index.php", "categories.php", "discussions.php", "comments.php", "search.php", "post.php", "account.php", "settings.php", "1.php"))){
$content = <<< ENDCODE
<center><u>Site Navigation</u>
<p><a href="http://oga.mmorpgnut.com/Vanilla.1.0.1/MiscLinks.php">Misc Links</a></center>
ENDCODE;
$Panel->AddString($content,150);
}
?>
Now where it lists all those php pages in that array I tried adding my custom page "1.php" in there and the sidepanel still wouldn't show up with it. Is there a way to convert it to a global setting just like what someone did with PageMng for me? Here's the code for the PageMng that was changed to make it work with custom pages:
if(!defined('PAGEMNG_ISAJAX')) $this->CustomPageFile = $GLOBALS['Configuration']['EXTENSIONS_PATH'].PAGEMNG_FOLDER.'/'.$this->CustomPageFile;
now if these two were the same type of if statement im sure i would have just been able to plug in the $GLOBALS..... part to it, but since they are different is there someone that can tell me how to convert it to the PageMng type so that the sidepanel will work with any custom page I make outside of PageMng?
0
This discussion has been closed.