Help needed with code insertion into sidebar module.

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2008, 09:56 AM
New Pligger
Pligg Version: 9.9
 
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
  #2 (permalink)  
Old 03-27-2008, 12:05 PM
New Pligger
 
Join Date: Sep 2007
Posts: 10
Hi J,
Try putting bookmarkify.php into your base pligg folder, and not in the sidebar folder. I think when you call

PHP Code:
require_once("bookmarkify.php"); 
it looks in the base folder. You should probably move the css file to the../yourtemplate/css/ folder too, unless that seems to work OK in the sidebar folder.

Hope this helps!

J
Reply With Quote
  #3 (permalink)  
Old 03-27-2008, 12:19 PM
graphicsguru's Avatar
Pligg Donor
Pligg Version: 9.9.5
 
Join Date: Aug 2006
Location: USA
Posts: 399
Try this

sidebar php

{php}include('/home/yourPATH/public_html/nameOFyour.php');{/php}

or {literal} CODEgoesHERE{/literal}

without your url or me installing that script I don't think your going to get 100% solution

but that's how I use my pligg 9.9 sidebar

I have 3 different banner pages with 3 different paths
Reply With Quote
  #4 (permalink)  
Old 03-27-2008, 01:27 PM
New Pligger
Pligg Version: 9.9
 
Join Date: Mar 2008
Posts: 4
Thanks, guys. I'll try those out, and keep you posted on how I go!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload Module (File and Image Attachment) Yankidank Free Modules 158 Yesterday 04:49 PM
Fixes to Profile Extra Fields Module v0.2 and Extended Profile Module v0.1 redwine Questions and Comments 8 01-04-2010 07:06 PM
Google Translate v0.1 Sidebar Pligg Module pliggedit Questions and Comments 3 03-16-2008 02:57 AM
Sidebar Friends Module with messaging and activity AnAlienHolakres3 Questions and Comments 31 02-09-2008 06:54 AM
Sidebar Experts Module Tutorial AnAlienHolakres3 Questions and Comments 2 11-02-2007 12:32 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development