Sidebar issues

ourRTW

Joined: 2008-05-09
Posts: 1
Posted: Fri, 2008-05-09 04:08

Hi

Im using Wordpress 2.2.1 and Gallery 2.2.2 on my site http://ourRTW.com.

I want to add a random image in my sidebar but have some questions:

- How do you add the random image to the dynamic wordpress sidebar widgets? I've tried to add the code to a text widget but you cannot add php code, just html and js. (Ive added it manually to the sidebar.php but can only add it on the top or bottom of the sidebar)
- How do you change the hyperlink to go to the custom wp gallery page (e.g. http://ourrtw.com/wp-gallery2.php?g2_itemId=1881) and not the normal gallery page (e.g. http://ourrtw.com/gallery2/main.php?g2_itemId=1881)if you click on the thumbnail in the sidebar?

Thanks in advance!!

Eon

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sat, 2008-05-10 03:38

Hiya ourRTW,

WPG2 2.x is no longer supported, WPG2 3.x has full widget support, lightbox and a number of improvements. I have however seen a site where you could download a WPG2 2.x sidebar widget, if you want to remain on WPG2 2.x. Google WPG2 Widget should find it..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo