<iframe src="http://www.windsurf.me.uk/cpg133/slide.php" frameborder="0" scrolling="Auto" width="340" height="270" title="Map">
News </iframe>
$slideshow[ 'slide' ][ $i ] = array ( 'url' => $url[$i+1] , 'background' => "ffffff");
and change it to this$slideshow[ 'slide' ][ $i ] = array ( 'url' => $url[$i+1] , 'background' => "ffffff" , 'duration' => x);
where x is your duration in seconds.$slideshow[ 'transition' ][ $i ] = array ( 'type' => "z", 'duration' => y );
//insert the slideshow.swf flash file into the web page
//tell slideshow.swf to get the slideshow's data from sample.php created in the first step
//set the slideshow's width to 320 pixels and the height to 240
echo Insert_Slideshow ( "slideshow.swf", "source.php" , 320, 240 );
function Insert_Slideshow( $flash_file, $php_source, $width=320, $height=240, $license=null ){
Sorry about my post before but the reason i replyed to a thread is because i couldnt find the new thread button to start a new thread about my question. Sorry to be such a newb but i just cant find it? Do i have to have a certain amount of posts before i can start a new thread? I already searched the forums for other threads about my question and they dont answere it.1) Don't PM supporters, but post publicly.
Thanks.
Modifications/Add-Ons/HacksThe sticky thread "About this board - READ (http://forum.coppermine-gallery.net/index.php?topic=14348.0)" says the same thing.
The Modifications/Add-Ons/Hacks board is for actual mods and hacks contributions. It is not for requests for mods and hacks. Regular users are not able to post new threads to prevent this board from being cluttered by requests. If you want to contribute and are unable to create a new thread here, please post your contribution in the support boards under the correct version. A moderator will move the thread if it is a valid contribution. Next to each thread's subject, you'll find a little icon that says what version the mods on this sub-board have been written for or tested with (if applicable). Please do not clutter the individual threads by asking if the particular mod will or will not work with another coppermine version than the one it has originally been created with/for.
The link is hidden in the flash. Mike (aka maani) supplied the flash bit for the slideshow and I just did the adaptations to get it to work with coppermine.
I'm currently working on a better slideshow using mootools. Some people do not like using flash on their websites so that is why I'm doing a javascript version. It should be more versatile if I can get cpmfetch to work with it. You'll then be able to click on each image to directly link to the full size image. It's nearly working but I'm short of time at the moment.
You need to get the intermediate images working in your gallery first.
You need to get the intermediate images working in your gallery first.
Will you be posting the integration with cpmfetch to this thread or another? - I'm really looking forward to being able to click a slideshow image and go to it |
just have to learn alittle java.... ::) ::)JavaScript and Java are two entirely different animals. Mootools is JavaScript-driven.
<?php
//include slideshow.php to access the Send_Slideshow_Data function
include "slideshow.php";
include "flashthumb.php";
for ( $i=0; $i<14; $i++ ){
$slideshow[ 'slide' ][ $i ] = array ( 'url' => $url[$i+1] , 'background' => "ffffff" , 'duration' => 4);
$slideshow[ 'transition' ][ $i ] = array ( 'type' => "fade_to_white", 'duration' => 3 ); /* Where "z" can be "drop","fade_to_black" or "push_up" and y is the duration of the transition in seconds.+*/
$slideshow[ 'transition' ][ 0 ] = array ( 'type' => "drop", 'duration' => 1 );
$slideshow[ 'transition' ][ 1 ] = array ( 'type' => "fade_to_white", 'duration' => 2 );
$slideshow[ 'transition' ][ 2 ] = array ( 'type' => "push_up", 'duration' => 1 );
$slideshow[ 'link' ][ $i ] = array ( array ( 'url'=> $url[$i+1] , 'target'=>"_blank" ));
}
Send_Slideshow_Data ( $slideshow );
?>
<?php
//include slideshow.php to access the Send_Slideshow_Data function
include "slideshow.php";
include "flashthumb.php";
for ( $i=0; $i<14; $i++ ){
$slideshow[ 'slide' ][ $i ] = array ( 'url' => $url[$i+1] , 'background' => "ffffff" , 'duration' => 4);
$slideshow[ 'transition' ][ $i ] = array ( 'type' => "fade_to_white", 'duration' => 3 ); /* Where "z" can be "drop","fade_to_black" or "push_up" and y is the duration of the transition in seconds.+*/
$slideshow[ 'transition' ][ 0 ] = array ( 'type' => "drop", 'duration' => 1 );
$slideshow[ 'transition' ][ 1 ] = array ( 'type' => "fade_to_white", 'duration' => 2 );
$slideshow[ 'transition' ][ 2 ] = array ( 'type' => "push_up", 'duration' => 1 );
$slideshow[ 'link' ][ $i ] = array ( array ( 'url'=> $url[$i+1] , 'target'=>"_blank" ));
}
Send_Slideshow_Data ( $slideshow );
?>
$slideshow[ 'link' ][ $i ] = array ( array ( 'url'=> $url[$i+1] , 'target'=>"_blank" ));
I would like to link the photos, not to the jpeg image but to the coppermine page that contains the photo... ??? <?php
define('IN_COPPERMINE', true);
require('include/init.inc.php');
$xml = '<image_folder></image_folder>';
if ($FORBIDDEN_SET != "") $FORBIDDEN_SET = "AND $FORBIDDEN_SET";
$result = mysql_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE filename LIKE '%.jpg' $FORBIDDEN_SET ORDER BY RAND() LIMIT 15");
while ($row = mysql_fetch_array($result))
{
$type = '';
$xml .= " ".get_pic_url($row, $type) ."";
$xml1 .= " ".get_pic_pid($row, $type) ."";
}
$url = explode(" ", $xml);
$pid = explode(" ", $xml1);
?>
gal/displayimage.php?pos=-"pid"
<?php
define('IN_COPPERMINE', true);
require('include/init.inc.php');
$xml = '<image_folder></image_folder>';
$pidlist = array(); // added
if ($FORBIDDEN_SET != "") $FORBIDDEN_SET = "AND $FORBIDDEN_SET";
$result = mysql_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE filename LIKE '%.jpg' $FORBIDDEN_SET ORDER BY RAND() LIMIT 15");
while ($row = mysql_fetch_array($result))
{
$type = 'normal';
$xml .= " ".get_pic_url($row, $type) ."";
$pidlist[] = $row['pid']; // added
}
$url = explode(" ", $xml);
?>
$slideshow[ 'link' ][ $i ] = array ( array ( 'url'=> 'gal/displayimage.php?pos=-' . $pidlist[$i] , 'target'=>"_blank" ));
$slideshow[ 'link' ][ $i ] = array ( array ( 'url'=> 'gal/displayimage.php?pos=-' . $pidlist[$i] , 'target'=>"_top" ));
and delete gal/$slideshow[ 'link' ][ $i ] = array ( array ( 'url'=> 'displayimage.php?pos=-' . $pidlist[$i] , 'target'=>"_top" ));
for ( $i=0; $i<14; $i++ ){
tofor ( $i=2; $i<14; $i++ ){
And added after the fixed links and urls for the first 3 pictures.