Author Topic: Need code for sidebar.php  (Read 2646 times)

pattyb

  • Guest
Need code for sidebar.php
« on: April 10, 2008, 10:53:22 AM »
My theme doesn't use widgets. For other plugins I've placed code on my sidebar.php . An example of such code is as follows:

<?php amm_getMedia('amm_default_output', 3, AMM_BOOKS ); ?>

Can you give me code that will allow me to display my amazon wishlist? I have installed and activated AVH.

Thanks, Patty

Peter

  • Administrator
  • Regular
  • *****
  • Posts: 439
    • http://blog.avirtualhome.com
Re: Need code for sidebar.php
« Reply #1 on: April 16, 2008, 09:45:33 AM »
As soon as I have my new development machine I'll be able to help you out. Currently my dev machine is broken, hopefully I'll have a new machine in May, I'll work on it and see if I can send you some code.

Sorry for the trouble.
Peter van der Does
AVH Plugins developer

Anonymous

  • Guest
Re: Need code for sidebar.php
« Reply #2 on: May 24, 2008, 02:18:34 PM »
Hi!

I have the same request since I want to use AVH Amazon in my footer :-)

Take care and talk to you later!

/Andreas Carlsson

Peter

  • Administrator
  • Regular
  • *****
  • Posts: 439
    • http://blog.avirtualhome.com
Re: Need code for sidebar.php
« Reply #3 on: May 26, 2008, 10:07:05 PM »
The new dev machine is set to be delivered around June 12th. I'll need about a week to get it set up and then I'm good to go.
Peter van der Does
AVH Plugins developer

Anonymous

  • Guest
Re: Need code for sidebar.php
« Reply #4 on: July 20, 2008, 04:17:55 PM »
Hi, my theme is old and doesn't use widgets either, can you please post the appropriate code to put in sidebar.php? Thanks very much for making this plugin! :)

Peter

  • Administrator
  • Regular
  • *****
  • Posts: 439
    • http://blog.avirtualhome.com
Re: Need code for sidebar.php
« Reply #5 on: July 20, 2008, 08:13:47 PM »
What you can use is the following:

<?php  widget_avhamazon_wishlist(array()); />

I apologize for it taking a long time before I answered.
Peter van der Does
AVH Plugins developer

Anonymous

  • Guest
Re: Need code for sidebar.php
« Reply #6 on: July 21, 2008, 12:19:25 PM »
I've added this code  <?php widget_avhamazon_wishlist(array()); ?> but it doesn't output anything.  Nothing loads after that code, but there is no error.  Any ideas?  This plugin looks fantastic and I can't wait to use it :)

Peter

  • Administrator
  • Regular
  • *****
  • Posts: 439
    • http://blog.avirtualhome.com
Re: Need code for sidebar.php
« Reply #7 on: July 21, 2008, 12:55:07 PM »
Quote from: "Jenn"
I've added this code  <?php widget_avhamazon_wishlist(array()); ?> but it doesn't output anything.  Nothing loads after that code, but there is no error.  Any ideas?  This plugin looks fantastic and I can't wait to use it :)

What's your website you are trying to use it on? I could take a look. If you don't feel comfortable posting it here feel free to send it by PM, email or IM.

Thank you for trying my plugin.
Peter van der Does
AVH Plugins developer

Anonymous

  • Guest
Re: Need code for sidebar.php
« Reply #8 on: July 21, 2008, 01:12:35 PM »
Quote from: "Peter"
Quote from: "Jenn"
I've added this code  <?php widget_avhamazon_wishlist(array()); ?> but it doesn't output anything.  Nothing loads after that code, but there is no error.  Any ideas?  This plugin looks fantastic and I can't wait to use it :)

What's your website you are trying to use it on? I could take a look. If you don't feel comfortable posting it here feel free to send it by PM, email or IM.

Thank you for trying my plugin.

The site is http://jennmiller.com and you can see at the bottom right, the heading for wishlist, but then nothing.  Also, my left sidebar doesn't load with the code, so I can't leave it up for too long  :lol:

Jenn

  • Guest
Re: Need code for sidebar.php
« Reply #9 on: July 21, 2008, 09:01:53 PM »
<?php widget_avhamazon_wishlist(array()); ?> does indeed work!  I had to upgrade to PHP 5, but now it's working like a charm.  Thanks!  :D

Peter

  • Administrator
  • Regular
  • *****
  • Posts: 439
    • http://blog.avirtualhome.com
Re: Need code for sidebar.php
« Reply #10 on: July 22, 2008, 06:44:19 AM »
Thank you for doing an upgrade Jenn.
Peter van der Does
AVH Plugins developer

Anonymous

  • Guest
Re: Need code for sidebar.php
« Reply #11 on: October 04, 2008, 08:02:34 PM »
Hi, Peter, just wanted to drop you a line to say that the latest release broke the code to insert into sidebar manually.  

Fatal error: Call to undefined function widget_avhamazon_wishlist() in /homepages/.../htdocs/.../wp-content/themes/...

Not sure why, and I'm sorry I can't be any help  :oops:

Peter

  • Administrator
  • Regular
  • *****
  • Posts: 439
    • http://blog.avirtualhome.com
Re: Need code for sidebar.php
« Reply #12 on: October 05, 2008, 11:26:30 AM »
Jenn,

I'm working on it. I have to figure out how to make it work.
Peter van der Does
AVH Plugins developer

Peter

  • Administrator
  • Regular
  • *****
  • Posts: 439
    • http://blog.avirtualhome.com
Re: Need code for sidebar.php
« Reply #13 on: October 09, 2008, 04:49:27 PM »
You need to upgrade to version 2.2.1 and then you can use the following code for when you don't have a widget enabled sidebar:
Code: [Select]
<?php
$avhwidget
=& new AVHAmazonWidget();
$avhwidget->widgetWishlist(array());
?>
Peter van der Does
AVH Plugins developer

Peter

  • Administrator
  • Regular
  • *****
  • Posts: 439
    • http://blog.avirtualhome.com
Re: Need code for sidebar.php
« Reply #14 on: October 10, 2008, 02:30:29 PM »
Currently I am, together with Jenn, in the process to correct the problem. Right now there's the version 2.1 and higher do not support any code to display the information.
Peter van der Does
AVH Plugins developer