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.
I need a new tab- but I need it to link to a different site...
mizzmuzikluvr
New
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?
0
This discussion has been closed.
Comments
<?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.
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"); } ?>
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.
http://pluswars.com/Forum