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.

CustomSideBarLink

2»

Comments

  • the sample works great on firefox but not in IE and I found the glitch in AddListItem with the 12x12 icon: $Panel->AddListItem($ListName, $Context->GetDefinition("LINK"), $link_to . "\" target=\"_blank\" style=\" padding-left: 27px; background:url(http://example.com/graphics/icon.jpg) no-repeat 5px center;\" "); should that last \" be removed like this: $Panel->AddListItem($ListName, $Context->GetDefinition("LINK"), $link_to . "\" target=\"_blank\" style=\" padding-left: 27px; background:url(http://example.com/graphics/icon.jpg) no-repeat 5px center;"); for every link you want to add.
  • Hallo.
    Thanks for providing this extension. However, I'm having trouble making it work. Have latest version, on Vanilla 1.1.5a
    If I want it to appear on all pages, and comment out

    if(in_array($Context->SelfUrl, array("page.php", "page.php")))

    then I can't log out, or log in!

    Help, please!
  • Does anyone have the how to guide for this - the link is broken above.
  • The guide is in the zip file for this add-on. I just downloaded it and read it.

    From the guide:

    If you want to have your sidebar to show up on every page, you will have to encase this specific line of
    text in specific brackets:
    /* if(in_array($Context->SelfUrl, array("page.php", "page.php"))) */
  • This error now appears at the top of my page:
    Warning: main(/home/content/c/a/s/cassette/html/vanilla/extensions/custom side bar/default.php) [function.main]: failed to open stream: No such file or directory in /home/content/c/a/s/cassette/html/vanilla/conf/extensions.php on line 5

    Warning: main(/home/content/c/a/s/cassette/html/vanilla/extensions/custom side bar/default.php) [function.main]: failed to open stream: No such file or directory in /home/content/c/a/s/cassette/html/vanilla/conf/extensions.php on line 5

    Warning: main() [function.include]: Failed opening '/home/content/c/a/s/cassette/html/vanilla/extensions/custom side bar/default.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/c/a/s/cassette/html/vanilla/conf/extensions.php on line 5

    Warning: main(/home/content/c/a/s/cassette/html/vanilla/extensions/CustomSideBar/default.php) [function.main]: failed to open stream: No such file or directory in /home/content/c/a/s/cassette/html/vanilla/conf/extensions.php on line 6

    Warning: main(/home/content/c/a/s/cassette/html/vanilla/extensions/CustomSideBar/default.php) [function.main]: failed to open stream: No such file or directory in /home/content/c/a/s/cassette/html/vanilla/conf/extensions.php on line 6

    Warning: main() [function.include]: Failed opening '/home/content/c/a/s/cassette/html/vanilla/extensions/CustomSideBar/default.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/c/a/s/cassette/html/vanilla/conf/extensions.php on line 6

    even though I erased that incorrect directory (Custom Side Bar and CustomSideBar)

    any ideas?
  • @cassandra,

    You might need to open up conf/extensions.php and make sure there aren't any lines referring to those extensions. Look specifically at lines 5 and 6.
  • YESSSSS!

    it worked thank you!!!!
  • also can we make different side bar links appear on different pages? like say one section for "restaurants" one section on another page for "reviews?"
  • ha nevermind. that was easy.
  • one more question: can't get the custom side bar to link up with the members page extention...
  • I just installed the Custom Sidebar Links extension into the extension directory. I changed the Title, Link Name and the urls for 2 links. Here is the entire coding for the default.php file after I made my changes: <?php /* ~~~~~~~~~ DO NOT EDIT BELOW OR YOUR EXTENSION WILL NOT WORK ~~~~~~~~~~~~ Extension Name: CustomSideBarLink Extension Url: http://daynelyons.com Description: Add endless links to the sidebar of any page of your Forums Version: 1.5.2 Author: Dayne Lyons Author Url: http://daynelyons.com ~~~~~~~~~ DO NOT EDIT ABOVE OR YOUR EXTENSION WILL NOT WORK ~~~~~~~~~~~~ */ /* Give Your Side Bar Section a title */ $Context->Dictionary["TITLE"] = "Ministry Links"; /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ $ListName = $Context->GetDefinition("TITLE"); /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ /* Begin Link */ /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ /* Give your side bar link its name */ $Context->Dictionary["LINK"] = "UACCMI"; /* Where is the link going */ $link_to='http://www.uaccci.org'; /* What page (or pages) is/are your link going on? */ if(in_array($Context->SelfUrl, array("comments.php", "index.php", "discussions.php", "categories.php", "search.php", "account.php"))) /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ { $Panel->AddList($ListName, $Position = '0', $ForcePosition = '0'); $Panel->AddListItem($ListName, $Context->GetDefinition("LINK"), $link_to . "\" target=\"_blank\" style=\" padding-left: 27px; background:url(http://example.com/graphics/icon.jpg) no-repeat 5px center;\" "); } /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ /* End Link */ /* Begin Link */ /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ /* Give your side bar link its name */ $Context->Dictionary["LINK2"] = "UGCS"; /* Where is the link going */ $link_to2='http://www.unitedgraduate.org'; /* What page (or pages) is/are your link going on? */ if(in_array($Context->SelfUrl, array("comments.php", "index.php", "discussions.php", "categories.php", "search.php", "account.php"))) /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ { $Panel->AddListItem($ListName, $Context->GetDefinition("LINK2"), $link_to2 . "\" target=\"_blank\" style=\" padding-left: 27px; background:url(http://example.com/graphics/icon.jpg) no-repeat 5px center;\" "); } /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ /* End Link */ ?> I went to my settings tab and activated the Custom Sidebar Link extension. The title, “Ministry Links” appears – however, the link names and URLS that I added do not. Right below the Linkbar Title, “Ministry Links”, there is the following: Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support. This is listed coming down the page, like these were the link titles and urls that I put in the code. To see what I am speaking about, please visit http://www.webchaplain.org/sidebar.jpg - this is a screen shot after I installed and activated this extension. Any ideas?
  • I don't know if this helps but this is my first link and it works fine. Maybe you can cut and paste this into your default file and it will work. I don't see any differences right off: */ /* Give Your Side Bar Section a title */ $Context->Dictionary["TITLE"] = "<b>This Years Events:<b>"; /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ $ListName = $Context->GetDefinition("TITLE"); /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ /* Begin Link */ /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ /* Give your side bar link its name */ $Context->Dictionary["LINK"] = "CMWC 09 JAPAN"; /* Where is the link going */ $link_to='http://www.cmwc2009.com/en/index.html'; /* What page (or pages) is/are your link going on? */ if(in_array($Context->SelfUrl, array("index.php", "discussions.php"))) /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
Sign In or Register to comment.