Support Forum | does flash viewer work in sidebar?

You must be logged in to post Login Register

Search Forums:


 






does flash viewer work in sidebar?

UserPost

10:50 pm
December 14, 2009


Viaxl

Member

posts 7

Post edited 10:53 pm – December 14, 2009 by Viaxl


I tried write pcviewer id="1″] in a text widget but it doesn't work (showed as is)
and actually I want to place a flash viewer inside the theme (not in widgetized bars). I tried editing the theme but still.
how to do that?
the site is http://btrice.com
thanks~

10:54 pm
December 14, 2009


Viaxl

Member

posts 7

the code is fine it works in posts

11:49 pm
December 14, 2009


Boris

Admin

posts 163

There's two ways of doing this. The first is to use a call to the function that displays the viewer and the second is to enable the use of shortcodes in widgets.

add_filter('widget_text', 'do_shortcode');

The above code has to be put into your theme's functions.php file. Then you can use shortcodes in widgets.

echo nggShowSimpleViewer( galleryID, Width, Height, Link )

Now this bit let's you output SimpleViewer directly into a template. You have to wrap it inside php tags and adjust galleryID and the rest of the parameters to your needs. Here's an example without a link:

echo nggShowSimpleViewer( 1, 250, 175 )

12:55 am
December 15, 2009


Viaxl

Member

posts 7

wow this works~ amazing!

and I've figured out that ImageFlow is more appropriate as a showcase (faster and transparent background)

so is there a way to show random images with imageflow? so that I can use it to replace the normal nextgen widget

that would be cool. thx!!

12:56 am
December 15, 2009


Boris

Admin

posts 163

The new version will do that. Try the beta version that's out although it still has a few bugs…

1:06 am
December 15, 2009


Viaxl

Member

posts 7

oh yeah I'll download immediately


another question (sorry to be a trouble =D)

can I display an album in flashviewer or imageflow? there isn't a way according to the readme. is it new feature of new vertion? that would be great

1:59 am
December 15, 2009


Viaxl

Member

posts 7

okay I've read functions.php to figure it out (know nothing about php >_<)

anyway i'm done~ come back only to tell you how absolutely fabulous you are~

3:31 am
February 4, 2010


manogamez

New Member

posts 1

I still can't figure out how to get it to work.

<?php

 echo nggShowSimpleViewer( 1, 250, 175 );

?>

That's in my text widget and the functions.php file has been appended.


Thanks for the great plug-ins!


About the ShabuShabu Webdesign forum

Most Users Ever Online:

32


Currently Online:

3 Guests

Forum Stats:

Groups: 3

Forums: 7

Topics: 134

Posts: 429

Membership:

There are 196 Members

There has been 1 Guest

There are 2 Admins

There are 0 Moderators

Top Posters:

razz2 – 9

Viaxl – 7

DavidKohlmeyer – 7

DHO – 7

sugar – 6

Nokao – 6

Administrators: Boris (163 Posts), Stefan (0 Posts)