Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us


CustomSideBarLink

edited December 2008 in Questions
This discussion is related to the CustomSideBarLink addon.
CustomSideBarLink
«1

Comments

  • Thanks for the extension, I am planning on using it to build a side bar "menu" for my forum.

    I took a look at the default.php file in a word editor, but how do I make the link open in the same window as opposed to a new window?

    And also, how do I add more than one link?
  • To make it open in the same window change...

    target=\"_blank

    to

    target=\"_self

    Be careful with the quotes.

    As for your other question, it's answered inside the PHP file...

    /* Type the page name in quotes. For multiple pages seperate them with a comma as shown. To have your side bar on all pages delete this entire section (Everything between the top and bottom lines of ~~) (leave the ~~) */
  • Does this work with 1.1.2?
  • Uploaded version 1.0.1 of CustomSideBarLink.
  • It's still not clear to me how I go about adding more than one link
  • I agree, it's not that pretty of an extension :P

    Notice in default.php there are tags "BEGIN LINK" and "END LINK" both of which in case code.
    Just copy from "BEGIN LINK" with all the code to "END LINK"

    For instance, you would be copying:

    /* BEGIN LINK */

    CODES

    /* END LINK */


    Once you select all that go down after END LINK a few spaces and paste it, then edit it like you would the first link. You will also add a 2 following both of the "TITLE" and "LINK" texts in the body of your 2nd link. And do the same for your 3rd and 4th links.

    This is all explained in the 1.0.2 update

    Hope this help, if there are any other q's or issues let me know :)
    And Again, sorry for the confusing editing :)
  • Uploaded version 1.0.2 of CustomSideBarLink.
  • Thanks for the clarification Dayne. Wouldn't this create a new title AND a new link? I'm trying to have one "title" with multiple "links" under that one title, kind of like a menu.
  • Uploaded version 1.5 of CustomSideBarLink.
  • Raize, Version 1.5 has been uploaded. I hope this helps! Sorry about the confusion you have gone through!
  • Hallelujah! It's a lot simpler to use now Dayne, thanks for taking the time to make the extension AND the how to guide. I didn't even realize how much I needed this until I installed it lol

    For other rookies who install this, keep in mind that there is two of "LINK#" that you have to change for each link.
  • Daynneeee I can't log into my forum anymore!

    Notice: Undefined variable: Panel in /mnt/w0308/d17/s41/b0277ee6/www/bhangratune/extensions/CustomSideBarLink/default.php on line 20

    Fatal error: Call to a member function AddList() on a non-object in /mnt/w0308/d17/s41/b0277ee6/www/bhangratune/extensions/CustomSideBarLink/default.php on line 20
  • Ok, I understand what's going on. I will try to fix it all in a new update. In the mean time I will show you how to manually turn off the extension.

    Step One: Open your FTP program and load your forum.
    Step Two: Open the folder "conf"
    Step Three: Download the file "extensions.php"
    Step Four: Open that file in NotePad or WordPad
    Step Five: Search for and find this line of code:
    include($Configuration['EXTENSIONS_PATH']."CustomSideBarLink/default.php");
    Step Six: Delete that line entirely, leaving no space.
    Step Seven: Delete the "CustomSideBarLink" folder from your extensions folder

    After all this the extensions has been completely erased and you should now be able to log in.

    I will have a fix for this issue in version 1.5.1 coming out shortly.

    I'm glad the guide worked for you and im sorry about this minor inconvenience.
  • Uploaded version 1.5.1 of CustomSideBarLink.
  • Thanks a lot Dayne, I didn't bother disabling the extension because I knew you'd be on top of it. I'll test 1.5.1 in just a moment, I have a feeling it'll work like a breeze. And Thanks for all the help! You don't need to apologize for anything, this is generally how the open source development process works :)
  • I'm glad its working and I'm glad you enjoy the extension!
  • I've got Raize's opposite problem, I can't log out! :D and it throws the same error... anyway, thanks for the extension, it's really handy ;)
  • Perfecto, the extension is working awesome on 1.1.5a

    I can login and logout...Ernesto, uninstall the extension and try doing a fresh install by using the newest version.
  • Uploaded version 1.5.2 of CustomSideBarLink.
  • 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...
«1
Sign In or Register to comment.