forum.coppermine-gallery.net

No Support => Modifications/Add-Ons/Hacks => Mods: Visuals => Topic started by: rphMedia on May 25, 2007, 03:28:54 pm

Title: Image Scroller - based on iTunes
Post by: rphMedia on May 25, 2007, 03:28:54 pm
Been doin' the mess-around again. I'm not totally finished with this yet (you know how I like to tease first anyway). If you're familiar with iTunes, you'll recognize this (I think). I don't take credit for the interface, but I do for the CPG database/XML integration:

Here it is active in my test Gallery via anycontent: iTunes Sample (http://muvipix.com/cpg)

Give me some time to work out the details.
Title: Re: Image Scroller - Based on iTunes
Post by: skidpics on May 27, 2007, 02:59:11 pm
Awesome !

Can't wait for the initial release!
Title: Re: Image Scroller - Based on iTunes
Post by: Phill Luckhurst on May 27, 2007, 09:32:27 pm
We need a huge clapping emoticon here
Title: Re: Image Scroller - Based on iTunes
Post by: Hein Traag on June 12, 2007, 11:09:30 pm
It does look very slick rph. Nice job!
Title: Re: Image Scroller - Based on iTunes
Post by: severeidaho on June 13, 2007, 12:10:28 am
wow,  Very nicely done.  I too am looking forward to the release.  Cant wait to use it on my website.  Great job...

-gerrit
Title: Re: Image Scroller - Based on iTunes
Post by: Pascal YAP on June 13, 2007, 12:18:24 am
Ron,

I said in an other topic : ABSOLUTLY PERFECT !  ;D
Many thank's about your work with FLASH and Coppermine  ;)

PYAP
Title: Re: Image Scroller - Based on iTunes
Post by: rphMedia on June 14, 2007, 04:34:09 pm
Thanks guys, I have not forgotten about this, just been real busy with life issues. I'll be back soon :)
Title: Re: Image Scroller - Based on iTunes
Post by: rphMedia on June 16, 2007, 02:15:41 pm
OK, I've attached the files. Instructions are pretty straight forward, but this mod is not recommended for the novice because of the edits required. If there are questions, I'll answer when I can.

I provided a sample html file to test with - where ever you see YOURSITE.com, this is the absolute path to your gallery. If you want to add it to anycontent (advanced users), you'll have to modify your theme's template.html - again, not for the novice.
Edit flow.php with yoursite information and the number of images you want extracted.

Place 'flow.php' in your Gallery root.
Place 'flow.swf' AND 'AC_RunActiveContent.js' where you want to run the application. It's that simple.

This will run anywhere on your site (domain), doesn't have to be in the gallery only. Flash has a security feature built in to not allow cross-domain executions. There is a fix for this if desired and your server(s) support(s) it. This means that you could have the mod at site A and extract the images from your gallery at site B. Obviously, you'll need control of both (all) domains.

You can change the background color to whatever you want - everything is currently black (#000000). I made the images 120x120 (no scale). I think the app looks better when all the images are the same size.

That's it, have fun with it.



Title: Re: Image Scroller - Based on iTunes
Post by: Pascal YAP on June 16, 2007, 03:53:08 pm
i Ron,

PERFECT  ;D
Your work turn perfectly at the first time. PERFECT...
(expl here (http://www.pays-dignois.com/galerie/flow.htm))

PYAP
Title: Re: Image Scroller - Based on iTunes
Post by: rphMedia on June 20, 2007, 12:15:43 pm
Can someone move this to the Mods/Visuals board?  Thanks,
Title: Re: Image Scroller - Based on iTunes
Post by: Hein Traag on June 20, 2007, 01:19:16 pm
Done. Good work on this rphmedia  ;)
Title: Re: Image Scroller - based on iTunes
Post by: jacob0719 on June 20, 2007, 10:10:31 pm
Wow!  I had this up on my site in about 10min.  Looks great!

I did have a question though on how to change the scaling of the images.  On mine, they look kind of blocky.
www.fireflyphotosllc.com (http://www.fireflyphotosllc.com)
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on June 21, 2007, 12:16:36 pm
Wow!  I had this up on my site in about 10min.  Looks great!

I did have a question though on how to change the scaling of the images.  On mine, they look kind of blocky.
www.fireflyphotosllc.com (http://www.fireflyphotosllc.com)
Actually, not the application's fault, you resized it which will always distort the images a bit more. What actual size are your thumbnails?
Title: Re: Image Scroller - based on iTunes
Post by: testomat on June 21, 2007, 07:45:55 pm
That's superb !!! Does it ignore protected albums or does it shows everything. It would be nice, that it only shows pictures that are not in a protected album.
 
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on June 21, 2007, 08:13:19 pm
That's superb !!! Does it ignore protected albums or does it shows everything. It would be nice, that it only shows pictures that are not in a protected album.
It won't show private thumbnails.
Title: Re: Image Scroller - based on iTunes
Post by: jacob0719 on June 22, 2007, 02:22:41 pm
I actually went thru an updated all of my thumbnails to be a bit larger thinking that was the issue.  They are all now set at 200px.  Does the swf have the ability to adjust itself to the size of the thumb?  Should I make my thumbs smaller to compensate?
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on June 22, 2007, 02:43:19 pm
I actually went thru an updated all of my thumbnails to be a bit larger thinking that was the issue.  They are all now set at 200px.  Does the swf have the ability to adjust itself to the size of the thumb?  Should I make my thumbs smaller to compensate?
I don't really understand your questions at all. The swf doesn't adjust itself, you did, when you manually changed the dimensions. I mentioned in the download post that the image size in the swf containers is 120x120px. Even if you change your thumbs to that dimension, you may still notice skew because you resized the entire app.

I checked your current configuration and I think it looks pretty good.
Title: Re: Image Scroller - based on iTunes
Post by: testomat on June 23, 2007, 12:31:14 am
Is there a way to change the 120x120 size ?
Title: Re: Image Scroller - based on iTunes
Post by: testomat on June 23, 2007, 01:15:14 pm
Hello rphMedia,

sometimes it works and sometimes not. I don't know on what it depends. It doesn't show the pictures.
You have an idea ? You can see it at my site http://bilderbluete.de/e107_plugins/cpg149/index.php
I put the following code in my template.html

<body onload="initLightbox()">
<link rel="stylesheet" href="themes/e107/lightbox/css/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="themes/e107/lightbox/js/prototype.js"></script>
<script type="text/javascript" src="themes/e107/lightbox/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="themes/e107/lightbox/js/lightbox.js"></script>

<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<script language="javascript">
   if (AC_FL_RunContent == 0) {
      alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
   } else {
      AC_FL_RunContent(
         'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
         'width', '730',
         'height', '300',
         'src', 'flow',
         'FlashVars', 'xmlPath=http://www.bilderbluete.de/e107_plugins/cpg149/flow.php', <!--Absolute path to 'flow.php'-->
         'quality', 'high',
         'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
         'align', 'middle',
         'play', 'true',
         'loop', 'true',
         'scale', 'showall',
         'wmode', 'window',
         'devicefont', 'false',
         'id', 'flow',
         'bgcolor', '#000000',
         'name', 'flow',
         'menu', 'true',
         'movie', 'flow',
         'salign', ''
         ); //end AC code
   }
</script>
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on June 23, 2007, 01:42:49 pm
Try it with the www - http://www.bilderbluete.de/e107_plugins/cpg149/index.php

The link you provided doesn't include it. You need to be consistent throughout the code.
Title: Re: Image Scroller - based on iTunes
Post by: testomat on June 23, 2007, 07:16:04 pm
Yes, you are right. That works. What a different between three characters  ;D
Title: Re: Image Scroller - based on iTunes
Post by: Tranz on June 24, 2007, 12:53:20 pm
Thanks for this really cool mod. Unfortunately, my thumbnails aren't compatible with the 120x120 setting. :(

Anyway, I have a couple of suggested code changes.

In flow.php, making $path take advantage of a $CONFIG variable would make things a little easier for people. :)
Code: [Select]
$path=$CONFIG['site_url'];
The query was not respecting private albums; private photos were showing up while not logged in. I got the code from the flash film strip and it worked fine:
Code: [Select]
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 20");
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on June 24, 2007, 01:28:46 pm
Thanks for this really cool mod. Unfortunately, my thumbnails aren't compatible with the 120x120 setting. :(

This attached zip does not scale to a specific size (not a fixed 120x120).

Quote from: TranzNDance
Anyway, I have a couple of suggested code changes.

In flow.php, making $path take advantage of a $CONFIG variable would make things a little easier for people. :)
Code: [Select]
$path=$CONFIG['site_url'];
The query was not respecting private albums; private photos were showing up while not logged in. I got the code from the flash film strip and it worked fine:
Code: [Select]
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 20");

Thanks for cleaning that up, didn't even realize the error there ! I updated the original attached.

The following attached file puts your thumbnails up at the size you intended. You could probably resize this app a little and get away with not skewing too much. If anyone needs something different, just ask and I'll see what I can do.
Title: Re: Image Scroller - based on iTunes
Post by: Tranz on June 24, 2007, 07:14:39 pm
Thanks for providing the new version so quickly!

I don't want to keep bugging you, but there were a couple of things that came up in the implementation. The theme  (http://takethu.com/index.php?theme=ocadia)I'm using is narrow, so I had to adjust the width accordingly. That resulted in the images in the scroller shrinking significantly enough so that it's really hard to see. I don't know if there could be a solution to that but just wanted to bring it up just in case.

Another thing is since I put the scroller on my blog and gallery, I needed to place the .swf file in both locations. Is it possible to enter an address for the file so that only one copy of the .swf is needed?

For those who want an includable version of flow.htm, create a file in the include folder called flow.inc.php:
Code: [Select]
<?php 

if (IN_COPPERMINE) {
$path=$CONFIG['site_url']; 
} else {
$path 'http://GALLERY_URL/';
}
?>

<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="<?php echo $path?>flow/AC_RunActiveContent.js" language="javascript"></script>
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '750',
'height', '250',
'src', 'flow',
'FlashVars', 'xmlPath=<?php echo $path?>flow.php', <!--Absolute path to 'flow.php'-->
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'flow',
'bgcolor', '#000000',
'name', 'flow',
'menu', 'true',
'movie', 'flow',
'salign', ''
); //end AC code
}
</script>

Then use the include function to add the scroller on a gallery page.

When including the file in an external application, add this line before the inclusion line:
Code: [Select]
define('IN_COPPERMINE', false);

Edit GALLERY_URL accordingly.
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on June 24, 2007, 08:04:04 pm
I'll be back later. Whatever you envision, I can make it. One thing you should do is make it transparent (not the black background). Give me details and I'll see what I can do. You shouldn't need two swf's at all. I'll explain later.
Title: Re: Image Scroller - based on iTunes
Post by: Tranz on June 24, 2007, 10:44:29 pm
If I could have a transparent background, that would be really cool. I initially tried to make the color blend in with the Ocadia theme but then it wouldn't go well with the darker default theme. Is it possible for me do it myself? I tried removing bgcolor and giving it transparent attribute but it just made the bg black and green, respectively.

It might not matter much if a transparent background could be used, but is it possible for there not to be a lot of empty space on the top and bottom?

Thanks!

PS. I've modified the code to use different width and bgcolor based on theme, so you might not be able to observe the stuff I pointed out. Let me know if you need me to undo that change.
Title: Re: Image Scroller - based on iTunes
Post by: chironex on June 25, 2007, 01:14:36 pm
Is it possible to show the full Size of the Images in this ImageScroller?

Thx for your Answer.

kriss.
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on June 25, 2007, 01:46:53 pm
Is it possible to show the full Size of the Images in this ImageScroller?
Define full Size.

TranzNDance - You can point the Flashscript to one flow.swf using a relative path in the 'movie' parameter.

Instead of:
Code: [Select]
'movie', 'flow',use:
Code: [Select]
'movie', '../blog/flow',
Conversely, to make the background transparent, change:
Code: [Select]
'wmode', 'window',to:
Code: [Select]
'wmode', 'transparent',
Also, instead of using the fixed pixels of 630, 800, etc, use 100% inside the table. This way it should be universal with [most] themes.

I decreased the height in the attached file to 175px. You don't want to decrease that too much as you'll lose some of the reflection effect. See if that works for you.

You mention in your blog that this didn't work w/IE. It should work in both browsers exactly the same. What anomaly did you notice?


Title: Re: Image Scroller - based on iTunes
Post by: chironex on June 25, 2007, 02:24:38 pm
800px would be fine....
Title: Re: Image Scroller - based on iTunes
Post by: jacob0719 on June 25, 2007, 04:41:38 pm
I just downloaded the new flow.swf with the size of 175px.  What a difference!  This version handles Portrait / Landscape much better than the original.  The thumbs also come across much clearer.  It really looks great!  Thanks again for your work!

Jacob Parks
www.fireflyphotosllc.com
Title: Re: Image Scroller - based on iTunes
Post by: Tranz on June 25, 2007, 05:52:00 pm

You mention in your blog that this didn't work w/IE. It should work in both browsers exactly the same. What anomaly did you notice?

It worked fine in IE, as is apparent in my gallery. It's just that it somehow messed up the layout in my blog, and pushed the sidebar to the bottom. I have since figured out what the issue is and now it shows in IE but with a smaller width thanks to some conditional coding. It was IE being lame, nothing to do with the image scroller itself. It was a good lesson to learn for future additions to the blog.

You've addressed all my wishes. Things look and work the way I want. Thank you SO much! :)
Title: Re: Image Scroller - based on iTunes
Post by: Tranz on June 25, 2007, 06:10:42 pm
Is it possible to have a placeholder Loading thing? Sometimes, it takes a while for the scroller to load and there's a big empty space there. Thanks!
Title: Re: Image Scroller - based on iTunes
Post by: Tranz on June 27, 2007, 10:57:58 am
This is not a big deal but adding
Code: [Select]
type="text/javascript" inside the javascript tag will help toward validation.
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on June 29, 2007, 09:57:53 am
Is it possible to have a placeholder Loading thing? Sometimes, it takes a while for the scroller to load and there's a big empty space there. Thanks!
Not a bad idea, just don't have time right now. It shouldn't really take that long to load [n] thumbnails, I guess unless you try to load hundreds :)
Quote from: TranzNDance
type="text/javascript"

inside the javascript tag will help toward validation.
That's actually an Adobe (former Macromedia) JavaScript that is internally implemented in their Flash software. I've noticed that before as well.
Title: Re: Image Scroller - based on iTunes
Post by: Tranz on June 29, 2007, 10:09:06 am
Oh, oops. I have it set to grab 100 images.  :-[ ;D
Title: Re: Image Scroller - based on iTunes
Post by: ShadowHarlequin on July 01, 2007, 09:34:20 pm
this is awesome i finally got it working and its just what i wanted however
*is there any possibility you can add the image title underneath or above it in the flash scroller?
*would it be possible to have a small mod made for it, so that if a user double clicks on the image, they can be taken to a webpage defined in that images description? (ie the description would ONLY contain "http://urltogoto.com"

thanks for an awesome free mod though :)
Title: Re: Image Scroller - based on iTunes
Post by: tim18 on July 03, 2007, 03:30:05 am
Hey

Thanks for this great mod. Quick question, i tried this but all it loaded was orange squares in place of the images. I then went to flow.php directly and found that it is also not displaying the images. However then i looked at the source code and found the URL's of the images are in fact correct. Is this because my thumbnails are not 120x120.

Thanks tim
Title: Re: Image Scroller - based on iTunes
Post by: severeidaho on July 03, 2007, 04:00:32 am
Ive played with the files a bit.  Seems to have a problem someone else had.  Cant seem to figure it out.

http://www.severeidaho.com/latest/flow.htm

As you can see, No Images load. 

My Gallery is at

http://www.severeidaho.com/gallery/

and Im trying to use the script with

http://www.severeidaho.com/latest/

All files are originally named so feel free to browse to them to see my settings. 

Hopefully this isnt a wordpress issue like I had with the image scroller....

-gerrit

-using the latest cpg 1.4.10

Title: Re: Image Scroller - based on iTunes
Post by: Hein Traag on July 03, 2007, 08:06:13 am
-using the latest cpg 1.4.10

[whisper] It's actually 1.4.12. Upgrade asap [/whisper]
Title: Re: Image Scroller - based on iTunes
Post by: optigan on July 03, 2007, 03:10:21 pm
Hey, aweome work!  ;)
Worked flawlessly!

Just wondered: Do you think this could be tweaked to replace the filmstrip and allow people to scroll the current album pictures?

Thanks
Title: Re: Image Scroller - based on iTunes
Post by: l810th on July 04, 2007, 06:54:04 am
If I could have a transparent background, that would be really cool. I initially tried to make the color blend in with the Ocadia theme but then it wouldn't go well with the darker default theme. Is it possible for me do it myself? I tried removing bgcolor and giving it transparent attribute but it just made the bg black and green, respectively.

It might not matter much if a transparent background could be used, but is it possible for there not to be a lot of empty space on the top and bottom?

Thanks!

PS. I've modified the code to use different width and bgcolor based on theme, so you might not be able to observe the stuff I pointed out. Let me know if you need me to undo that change.

I have just installed this great mod in my new gallery, embedding the .htm code without any coding skills whatsoever, but with grim determination of getting it working, especially after all the work you guys have put into it. Many thanks to both rphMedia & TranzNdance for your great work!
 
You can visit my site here: http://l810th.com/gallery/index.php (http://l810th.com/gallery/index.php) and logon Username:tester PW:tester.

I have been testing the mod as embedded code within the template and so far no glitches with it as a Transparent overlay. It works in tandem very well with the Lightbox plugin and the latest version of Minicms.

I have also installed Tranz's include script and this can be switched on in tandem from the config control panel 'custom header/footer include' should  I need to over indulge ;D.  The include script works perfectly, but when you see how well the transparency overlay works you just have to have it ::).

If I can be of assistance to anyone in getting this transparency element working then I will post my template listing for your better judgement on the structure.
I have just installed Google maps also and it behaves very well with this Scroller despite my embedding fever. It acted up quite a lot of the time until I found the right place for its placement.
.
Many thanks again to all of you!
Mike.
Title: Re: Image Scroller - based on iTunes
Post by: outcastcolt on July 14, 2007, 12:15:02 pm
rphMedia just wanted to say this was exactly what I was looking for.  Thanks and good job for the hard work, I just need to ask one think to finish it off.  Can you remove the pause in the auto scrolling and make it a continous flow.  This would seem to work best for me and look alittle more professional on my site.  And again thanks for the work and addition.

http://www.coylroberts.com (http://www.coylroberts.com)
Title: Re: Image Scroller - based on iTunes
Post by: Crazymodder on July 16, 2007, 08:34:14 pm
Hello I have uploaded all files in the same dir
But it dosen't work.

These are my changes:
flow.html

Code: [Select]
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sample Flash Script</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<BODY bgcolor="#000000" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0" scroll="auto">
<div align="center">
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '750',
'height', '250',
'src', 'flow',
'FlashVars', 'xmlPath=http://gb-pics.quotaless.com/flow.php', <!--Absolute path to 'flow.php'-->
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'transparent',
'devicefont', 'false',
'id', 'flow',
'bgcolor', '#000000',
'name', 'flow',
'menu', 'true',
'movie', 'flow',
'salign', ''
); //end AC code
}
</script>
</div>
</body>
</html>

and flow.php
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 != "") $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 50"); //You can change the '20'
if (!$result) {
die('<p>Error performing query: ' . mysql_error() . '</p>');
}
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></image>";
}
$xml .= '</content>';
echo $xml;
?>
I have upload all 4 files in one dir but it doesen't work were is my mistake. I hope you can help me thanks.

Title: Re: Image Scroller - based on iTunes
Post by: outcastcolt on July 17, 2007, 12:52:45 am

flow.php is a mistake.

$path=$CONFIG['site_url'];

flow.php is important because this is the file that actually creates the xml information.  Change site_url to the url of your site.  If it still does not work attempt to put www. in front of the url in both flow.php and flow.html.  Hope fully this will help you out.
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on July 17, 2007, 12:58:42 pm
rphMedia just wanted to say this was exactly what I was looking for.  Thanks and good job for the hard work, I just need to ask one think to finish it off.  Can you remove the pause in the auto scrolling and make it a continous flow.  This would seem to work best for me and look alittle more professional on my site.  And again thanks for the work and addition.

http://www.coylroberts.com (http://www.coylroberts.com)
I'll see what I can do.
Title: Re: Image Scroller - based on iTunes
Post by: rrwwxx on July 21, 2007, 03:17:40 am
[list=1]
Thanks for your help!
cu,
rrwwxx
°¿°

Title: Re: Image Scroller - based on iTunes
Post by: Tranz on July 21, 2007, 06:37:59 am
It should work without www. My site doesn't use www and it's fine. Do you have a url we can look at?
Title: Re: Image Scroller - based on iTunes
Post by: rrwwxx on July 21, 2007, 11:51:59 am
Yeah no problem.
http://www.hair-factory10.de/xg
It doesn't work without www. But I guess that is no problem as I am redirecting from the main menu button onto this URL including www.

In fact I could also modify the templates in such a way that the image scroller is only visible in album view and on the thumbnails page but not on displayimage.php. I like it - it's awesome!

cu,
rrwwxx
°¿°
Title: Re: Image Scroller - based on iTunes
Post by: realart on July 24, 2007, 10:42:59 pm
RPH-

This is a little off topic.  You mentioned under the Thumbflash topic that it would be difficult to put a flash skin over an existing CPM album.

I would like to call specific (original size) images, and the filemane for each one, into an SWF interface

How hard do you think this would be? Does anyone know which php file the filenames and other fields are stored under?
Title: Re: Image Scroller - based on iTunes
Post by: Joachim Müller on July 25, 2007, 08:02:58 am
Not related to this mod. Stop trying to hijack this thread, especially since it's an announcement thread of a mod. Start a thread of your own instead on the support board. If rphMedia wants to answer that thread, he will. If he doesn't want to answer it, then he won't.
How hard do you think this would be?
is an invalid question anyway, as I can already guess the answer: it depends on your skill level wether this going to be easy or hard.
Title: Re: Image Scroller - based on iTunes
Post by: Gephri on August 09, 2007, 06:36:12 pm
Very nice addition to CPG, although the images in the scroller appear a little pixelated.  My settings in CPG are:
Quality of JPG = 85
Maximum dimension (width) of a thumbnail = 120
Height of a thumbnail (if you use exact) = 140
Thumbnail dimension (Width, Height or Max Aspect) = Max Aspect

Is there something I should change in order to clear up the photos?
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on August 09, 2007, 11:09:11 pm
Try Reply 22 attachment.
Title: Re: Image Scroller - based on iTunes
Post by: Gephri on August 10, 2007, 03:36:22 am
oh it's a beautiful thing. the no resize version worked for my pics of varying sizes.
thanks!
Title: Re: Image Scroller - based on iTunes
Post by: snsoneee on August 11, 2007, 10:38:31 am
i can't make it work.it doesn't show any picture on my site.here is what i've modified:

flow.htm:
Code: [Select]
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sample Flash Script</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<BODY bgcolor="#000000" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0" scroll="auto">
<div align="center">
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '750',
'height', '250',
'src', 'flow',
'FlashVars', 'xmlPath=http://yasmineflower.3x.ro/index/flow.php', <!--Absolute path to 'flow.php'-->
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'flow',
'bgcolor', '#000000',
'name', 'flow',
'menu', 'true',
'movie', 'flow',
'salign', ''
); //end AC code
}
</script>
</div>
</body>
</html>

flow.php:
Code: [Select]
<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
$path=$CONFIG['yasmineflower.3x.ro/index'];
$xml '<?xml version="1.0" encoding="UTF-8"?>
<content>';
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 20"); //You can change the '20'
if (!$result) {
die('<p>Error performing query: ' . mysql_error() . '</p>');
}
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></image>";
}
$xml .= '</content>';
echo $xml;
?>

and what i've inserted in template.html:
Code: [Select]
<!-- Start Footer -->
   <div id="footercontent">
      <div id="bottomwrap">
         <div id="bottomcontent">
<script language="javascript">AC_FL_RunContent = 0;</script>
<script type="text/javascript" src=src="AC_RunActiveContent.js" language="javascript"></script>
<script language="javascript">
   if (AC_FL_RunContent == 0) {
      alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
   } else {
      AC_FL_RunContent(
         'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
         'width', '730',
         'height', '300',
         'src', 'flow',
         'FlashVars', 'xmlPath=yasmineflower.3x.ro/index/flow.php', <!--Absolute path to 'flow.php'-->
         'quality', 'high',
         'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
         'align', 'middle',
         'play', 'true',
         'loop', 'true',
         'scale', 'showall',
         'wmode', 'transparent',
         'devicefont', 'false',
         'id', 'flow',
         'bgcolor', '#000000',
         'name', 'flow',
         'menu', 'true',
         'movie', 'flow',
         'salign', ''
         ); //end AC code
   }
</script>
            <div align="center">
                   {LANGUAGE_SELECT_FLAGS} <br />
                   {LANGUAGE_SELECT_LIST}{THEME_SELECT_LIST} <br />
                   {VANITY}
                </div>
         </div>
     <div class="clear"></div>
      </div>
   </div>

what am i doing wrong?please help
Title: Re: Image Scroller - based on iTunes
Post by: snsoneee on August 11, 2007, 11:07:23 am
here is the site:

http://yasmineflower.3x.ro/index/

when you enter it gives an error too
Title: Re: Image Scroller - based on iTunes
Post by: Sami on August 11, 2007, 11:28:10 am
You have a mistype on your template.html
change this
Code: [Select]
src=src="AC_RunActiveContent.js"

with this
Code: [Select]
src="AC_RunActiveContent.js"
on your template.html
Title: Re: Image Scroller - based on iTunes
Post by: snsoneee on August 11, 2007, 11:36:21 am
thanks that did the trick, now it shows something at the bottom but it wont load nothing, it's just blank.why?
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on August 11, 2007, 02:09:55 pm
For all of your site paths, you need the 'http://' in front of your urls. Check the PHP file and template.html. Also, make sure the dimensions are the same in 'AC_RunActiveContent.js' and the flash code -they're currently different.
You should get it working first, then apply your personal changes one at a time, until it fails, then you know what caused the problem.
Title: Re: Image Scroller - based on iTunes
Post by: snsoneee on August 11, 2007, 02:42:30 pm
thanks..that really helped thanks a lot. i love it
Title: Re: Image Scroller - based on iTunes
Post by: freeedy on August 14, 2007, 06:20:24 am
Hi guys, I cant make to work. And I dont know whats going on.
I have my gallery in www.lacuadra-st.ej.am/gallery (thats were i put the php file)
And I want to show this swf in my main site, in the index so I place the htm, the swf, and the js in www.lacuadra-st.ej.am.

The things that I changed were:
in the htm I put the path to the php (http://www.lacuadra-st.ej.am/gallery/flow.php)
and in the htm I try different things to see which one works (http://www.lacuadra-st.ej.am/gallery  and  http://www.lacuadra-st.ej.am), no oneworked. The weirdest things was that when I put http://www.lacuadra-st.ej.am/ and put the swf, htm and js in the gallery directory, it worked there.

I want it to work in http://www.lacuadra-st.ej.am/flow.htm, but it just donet, the swf appears and works but the images dont appear, the boxes are empty
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on August 14, 2007, 01:00:27 pm
Hi guys, I cant make to work. And I dont know whats going on.
I have my gallery in www.lacuadra-st.ej.am/gallery (thats were i put the php file)
And I want to show this swf in my main site, in the index so I place the htm, the swf, and the js in www.lacuadra-st.ej.am.

The things that I changed were:
in the htm I put the path to the php (http://www.lacuadra-st.ej.am/gallery/flow.php)
and in the htm I try different things to see which one works (http://www.lacuadra-st.ej.am/gallery  and  http://www.lacuadra-st.ej.am), no oneworked. The weirdest things was that when I put http://www.lacuadra-st.ej.am/ and put the swf, htm and js in the gallery directory, it worked there.

I want it to work in http://www.lacuadra-st.ej.am/flow.htm, but it just donet, the swf appears and works but the images dont appear, the boxes are empty

You may have the "WWW" problem. Try removing the www in your xmlPath in flow.htm. When Flash sees that you use the www in some places and others you don't, it assumes it's a different domain and fails security-wise.

Hint: When I click your link to the root of your site, the www disappears.
Title: Re: Image Scroller - based on iTunes
Post by: freeedy on August 14, 2007, 06:07:36 pm
Ok, I already took out the www but it didnt work either, I also allow in the gallery the view of unlogged users, but it didnt work either.

So maybe the prob is in the urls of my site.
I found that it works if I put it in the gallery directory, but I want it to show in the root directory of my site (where the index.php of my site is).

Lets see, in the htm I have to put the complete url where the php is:
http://lacuadra-st.ej.am/gallery/flow.php
Thats right?

Now, in the flow.php I have to put the url were the htm is:
http://lacuadra-st.ej.am
Thats right?

Please correct me if i am wrong
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on August 14, 2007, 06:15:48 pm
Yeah, I was just looking at this.

Your flow.php file is outputting relative paths to the images. They should be absolute. Post your current flow.php file, something isn't right.
Title: Re: Image Scroller - based on iTunes
Post by: freeedy on August 14, 2007, 11:10:17 pm
Thank you, I really appreciate your help. So far I found out that if I took out the www, the flash wont appear. Also I have tried changing the 'http://www.lacuadra-st.ej.am' into 'http://www.lacuadra-st.ej.am/gallery' and 'http://www.lacuadra-st.ej.am/gallery/albums'. No one makes the trick. Please help!!

Code: [Select]
<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
$path=$CONFIG['http://www.lacuadra-st.ej.am'];
$xml '<?xml version="1.0" encoding="UTF-8"?>
<content>';
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 20"); //You can change the '20'
if (!$result) {
die('<p>Error performing query: ' . mysql_error() . '</p>');
}
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></image>";
}
$xml .= '</content>';
echo $xml;
?>
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on August 14, 2007, 11:42:40 pm
Your site URL should be the Coppermine Photo GALLERY site URL, not your root. There's a variable that should be used that was so kindly referred to me that you should use as well. It's in the original flow.php file. You may have thought to use a URL, but it is a variable -

Change:
Code: [Select]
$path=$CONFIG['http://www.lacuadra-st.ej.am'];
To:
Code: [Select]
$path=$CONFIG['site_url'];
And you should be all set.

I realize you used the gallery URL, but I don't think you put a slash at the end.
Title: Re: Image Scroller - based on iTunes
Post by: freeedy on August 15, 2007, 01:25:18 am
So actually in the original php I dont have to change anything? I just uploaded as it is into the gallery directory???

The only thing that I actually have to change to the original files if the code of yout sample (htm) so it directs me to the php??
Title: Re: Image Scroller - based on iTunes
Post by: freeedy on August 15, 2007, 05:01:44 am
AT LAST!!!!! IT WORKS!!!! THANK YOU VERY MUCH for your help, I really appreciate all the time that you spend answering my comments.
Title: Re: Image Scroller - based on iTunes
Post by: freeedy on August 16, 2007, 06:38:10 am
New problem arises!!!!!

Everything was working perfectly, but as any human I wanted more. I decided that my thumbs were too small, so I decided to change the swf, I put the one with no scale. Everything work right, but I realize that the problem wasnt the restriction of the swf, it was actually the size of my thumbs in my gallery, so I decided to resize all mi thumbs. I updated all my thumbs from awidth of 100 to a140, just a little bigger. And when I return to check everything was mess up.

The photos didnt show anymore!!!!! Instead big red squares appear!!!!

I dont know whats wrong, what can I do???
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on August 16, 2007, 09:45:53 am
Looks fine to me on the 'Incio' page.

You should post back if you've found the solution.
Title: Re: Image Scroller - based on iTunes
Post by: freeedy on August 16, 2007, 03:39:59 pm
Its really weird, it get solve by its own. Probably it was just a cookies problem, since I didnt do nothing to solve it.

Anyway, thank you a lot for all your help.

This scroller its really great!!!!
Title: Re: Image Scroller - based on iTunes
Post by: Carlos5039 on August 17, 2007, 01:40:37 pm
Is there a way to select a particular album to get the pictures from?
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on August 17, 2007, 03:51:08 pm
Is there a way to select a particular album to get the pictures from?

On this line in 'flow.php':
Code: [Select]
$result = mysql_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE filename LIKE '%.jpg' $FORBIDDEN_SET ORDER BY RAND() LIMIT 20"); //You can change the '20'

Change it to:
Code: [Select]
$result = mysql_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE aid='YOUR ALBUM ID NUMBER' AND filename LIKE '%.jpg' $FORBIDDEN_SET ORDER BY RAND() LIMIT 20"); //You can change the '20'
Adding the Album ID (aid).
Title: Re: Image Scroller - based on iTunes
Post by: Carlos5039 on August 18, 2007, 03:09:02 am
Thanks for the Code, it worked perfectly............. ;D
Title: Re: Image Scroller - Based on iTunes
Post by: olti on August 29, 2007, 01:01:53 am
because of the edits required.

Can you give an exact guide what edits should be done?

Quote
Edit flow.php with yoursite information and the number of images you want extracted.

What should be edited here?

Title: Re: Image Scroller - based on iTunes
Post by: Gephri on August 31, 2007, 12:31:20 am
Love the image scroller so much that I would like to use it on other sites I run - and have it pull from my current gallery.
You have previously stated:
Quote
This will run anywhere on your site (domain), doesn't have to be in the gallery only. Flash has a security feature built in to not allow cross-domain executions. There is a fix for this if desired and your server(s) support(s) it.

Can you instruct how to config for a cross-domain setup?
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on August 31, 2007, 11:37:33 am
Can you instruct how to config for a cross-domain setup?

Create a file with a text editor with the following XML format:

Code: [Select]
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="YOURSITE.com" />
<allow-access-from domain="www.YOURSITE.com" />
<allow-access-from domain="ANOTHERSITE.us" />
</cross-domain-policy>

Save it as 'crossdomain.xml'

Put that in the root of the site that you would like to allow access. And of course, change the domains in the file with yours. Then, simply point to the flow.php from the other site.
Title: Re: Image Scroller - based on iTunes
Post by: Gephri on August 31, 2007, 08:32:23 pm
It seems simple enough - but I can't seem to get it to work cross-domain.
I changed the following to be my web sites (with http://www.) in front of each,
Code: [Select]
<allow-access-from domain="YOURSITE.com" />
<allow-access-from domain="ANOTHERSITE.us" />

and uploaded the files where you said.  Are you sure this is all that is needed?
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on August 31, 2007, 08:35:59 pm
Where did I say to add the 'http://www' ? This is why it doesn't work for you. Your server(s) [host] must support it as well.
Title: Re: Image Scroller - based on iTunes
Post by: Gephri on August 31, 2007, 11:10:51 pm
You did not... sorry to offend
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on September 01, 2007, 01:09:32 pm
Did you get it working?
Title: Re: Image Scroller - based on iTunes
Post by: Gephri on September 01, 2007, 09:17:21 pm
Yeah - with some additions to the crossdomain.xml because of protections I've got on my htaccess file

Great MOD!
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on September 02, 2007, 12:45:02 pm
Thanks, glad it worked for you ... Please post the details of your solution(s) for the record. It may help someone in the future.
Title: Re: Image Scroller - based on iTunes
Post by: Gephri on September 02, 2007, 08:16:57 pm
Happy to help (maybe it'll help my karma!)

I have some pretty tight restrictions in my htaccess file in an effort to block Hot Linking by other sites (rewrite condition and rewrite rule).

This requires that I have the following code in crossdomain file:
Code: [Select]
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="MYSITE_1.com" />
<allow-access-from domain="MYSITE_2.com" />
<allow-access-from domain="MYSITE_3.com" />
<allow-access-from domain="www.MYSITE_1.com" />
<allow-access-from domain="www.MYSITE_2.com" />
<allow-access-from domain="www.MYSITE_3.com" />
<allow-access-from domain="rs13.websiteswelcome.com" />
</cross-domain-policy>

of course - replace MYSITE_1 with the site where your gallery is, replace MYSITE_2 with the cross domain and the last line should be your server  info.

PS - I liked your mod so much rphMedia I've even search for any others written by you - very nice work and timely with the release of the iPhone!
Title: Re: Image Scroller - Based on iTunes
Post by: hama on September 05, 2007, 03:20:56 pm

If you want to add it to anycontent (advanced users), you'll have to modify your theme's template.html - again, not for the novice.

Is it possible to give me some help how to modify the theme's template.html. - I'd like to run the "flow no scale" in anycontent.

Thanks  :)

hama
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on September 05, 2007, 03:43:15 pm
Look at the flow.htm as a sample. The 2 javascript entries would need to go between the <head> tags in template.html:

Code: [Select]
<head>...
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>

...</head>

Then, the entire Flash script would go into the anycontent.php

Code: [Select]
<div align="center">
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '750',
'height', '250',
'src', 'flow',
'FlashVars', 'xmlPath=http://YOURSITE.com/gallery/flow.php', <!--Absolute path to 'flow.php'-->
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'flow',
'bgcolor', '#000000',
'name', 'flow',
'menu', 'true',
'movie', 'flow',
'salign', ''
); //end AC code
}
</script>
</div>

Go ahead and tackle that and if you have any questions from here, let me know.
Title: Re: Image Scroller - based on iTunes
Post by: hama on September 05, 2007, 08:54:21 pm

I did it but at the moment I only get a black box. For a few seconds the script started and I saw some red boxes but now nothing ...  :'(

AC_RunActiveContent.js, flow.php and flow.swf are in the main folder.

The following two line are in template.html of my theme:

<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>

I wrote a new anycontent and added it in index.php.

Any ideas?

Thanks!

Title: Re: Image Scroller - based on iTunes
Post by: hama on September 05, 2007, 09:45:21 pm

Everything is now ok! Nice skript!!!  :)

First I wrote the absolute path to flow.php with www and I didn't work. Now, without www, it works. Strange ...

Is it true that the skript respects private albums for sure? That's important for me.

At the end of the skript, after the 20 random pics, the "movie" scrolls back to the first image. Is there a chance to have the skript without scrolling back, in a way that after the last image the first image comes again immediately. I'm very lucky without this change, so don't work too much!

Thanks for your help and have a good time

hama


Title: Re: Image Scroller - based on iTunes
Post by: Tranz on September 05, 2007, 10:19:10 pm
Is it true that the skript respects private albums for sure? That's important for me.
I don't see private photos when logged out. When I log in, I see private photos pretty soon so it's not a matter of random luck that logged out I didn't see the private photos.
Title: Re: Image Scroller - based on iTunes
Post by: Gephri on September 06, 2007, 01:02:19 am
I've discovered that this Mod seems to be hanging when loaded because another little script isn't loading.  On other pages - all scripts load.

I can get all scripts to load (except for this Mod) if I remove the following code:
Code: [Select]
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '750',
'height', '250',
'src', 'flow',
'FlashVars', 'xmlPath=http://www.MYSITE.com/gallery/flow.php', <!--Absolute path to 'flow.php'-->
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'flow',
'bgcolor', '#000000',
'name', 'flow',
'menu', 'true',
'movie', 'flow',
'salign', ''
); //end AC code
}
</script>
(of course "MYSITE" in the code above is actually my site in the code I'm using.)

Any work-arounds, or ideas?
Thanks
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on September 06, 2007, 12:30:08 pm
At the end of the skript, after the 20 random pics, the "movie" scrolls back to the first image. Is there a chance to have the skript without scrolling back, in a way that after the last image the first image comes again immediately.
I hope to have that feature implemented soon.

RE: Gephri, I have no idea what your trying to say. Do you have a link where this is happening? The scripts themselves really have nothing to do with the flash object - it controls how the browser renders.
Title: Re: Image Scroller - based on iTunes
Post by: hama on September 06, 2007, 01:19:01 pm

It works now and I try to change two things:

First, I visited your test gallery (nice!) and there the pics in the image scroller are bigger than in my gallery. Is it possible to get the .swf for the bigger pics or do I only have to change something in my settings? It should run automaticly as it does now in my gallery.

--> http://orst.ch/copper/index.php (http://orst.ch/copper/index.php)

Second, I open my website, go to "Gallery" and the skript is running. Then I click "Forum" and after some seconds I click back to "Gallery". Then the skript doesn't start again. I have to close the IE7, open it again, open "Gallery" and the skript starts. It is the same situation with FF2. Has this to do with the construction of my website or do you know a "fix"?

hama
Title: Re: Image Scroller - based on iTunes
Post by: atmorell on September 06, 2007, 01:38:36 pm
Hello,

Wow! It looks very good the only thing I am missing is the posibility to click a image and get redirect to the selected imagepage for details. Great work.

Best regards.
Asbjørn Morell.
Title: Re: Image Scroller - based on iTunes
Post by: Gephri on September 06, 2007, 06:23:43 pm
rphMedia, Gephri here - sorry for being so cryptic in my earlier message (trying to keep things simple)
Here's the situation:
I've use the following little javascript to load a page name into the bottom of the browser bar:
Code: [Select]
<!--
window.defaultStatus = "*** SuperStar Students ***"
-->

For any page that includes the following code - the little javascipt above doesn't load:
Code: [Select]
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '750',
'height', '250',
'src', 'flow',
'FlashVars', 'xmlPath=http://www.superstarstudents.com/gallery/flow.php', <!--Absolute path to 'flow.php'-->
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'flow',
'bgcolor', '#000000',
'name', 'flow',
'menu', 'true',
'movie', 'flow',
'salign', ''
); //end AC code
}
</script>

Instead, the browser bar reads "Transferring data from www.superstarstudents.com..."

That's why it looks like it's hanging
Title: Re: Image Scroller - based on iTunes
Post by: skidpics on September 06, 2007, 08:13:36 pm
Been doin' the mess-around again. I'm not totally finished with this yet (you know how I like to tease first anyway). If you're familiar with iTunes, you'll recognize this (I think). I don't take credit for the interface, but I do for the CPG database/XML integration:

w/Scrollbar Control (http://muvipix.com/samples/itunes2.htm)

Button [click image] Control (http://muvipix.com/samples/itunes1.htm)

Auto Scroll (http://muvipix.com/samples/itunes.htm)


And here it is active in my test Gallery via anycontent: iTunes Sample (http://gallery.rphmedia.net)

Give me some time to work out the details.


Where do I find the Itunes version?

Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on September 06, 2007, 09:20:21 pm
hama: you probably have a javascript conflict somewhere. I would eliminate each script one at a time to see which one is causing that behavior. I have 3 different sites with it and they all work perfectly every time. 
And yes, my test gallery does have a different form of the component because I have complete control over it  ;D  What size do you want it (once you get it working)?

Gephri: Again, I can't say what's happening, you'll have to troubleshoot to figure out what's colliding. You have many scripts on your page - it's bound to fail somewhere.

atmorell: That could probably be implemented, but just don't have that kind of time right now. Maybe in the future.

skidpics: Went to check your site and am redirected almost every time. What kind of 'stuff' is in your pages???

The component is a mockery of the iTunes Album selector. What exactly are you referring to and looking for?
Title: Re: Image Scroller - based on iTunes
Post by: hama on September 06, 2007, 10:02:50 pm

Thanks a lot, I try to find the javascript conflict. This is not so easy. I put the script as the first script, as the last script, no chance. There are a lot of scripts scripts in the head. Here you can see this part of template.html (I deleted google_Tracker):

Code: [Select]
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="themes/classic/style.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
<!-- $Id: template.html,v 1.6 2005/12/04 03:22:35 donnoman Exp $ -->
<script src="/prototype.js" type="text/javascript"></script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
    _uacct = "***";
    urchinTracker();
</script>

<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>

</head>

The size in your gallery looks very good (I like this size) but I don't need four pictures on each side, three are enough.  ::)

Title: Re: Image Scroller - based on iTunes
Post by: pds910 on September 10, 2007, 04:27:49 am
Is there any way to put some sort of description underneath the front image (the one you are currently focused on) that will change when you scroll to the next image? Or would that involve a totally different code altogether?

Basically if image A was the main one in focus, I could put a little description centered under the reflection. Once I click to get image B into the main focus, the description would change to what I want to say about image B.

I have the code, have browsed over it, but haven't actually tried it out fully myself yet. A few quick questions before I do:

- Is the image size/reflection based upon the actual pixel size of the images in my gallery? or is it set somewhere in the code at 120x120? Basically if I have ten 400x400 pixel images, would the gallery show at that size, or would it default to 120x120 cause it's written into the code at that size?
- Does it default to auto scroll? I want to have it so the image doesn't change until the viewer clicks the next image in the line
- What is the widest you recommend if you site was designed at 1024x768?
- I see in the html code you have the width set at 750 and height at 250. Do I have to change these at a 3:1 ratio like you have it set to avoid distortion of the thumbnails? Or can I choose any numbers I see fit (based on your recommendation above) and it will display my images properly?

Thank you for taking the time to read these questions. I joined this board SPECIFICALLY for this script. It was EXACTLY what I was looking for! Thank you soooo much for all your hard work and I look forward to hearing back from you.
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on September 10, 2007, 10:16:04 am
@hama: I tried to make yours larger. The problem is, your thumbs are at 133 width and if they scale any larger than that, distortion/pixelation starts to occur. I've actually resized my thumbnails at my test gallery (http://gallery.rphmedia.net) to the exact size needed (I think 200 wide). Let me know how you want to proceed.

@pds910: You don't ask for much, do you? You'll find most of your questions answered via the attached file.

Title: Re: Image Scroller - based on iTunes
Post by: 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.  :)

Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on September 11, 2007, 02:29:29 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.  :)


Give me a few days and I'll package it with a different JavaScript file.
Title: Re: Image Scroller - based on iTunes
Post by: 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.
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia 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 ?   ;)
Title: Re: Image Scroller - based on iTunes
Post by: 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.
Title: Re: Image Scroller - based on iTunes
Post by: Pascal YAP 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
Title: Re: Image Scroller - based on iTunes
Post by: helenbn 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.
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia 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.
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia 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.
Title: Re: Image Scroller - based on iTunes
Post by: hama 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 ...

Title: Re: Image Scroller - based on iTunes
Post by: rphMedia 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.
Title: Re: Image Scroller - based on iTunes
Post by: hama 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
Title: Re: Image Scroller - based on iTunes
Post by: 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. ???
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia 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?
Title: Re: Image Scroller - based on iTunes
Post by: helenbn on September 17, 2007, 07:39:02 pm
http://www.appleridge.org/news/flow.htm
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on September 17, 2007, 07:44:31 pm
Remove the www -

http://appleridge.org/news/flow.htm

Title: Re: Image Scroller - based on iTunes
Post by: helenbn 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!
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia 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.
Title: Re: Image Scroller - based on iTunes
Post by: helenbn 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?
Title: Re: Image Scroller - based on iTunes
Post by: Joachim Müller on September 18, 2007, 08:51:38 am
Can easily be accomplished using .htaccess means. Has been discussed (http://forum.coppermine-gallery.net/index.php?action=search2;search=htaccess%20mod_rewrite) often on this forum. Not related to this mod particularly.
Title: Re: Image Scroller - based on iTunes
Post by: helenbn 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?
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia 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.
Title: Re: Image Scroller - based on iTunes
Post by: russell235 on October 03, 2007, 05:58:47 am
very attractive addition.  Is it possible to use this with .png files?  I noticed it fills in the transparent areas with red which is kind of annoying.
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on October 03, 2007, 09:32:47 am
very attractive addition.  Is it possible to use this with .png files?

Yes.

I noticed it fills in the transparent areas with red which is kind of annoying.

No idea what you're talking about.
Title: Re: Image Scroller - based on iTunes
Post by: russell235 on October 03, 2007, 03:04:36 pm
No idea what you're talking about.

let me try to explain.  .png's can contain transparency.  that's the biggest reason I like to use pngs.  they are very convenient for making logo's, etc, and they support anti-aliasing so they don't leave jagged little edges like gif files do.

I use these png's in my gallery images and they contain transparent areas.  the flash player imports them fine, but the transparent areas are filled with red when they are displayed. 

So what I'm asking is, do you know a way to make the png display the transparency?  or if not, maybe a way to change the color it uses to replace it?  If I can make it match my background, it may give the same effect.
Title: Re: Image Scroller - based on iTunes
Post by: Tranz on October 03, 2007, 04:11:30 pm
I heard MS IE doesn't handle png transparency correctly. Is that what you're using? Or are you using Firefox or another browser?
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on October 03, 2007, 04:16:30 pm
So what I'm asking is, do you know a way to make the png display the transparency?  or if not, maybe a way to change the color it uses to replace it?  If I can make it match my background, it may give the same effect.

Although Flash can handle png's inherently, it can't load transparency dynamically, sorry. And I don't have a workaround for the color.
Title: Re: Image Scroller - based on iTunes
Post by: russell235 on October 03, 2007, 05:09:40 pm
I heard MS IE doesn't handle png transparency correctly. Is that what you're using? Or are you using Firefox or another browser?

true, but in this case it's the same in firefox.

Although Flash can handle png's inherently, it can't load transparency dynamically, sorry. And I don't have a workaround for the color.

that's what I needed to know.  thank you for the response. :)
Title: Re: Image Scroller - based on iTunes
Post by: Gephri on October 04, 2007, 09:13:45 am
I've got Image Scroller set to a 'width', '750', and 'height', '250', on my page and it works fine in Firefox.  But in IE it pushes the same page off the screen.
Is there a fix for IE (besides telling all my visitors to move to FireFox !)?
The ideal, for me, would be to set Image Scroller to 100% width, have it properly adjust the height and remove an padding on the left and right side.
what do you think?
Title: Re: Image Scroller - based on iTunes
Post by: Amazulu on October 08, 2007, 11:59:12 pm
rphMedia, you are a Gentleman and a Scholar. This is a wonderful piece of work and it was so easy for a hack like me to implement. Thank you and may you be showered with a 1000 blessings!
Title: Re: Image Scroller - based on iTunes
Post by: Amazulu on October 09, 2007, 05:22:10 pm
One slight glitch I have now that I have it implemented is that sometimes the slides start moving before the thumbs have all loaded (we don't have the fasted internet here in Africa). Is there any chance of getting that pre-loading thingy you normally see in Flash to kick in? Or maybe slow down the pause between slides to give them more chance to load?
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on October 09, 2007, 07:35:08 pm
I'll see what I can do.
Title: Re: Image Scroller - based on iTunes
Post by: Amazulu on October 09, 2007, 08:27:51 pm
Thanks! I've tried putting it on a test php page of another site of mine but am having no luck there. Works fine on the first site I did (where I put it into the template.html file). I suspect its this issue relating to the "www" being missing from my other site. I can't quite get my head around how to fix this. ??? Have tried all the combinations mentioned in the thread thus far and still can't get it to load here: http://nikongear.com/index_flow_incl.php.
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on October 09, 2007, 08:37:42 pm
Your flow.php can't find your CPG config file.

http://www.nikongear.com/alb/flow.php

Is that your CPG root (alb/)?

2. And with the Flash code, eliminate the www
'FlashVars', 'xmlPath=http://www.nikongear.com/alb/flow.php', <!--Absolute path to 'flow.php'-->
Title: Re: Image Scroller - based on iTunes
Post by: Amazulu on October 09, 2007, 09:15:07 pm
Yup, it's in the root for that instance of Coppermine. Here's the code for flow.php:

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 != "") $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 20"); //You can change the '20'
if (!$result) {
die('<p>Error performing query: ' . mysql_error() . '</p>');
}
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></image>";
}
$xml .= '</content>';
echo $xml;
?>


I have tried using it with the www included and excluded in the .php embed. Doesn't seem to work either way. In the code above I also tried typing the absolute path instead of  'site_url'. Could this not be related to some cache issue with Flash? I'm having endless problems with updating via XML an swf on another site (apparently has something to do with a known Flash caching problem).
Title: Re: Image Scroller - based on iTunes
Post by: Amazulu on October 09, 2007, 09:17:44 pm
Just thought of something else that's different...this version of Coppermine has been bridged with SMF. Could that be causing a conflict?
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on October 09, 2007, 11:10:43 pm
I have tried using it with the www included and excluded in the .php embed. Doesn't seem to work either way. In the code above I also tried typing the absolute path instead of  'site_url'. Could this not be related to some cache issue with Flash? I'm having endless problems with updating via XML an swf on another site (apparently has something to do with a known Flash caching problem).
None of that should matter at this point. You need flow.php to parse before you continue to troubleshoot.

And no, bridging should not make a difference either.

Your flow.php looks correct. I don't have any idea why it won't connect to the database. Could be a .htaccess or permissions issue (just guessing). When you click this link - http://www.nikongear.com/alb/flow.php - it should parse the images and you're getting a "No database selected" error. I've never encountered that. Is it a free host by chance?

Just grasping at straws here.
Title: Re: Image Scroller - based on iTunes
Post by: Nibbler on October 09, 2007, 11:18:07 pm
You should use cpg_db_query() instead of mysql_query().
Title: Re: Image Scroller - based on iTunes
Post by: hobert on October 09, 2007, 11:32:06 pm
I must say, rphMedia, this is probably the coolest looking thing, ever!!! ;D  It's da bom'!

Two questions:

(1) In your three pages of examples in the original post, how do you get it to switch between the auto-moving, the scroll bar and the click-to-move versions?  I've looked in the htm source and really don't see anything different between them.

and (2) is there any way to make the side photos closer together (so they overlap a little with each other and with the front picture) or is that design limitation?

Can't wait to see what other neat shinies you trick this out with!
Title: Re: Image Scroller - based on iTunes
Post by: Amazulu on October 10, 2007, 08:28:00 am
I have tried Nibbler's advice and changed the flow.php to 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 != "") $FORBIDDEN_SET = "AND $FORBIDDEN_SET";

$result = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE filename LIKE '%.jpg' $FORBIDDEN_SET ORDER BY RAND() LIMIT 20"); //You can change the '20'

if (!$result) {

die('<p>Error performing query: ' . mysql_error() . '</p>');

}

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></image>";

}

$xml .= '</content>';

echo $xml;

?>


At first it didn't work, I was halfway through typing this reply, copying the links from various pages when all of a sudden "Thar she blows!" - it's working. Bizarr-o!  ;D
Title: Re: Image Scroller - based on iTunes
Post by: Amazulu on October 10, 2007, 08:31:27 am
Oh, before I forget, it's only working when I type in the URL without the "www". I need to figure out how to implement your other solution mentioned earlier by putting the script in the head section, but when I tried that before it sent it into a loop. I must have something wrong.

Thanks again for all the assistance!
Title: Re: Image Scroller - based on iTunes
Post by: Amazulu on October 10, 2007, 08:46:28 am
Finally I got it all working properly by creating the "crossdomain.xml" file you mentioned earlier and putting both versions of the domain URL in there. Now it works with and without the "www".

Sausage! ;D
Title: Re: Image Scroller - based on iTunes
Post by: russell235 on October 11, 2007, 03:01:55 am
any chance you'd be willing to post the .fla for this?  I'd like to try something to get the transparent pngs to display.
Title: Re: Image Scroller - based on iTunes
Post by: rubenix on October 11, 2007, 10:32:15 am
For some reason these days is not working in my site browsing with Firefox...its working with safari, opera and iexplorer as well...

thought it was a cookie issue or something like that but i cleared out the browser cookies and still not working!! flow.htm not working with firefox neither!!

can someone look at this? thanks in advance

http://www.rubenix.net (http://www.rubenix.net)
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on October 11, 2007, 10:41:42 am
For some reason these days is not working in my site browsing with Firefox...its working with safari, opera and iexplorer as well...

thought it was a cookie issue or something like that but i cleared out the browser cookies and still not working!! flow.htm not working with firefox neither!!

can someone look at this? thanks in advance

http://www.rubenix.net (http://www.rubenix.net)

Works fine for me - FF 2.0.0.7
Title: Re: Image Scroller - based on iTunes
Post by: rubenix on October 11, 2007, 10:45:52 am
using same version and not working on my pc  ??? any ideas at all??  ??? weird
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on October 11, 2007, 10:49:25 am
Ensure you have the latest Flash Plugin for FF. Other than that, this is a new one on me.
Title: Re: Image Scroller - based on iTunes
Post by: rubenix on October 11, 2007, 10:56:33 am
ok, going to update if needed, otherwise will re-install the plugin...thanks for your quick reply, will be back!! congrats for this awesome scroller, superb work!!
Title: Re: Image Scroller - based on iTunes
Post by: rubenix on October 11, 2007, 11:10:43 am
plugin updated, nothing happened: scroller doesnt show up in firefox...dont know what the **** is going on here...

Thanks anyway, makes me feel happy that my visitors are not having this little visual problem...
Title: Re: Image Scroller - based on iTunes
Post by: Amazulu on October 11, 2007, 12:41:38 pm
Similar thing was happening to me when I was putting it up on www.nikongear.com - I'd see it and then I wouldn't see it (using FF 2.0.0.7). Then it suddenly appeared again. Strange. Well, the important thing is its working.
Title: Re: Image Scroller - based on iTunes
Post by: rubenix on October 11, 2007, 12:48:23 pm
thats it amazulu  ;) i can see it now in your site using FF 2.0.0.7 strange issue indeed

by the way: nice site and nice photho of the week!! congratulations even if i'm a canon-addict-user  :o
Title: Re: Image Scroller - based on iTunes
Post by: Amazulu on October 11, 2007, 12:55:01 pm
Thank you! I used to shoot with Canon but had some bad experiences with the company so I switched back to Nikon when they brought out the D70. Can't wait to get a D3!
Title: Re: Image Scroller - based on iTunes
Post by: russell235 on October 11, 2007, 05:57:14 pm
any chance you'd be willing to post the .fla for this?

please?
Title: Re: Image Scroller - based on iTunes
Post by: rubenix on October 13, 2007, 05:44:08 pm
i dont understand now: found the problem but dont know the solution, some help here will be really appreciated.

if I browse to  http://www.rubenix.net/index.php?lang=catalan (http://www.rubenix.net/index.php?lang=catalan) I cannot see the slider but if I change to english or spanish language I can see it working.

very weird...it doent works in catalan and italian languages...

Any ideas?? help please as I need the catalan language working  ;)
Title: Re: Image Scroller - based on iTunes
Post by: jeppestaerk on October 15, 2007, 03:53:21 pm
Hey

I just uploaded it, and it works wonderful... i love it!!!

But can it be set up to show ex. the top 10 pic in my galleri???

Jeppe
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on October 15, 2007, 05:06:23 pm
@rubenix - you need to put the coppermine footer back in your pages.

@jeppestaerk - this would have to be done with a different MySQL call. Unfortunately, I'm not so good with MySQL, sorry. Maybe someone else can chip in, I'm sure it can be done.
Title: Re: Image Scroller - based on iTunes
Post by: hell on October 23, 2007, 02:33:47 pm
Where i can download the files?
Title: Re: Image Scroller - based on iTunes
Post by: hell on October 23, 2007, 02:39:06 pm
never mind... sorry
Title: Re: Image Scroller - based on iTunes
Post by: christi78 on October 24, 2007, 08:01:22 am
Ok I have tried I believe everything now and I really woulod like this mod to work. I have managed to get as far as displaying boxes to what should be images out of a single aid but still no luck what so ever. I only see red?? The link to the mod is http://www.myspace2help.com/foto/flow.php (http://www.myspace2help.com/foto/flow.php) here is the code for what I have installed. All files are in the root folder for coppermine. 
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 != "") $FORBIDDEN_SET = "AND $FORBIDDEN_SET";
$result = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE aid='38' AND filename LIKE '%.jpg' $FORBIDDEN_SET ORDER BY RAND() LIMIT 20"); //You can change the '20'
if (!$result) {
die('<p>Error performing query: ' . mysql_error() . '</p>');
}
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></image>";
}
$xml .= '</content>';
echo $xml;
?>
   and here is the htm code   
Code: [Select]
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sample Flash Script</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<BODY bgcolor="#000000" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0" scroll="auto">
<div align="center">
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '750',
'height', '250',
'src', 'flow',
'FlashVars', 'xmlPath=http://www.myspace2help.com/foto/flow.php', <!--Absolute path to 'flow.php'-->
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'flow',
'bgcolor', '#000000',
'name', 'flow',
'menu', 'true',
'movie', 'flow',
'salign', ''
); //end AC code
}
</script>
</div>
</body>


any help would be wonderful.
Title: Re: Image Scroller - based on iTunes
Post by: christi78 on October 24, 2007, 08:09:44 am
well never mind with some stroke of luck it just started working not sure why but as long as this cool mod works is all I wanted :) thanks
Title: Re: Image Scroller - based on iTunes
Post by: Rinaldo on October 29, 2007, 06:24:22 pm
rphMedia : thanks for this superb piece of script !

But as allways  ;) some questions:
1) Would it be possible to resize the "whole thing" as it is now is pretty big in my site.
2) would it possible to attach a link when mouse over ? For example when people click on it, they are forwarded to the Photo Album ? ( _blank)
3) Is it possible to get hold of the .FLA file, as for i like to add a header text and maybe a logo in the scroller ?

Thanks !

Rinaldo
Title: Re: Image Scroller - based on iTunes
Post by: Gephri on October 30, 2007, 01:18:17 am
Also - the images used by the scroller appear a little blurry for my - is that a function of the size, the scroller, thumbnails...?

Any suggestions on how to fix?
Title: Re: Image Scroller - based on iTunes
Post by: lluisitu on October 30, 2007, 11:00:17 am
Hi,

I'm trying this mod, really nice, but I have a problem with Firefox 2.0.0.8.
I'm not a developer so i really don't know why is happening this...

I'm trying to put the mod in the header but in the firefox appears like a grey box, but instead using it with anycontent, down of page, appears corretly!??!

http://www.frozensights.com/coppermine/index.php

Related part of code in template.htm is this.

Code: [Select]
</head>
<body>
  {CUSTOM_HEADER}
<!table width="760" border="0" align="center" cellpadding="0" cellspacing="0" style="background-image:url(themes/tentacle/images/navbar_01_new.jpg);">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<td>
<!img src="themes/tentacle/images/spacer_w.gif" width="1" height="150" alt="" />

<tr align="left">

  <h1>{GAL_NAME}</h1>
          <h4>{GAL_DESCRIPTION}</h4>
  {LOGIN_FORM}
</tr>
</td>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<td>
<tr>
<div id="MENUS">
  <div id="SUB_MENU">
    {SUB_MENU}
  </div>
  <div id="SYS_MENU">
    {SYS_MENU}
  </div>
</div>
        </tr>   
</td>
<td>
<tr>
        <br />{ADMIN_MENU}
        </tr>
  <tr>
<div align="center">
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>

<object id="flow" width="760" height="150" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" name="flow" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">
<param value="flow.swf" name="movie"/>
<param value="xmlPath=http://www.frozensights.com/coppermine/flow.php" name="FlashVars"/>
<param value="high" name="quality"/>
<param value="true" name="play"/>
<param value="true" name="loop"/>
<param value="showall" name="scale"/>
<param value="window" name="wmode"/>
<param value="false" name="devicefont"/>
<param value="#000000" name="bgcolor"/>
<param value="true" name="menu"/>
<param value="" name="salign"/>
<embed id="flow" width="760" height="150" align="middle" type="application/x-shockwave-flash" salign="" menu="true" name="flow" bgcolor="#999999" devicefont="false" wmode="window" scale="showall" loop="true" play="true" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" flashvars="xmlPath=http://nikongear.com/alb/flow.php" src="flow.swf"/>
</object>

</div>

</tr>

 
</td>
</table>


Any idea why is this happening?? As well as is working correctly in IE.


Thanks in advance
Title: Re: Image Scroller - based on iTunes
Post by: Tranz on October 30, 2007, 03:30:57 pm
When I visit the page, there's an error that a the AC_RunActiveContent.js file is required. Make sure everything is uploaded properly.
Title: Re: Image Scroller - based on iTunes
Post by: lluisitu on October 30, 2007, 03:36:35 pm
Sorry, I've made a change in domain and i was updating paths in flow.php and other.

Now it's working, and again, I can see it in IE but not in the header in Firebox, really strange!

Thanks
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on November 01, 2007, 01:47:03 pm
Sorry, I've made a change in domain and i was updating paths in flow.php and other.

Now it's working, and again, I can see it in IE but not in the header in Firebox, really strange!

Thanks

You have some .htaccess redirect/url masking issues to start with.

Are the flow.* files at the root or in a coppermine folder or....?

http://www.frozensights.com/coppermine/index.php - this excludes your theme

These are the same addresses:
http://www.frozensights.com
http://www.frozensights.com/coppermine

And you still need the 'AC_RunActiveContent.js' file uploaded.
Title: Re: Image Scroller - based on iTunes
Post by: lluisitu on November 01, 2007, 02:03:18 pm
hi,

all files, flow.* and 'AC_RunActiveContent.js'  are in root coppermine dir.

Regarding .htaccess i really don't know what's the problem.


When I run explorer the scroll is visible and got this warning:

Code 0
AC_FL_RunContent not defined

but the scroll is displayed.

With firefox it just appear a grey box and got similar error:

index.php line 11
AC_FL_RunContent is not defined

But instead, if I also put the scroll in anycontent, not just in header, in firefox the scroll of anycontent is displayed properly at bottom of page but the header one not?!?!

Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on November 01, 2007, 02:09:58 pm
You have the Flash script in the <head> tags, should be below the <body> tag.
Title: Re: Image Scroller - based on iTunes
Post by: lluisitu on November 01, 2007, 02:15:14 pm
Yeah,you're right. Ssorry for bother you, and it was more I had duplicated instance for script and second one wasn't working.
Just removed and now is working properly.

Thanks for your suport.
Title: Re: Image Scroller - based on iTunes
Post by: Fabrian on November 04, 2007, 01:43:39 am
Sorry for asking, but could someone explain a little bit more in detail about how to get this mod functional?
Title: Re: Image Scroller - based on iTunes
Post by: mentalist3d on November 08, 2007, 08:24:17 pm
excellent looking script, I'll be trying this straight away :-) many thanks
Title: Re: Image Scroller - based on iTunes
Post by: mentalist3d on November 08, 2007, 08:59:24 pm
Try it with the www - http://www.bilderbluete.de/e107_plugins/cpg149/index.php

The link you provided doesn't include it. You need to be consistent throughout the code.

I tried this script and it's ace, I had the same problem displaying images by not including the www, fixed it and it works fine. Just one thing though, the script displays the images when I go to www.art.concepts.org.uk but when I go to http://art.concepts.org.uk no images show, is there anyway to modify the script so that the images will display through both versions of the domain.

thanks again for such a good script, I highly recommend this for other users :-)
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on November 08, 2007, 09:26:02 pm
Take a look at Reply #75. (http://forum.coppermine-gallery.net/index.php?topic=44042.msg221790#msg221790)

I edited it for clarity.
Title: Re: Image Scroller - based on iTunes
Post by: Rinaldo on November 08, 2007, 11:02:20 pm
rphMedia : thanks for this superb piece of script !

But as allways   some questions:
1) Would it be possible to resize the "whole thing" as it is now is pretty big in my site.
2) would it possible to attach a link when mouse over ? For example when people click on it, they are forwarded to the Photo Album ? ( _blank)
3) Is it possible to get hold of the .FLA file, as for i like to add a header text and maybe a logo in the scroller ?

Thanks !

Rinaldo
Title: Re: Image Scroller - based on iTunes
Post by: mentalist3d on November 09, 2007, 11:27:08 am
Take a look at Reply #75. (http://forum.coppermine-gallery.net/index.php?topic=44042.msg221790#msg221790)

I edited it for clarity.

Thanks very much, that worked a charm :-) Thanks again
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on November 09, 2007, 12:19:27 pm
rphMedia : thanks for this superb piece of script !

But as allways   some questions:
1) Would it be possible to resize the "whole thing" as it is now is pretty big in my site.
2) would it possible to attach a link when mouse over ? For example when people click on it, they are forwarded to the Photo Album ? ( _blank)
3) Is it possible to get hold of the .FLA file, as for i like to add a header text and maybe a logo in the scroller ?

Thanks !

Rinaldo
Persistent, huh?

1. You can resize it yourself with the dimension parameters. Depending on the size of your images, distortion may occur. As far as custom size of the swf, link? (How can you possibly need it any smaller?)

2. This is possible, but would require an extreme customized script or swf. When I modify anything, it usually helps others as well... this would not.

3. No. I DO have permission to distribute the swf file any way I see fit, but I don't have rights to the fla sorry.
Title: Re: Image Scroller - based on iTunes
Post by: alexf on November 12, 2007, 07:08:44 am
Magnificent script! Thanks!

But two features are very necessary:

1. Posibility to click a image and get redirect to the selected imagepage for details. Or generate javascript event when user click a image.

2. At the end of the moving, after the 20 random pics, the first image comes again immediately, without scrolling back.
Title: Re: Image Scroller - based on iTunes
Post by: Fabrian on November 13, 2007, 01:31:21 am
I finally got this mod to work without much trouble.  It appears I overlooked some chmod's during my initial attempt which was causing complete failure.

I can see everything just fine on the box I did the work on, but cannot on two other machines.  I think the two others are due to restrictions as they are company PC's.  Could someone report back and let me know if you see the scroller?

http://frozen-motion.com

I have one other question.  I'm trying to shrink down the padding above and below the images a bit.  The default size looks OK image-wise, but takes up too much real estate.  When I adjust the size to be a bit shorter vertically, the images are too small.  Is there a solution for what I'm looking for?

Thanks
Title: Re: Image Scroller - based on iTunes
Post by: Fabrian on November 13, 2007, 02:35:42 am
I finally got this mod to work without much trouble.  It appears I overlooked some chmod's during my initial attempt which was causing complete failure.

I can see everything just fine on the box I did the work on, but cannot on two other machines.  I think the two others are due to restrictions as they are company PC's.  Could someone report back and let me know if you see the scroller?

http://frozen-motion.com

I have one other question.  I'm trying to shrink down the padding above and below the images a bit.  The default size looks OK image-wise, but takes up too much real estate.  When I adjust the size to be a bit shorter vertically, the images are too small.  Is there a solution for what I'm looking for?

Thanks

Alright, I figured out my problems.  I did in fact have the "www" issue so htaccess did the trick.  I guess my only question left is can the OP modify the .swf so there is not spacing at the top?  In other words, the little space that is between the top of the images at the .swf is wasting space that I could be using.

Thanks again for this great mod!
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on November 13, 2007, 12:30:51 pm
Alright, I figured out my problems.  I did in fact have the "www" issue so htaccess did the trick.  I guess my only question left is can the OP modify the .swf so there is not spacing at the top?  In other words, the little space that is between the top of the images at the .swf is wasting space that I could be using.

Thanks again for this great mod!

Try this Reply #22 (http://forum.coppermine-gallery.net/index.php?topic=44042.msg212559#msg212559) - it scales your images so you can adjust your thumbnails to fit.
Title: Re: Image Scroller - based on iTunes
Post by: freeedy on November 15, 2007, 05:58:07 am
Hi guys I have a really weird problem. I used this mod a time ago and recently I change of host and re-install the coppermine gallery. So I mainly copy the same script and files to the same folders but know the mod doesnt work, the squares for images appear in red.. My site is www.lacuadra-st.com (where the flow is). My gallery is in www.lacuadra-st.com/galeria. I have the codes fof calling the swf in my index.php, which is in the main directory with the AC and the swf. The flow.php is in the galera folder. The swf, AC and php are left as they originally were.


This is the complete script of my index.php

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/La Cuadra-St.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>La Cuadra St.</title>
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
body {
background-color: #000000;
}
-->
</style>
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
.style2 {color: #FFFFFF}
.style3 {
font-family: Calibri;
font-size: 10px;
}
.style4 {color: #FFFFFF; font-family: Calibri; }
.style6 {color: #FFFFFF; font-family: Calibri; font-weight: bold; }
.style13 {font-size: 30px; color: #FFFFFF; font-family: Calibri; font-weight: bold; }
.style14 {font-family: "Lithe Extrabold"}
.style15 {font-size: 30px; color: #FFFFFF; font-family: "Lithe Extrabold"; font-weight: bold; }
.style18 {color: #FFFFFF; font-family: "Lithe Extrabold"; }
.style19 {color: #FFFFFF; font-family: "Lithe Extrabold"; font-weight: bold; }
.style20 {color: #FFFFFF; font-size: 10px; }
.style23 {font-size: 10px}
-->
</style>
<!-- InstanceEndEditable -->
</head>

<body>
<div align="center">
  <h5><img src="logo.png" width="81%" />
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="63%" height="6%">
      <param name="movie" value="menu.swf" />
      <param name="quality" value="high" />
      <embed src="menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="63%" height="6%"></embed>
    </object>
  </h5>
</div>
<p>&nbsp;</p>
<!-- InstanceBeginEditable name="EditRegion1" -->
<table width="80%" border="0" align="center">
  <tr>
    <td>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sample Flash Script</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<BODY bgcolor="#000000" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0" scroll="auto">
<div align="center">
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '750',
'height', '250',
'src', 'flow',
'FlashVars', 'xmlPath=http://www.lacuadra-st.com/galeria/flow.php', <!--Absolute path to 'flow.php'-->
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'flow',
'bgcolor', '#000000',
'name', 'flow',
'menu', 'true',
'movie', 'flow',
'salign', ''
); //end AC code
}
</script>
</div></td>
  </tr>
</table>
<table width="100%">
  <tr>
    <td width="18%" align="center" valign="middle" bordercolor="#000033" bgcolor="#0000CC"><div align="center" class="style15">GALER&Iacute;A</div></td>
    <td width="5%" rowspan="11">&nbsp;</td>
    <td width="75%" align="center" valign="middle" bordercolor="#FF9966" bgcolor="#0000CC" class="style13 style14">
    <a name="1" id="1"></a><span class="style14">GUESTBOOK</span></td>
    <td rowspan="11">&nbsp;</td>
  </tr>
  <tr bordercolor="#000033">
    <td width="18%" valign="middle" bordercolor="#000033" bgcolor="#000033"><p class="style2 style3 style23">VIEJOS!!!</p>
      <p class="style2 style3">
        <?php 
include_once "./galeria/cpmfetch/cpmfetch.php";
$objCpm = new cpm('./galeria/cpmfetch/cpmfetch_config.php');
$objCpm->cpm_formatStats("Hay %f archivos en %c categoria que incluyen a %a albums, han sido vistos %v veces y solo he obtenido %n PINCHES COMENTARIOS");
$objCpm->cpm_close(); 
?>

      </p>
    <p class="style2 style3">QUE CHINGADOS PASA!!!!</p>    </td>
    <td width="75%" rowspan="9" valign="top" bordercolor="#FF9966" bgcolor="#000033"><?php include('/home/freeedy/public_html/gb/gbinclude.php'); ?></td>
  </tr>
  <tr bordercolor="#000033">
    <td width="18%" bgcolor="#FF6600"><div align="center" class="style6">
      <div align="left" class="style18">Las Nuevas </div>
    </div></td>
  </tr>
  <tr bordercolor="#000033">
    <td width="18%" bgcolor="#000033"><div align="center" class="style20 style3"><?php 
include_once "./galeria/cpmfetch/cpmfetch.php";
$objCpm = new cpm('./galeria/cpmfetch/cpmfetch_config.php');
$options = array( "imagewidth" => '100');
$objCpm->cpm_listMediaAddedOverLastDays(5,$options);
$objCpm->cpm_close(); 
?>
</div>
      <p align="center" class="style4 style2 style3 style23"><?php 
include_once "./galeria/cpmfetch/cpmfetch.php";
$objCpm = new cpm('./galeria/cpmfetch/cpmfetch_config.php');
$options = array( "imagewidth" => '100');
$objCpm->cpm_viewLastAddedMedia(2,2,$options);
$objCpm->cpm_close(); 
?>
</p>    </td>
  </tr>
  <tr bordercolor="#000033">
    <td width="18%" bgcolor="#FF6600"><div align="center" class="style6">
      <div align="left" class="style18">Las Mejores </div>
    </div></td>
  </tr>
  <tr bordercolor="#000033">
    <td width="18%" align="center" valign="middle" bgcolor="#000033"><div align="center"><span class="style4">
      <?php 
include_once "./galeria/cpmfetch/cpmfetch.php";
$objCpm = new cpm('./galeria/cpmfetch/cpmfetch_config.php');
$options = array( "imagewidth" => '100');
$objCpm->cpm_viewRandomTopRatedMediaFrom("owner=freeedy",2,2,$options);
$objCpm->cpm_close(); 
?>

    </span></div></td>
  </tr>
  <tr bordercolor="#000033">
    <td width="18%" bgcolor="#FF6600"><div align="left"><span class="style19">Las M&aacute;s Vistas </span></div></td>
  </tr>
  <tr bordercolor="#000033">
    <td width="18%" align="center" valign="middle" bgcolor="#000033"><div align="center"><span class="style4">
      <?php 
include_once "./galeria/cpmfetch/cpmfetch.php";
$objCpm = new cpm('./galeria/cpmfetch/cpmfetch_config.php');
$options = array( "imagewidth" => '100');
$objCpm->cpm_viewRandomMostViewedMediaFrom("owner=freeedy",2,2,$options);
$objCpm->cpm_close(); 
?>

    </span></div></td>
  </tr>
  <tr bordercolor="#000033">
    <td width="18%" bgcolor="#FF6600"><span class="style19">&Uacute;ltimos Comentarios </span></td>
  </tr>
  <tr bordercolor="#000033">
    <td width="18%" align="center" valign="middle" bgcolor="#000033"><div align="center"><span class="style4">
      <?php 
include_once "./galeria/cpmfetch/cpmfetch.php";
$objCpm = new cpm('./galeria/cpmfetch/cpmfetch_config.php');
$options = array( "imagewidth" => '100');
$objCpm->cpm_viewLastCommentedImages(2,2,$options);
$objCpm->cpm_close(); 
?>

    </span></div></td>
  </tr>
  <tr>
    <td></td>
    <td width="70%" valign="top" bordercolor="#FF9966" bgcolor="#666666"></td>
  </tr>
</table>
<p></p>
<!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd --></html>
Title: Re: Image Scroller - based on iTunes
Post by: Carlos5039 on November 17, 2007, 03:25:17 am
Is there a way to make the Backgound Transparent?  When used in Multiple themes sometimes the colors do not match.
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on November 17, 2007, 10:18:32 am
Is there a way to make the Backgound Transparent?  When used in Multiple themes sometimes the colors do not match.
I've tried - Firefox won't allow transparency and I can't find a workaround. Actually, I was thinking of the new Flash version - if you read the thread, you will find a transparent solution with the current versions throughout.


@freeedy - No idea why yours doesn't work. If it worked before with the same exact setup, but different host, I would look toward the host. Maybe htaccess issues or something. Nevertheless, I'm looking into a way to override this occasional behavior.
Title: Re: Image Scroller - based on iTunes
Post by: freeedy on November 17, 2007, 06:18:37 pm
I've tried - Firefox won't allow transparency and I can't find a workaround. Actually, I was thinking of the new Flash version - if you read the thread, you will find a transparent solution with the current versions throughout.


@freeedy - No idea why yours doesn't work. If it worked before with the same exact setup, but different host, I would look toward the host. Maybe htaccess issues or something. Nevertheless, I'm looking into a way to override this occasional behavior.

Thanks for your reply, could it be a problem with the new upgrade of the cpg?? ´cause I recently upgrade to the nw version. What should I look for in the htaccess?
Title: Re: Image Scroller - based on iTunes
Post by: dke on November 23, 2007, 09:46:35 am
Awesome mod indeed, i got it to work instantly.

However im confused about the thumbnail scaling, i've tried to find the solution in this thread but i cannot find it. My thumbs look really bad with the default settings, and i've played around with the "width" and "height" settings but those dosn't help. There is a "scale" setting that is default to "showall" what are the other options?

Anyway, really great mod!
Title: Re: Image Scroller - based on iTunes
Post by: dke on November 23, 2007, 09:57:17 am
I was blind sorry, didn't see the attached file to post 22.

Can't edit my post so i had to make a double one!

Great mod!
Title: Re: Image Scroller - based on iTunes
Post by: dke on November 23, 2007, 10:41:59 am
I am sorry for the tripple post but i had one last question regarding your modification.

1. Is there anyway to make the "browsing cycle" begin at step 4 or later (thus would look nicer at the beginning)

2. Is there a way to make this happen: If i click a image that is currently in the middle i will automaticly be sent to the intermediate image on the gallery?

Thanks for this wonderful mod!
Title: Re: Image Scroller - based on iTunes
Post by: AlexTheMartian on November 27, 2007, 06:03:27 am
I love it.

I also request the same thing as the post above me.

However currently I decided to let this mod take place of both my Random Images and Latest Additions tables.
and in order for me to fully make use of doing that, I would like to have links to the photo's page, however I can not see any actual way except editing the flash (which only you can do.)

However I really like the clicking the thumbs to scroll across, therefore I have a suggestion to add to this request to remain with the click-to-scroll, and that is putting text of the image name bellow the thumbnail, and that image name can be the link to the image's page.

But I will be happy with any way to link to the photo's page
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on November 27, 2007, 05:26:54 pm
Give me a few days, I'll see what I can do.
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on November 28, 2007, 01:23:20 pm
Getting close here - http://gallery.rphmedia.net/flow_link2.html

May not do too well in auto-slideshow mode... still working it.
Title: Re: Image Scroller - based on iTunes
Post by: AlexTheMartian on November 28, 2007, 01:39:42 pm
Getting close here - http://gallery.rphmedia.net/flow_link2.html

May not do too well in auto-slideshow mode... still working it.

probably will help to have the hand cursor. but I really like how it is coming out.

also, how do you change the script to button or scrollbar mode anyways?
Title: Re: Image Scroller - based on iTunes
Post by: Tranz on November 28, 2007, 04:41:00 pm
I like how you implemented it so that clicking on the non-center ones will move them to center, so that it's possible to "flip" through the images while also being able to visit the image.
Title: Re: Image Scroller - based on iTunes
Post by: AlexTheMartian on November 28, 2007, 06:22:56 pm
I like how you implemented it so that clicking on the non-center ones will move them to center, so that it's possible to "flip" through the images while also being able to visit the image.

Yeah I also thought that was a good implementation  :)
Title: Re: Image Scroller - based on iTunes
Post by: dke on December 01, 2007, 11:39:45 am
Getting close here - http://gallery.rphmedia.net/flow_link2.html

May not do too well in auto-slideshow mode... still working it.

veeery nice work rphMedia!
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on December 05, 2007, 05:48:12 pm
OK, the 'link to intermediate' is complete. I started another thread so as not to further clutter this one.

It's currently in General Discussion (http://forum.coppermine-gallery.net/index.php?board=12.0), but should soon be moved to Mods: Visuals (http://forum.coppermine-gallery.net/index.php?board=82.0)

I've also got another mod titled "Image Scroller - based on ? ? ?" that links to the Intermediate as well.
Title: Re: Image Scroller - based on iTunes
Post by: Jason kiDD on January 03, 2008, 09:22:53 pm
I have tried and tried and tried but cannot get this mod to work... Please advise.. jdjoseph2000@hotmail.com

http://www.phatjamzent.com/gallery/flow_link.htm

Code is as follows: .php
Quote
<?php
define('IN_COPPERMINE', true);
require('include/init.inc.php');
$path=$CONFIG['site_url'];
$xml = '<?xml version="1.0" encoding="iso-8859-1"?><content>';
if ($FORBIDDEN_SET != "") $FORBIDDEN_SET = "AND $FORBIDDEN_SET";
$result = mysql_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE filename LIKE '%.jpg' ORDER BY pid DESC LIMIT 20");
$row = mysql_fetch_array($result);
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[" . $path . "displayimage.php?pos=-" . $row['pid'] . "]]></data></image>";
}
$xml .= '</content>';
echo $xml;
?>

Code is as follows: .htm
Quote
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Upcoming Events</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#000000" scroll="auto">
<table width="100%" height="100%" border="0"><tr align="center" valign="middle"><td>
<script language="javascript">
   if (AC_FL_RunContent == 0) {
      alert("This page requires AC_RunActiveContent.js.");
   } else {
      AC_FL_RunContent(
         'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
         'width', '900',
         'height', '400',
         'src', 'flow_link',
            'FlashVars', 'xmlPath=http://www.phatjamzent.com/gallery/flow_link.php', <!--Absolute path to 'flow.php'-->
         'quality', 'high',
         'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
         'align', 'middle',
         'play', 'true',
         'loop', 'true',
         'scale', 'showall',
         'wmode', 'window',
         'devicefont', 'false',
         'id', 'flow_link',
         'bgcolor', '#000000',
         'name', 'flow_link',
         'menu', 'true',
         'allowFullScreen', 'false',
         'allowScriptAccess','sameDomain',
         'movie', 'flow_link',
         'salign', ''
         ); //end AC code
   }
</script>
</td></tr></table>
</body>
</html>
Title: Re: Image Scroller - based on iTunes
Post by: Nibbler on January 03, 2008, 09:36:13 pm
Change mysql_query to cpg_db_query
Title: Re: Image Scroller - based on iTunes
Post by: webdirector on January 07, 2008, 08:29:03 pm
Thanks for the Great Script !

fits well with my new site " www.itouchthemes.com/cpg " its a wallpaper and Themes website ( when it will be finished  ;D).

I can not get the script to work :

http://itouchthemes.com/cpg/flow.htm

as you can see I have redboxes instead of pictures.
any Idea what I am doing wrong ?
Thanks for help !

Rgds
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on January 07, 2008, 08:34:49 pm
Hint: WWW - look at the 2 links you provided.

Try adding WWW to the URL AND the script URL.
Title: Re: Image Scroller - based on iTunes
Post by: webdirector on January 07, 2008, 09:19:38 pm
Sorry I have no idea what you mean .

I just changed my Template.html and added the www and now I see nothing ?

What exactly is wrong ?

sorry for being a noob

here the template:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta name="mssmarttagspreventparsing" content="true" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="themes/chaoticsoul/style.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
</head>
<body>
<div id="page">
{CUSTOM_HEADER}

<div id="header">
   <!-- If you wish to have your gallery title in 2 colors, edit this line. If you want a white title, comment out this line and use the line underneath. -->
   <h1><a href="index.php">iTouchThemes<span></span></a></h1>
   <!-- <h1><a href="index.php">{GAL_NAME}</a></h1> --> <!-- use this line to get an all white title -->
   <div class="description">{GAL_DESCRIPTION}</div>
</div>

<hr />
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sample Flash Script</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<BODY bgcolor="#363430" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0" scroll="auto">
<div align="center">
<script language="javascript">
   if (AC_FL_RunContent == 0) {
      alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
   } else {
      AC_FL_RunContent(
         'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
         'width', '750',
         'height', '250',
         'src', 'flow',
         'FlashVars', 'xmlPath=http://www.itouchthemes.com/cpg/flow.php', <!--Absolute path to 'flow.php'-->
         'quality', 'high',
         'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
         'align', 'middle',
         'play', 'true',
         'loop', 'true',
         'scale', 'showall',
         'wmode', 'window',
         'devicefont', 'false',
         'id', 'flow',
         'bgcolor', '#161410',
         'name', 'flow',
         'menu', 'true',
         'movie', 'flow',
         'salign', ''
         ); //end AC code
   }
</script>
</div>
</body>
</html>

<hr />

<div id="wrapper" class="clearfix">


   <div id="content" class="narrowcolumn">

      <div class="post">
         {GALLERY}
      </div>
      <br />
      <div class="cpg_footer" align="center">
         {THEME_SELECT_LIST}{LANGUAGE_SELECT_LIST}<br />
         {LANGUAGE_SELECT_FLAGS}
         {VANITY}
      </div>

   </div><!-- End content -->

   <div id="sidebar">
         
         <h3>About This Gallery</h3>
         <p class="postmetadata alt">
            <small>
               Coppermine Rocks!!
            </small>
         </p>

         {ADMIN_MENU}

         {SYS_MENU}
         
         {SUB_MENU}

         <h3>Links</h3>
            <ul>
               <li><a href="http://www.billygbullock.com" title="Read my blog">Blog</a></li>
               <li><a href="http://forum.coppermine-gallery.net/" title="Coppermine Support Forum">Coppermine Support Forum</a></li>
               <li><a href="http://www.mozilla.com/firefox/" title="Get Firefox">Get Firefox</a></li>
               <li><a href="http://chrispederick.com/work/webdeveloper/" title="Web Developer Extension">Web Developer Extension</a></li>
            </ul>
            
         <h3>GalleryRoll</h3>
            <ul>
               <li><a href="http://gaugau.de/" title="GauGau">GauGau</a></li>
               <li><a href="http://stramm.st.funpic.org/" title="Stramm">Stramm</a></li>
               <li><a href="http://www.ic-gallery.com/" title="Nibbler">Nibbler</a></li>
               <li><a href="http://TakeThu.com/" title="TranzNDance">TranzNDance</a></li>
               <li><a href="http://myprj.com/" title="Sami">Sami</a></li>
               <li><a href="http://tariquesani.net/" title="Tarique">Tarique</a></li>
               <li><a href="http://www.donovanbray.com/" title="Donnoman">Donnoman</a></li>
               <li><a href="http://www.abbasali.net/" title="Abbas">Abbas</a></li>
               <li><a href="http://adityamooley.net/" title="Aditya">Aditya</a></li>
               <li><a href="http://www.kazebeer.com/" title="Kegobeer">Kegobeer</a></li>
               <li><a href="http://www.artistsinhawaii.com/evj/" title="Madeinhawaii">Madeinhawaii</a></li>
               <li><a href="http://www.billygbullock.com/" title="Gizmo">Gizmo</a></li>
               <li><a href="http://cpmfetch.fistfullofcode.com" title="Vuud">Vuud</a></li>
            </ul>
   </div><!-- End sidebar -->

</div><!-- End wrapper -->

   <hr />
   <div id="footer">
      <p>
         <!-- Please leave these credit links intact as they are small and unobtrusive to the theme. Thanks! -->
       | </p>
  </div>

{CUSTOM_FOOTER}
</div><!-- End page -->

</body>
</html>
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on January 07, 2008, 09:21:07 pm
http://www.itouchthemes.com/cpg

Works good for me.
Title: Re: Image Scroller - based on iTunes
Post by: webdirector on January 07, 2008, 09:22:02 pm
It's now working all of a sudden

Thanks !!!!!

Looks great  ;D
Title: Re: Image Scroller - based on iTunes
Post by: webdirector on January 07, 2008, 11:30:44 pm
rphMedia

could I ask you a favour ?

attached I have added a Apple Itouch as a PSD file with several layers.

could you make a new Flash file and use the Itouch as a frame so the  itune sliding would be inside of the Itouch ?

This way it would look like the real thing

I made the backgrund transparent but if you need to give it a color could you make it #161410

I could not attache the rar file so I renamed the rar file to .zip please rebname to rar to unpack


Thanks
Title: Re: Image Scroller - based on iTunes
Post by: webdirector on January 09, 2008, 09:23:42 pm

could you make me a SWF for non square pictures
my Thumbs are 66X100 ?

have a look at my scroller :

http://www.itouchthemes.com/cpg/index.php

The spaces bewteen the pictures are big

I tried playing with with ( 550 only, can see here http://www.itouchthemes.com/cpg/flow.htm  )

But that does not do the trick

Thanks
Title: Re: Image Scroller - based on iTunes
Post by: dke on January 11, 2008, 12:27:49 am
thanks for this wonderful mod rpmedia, however i have one question to ask.

is it possible to modify the query made in flow.php to filter out images that belongs to another user group?

lets say for instance i'm browsing a gallery as a anonymous user, i can still see images that are from "registered users only" albums within the flash scroller, is it possible to filter those out depending on the user browsing if so how?

thanks alot for the help!
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on January 11, 2008, 09:10:34 pm
Quote from: webdirector
The spaces bewteen the pictures are big

Try the other mod here - http://forum.coppermine-gallery.net/index.php?topic=48822.msg238745#msg238745
Title: Re: Image Scroller - based on iTunes
Post by: webdirector on January 12, 2008, 04:25:10 pm
I am not sure if I should continue here or in the other post

have a look here ( Itries it with the 900X400 and the 600X300 ):

It looks allot better but now it distorts the pictures ( with ) see:


http://www.itouchthemes.com/cpg/flow_link_example.htm

original is here :

http://www.itouchthemes.com/cpg/flow.htm

The format of the pictures can be seen here :

http://www.itouchthemes.com/cpg/displayimage.php?pos=-19

Thanks

 
Title: Re: Image Scroller - based on iTunes
Post by: webdirector on January 16, 2008, 10:23:40 pm
rphmedia,

have a look here: http://www.itouchthemes.com/

The scroller really does not look good ( lokks like poor quality pictures because of strech )

Is there anything I can do ?

Thanks
Title: Re: Image Scroller - based on iTunes
Post by: iorkara on January 17, 2008, 09:46:37 am
Hi everyone.
First off, fantastic mod!
My problem. I got the sample working over at: http://www.iorkara.com/2/flow.htm
But when i put the code into my template its not working at all. All i get is a Black Box.
However, i do have two domains that goto iorkara.com/2/
They are ps3walls.com and playstation3wallpapers.eu

I read something about the cross xml thing. i did make it and put it in root at iorkara.com/2/
but how do i 'point' the file to whatever i have to 'point' at
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on January 17, 2008, 12:48:50 pm
The crossdomain.xml policy file doesn't look for anything. Flash will look for the file upon a http call.
Title: Re: Image Scroller - based on iTunes
Post by: iorkara on January 17, 2008, 01:02:03 pm
Yea this is where im confused. Im not all that great at coding. I know the basics. I dont understand when you say 'Flash will look for the file upon a http call'.

Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on January 17, 2008, 01:30:03 pm
Yea this is where im confused. Im not all that great at coding. I know the basics. I dont understand when you say 'Flash will look for the file upon a http call'.
In other words, it does it automatically, you don't need to code anything.

If you have a problem with the mod, provide links to the problem.
Title: Re: Image Scroller - based on iTunes
Post by: iorkara on January 17, 2008, 01:51:29 pm
ok, My domains are:
www.playstation3wallpapers.eu (http://www.playstation3wallpapers.eu)
and
www.ps3walls.com (http://www.ps3walls.com)

Both domains goto iorkara.com/2 (http://iorkara.com/2)

If you check the site, theres only a black box. However, over www.iorkara.com/2/flow.htm (http://www.iorkara.com/2/flow.htm) it works.
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on January 17, 2008, 01:56:44 pm
Add 'http://www.iorkara.com' to your crossdomain.xml file
Title: Re: Image Scroller - based on iTunes
Post by: iorkara on January 17, 2008, 02:01:41 pm
Done, this is what it looks like just in-case i have done an error:

Quote
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="http://www.iorkara.com" />
<allow-access-from domain="http://www.playstation3wallpapers.eu" />
<allow-access-from domain="http://www.ps3walls.com" />
</cross-domain-policy>
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on January 17, 2008, 02:06:38 pm
Looks correct... now make sure that your host supports the file. Some do not.
Title: Re: Image Scroller - based on iTunes
Post by: iorkara on January 17, 2008, 02:09:05 pm
Yea. I uploaded the file to iorkara.com and at iorkara.com/2 which is the coppermine root

thats fine correct?
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on January 17, 2008, 02:11:48 pm
Root only. It's a server file. Not really part of the mod(s).
Title: Re: Image Scroller - based on iTunes
Post by: iorkara on January 17, 2008, 02:16:33 pm
Ok. I have removed the one at iorkara.com/2/

Could it be anything in the code?
flow.php
Quote
<?php
define('IN_COPPERMINE', true);
require('include/init.inc.php');
$path=$CONFIG['http://www.iorkara.com/2'];
$xml = '<?xml version="1.0" encoding="UTF-8"?><content>';
if ($FORBIDDEN_SET != "") $FORBIDDEN_SET = "AND $FORBIDDEN_SET";
$result = mysql_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE aid='47' AND filename LIKE '%.jpg' $FORBIDDEN_SET ORDER BY RAND() LIMIT 20"); //You can change the '20'
if (!$result) {
die('<p>Error performing query: ' . mysql_error() . '</p>');
}
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></image>";
}
$xml .= '</content>';
echo $xml;
?>

and this is my template file:
Quote
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
<link rel="stylesheet" type="text/css" href="themes/hardwired/style.css" />
<style type="text/css">
<!--
.style2 {color: #000000}
-->
</style>
{META}
<script type="text/javascript" src="scripts.js" ></script>
<!-- $Id: template.html 2808 2006-02-05 22:35:48Z gaugau $ -->
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="http://www.iorkara.com/2/AC_RunActiveContent.js" language="javascript"></script>
</head>
<body>
<p><BR>
  <center>
<img src="http://www.iorkara.com/2/banner.gif" width="793" height="220" /><br />
</p>
<table width="769" border="1" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#FFFFFF"><div align="center"><span class="style2">Just ignore the Black Box below, we are working on new updates.<br />
    The whole site is still functional</span></div></td>
  </tr>
</table>
<br />
<p align="center">
  <BODY bgcolor="#000000" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0" scroll="auto">
<div align="center">
<script language="javascript">
   if (AC_FL_RunContent == 0) {
      alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
   } else {
      AC_FL_RunContent(
         'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
         'width', '750',
         'height', '250',
         'src', 'flow',
         'FlashVars', 'xmlPath=http://www.iorkara.com/2/flow.php', <!--Absolute path to 'flow.php'-->
         'quality', 'high',
         'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
         'align', 'middle',
         'play', 'true',
         'loop', 'true',
         'scale', 'showall',
         'wmode', 'window',
         'devicefont', 'false',
         'id', 'flow',
         'bgcolor', '#000000',
         'name', 'flow',
         'menu', 'true',
         'movie', 'flow',
         'salign', ''
         ); //end AC code
   }
</script>
</div>

<br />
  <br />
</p>
<center>
<textarea name="textfield" cols="94" rows="8" wrap="virtual">--------------------------------------- NEWS & UPDATES ---------------------------------------
-*** We have been working on our Custom Wallpapers (iorkara PS3 Wallpapers) and we have improved the XMB Layout Design! We have added Two Preview Wallpapers. One is our Personal Iorkara Wallpaper Version 2 and the other is a Plain Black which is mainly for Testing purposes. Check it out and Test and see our New Improved XMB Design Layout. We will be adding alot of new Custom Wallpapers within a weeks time!

-The "TV/Movies" Section has been Updated, Very awesome Wallpapers!
-The "GAMES" Section has been Updated.
-Newsletter has now been removed/discontinued.
-We have Enabled Guests to Comment on Wallpapers.
-**NOTICE: After we enabled Comments again, we recieved thousands of spam Comments (LOL) which we did expect. So what we have done to fix the Problem. We installed 'Captcha'. From now on, when you Login or post a Comment. You will have to type in the 'code' displayed on the screen. This will stop Spamming! YAY! It has been Tested and works 110%

-The "18+" Members Exclusive Section has been Updated with Awesome Adult content!
-Special Thanks to User "waltyftm" for the recent Uploads! Keep up the great work!
-Comments have been re-enabled. Only Users can Post Comments
-The "GAMES" Section has been Updated! Heaps of Great Ones Added.
-The "Official Sony PS3 Walls" Section has been Updated.
-"iorkara PS3 Wallpapers" Section Updated!
-ALL NEW Section "iorkara PS3 Wallpapers", Our own Personal Custom Walls!
-Personal Thanks to User "waltyftm" for all your Uploading!
-Ads: Iorkara Blog Ad removed. The site looks better without it.
-HAPPY NEW YEAR EVERYBODY! Woop Woop!
-The IORKARA Blog Ad has been Added.
-Banner Design Changed.
-PlayStation3Wallpapers.eu / PS3walls.com now has over 4,500 PS3 Wallpapers!!!
-The Members Exclusive "Females" Section has been Updated.
-All New "Scenery" Section now Up and Updated.
-The "TV/Movies" Section has been Updated.
-The "Cars" Section has been Updated.
-The "Males" Section has been Updated.
-The "Animals" Section has been Updated.

-We have Added an ALL NEW PlayStation 3 News Section at the Bottom of every
page. Now while Browsing our Wallpapers you also get the latest in PS3 NEWS!!

-The "Official Sony PlayStation 3 Wallpapers" Section has been Updated!
-XMAS / NEW YEARS SPECIAL UP FOR EVERYONE! HAVE FUN ALL!
-We now own www.playstation3wallpapers.eu
-New section "Males" has been Added to our Collection, have fun girls!
-New section "Christmas" has been Added to our Collection :)
-The "Cars" Section has been updated! Awesome Wallpapers!!!
-The "Games" Section has been updated!
-The "Computers" Section has been updated!

-We have Added "NEWSLETTER" Option now. Sign up & get updates to your Email

-The "Official Sony Wallpapers" Section has been Updated!

-UPLOADERS: We want to thank all the Members who help Upload Wallpapers to
PS3walls. It is very much appreciated and we are glad the that the PS3walls
Community is going Great! Thank You all Uploaders!

-DONATIONS: We now Accept PayPal Donations for PS3walls.com, it will help this website
grow and expand as PS3walls is now very popular and the site
needs more Hosting Space and Bandwidth. Thank You.

-NOTICE: Comments are Disabled for now until futher notice.

-125 FEMALE WALLPAPERS Added to the Members Exclusive 'Females' Section!

-News & Updates Info Bored: Has been Twicked to fit more News.

-ADS: Recoding.net is now sponcering us. They are a Hosting Service Company.

-Over 140 High Resolution Vector Wallpapers Added to 'Vector' Section. Enjoy!

-NEW Album Added: 'Vector' Wallpapers

-All new Porsche Wallpapers Added to "CARS" Section. Enjoy! They are really good :)

-NOTICE! All Spammers are now Banned within 24hrs.

-Reminder: All Wallpapers uploaded must be at PS3 Resolution or it will be rejected!

-Upload Limit for Users now increased to 40,000 KB.

-Redesigned News & Updates section now up :)

-Ad: Goto www.iorkara.com for the Great Online Community

-Huge list of Languages Added to the site for all Non-English Peeps :)

-The "18+" Members Exclusive Section now updated with more Wallpapers!!

-"Zippo" Album Added to our big list og Albums.

-"Zodiac" Album now up and Running.</textarea>
<br />
<BR/>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="iorkara@gmail.com">
<input type="hidden" name="item_name" value="Help Support This Website">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="http://www.iorkara.com/2/paypal.jpg" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_AU/i/scr/pixel.gif" width="1" height="1">
</form>
<p>&nbsp;</p>
<p>{CUSTOM_HEADER}
</p>
</center>
<table width="900"  border="0" cellspacing="0" cellpadding="0">
  <tr valign="top">
    <td width="53" rowspan="3" id="far-left"><img src="themes/hardwired/images/far-left.gif" width="54" height="14" alt="" /></td>
    <td width="18" class="middle-left"><img src="themes/hardwired/images/middle-left.gif" width="18" height="14" alt="" /></td>
    <td height="62" class="right-banner">
        <div class="left-banner">
        <div class="gal_name">{GAL_NAME}</div>
        <div class="gal_description">{GAL_DESCRIPTION}</div>
        </div>
    </td>
    <td width="19" class="middle-right"><img src="themes/hardwired/images/middle-right.gif" width="19" height="14" alt="" /></td>
    <td width="53" rowspan="3" class="far-right"><img src="themes/hardwired/images/far-right.gif" width="53" height="14" alt="" /></td>
  </tr>
    <tr>
    <td width="18" class="middle-left">&nbsp;</td>
    <td class="gallery"><div align="right" class="topmenu"> {SYS_MENU} </div>
      <br />
      <div align="left" class="topmenu">{SUB_MENU}</div> <br />
      <div align="center"> {THEME_SELECT_LIST} {LANGUAGE_SELECT_LIST} </div>
      <br />
      {ADMIN_MENU} {GALLERY}</td>
    <td width="19" class="middle-right">&nbsp;</td>
  </tr>
  <tr valign="baseline">
    <td width="18" class="middle-left"><img src="themes/hardwired/images/bottom-left.gif" width="18" height="31" alt="" /></td>
    <td class="bottom-middle">&nbsp;</td>
    <td width="19" class="middle-right"><img src="themes/hardwired/images/bottom-right.gif" width="19" height="31" alt="" /></td>
  </tr>
</table>
<br />
<br />
<br />
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
   <center>
       <!-- Begin BidVertiser code -->
<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=62762&bid=233015" type="text/javascript"></SCRIPT>
<noscript><a href="http://www.bidvertiser.com">pay per click</a></noscript>
<!-- End BidVertiser code -->
<br />
<br />
<br />
 <!-- Begin BidVertiser code -->
<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=62762&bid=260140" type="text/javascript"></SCRIPT>
<noscript><a href="http://www.bidvertiser.com">pay per click</a></noscript>
<!-- End BidVertiser code -->
   </td>
  </tr>
</table>
<p>&nbsp;</p>

<br />
<div align="center"> {LANGUAGE_SELECT_FLAGS} <br />
  <br />
</div>
<p>{CUSTOM_FOOTER}
  {VANITY}
  <center>
</p>

</body>

</html>
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on January 17, 2008, 02:18:16 pm
Again, make sure that your host supports the crossdomain policy file.
Title: Re: Image Scroller - based on iTunes
Post by: iorkara on January 17, 2008, 02:20:13 pm
Okay. Thank you for your Fantastic help so far! Its very much appreciated!
Im just waiting for a reply from my host.
Title: Re: Image Scroller - based on iTunes
Post by: iorkara on January 17, 2008, 05:52:21 pm
Sorry for double post.
Its seems my space does not support crossdomain policy.
Is there a way i can enable it another way?
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on January 17, 2008, 05:58:11 pm
Is there a way i can enable it another way?

Not crossing domains... you could try iFrame(s), but that's beyond the scope of this thread.
Title: Re: Image Scroller - based on iTunes
Post by: iorkara on January 17, 2008, 06:11:09 pm
Not crossing domains... you could try iFrame(s), but that's beyond the scope of this thread.

Ok. I will try it out.
Thanks for all your help! Very much appreciated!
Title: Re: Image Scroller - based on iTunes
Post by: hardcopi on January 18, 2008, 12:49:02 am
Just wanted to thank you for this. I installed coppermine yesterday and it just needed "something" for my site to pull it all together and this did the trick.

http://www.fivestarcomics.com/gallery to see my results.

Thanks a lot!
Title: Re: Image Scroller - based on iTunes
Post by: webdirector on January 22, 2008, 08:45:38 pm
rphmedia,

have a look here: http://www.itouchthemes.com/

The scroller really does not look good ( lokks like poor quality pictures because of strech )

Is there anything I can do ?

Thanks

Is there anything you can do to help ?

Thanks
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on January 22, 2008, 09:24:08 pm
I don't see it on your home page.
Title: Re: Image Scroller - based on iTunes
Post by: webdirector on January 24, 2008, 09:13:25 am
You can see it here :

http://www.itouchthemes.com/

or here:

http://www.itouchthemes.com/cpg/index.php?cat=2&Itemid=29

The problem is that ht pictures need to be 320 X 480 as that is the size for wallpapers for the iPhone or iTouch.

I really like the scroller as it fits well with the subject the only thing is that the scroll is streching the picture in the with and they look low quality.

Can you help ?

Thanks
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on January 24, 2008, 09:21:40 pm
I still don't see your homepage mod - using FF.

Have you tried the different versions in this thread? - http://forum.coppermine-gallery.net/index.php?topic=48822.0
Title: Re: Image Scroller - based on iTunes
Post by: webdirector on January 25, 2008, 05:05:45 pm
I am sorry but I am a little confused.

What do you mean with " FF " ?

do you mean the flow ?

see here:

http://www.itouchthemes.com/cpg/flow_link_example.htm

original is here :

http://www.itouchthemes.com/cpg/flow.htm

The format of the pictures can be seen here :

http://www.itouchthemes.com/cpg/displayimage.php?pos=-19  ( size is 320 X 480 )

Thanks
Title: Re: Image Scroller - based on iTunes
Post by: webdirector on January 25, 2008, 05:31:22 pm
Like I said I am not usre if I need to continue here or go to the other post.

the thing is that here:

http://www.itouchthemes.com/cpg/flow.htm
The pictures look OK ( only spaced appart to much ) but I do not have the link to intermediat

and here:
http://www.itouchthemes.com/cpg/flow_link_example.htm
The pictures are distorted ( streched ) for this one I tried the original flow_link.swf and the " no_resize_flow_link.zip" and both times the pictures get streched ( see what I mean at the link )

http://www.itouchthemes.com/cpg/flow_link_example.htm

Thanks
Title: Re: Image Scroller - based on iTunes
Post by: swendingo on February 11, 2008, 04:47:55 am
is this nolonger available?
Title: Re: Image Scroller - based on iTunes
Post by: Joachim Müller on February 11, 2008, 09:23:29 am
is this nolonger available?
What's "this"?
Title: Re: Image Scroller - based on iTunes
Post by: afrohead on February 19, 2008, 05:36:42 am
Hopefully I haven't missed any posts about this ?.  If so my apologies.  Will the slide show work properly if I have the YouTube mod installed?  I am just concerned the rotator might bust if it tries to grab a YouTube entry.  Thanks
Title: Re: Image Scroller - based on iTunes
Post by: Joachim Müller on February 19, 2008, 08:30:34 am
We don't know. Try it and report your results. Back up first. If things go wrong, roll back your changes.
Title: Re: Image Scroller - based on iTunes
Post by: radium35 on February 24, 2008, 06:15:14 pm
this is a nice no scale script but then you cant click on the pictures lol, can it be clickable?

This attached zip does not scale to a specific size (not a fixed 120x120).

Thanks for cleaning that up, didn't even realize the error there ! I updated the original attached.

The following attached file puts your thumbnails up at the size you intended. You could probably resize this app a little and get away with not skewing too much. If anyone needs something different, just ask and I'll see what I can do.
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on February 24, 2008, 09:03:17 pm
this is a nice no scale script but then you cant click on the pictures lol, can it be clickable?

http://forum.coppermine-gallery.net/index.php/topic,48822.0.html
Title: Re: Image Scroller - based on iTunes
Post by: veez on March 18, 2008, 04:12:43 am
Firstly,  very nice job on this visual mod.  Looks very impressive.

Would you be able to tell how I can use this mod without using coppermine.

So the pictures would come from a defined directory on the website or I would need to list the pictures filenames.

Thanks
Title: Re: Image Scroller - based on iTunes
Post by: koalaii on July 28, 2008, 01:45:27 am
Hello,

Great mod, works great.
I only have one question : when you put the code into anycontent, the image scroller will show on every page of Coppermine. Would it is possible to be shown only on the index page ?

Thanks.

koa
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on July 28, 2008, 01:09:36 pm
I believe that you would have to hard code that.
Title: Re: Image Scroller - based on iTunes
Post by: koalaii on July 29, 2008, 12:14:40 am
I feared you would say that  :-[
I will try to figure out something if I find I will tell you.

Thanks

ka
Title: Re: Image Scroller - based on iTunes
Post by: koalaii on July 29, 2008, 01:20:29 am
OK, that was easy in fact. So for those interested to only have the mod to appear in the index page only, follow these steps :

1- In index.php, replace
Code: [Select]
include('anycontent.php'); by
Code: [Select]
include('anycontentindex.php');. Save the file.

2- Make a copy of anycontent.php and rename it anycontentindex.php

3- Open anycontent.php and replace
Code: [Select]
This is for any content block - just a test - Edit the file "anycontent.php" to change what is shown hereby the applet code given in this topic. For example :
Code: [Select]
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#FFFFFF" scroll="auto">
<table width="100%" height="100%" border="0"><tr align="center" valign="middle"><td>
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '750',
'height', '250',
'src', 'flow_link',
                                        'FlashVars', 'xmlPath=http://mgcontact2.free.fr/photos/flow_link.php', <!--Absolute path to 'flow.php'-->
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'flow_link',
'bgcolor', '#FFFFFF',
'name', 'flow_link',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'flow_link',
'salign', ''
); //end AC code
}
</script>
Save the file

4- Connect as admin in your Coppermine. In Configuration/ Content of the main page make sure you have anycontent in the list. For example :
Code: [Select]
breadcrumb/catlist/alblist/anycontent
5- Send index.php and anycontentindex.php to your server. It should work.
Title: Re: Image Scroller - based on iTunes
Post by: koalaii on July 29, 2008, 01:23:02 am


3- Open anycontent.php and replace
Code: [Select]
This is for any content block - just a test - Edit the file "anycontent.php" to change what is shown here

ERRATUM : Open anycontentindex.php

How do you edit your messages in this forum ?
Title: Re: Image Scroller - based on iTunes
Post by: Joachim Müller on July 29, 2008, 07:23:42 am
How do you edit your messages in this forum ?
Not at all. Option to edit postings has deliberately been turned off for regular users due to frequent abuse in the past.
Title: Re: Image Scroller - based on iTunes
Post by: togi on September 07, 2008, 05:33:18 am
got the image scroller to work!

thanks guys! great add on...

http://www.photo.net.ph/
Title: Re: Image Scroller - based on iTunes
Post by: Hein Traag on September 07, 2008, 12:41:06 pm
got the image scroller to work!

thanks guys! great add on...

http://www.photo.net.ph/

Upgrade! : <!--Coppermine Photo Gallery 1.4.15 (stable)-->
Title: Re: Image Scroller - based on iTunes
Post by: rms26 on January 22, 2009, 05:54:48 pm
I have installed no_resize_flow on my anycontent.php, and after many pb it work ^^ really a great plug !
But ^^ i would like have too big picture in the animation, how i can do plz ??? ( sorry for my bad english, hope u ll understand my request )

I let u the link to my gallery : www.rms26.fr/Pro (http://www.rms26.fr/Pro)
Title: Re: Image Scroller - based on iTunes
Post by: Lowie on January 26, 2009, 04:51:32 pm
I cant get it to work :|

Ive uploaded all the files to /gallery (same folder) and then edited the absolute path url.

www.lowiedehaar.nl/gallery/flow.htm
Title: Re: Image Scroller - based on iTunes
Post by: rphMedia on January 26, 2009, 04:57:01 pm
You don't have CPG installed  ???
http://www.lowiedehaar.nl/gallery/
Title: Re: Image Scroller - based on iTunes
Post by: mememolly on April 20, 2009, 07:42:51 pm
After i installed the no scale version of the script my thumbnails dont link to the picture anymore how do i make it so when i click on the thumbnail it links to the picture someone help me please? http://gallery.mileycyrusworld.org/