Image Scroller - based on iTunes - Page 6 Image Scroller - based on iTunes - Page 6
 

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

Image Scroller - based on iTunes

Started by rphMedia, May 25, 2007, 03:28:54 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

helenbn

Is there a way to have the images always pulled in a particular order? Mine appears to pull randomly.

rphMedia

Quote from: helenbn on September 12, 2007, 08:45:27 PM
Is there a way to have the images always pulled in a particular order? Mine appears to pull randomly.

Am I supposed to guess what order you want ?   ;)

helenbn

I have an album that consists of photo images taken from left to right from an observation tower, and when viewed from left to right make a panoramic. But if the images are pulled randomly, the panoramic isn't communicated.

Maybe if this can pull images in the order set by Coppermine configuration within the album, that would do it.

Pascal YAP

Hello,

This MOD is not create to produce Pano !
Try a FLASH prog who use one pix only, your pano file pix.

PYAP

helenbn

Thanks but this mod is what I want to use. It just so happens that the collection of pics quasi create a panoramic, more or less.

rphMedia

#105
Quote from: hama on September 10, 2007, 09:16:47 PM
Yes, my thumbs are at 133 width. I think I have already this size in your script or is it a little bit smaller? It doesn't matter. I'm happy with the script as it is! It's a great work! Maybe you have another idea around my javascript conflict. That's the only problem for the moment.  :)

Hi hama, try this.

Instead of using the flash code I provided originally, replace with this:
<script type="text/javascript" src="flashobject.js"></script>
<div id="flashcontent" style="width: 900; height: 350px"></div>
<script type="text/javascript">
var fo = new FlashObject("flow.swf", "animationName", "900", "350", "8", "#FFFFFF");
fo.addVariable("xmlPath", "http://YOURSITE.com/cpg/flow.php"); <!-- absolute path to flow.php -->
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("wmode", "transparent");
fo.write("flashcontent");
</script>


And I've attached the new JavaScript that replaces the AC_RunActiveContent.js.

Let me know how it works.

rphMedia

Quote from: helenbn on September 13, 2007, 02:56:31 PM
I have an album that consists of photo images taken from left to right from an observation tower, and when viewed from left to right make a panoramic. But if the images are pulled randomly, the panoramic isn't communicated.

Maybe if this can pull images in the order set by Coppermine configuration within the album, that would do it.

helenbn, try this.

Replace flow.php with this:
<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
$path=$CONFIG['site_url'];
$xml '<?xml version="1.0" encoding="UTF-8"?>
<content>';
if ($FORBIDDEN_SET == "");
$result = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} WHERE filename LIKE '%.jpg' ORDER BY pid DESC LIMIT 20");
if (!$result) {
die('<p>Error performing query: ' . mysql_error() . '</p>');
}
stripslashes(ereg_replace("&#39;","'",$row[title]));
while ($row = mysql_fetch_array($result))
{
$type = max($row['pwidth'], $row['pheight']) > $CONFIG['picture_width'] ? 'thumb' : 'thumb';
$xml .= "<image><path><![CDATA[" . $path . get_pic_url($row, $type) . "]]></path><description><![CDATA[$row[title]]]></description><data><![CDATA[http://muvipix.com]]></data></image>";
}
$xml .= '</content>';
echo $xml;
?>


I believe that's what you're looking for.

hama


Hi

Thanks for your work but the show doesn't start.  :'(

I replaced AC_RunActiveContent.js with flashobject.js and put your provided code in anycontent.php. The site is loading and loading ...

Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

rphMedia

hama, you still have the old script at your gallery. Read my last post to you. You need to replace the script that calls AC_RunActiveContent.js with the new script in my last post.

hama


After trying a few times with the second version I went back to the first version but now after installing the second version again:

It works!

I didn't write the absolute path in the new script ...

Thanks for your patience and have a good week!  :)

hama
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

helenbn

I tried the php replacement script, but then the swf didn't show at all even though the Internet cache says it loaded.. The images file names are chronological. My image files did NOT have a title or description, so I added a numeric chronological title to each (ie, I numbered them in the title field, "1" , "2" ...) and still nothing. And just for grins, I placed the same number in the description field. No swf to be see. ???

rphMedia

Quote from: helenbn on September 17, 2007, 06:30:52 PM
I tried the php replacement script, but then the swf didn't show at all even though the Internet cache says it loaded.. The images file names are chronological. My image files did NOT have a title or description, so I added a numeric chronological title to each (ie, I numbered them in the title field, "1" , "2" ...) and still nothing. And just for grins, I placed the same number in the description field. No swf to be see. ???
Link?


rphMedia


helenbn

very interesting... so what if the average surfer uses the www?

[by the way, it works!!!] Thanks!

rphMedia

Now that I think about this, it may be because in your html code, you have the www removed. Flash thinks it's a different domain and fails for security reasons. Just a guess.

helenbn

If it's a Flash security issue, then should it be a standard to include the work-around code to work across different domains, even though it's not?

Joachim Müller

Can easily be accomplished using .htaccess means. Has been discussed often on this forum. Not related to this mod particularly.

helenbn

yes, I read the discussion.... and if the success of this mod depends on this inclusion, then it does relate.

rphMedia, what do you think?

rphMedia

If you code it right, you shouldn't have any issues.

If you're worried about the www, put this in your header of the page where Flash is running (example):

<script language="javascript"><!--
location.replace("http://appleridge.org/news/flow.htm")
//-->
</script>


It happens so fast they won't even notice.