Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: 1 2 3 4 5 [6] 7 8 9 10 ... 13   Go Down

Author Topic: Image Scroller - based on iTunes  (Read 259372 times)

0 Members and 2 Guests are viewing this topic.

helenbn

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Image Scroller - based on iTunes
« Reply #100 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.
Logged

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Image Scroller - based on iTunes
« Reply #101 on: September 12, 2007, 10:33:36 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

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Image Scroller - based on iTunes
« Reply #102 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.
Logged

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: Image Scroller - based on iTunes
« Reply #103 on: September 13, 2007, 03:02:37 pm »

Hello,

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

PYAP
Logged

helenbn

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Image Scroller - based on iTunes
« Reply #104 on: September 13, 2007, 03:06:20 pm »

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.
Logged

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Image Scroller - based on iTunes
« Reply #105 on: September 15, 2007, 07:48:51 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:
Code: [Select]
<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.
« Last Edit: September 16, 2007, 09:38:43 pm by rphMedia »
Logged

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Image Scroller - based on iTunes
« Reply #106 on: September 15, 2007, 08:53:18 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:
Code: [Select]
<?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

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Image Scroller - based on iTunes
« Reply #107 on: September 16, 2007, 06:54:23 pm »


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 ...

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

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Image Scroller - based on iTunes
« Reply #108 on: September 16, 2007, 09:41:12 pm »

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

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Image Scroller - based on iTunes
« Reply #109 on: September 16, 2007, 10:33:06 pm »


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
Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

helenbn

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Image Scroller - based on iTunes
« Reply #110 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. ???
Logged

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Image Scroller - based on iTunes
« Reply #111 on: September 17, 2007, 07:08:02 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?

helenbn

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Image Scroller - based on iTunes
« Reply #112 on: September 17, 2007, 07:39:02 pm »

Logged

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Image Scroller - based on iTunes
« Reply #113 on: September 17, 2007, 07:44:31 pm »

helenbn

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Image Scroller - based on iTunes
« Reply #114 on: September 17, 2007, 07:49:42 pm »

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

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

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Image Scroller - based on iTunes
« Reply #115 on: September 17, 2007, 07:52:04 pm »

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Image Scroller - based on iTunes
« Reply #116 on: September 17, 2007, 08:00:04 pm »

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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Image Scroller - based on iTunes
« Reply #117 on: September 18, 2007, 08:51:38 am »

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

helenbn

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Image Scroller - based on iTunes
« Reply #118 on: September 18, 2007, 02:51:07 pm »

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?
Logged

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Image Scroller - based on iTunes
« Reply #119 on: September 18, 2007, 07:40:18 pm »

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):

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

It happens so fast they won't even notice.
Pages: 1 2 3 4 5 [6] 7 8 9 10 ... 13   Go Up
 

Page created in 0.026 seconds with 20 queries.