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.

add PHPCode to sidepanel

edited October 2006 in Vanilla 1.0 Help
where can i add some lines php-code to the sidepanel?

Comments

  • I think it's best if you create an extension to do what you want. I've added a links section on my forum using: <?php /* Extension Name: Panel Link List Extension Url: http://www.jwurster.us/gfe/ Description: Adds a list of links to the side panel of the page. Version: 1.0 Author: Jim Wurster Author Url: http://www.jwurster.us/ */ $Context->Dictionary['LinkList'] = "Links"; if (in_array($Context->SelfUrl, array("index.php", "account.php", "categories.php", "comments.php", "post.php", "search.php", "settings.php"))) { function GetPanelLinkList(&$Context) { $PanelLinkList = "\n<ul><li><h2>" . $Context->GetDefinition('LinkList') . "</h2></li>\n"; $PanelLinkList .= '<li><ul>'; $PanelLinkList .= '<li><a href="http://www.jwurster.us/wordpress/">My Blog</a></li>'; $PanelLinkList .= '<li><a href="http://www.wurster.ws/wordpress/">My New Blog</a></li>'; $PanelLinkList .= '<li><a href="http://www.jwurster.us/photo/">My PhotoAlbum</a></li>'; $PanelLinkList .= '</ul>'; $PanelLinkList .= "</li></ul><br />"; $PanelLinkList .= "<p>Hi ".$Context->Session->User->Name."</p>"; return $PanelLinkList; } $Panel->AddString(GetPanelLinkList($Context),3); } ?>
  • edited October 2006
    a generic nuggets extension would be usefull. A nugget will be able to hold any piece of html, javascript or php. A nugget can be placed in the sidebar, in any order (for eg. before the Whispered discussions or after) A nugget can be placed in the header/footer A nugget can be placed in the content body. A nugget can be limitted to which page to appear on. Predefined places for nuggets can be creatted. potential nuggets application. Ads, calender, Flickr badges, images, mediaplayer in the sidebar, links to fav blogs, delicious bookmarks, etc. there are tons and tons of web apps that let u add there content on ur own website with a couple of javascripts and html. nuggets extension will allow all of em to work wonderfully. believe me if this is created lot of extensions requests will be elimitted. as Forum admins will be able to post anything they want in the nuggets.
  • Nuggets? Tastes like chicken.
This discussion has been closed.