How move "slideshow" icon from Menu How move "slideshow" icon from Menu
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

How move "slideshow" icon from Menu

Started by gpitta, February 07, 2005, 07:03:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gpitta

Hello guys,
who knows how can i move the "slideshow" icon from Menu toolbar to vote average stars?  ???

Thank you for support.

G.

Casper

Open your displayimage.php, and find the;

function html_rating_box()

Now, add this into the globals;

$album, $template_image_rating,

Find;

$pid = $CURRENT_PIC_DATA['pid'];

Now, add this, in a new line;

$slideshow_tgt = "$PHP_SELF?album=$album$cat_link&pid=$pid&slideshow=".$CONFIG['slideshow_interval'];


And now add this into the params array;

'{SLIDESHOW_TGT}' => $slideshow_tgt,
        '{SLIDESHOW_TITLE}' => $lang_img_nav_bar['slideshow_title'],


Now you can move the slideshow link into the image rating box.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

gpitta

Thank you much Casper!!

Something is wrong. the icon appears on the top of the image... but i have understood what you mean.. i will work over this solution.


Thanks.

G.

Casper

If the icon appears on the image, you have moved the link incorrectly.

It all works fine on my site.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

gpitta

IT WORKS!!!!!

THANK YOU CASPER!!

I FOUND THE MISSING:

You must add:

<a href="{SLIDESHOW_TGT}" title="{SLIDESHOW_TITLE}"><img src="images/slideshow.gif" alt="{SLIDESHOW_TITLE}" border="0" /></a>

in the:

$template_image_rating = <<<EOT


and you must activate Nav Menu.

;o)

G

Casper

Quote from: Casper on February 07, 2005, 09:00:19 PM
Now you can move the slideshow link into the image rating box.

That is what I meant.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

gpitta