View Single Post
  #1 (permalink)  
Old 03-27-2008, 09:56 AM
jemaverick jemaverick is offline
New Pligger
 
Join Date: Mar 2008
Posts: 4
Hi there, I'd really appreciate some help with this.

I wanted to put a Bookmarkify Widget (instructions here) into my sidebar module, but can't figure out how to call the php file from the module, despite following the instructions on the Bookmarkify site.

It has to call from the bookmarkify.php file.

Basically, I have got the bookmarkify.tpl inserted properly into the sidebar.tpl file, but I'm not sure if I got the code right. This is the code that I inserted into my bookmarkify.tpl sidebar module:

Code:
<div class="tlb">
{php}
	echo "<span><img src=\"".my_pligg_base."/templates/yget/images/expand.png\"  onClick=expandcontent(this,'s1') ></span>    ";
{/php}

<a href="#">Bookmark Litmarks!!</a>

</div>


<div id="sr" style="padding-bottom:5px;">
{php}
require_once("bookmarkify.php");
$bookmarkifyWidgetTitle="";
$bookmarkifySelectedLinks="Technorati;Facebook;del.icio.us;Digg;Google;MySpace;StumbleUpon;Email;";
$bookmarkifyFeedURL="http://feeds.feedburner.com/litmarks";
$bookmarkifyFeedBurnerID="1827750";
$bookmarkifyMoreLink=1;
$bookmarkifyCenterFade=0;
$bookmarkifyHideBrand=1;
$bookmarkifyDocType="";
{/php}
</div>
and this is the call to the module from sidebar.tpl:

Code:
{assign var=sidebar_module value="bookmarkify"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
I put the bookmarkify.php and the bookmarkify.css directly into the sidebar_modules folder.

I would provide a link, to my site, but I removed the call to bookmarkify.tpl from sidebar.tpl, as there was a horrendous loop, and the top of the module just kept loading with no content whatsoever. Am I calling it right, or do I need to tweak the code a whole lot more. What about the location of the bookmarkify.php file? Should it be called from that folder?

Any help would be appreciated, as I am a hack when it comes to coding, and could really use some input and extra brains.

Regards,

J.
Reply With Quote