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.
New Extension: Social Bookmarks
EDIT: Its been released Social Bookmarks 1.0
Below is the new extension I'm working on. I need just a slight bit of help before I release this one. Basically I want it to have the same functionality where it will highlight the option while hovering over instead of adding a underline below the text option. Secondly, I would need to add a header above it that says "Social Bookmarks" with an underline below it. The code is below, does anyone think they can help a new developer out? Thanks in advance.
<?php
/*
Extension Name: Social Marks
Extension Url: http://lussumo.com/docs/
Description: Allows the user to add any page from a Vanilla forum to his
del.icio.us, digg, or furl account.
Version: 1.0
Author: JP Mitchell
Author Url: http://www.resn.biz
*/
if(in_array($Context->SelfUrl, array("index.php", "categories.php",
"comments.php", "search.php", "post.php", "account.php", "settings.php"))){
$socialmarks =
ENDCODE;
$Panel->AddString($socialmarks,false);
}
?>
Below is the new extension I'm working on. I need just a slight bit of help before I release this one. Basically I want it to have the same functionality where it will highlight the option while hovering over instead of adding a underline below the text option. Secondly, I would need to add a header above it that says "Social Bookmarks" with an underline below it. The code is below, does anyone think they can help a new developer out? Thanks in advance.
<?php
/*
Extension Name: Social Marks
Extension Url: http://lussumo.com/docs/
Description: Allows the user to add any page from a Vanilla forum to his
del.icio.us, digg, or furl account.
Version: 1.0
Author: JP Mitchell
Author Url: http://www.resn.biz
*/
if(in_array($Context->SelfUrl, array("index.php", "categories.php",
"comments.php", "search.php", "post.php", "account.php", "settings.php"))){
$socialmarks =
ENDCODE;
$Panel->AddString($socialmarks,false);
}
?>
0
This discussion has been closed.
Comments
<?php /* Extension Name: Social Marks Extension Url: http://lussumo.com/docs/ Description: Allows the user to add any page from a Vanilla forum to their del.icio.us, digg, or furl account. Version: 1.0 Author: JP Mitchell Author Url: http://www.resn.biz */ $Context->Dictionary['SocialMarks_Title'] = 'Social Bookmarks'; $Context->Dictionary['SocialMarks_PostToDigg'] = 'Post to Digg'; $Context->Dictionary['SocialMarks_PostToDelicious'] = 'Post to del.icio.us'; $Context->Dictionary['SocialMarks_PostToFurl'] = 'Post to Furl'; if (in_array($Context->SelfUrl, array('index.php', 'categories.php','comments.php','search.php','post.php','account.php','settings.php'))) { $socialmarks = '<div class="javascriptcode"> <h2>'.$Context->GetDefinition('SocialMarks_Title').'</h2><ul> <li><a href="javascript:location.href=\'http://digg.com/submit?phase=2&url=\'+encodeURIComponent(document.location.href)+\' \'">'.$Context->GetDefinition('SocialMarks_PostToDigg').'</a></li> <li><a href="javascript:location.href=\'http://del.icio.us/post?v=2&url=\'+encodeURIComponent(document.location.href)+\'&title=\'+encodeURIComponent(document.title)+\'\'">'.$Context->GetDefinition('SocialMarks_PostToDelicious').'</a></li> <li><a href="javascript:location.href=\'http://www.furl.net/storeIt.jsp?u=\'+encodeURIComponent(document.location.href)+\'&t=\'+encodeURIComponent(document.title)+\'\'">'.$Context->GetDefinition('SocialMarks_PostToFurl').'</a></li> </ul></div>'; $Panel->AddString($socialmarks,false); } ?>
Have fun. I'm going to get some sleep
Haha. It just struck me your whole aim was to get the highlighting going and not with the underlines so i kinda missed the whole bill here (though i did get language capabilities in for you, go me!). I actually have no idea why it's not highlighting though - the code (as far as i can see) is identical now (as far as html tags go) with the rest of the stuff in the side panel. I'm confused =\ I'm sure someone will be able to shed some light on it though.
Social Bookmarks 1.0
I have modified it so only 12 social bookmark services are displayed.
/*
Extension Name:
Extension Url:
Description:
Version:
Author:
Author Url:
*/