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.
  1.  # 1
    I have no clue what I am doing here. I have a Wordpress run blog, and Vanilla was suggested as a good forum. I have to say, I love the way it functions. The only problem is, there isnt any way for me to link back to the site. I'd like a tab to go before the "discussions" tab, and I want it to link back to the homepage. I kinda know how to work extensions, but I have NO clue how to edit or write one. Can someone help please?
    •  
      CommentAuthorKrak
    • CommentTimeSep 30th 2005 edited
     # 2
    http://forum.hatethis.org/downloads/NewPageTabMenu.php.txt

    Rename all the words "NewPage" With what you want the link to be called. And rename "NewPage.php" to the URL you want the new tab to go to. Edit "$Position = "5"" to what position you want it to show up in. Before the discussion tab, try 1 I'd imagine.

    Edit that file and place it in your extension folder then enable it. That should do it.
    •  
      CommentAuthornathan
    • CommentTimeSep 30th 2005
     # 3
    That's about right.

    Try 1, I am sure that will put that tab BEFORE the discussions tab.

    Just a question for those MORE familar with this. Does the tab and panel position numbers start at 1 or 0? Most arrays start at 0, and I am assuming this is something similar.
  2.  # 4
    WEll, I did what you asked, but it doesn't read as an extention when I pu it in the folder. ITs no where on the "manage extentions" list. Sigh- I'm prolly doing something stupidly wrong.

    <?php
    /*
    * Extension Name: hometabmaker
    * Extension Url: http://leavesofivy.com
    * Description: adds a home tab
    * Version: 1
    * Author: me
    * Author Url: http://leavesofivy.com
    */


    if (in_array($Context->SelfUrl, array("index.php", "categories.php", "comments.php", "search.php", "post.php", "account.php", "settings.php", "newpage.php"))) {

    $Menu->AddTab("Back To Legend", "Back To Legend", "http://leavesofivy.com/Legend", "NewPageTab", $Attributes = "", $Position = "1", $ForcePosition = "1");

    }
    ?> thats what I put- If it helps
    •  
      CommentAuthornathan
    • CommentTimeSep 30th 2005
     # 5
    In the extensions folder? Strange. I also assume you use a .php file extension?

    I'll test it and report back shortly.
    •  
      CommentAuthornathan
    • CommentTimeSep 30th 2005
     # 6

    <?php
    /*
    Extension Name: Home Tab
    Extension Url: http://skoap.com/
    Description: Adds home tab
    Version: 1
    Author: Nathan Wheatley
    Author Url: http://skoap.com
    */

    if (in_array($Context->SelfUrl, array("index.php", "categories.php", "comments.php", "search.php", "post.php", "account.php", "settings.php"))) {

    $Menu->AddTab("Back To Legend", "Back To Legend", "http://leavesofivy.com/Legend/", "Home Tab", $Attributes = "accesskey=\"h\" target=\"_main\"", $Position = "2", $ForcePosition = "1");

    }
    ?>


    Try that. That is just a modified version of one I made a little while ago. Just save is as homeTab.php and put it in your extensions folder.

    Sorry Krak if this is the same code you posted, but I did not read yours line for line, so i am not sure if there are errors.

    tell me how it goes.
    •  
      CommentAuthornathan
    • CommentTimeSep 30th 2005
     # 7
    The code formatter stripped the opening <?php tag, so you will have to add it to the top.

    Sorry.
    •  
      CommentAuthornathan
    • CommentTimeSep 30th 2005 edited
     # 8
    Right.

    I tidied it up a little. it will now load that link in the SAME window. It was opening your homepage in a NEW window. Fixed now. Positioning is also fixed. it is now positioned to the RIGHT of the discussions tab.

    I also put an access key. If the user presses alt+h it will take them home. Just in case you have QuickKeys on.

    I have tested htis and it all works fine.

    Home that helped.

    The source is available here.

    or here (remeber to add the < ?php before the FIRST line!):

    /*
    Extension Name: Home Tab
    Extension Url: http://skoap.com/
    Description: Adds home tab
    Version: 1
    Author: Nathan Wheatley
    Author Url: http://skoap.com
    */

    if (in_array($Context->SelfUrl, array("index.php", "categories.php", "comments.php", "search.php", "post.php", "account.php", "settings.php"))) {

    $Menu->AddTab("Back To Legend", "Back To Legend", "http://leavesofivy.com/Legend/", "Home Tab", $Attributes = "accesskey=\"h\" target=\"_parent\"", $Position = "1", $ForcePosition = "1");

    }
    ?>
    •  
      CommentAuthorKrak
    • CommentTimeSep 30th 2005
     # 9
    Yeah that was the same code, cept you added the hot key, which is always good. Dunno why it didnt work for him, less he didnt drop the ".txt"
    •  
      CommentAuthornathan
    • CommentTimeOct 1st 2005
     # 10
    That is very possible. I did ask him, but he has yet to respond.
  3.  # 11
    Gosh- you just made my whole day! =o) I was so worried that the support here would be less helpfull than at wordpress (I must have 50 WP questions a week that the forums help me with) but you realy came through for me. Thankyou so much!

    I don't know why it wasnt working for me. I made sure it was .php but, like I said before, I prolly did something random. But THANKYOU ALL this worked so well and its absolutely perfect.
  4.  # 12
    Oh, and is the "him " referred to, me? because I've been away from the computer, or else I would have answered your questions, and BTW- I'm a she.
  5.  # 13
    him is a very general term. We're very open minded round here you know.

    And ofcourse we're helpful, we kick ass!

    Welcome to vanilla, enjoy your stay.
    •  
      CommentAuthorKrak
    • CommentTimeOct 1st 2005
     # 14
    Glad to hear its working for ya. Enjoy Vanilla! If you ever have any other questions/problems dont hesitate to ask.
    •  
      CommentAuthornathan
    • CommentTimeOct 1st 2005
     # 15
    I'm glad it worked for you. You are more than welcome.

    Oh, and is the "him " referred to, me? because I've been away from the computer, or else I would have answered your questions, and BTW- I'm a she.

    Sorry. I just assumed. That was bad of me.

    Please don't hesitate to ask us for more support. MOST of us will be as helpful as we can be.
    •  
      CommentAuthornathan
    • CommentTimeOct 1st 2005
     # 16
    Oh, and enjoy your stay.
  6.  # 17
    hi guys...i downloaded nathan's php file and changed the links and uploaded it to my extensions folder but i still have no new tab.
    http://pluswars.com/Forum
  7.  # 18
    have you enabled the extension?
Add your comments
    Username Password
  • Format comments as