Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorCrazyotaku
    • CommentTimeAug 31st 2006
     # 1
    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:

    <?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?
Add your comments
    Username Password
  • Format comments as