forum.coppermine-gallery.net

No Support => Modifications/Add-Ons/Hacks => Mods: Visuals => Topic started by: rphMedia on December 05, 2007, 02:17:20 pm

Title: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on December 05, 2007, 02:17:20 pm
This is similar to this mod (http://forum.coppermine-gallery.net/index.php?topic=44042.0) except the center image now links to the Intermediate page.

1. Same as most of my mods, drop the 3 files (flow_link.php, flow_link.swf, AC_RunActiveContent.js) to the root of your gallery
2. Modify the Flash script (example inside flow_link_example.htm) to indicate the absolute path to flow_link.php on your server
3. Include the script in your anycontent (or for the advanced, put the script anywhere on your site)

That's it.

I will take a limited amount of custom requests, if my time permits. I'll subject line it with the custom attachment.

The images are currently 160x120 and the exact dimension of the Flash file is 900x400 (most users, I believe, are 1024x768 display resolution or greater). You could probably adjust it minimally without too much distortion. Currently, the flow_link.php picks up the last 20 images loaded to your gallery (respects private albums). You can change this to whatever you like (eg., ORDER BY RAND() LIMIT 20, specific album, etc).

If I forgot anything, let me know. Enjoy !
Title: Re: Image Scroller - Based on iTunes [link to Intermediate]
Post by: AlexTheMartian on December 06, 2007, 01:36:06 am
Are you going to be working on trying to get the transparent wmode to work in Firefox? (I have no clue what will cause it to work in IE but not Firefox)

Kind of a shame I am currently limited to a background color, since I am using a gradient background.  :-\
Title: Re: Image Scroller - Based on iTunes [link to Intermediate]
Post by: rphMedia on December 06, 2007, 12:09:36 pm
Are you going to be working on trying to get the transparent wmode to work in Firefox? (I have no clue what will cause it to work in IE but not Firefox)

I can't fix it, but I do research the issue and right now - no clue as to why. The other version of this mod does allow transparency. Just doesn't have the 'link to Intermediate' feature.
This is fixed via latest version(s) of Flash Player.
Title: Re: Image Scroller - Based on iTunes [link to Intermediate]
Post by: Gephri on December 12, 2007, 10:17:22 am
Had been running your previous version fine and the install seemed simple enough.  But I click on the center image it does not take me to the intermediate image.

Am I missing something?
Title: Re: Image Scroller - Based on iTunes [link to Intermediate]
Post by: Gephri on December 12, 2007, 10:23:30 am
sorry for the double post, but the doesn't pull images from album #44
Code: [Select]
$result = mysql_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE filename LIKE '%.jpg' ORDER BY RAND() LIMIT 20, 44");

any idea
Title: Re: Image Scroller - Based on iTunes [link to Intermediate]
Post by: rphMedia on December 12, 2007, 12:04:17 pm
Am I missing something?
How can I tell if you're missing something without a link??
Title: Re: Image Scroller - Based on iTunes [link to Intermediate]
Post by: Nibbler on December 12, 2007, 12:21:10 pm
That's not what a double post is.

You misread the instructions. Should be:

Code: [Select]
SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE filename LIKE '%.jpg' AND aid = 44 ORDER BY RAND() LIMIT 20
Title: Re: Image Scroller - Based on iTunes [link to Intermediate]
Post by: Gephri on December 12, 2007, 04:27:06 pm
rphMedia - right, here's the link:

http://www.superstarteachers.com/welcome/home.php (http://www.superstarteachers.com/welcome/home.php)
Title: Re: Image Scroller - Based on iTunes [link to Intermediate]
Post by: rphMedia on December 12, 2007, 04:34:13 pm
For your "movie" parameter in the flash code, change it from 'flow' to 'flow_link' - you're still pulling the old flash file 'flow'.
Title: Re: Image Scroller - Based on iTunes [link to Intermediate]
Post by: Gephri on December 12, 2007, 04:40:21 pm
ok - done that, but now nothing shows.
Should I change also flow to flow_link for "id" and "name" ?
Title: Re: Image Scroller - Based on iTunes [link to Intermediate]
Post by: rphMedia on December 12, 2007, 04:42:46 pm
Which means that 'flow_link.swf' is not in that directory. The other 2 parameters don't need the change.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Gephri on December 12, 2007, 07:31:41 pm
thanks - works very nicely in the gallery on anycontent.php!

one last thing - that could also help others:
Can you show what needs to be done for getting this mod to pull from one web site to the gallery on another?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on December 12, 2007, 07:36:24 pm
This version does it automatically (if your server(s) support it). If it doesn't pull the images from another domain, then one or both of the servers don't support it.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Gephri on December 12, 2007, 07:58:18 pm
please disregard my last post - all is good
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Gephri on December 13, 2007, 10:31:23 pm
rphMedia:
I've got a lot of different sized pictures in the albums. When the Image Scroller shows them - they're a little blurry.  Is there an update to the FlowNoScale tweak that will work with the latest flow_link version?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Pahco on December 20, 2007, 07:34:40 am
I've been trying to get this to work on my site....but it doesn't.

I think it has something to do either with the fact that it's hosted on a subdomain, or that I'm using a Joomla/Cpg bridge.

The Bridge may be affecting it since only registered users in Joomla can view the gallery.  Not sure.


I did get the script added to my template correctly, and it shows up...just no images.  So, it's not finding the flow_link.php or is not able to access the images.


Any suggestions?  I'd really like to get this slick mod added to the top of my gallery.


BTW, I did create a gallery besides the user galleries, because I'm assuming user galleries wouldn't show up....but I am thinking this bridge might just be making all galleries seem private to the mod.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Joachim Müller on December 20, 2007, 09:00:33 am
Any suggestions?  I'd really like to get this slick mod added to the top of my gallery.
Yes: post real-life examples - your posting doesn't mean anything to supporters. Posting real-life links (and non-admin test user accounts if needed) will help. Posting your changes might help as well. There's no saying what is wrong with just a generic "doesn't work" posting like yours.
Title: No resize coming...?
Post by: KB on December 31, 2007, 09:29:26 pm
First and foremost - Thank you so much for this mod - it's a beautiful addition to the already great CPG. 

Just question/request - will we see a no-resize version of this?  The people uploading images to the galleries on my site won't be mspaint-literate, nevermind photoshop, so some pics will be landscape, some will be portrait, some will be non-standard (not 4:3). 

Album (temporary):

http://www.greyhoundsofshamrock.net/cpg/flow_link_example.htm (http://www.greyhoundsofshamrock.net/cpg/flow_link_example.htm)

The 4th pic from the left is a portrait-ish pic and is terribly squashed... some of the other pics are square (300x300), so resizing the thumb still squashes a bit...

I saw a "no-resize" version of the swf on the previous (not-clickable) version... hoping to see one in this version!

Thanks much!
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jake on January 02, 2008, 02:24:38 am
I really like the look of this Mod!  Thank you so much for creating it!
My request mirrors the post by “KB” above.
Your “flowNoScale.zip” fit my needs for the variety of photos sizes I have, but I love the linked “clickability” in your new version.  Any way to combine the two features?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on January 02, 2008, 02:02:23 pm
I'll see what I can do, kinda busy lately. Give me a couple weeks.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jake on January 02, 2008, 11:56:24 pm
Thanks!  I’m looking forward to it!
Title: Re: No resize coming...?
Post by: rphMedia on January 06, 2008, 10:06:02 am
I saw a "no-resize" version of the swf on the previous (not-clickable) version... hoping to see one in this version!

Try the attached.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jake on January 06, 2008, 02:48:45 pm
It works like a charm.  Thanks so much!
I really appreciate you spend the time on my request!
- Jake
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jake on January 06, 2008, 03:26:07 pm
As I look closely at the modified .swf, my images are a little pixilated.
http://woodardphotos.net/coppermine/flow_link_example.htm (http://woodardphotos.net/coppermine/flow_link_example.htm)
Looking at my Coppermine gallery config, the max dimension of a thumbnail is set to 100px. 
Would this be my issue?

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on January 06, 2008, 03:56:46 pm
Try making the (Flash code) height @300 vice 400. Further play around with the dimensions until it looks OK to you.
Title: Re: No resize coming...?
Post by: KB on January 07, 2008, 07:28:49 pm
Try the attached.

Beautiful - absolutely perfect. 
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jsganti on January 08, 2008, 05:46:18 pm
I could not get it right. Here is what I did:

(1) Copied files AC_RunActiveContent.js, flow_link.php, flow_link.swf (noscale version) to cpg root, which is http://www.ninaadam.com/gallery
(2) Copied these 2 line to template.php in /gallery/themes/GWFluid
Code: [Select]
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
(3) Used cpg_db_query instead of mysql_query in flow_link.php, changed the number of photos to 5
(4) Copied the script to anycontent.php
Code: [Select]
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');

starttable("100%", "Latest Images");

?>
<tr><td class="tableb" >
<div align="center">
<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.ninaadam.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', 'transparent',
'devicefont', 'false',
'id', 'flow_link',
'bgcolor', '#000000',
'name', 'flow_link',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'flow_link',
'salign', ''
); //end AC code
}
</script>
</div>
</td></tr>
<?php
endtable
();

?>

Could not see the scroller...it is blank. Tried removing www but still no change. What am I doing wrong?

Here is the link my gallery: http://www.ninaadam.com/gallery (http://www.ninaadam.com/gallery)

TIA,
Jagannadha Ganti
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on January 08, 2008, 05:58:59 pm
I'm going to go out on a limb here and say that you didn't put 'flow_link.swf' in your gallery root.

Double-check that.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jsganti on January 08, 2008, 06:58:17 pm
As I mentioned in Step-1, I copied .php, .swf, .js to the gallery root.
Does these have to be copied to the theme directory too?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jake on January 08, 2008, 07:13:28 pm
I’d love to replace my image “slider” http://forum.coppermine-gallery.net/index.php?topic=41197.0 (http://forum.coppermine-gallery.net/index.php?topic=41197.0) with your “image scroller”, but the quality if the thumbnail images are noticeably less with your “image scroller”.  You suggested resizing my .swf (see post above), but the image quality is still not even close. 
Would you happen to have any other suggestions to increase the quality of the thumbnails?
See my “image scroller”:
http://woodardphotos.net/coppermine/flow_link_example.htm
And my image “slider”
http://woodardphotos.net/coppermine/search.php

Thanks again for your time!
- Jake
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on January 08, 2008, 07:31:41 pm
Quote


Here is the link my gallery: http://www.ninaadam.com/gallery (http://www.ninaadam.com/gallery)

For some reason, when clicking that link, you lose the www in the url (even though it's formatted in the post that way). Make sure that you don't have any redirects or htaccess issues.

Edit: and your server response time is extremely slow. Who's your host?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on January 08, 2008, 09:44:10 pm
I’d love to replace my image “slider” http://forum.coppermine-gallery.net/index.php?topic=41197.0 (http://forum.coppermine-gallery.net/index.php?topic=41197.0) with your “image scroller”, but the quality if the thumbnail images are noticeably less with your “image scroller”.  You suggested resizing my .swf (see post above), but the image quality is still not even close. 
Would you happen to have any other suggestions to increase the quality of the thumbnails?
See my “image scroller”:
http://woodardphotos.net/coppermine/flow_link_example.htm
And my image “slider”
http://woodardphotos.net/coppermine/search.php

Thanks again for your time!
- Jake


Try 800x300 (vice 900x300). Try to keep the scale somewhat when you [change] the dimensions.

To better the image quality, you'll have to do that at your end. There's nothing I can do to the Flash file to better your image quality. When using the flow_link.swf at the original size, what you see for image quality is all you're going to get. You could batch increase the size of your thumbnails and maybe increase the quality setting a bit, but no imagery modification will make your images look any better, sorry.

There's also this mod I have (at the top of my test Gallery) - http://gallery.rphmedia.net

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jake on January 08, 2008, 10:51:00 pm
Wow!  I really like that visual effect as well.  I’ll have to tool around with it later tonight.  Is that effect on the mod board?
In the mean time, I’ve scaled down my .swf by 20% on both width and height (675, 300) . . . still the same problem.
My thumbnails are defaulted to a max of 100 px.  Is the container for the thumbnail images in the .swf larger than that?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on January 08, 2008, 10:55:13 pm
The swf file is originally scaled to 900x400. Give me a couple days (may have to remind me) and I'll scale it down to your 675x300 and we'll see what that does for you.

And yes, I think the other mod subject line is Image "Scroller based on ??".
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: wuschel_lux on January 09, 2008, 03:55:51 pm
Hi all,
I tryed also to install this great scroller, but my page leaves blank  ???

I copied the 4 files included in the zip file to my gallery root, modified the path in the example file, but no scroller.

Here the link to the example file http://www.volleyball.lu/fotogallery/flow_link_example.htm

I hope someon can tell me what I did wrong.

Thanks in advance. Regards, Francis
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on January 09, 2008, 04:48:11 pm
Here the link to the example file http://www.volleyball.lu/fotogallery/flow_link_example.htm

Works for me.
Title: That pesky image quality
Post by: hobert on January 09, 2008, 06:06:36 pm
I'm also have a marked difference in image quality of the pictures between this and your previous stunning work.  I think I can guess why in one instance.

http://www.hobert.net/fic/flow_both.htm (http://www.hobert.net/fic/flow_both.htm)

The top is your old "based on iTunes" in the no-scale, 175 version, cut down to 730 x 175.  I did resize all my thumbs to make them look good for this.

The bottom is your new "intermediate" in the no-resize flavor, at 900 x 400, which seems to take all the portrait orientated thumbs and turn them into squares, which causes bad pixelization.  The landscape oriented still don't look as sharp as the old flow.swf, but are better than the squares.  Downsizing to 730 x 325 didn't help.

Any way, keep up the outstanding work, this is a really cool mod.  I'd like to cast my vote for a shorter size when you get the time.

If you need to know, the gallery is at http://www.hobert.net/gallery/ (http://www.hobert.net/gallery/),
and the original flow.swf is on http://www.hobert.net/fic/ (http://www.hobert.net/fic/)
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jsganti on January 09, 2008, 06:31:15 pm
Quote
For some reason, when clicking that link, you lose the www in the url (even though it's formatted in the post that way). Make sure that you don't have any redirects or htaccess issues.

Edit: and your server response time is extremely slow. Who's your host?

There are no redirects. I tried removing www in the script but no change.

My site is hosted on http://www.ixwebhosting.com (http://www.ixwebhosting.com)
The site response was good last week. Not sure why it has slowed down. Anything I can check/do?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Gephri on January 09, 2008, 09:53:54 pm
rphMedia:

can't seem to figure how to link to a category, I'm sure it's simple - but "cid" doesn't work.

Any idea?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: wuschel_lux on January 10, 2008, 08:11:37 am
Works for me.

Hmmm, thanks for checking, but I only get a blank (back) page with Win XP & FF/IE, MAC & Safari/FF. When I try to have a look on other sites mentioned here in the Forum it works fine for me.

What did I wrong?

Regards
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jake on January 10, 2008, 01:29:15 pm
Hmmm, thanks for checking, but I only get a blank (back) page with Win XP & FF/IE, MAC & Safari/FF. When I try to have a look on other sites mentioned here in the Forum it works fine for me.

What did I wrong?

Regards

It works for me as well. 
Try cleaning out your browser cache(s).
Title: Re: No resize coming...?
Post by: dke on January 10, 2008, 09:38:06 pm
Try the attached.

I don't get it, my pictures still get resized in the scroller even when i use this, any clue?

my old "Flow.swf" with no resize works perfectly.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on January 11, 2008, 09:05:39 pm
For all that wanted a smaller version, try the attached. It should maintain aspect ratio, but still scale the content within the stage.

This one is 600x300.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: M on January 15, 2008, 09:24:10 pm
Hi, this scroller is so beautiful ...

But somehow i can't make it works :(

http://www.mdnplace.com/galleryMap/flow_link_example.php

Please advice on what i did wrong, already checked, 3 files are in the root folder.  Thanks!
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on January 15, 2008, 09:25:29 pm
Again... works for me. Try clearing your cache.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: M on January 15, 2008, 09:26:28 pm
Hi, this scroller is so beautiful ...

But somehow i can't make it works :(

http://www.mdnplace.com/galleryMap/flow_link_example.php

Please advice on what i did wrong, already checked, 3 files are in the root folder.  Thanks!

It was catch ..Open a new win and it works ... Thanks for all your hardwork! :)
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: iorkara on January 29, 2008, 09:26:10 am
Hi everyone  :)

I having a Problem over at: http://www.iorkara.com/flow_link_example.htm (http://www.iorkara.com/flow_link_example.htm)

As you can see I get a Blank Page. I have checked everything in code. Cannot find an error. Its not a cache thing neither as others had problems with too.

My Gallery is at: www.iorkara/2/ (http://www.iorkara/2/)

Any Help will be very much Appreciated. Thank you.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Pascal YAP on January 29, 2008, 10:12:48 am
Iorkara,
Quote
My Gallery is at: ww w.iorkara/2/
Where is your Coppermine Gallery in your install ?

PYAP
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on January 29, 2008, 12:22:08 pm
I would remove any .htaccess files you have and try again.

Also, take a look at your WWW in your addresses. You have them scattered all over the place. One domain has it while the other does not  ???
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: iorkara on January 29, 2008, 02:14:13 pm
I removed the .htaccess files, did not work. So now they are back..
I removed all www and tried that. didnt work. So i put in www, same result.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on January 29, 2008, 02:30:17 pm
I having a Problem over at: http://www.iorkara.com/flow_link_example.htm (http://www.iorkara.com/flow_link_example.htm)

Put flow_link.swf in the same place as flow_link_example.htm

eg, http://www.iorkara.com/flow_link.swf
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: iorkara on January 29, 2008, 02:37:27 pm
Ok, were getting somewhere!
I put the .swf file where you said. Still blank, but its loading now...
When you click, you get a URL like: http://www.iorkara.com/displayimage.php?pos=-6780
It should be something like:http://www.iorkara.com/2/displayimage.php?pos=-6780

So ive missed a line somewhere?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on January 29, 2008, 03:00:58 pm
The paths in your flow_link.php file should be absolute, not relative - http://www.iorkara.com/2/flow_link.php

Post your flow_link.php file as modified (shouldn't have to modify it).
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: iorkara on January 29, 2008, 03:03:00 pm
Quote
<?php
define('IN_COPPERMINE', true);
require('include/init.inc.php');
$path=$CONFIG['http://www.iorkara.com/2/'];
$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;
?>
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on January 29, 2008, 03:04:54 pm
This line should be - $path=$CONFIG['site_url'];

just as you see it.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: iorkara on January 29, 2008, 03:11:48 pm
Ok made the change.
I tested it in IE and got this Error:
Quote
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: http://www.iorkara.com/flow_link.swf cannot access http://iorkara.com/2/albums/userpics/thumb_Alex_Lynn_01.jpg. No policy files granted access.
   at flash.display::BitmapData/draw()
   at com.afcomponents.flowlist::DistortImage/update()
   at com.afcomponents.flowlist::Item/onLoadInit()
   at com.afcomponents.flowlist::LoadManager/::onLoadComplete()

Is that because i have Private Albums? can i make it load a specific album?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: iorkara on January 29, 2008, 03:15:24 pm
Sorry for double post. It seems that files to not popup in slide and do link to the gallery now.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Nibbler on January 29, 2008, 03:15:44 pm
Is that because i have Private Albums?

No, the mod does not respect private albums. You need to be consistant with iorkara.com vs www.iorkara.com. Use the same everywhere.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: iorkara on January 30, 2008, 03:51:15 am
Yer it is consistant.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Nibbler on January 30, 2008, 10:34:00 am
Read the message:

Security sandbox violation: BitmapData.draw: http://www.iorkara.com/flow_link.swf cannot access http://iorkara.com/2/albums/userpics/thumb_Alex_Lynn_01.jpg.

It's not consistant.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: iorkara on January 30, 2008, 02:22:24 pm
Quote
<html xmlns="http://w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Flow Link Example</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://iorkara.com/2/flow_link.php', <!--Absolute path to 'flow.php'-->
         'quality', 'high',
         'pluginspage', 'http://macromedia.com/go/getflashplayer',
         'align', 'middle',
         'play', 'true',
         'loop', 'true',
         'scale', 'showall',
         'wmode', 'transparent',
         '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>

Is it correct now? I have uploaded this one now. However it just loads....
Im getting this now in IE:
Quote
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://www.iorkara.com/flow_link.swf cannot load data from http://iorkara.com/2/flow_link.php.
   at com.afcomponents.flowlist::FlowList/set contentXML()
   at flow_link_fla::MainTimeline/flow_link_fla::frame1()
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Nibbler on January 30, 2008, 02:53:21 pm
If you set it up to use http://iorkara.com/2/flow_link.php then you have to view it from  http://iorkara.com/flow_link_example.htm, which works as expected.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: iorkara on January 30, 2008, 03:22:46 pm
Thanks for that! Everyones help is so much appreciated  :)

As you can see, i have already changed it around with size. Just wondering, is it possible to make the link target to a new window?
Title: Re: Image Scroller - Based on iTunes [link to Intermediate]
Post by: rphMedia on February 24, 2008, 08:56:16 pm
Are you going to be working on trying to get the transparent wmode to work in Firefox? (I have no clue what will cause it to work in IE but not Firefox)

Kind of a shame I am currently limited to a background color, since I am using a gradient background.  :-\
Transparency now works with the latest version of the Flash Plug-in - http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: KB on February 28, 2008, 08:56:05 pm
One (more) request for an enhancement...

Opening the link in a new window would be a great feature to have... I looked through the flow_link.php, and although I'm no php master, it doesn't appear that there is anywhere to modify that script to force a new window. 

This is really a nice piece of work - thanks again for the contribution!

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on February 28, 2008, 09:01:21 pm
I have to ask why some would like it to popup in a new window? Some people have popups blocked, in which case in wouldn't work. And if it's the same exact website, why the new window(s)? Simply hit the "Back" or "Home" button. The Gallery itself never opens new windows (with the exception of viewing the normal size images by themselves).

It can be done, but it's a strange request (IMO).
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Joachim Müller on February 29, 2008, 08:14:37 am
Bossing users around by opening links in new windows sucks. I usually leave sites that do that to me.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: KB on February 29, 2008, 09:38:27 pm
Good point - I don't claim to be a master of all things web (which is why I'm using your killer code instead of writing my own). 

How about this, in place of the last request - I see that there is a <description> tag in the flow_link.php xml, but no titles show up in the flash.  I've looked at your "scroller based on ??", and I like how the title field displays above each pic. 

Currently, I'm using the 900x400, no-resize, clickable version of the swf. 

http://greyhoundsofshamrock.net/index.php (http://greyhoundsofshamrock.net/index.php)

(The site is a work in progress...) It would look much better with titles, I think...

Thanks to both previous posters for the opinions - I'll take all the help I can get...  ;)


Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on February 29, 2008, 11:14:23 pm
OK, I'll see what I can do.
Title: Re: w/Title (600X300)
Post by: rphMedia on March 02, 2008, 08:31:15 am
How about this, in place of the last request - I see that there is a <description> tag in the flow_link.php xml, but no titles show up in the flash.  I've looked at your "scroller based on ??", and I like how the title field displays above each pic.

Try the attached swf. The title will show as dark gray (almost black) text. Understand that of all your images, you only have 2 titles - Rudy (first), Angel (last).

Edit : Updated attachment
Title: Re: w/Title
Post by: KB on March 04, 2008, 01:44:51 am
Try the attached swf. The title will show as dark gray (almost black) text. Understand that of all your images, you only have 2 titles - Rudy (first), Angel (last).

It looks absolutely great, but I think the "link" functionality got a bit mucked up.  It looks like maybe (total guess) the link area for the center picture is either larger, or not scaling with the size of the swf (I'm scaling to 600 x 300 to fit the width of the column).  If you click anwhere from 4-7 pics off center, the scroller starts to move, but then redirects to the pos=-7 picture.  If you click at the extreme edge of the swf, that doesn't happen.  It appears that the "linked" area extends more to the right than the left. 

I've posted both swf's on the site (http://greyhoundsofshamrock.net).  The top one is the new swf with titles, and the bottom is the previous version (no titles). 

P.S. - Sort of off topic - I know that I've put you through several iterations of requests... if you have a PayPal account, I'd be more than happy to donate for your contributions to this excellent mod...

Thanks much!
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: johnf on March 04, 2008, 01:48:16 am
Love this mod.  Looks great on my gallery - using anycontent.php to put it on the front page.  Clicks right to the image as advertised!
I have a dedicated server with several domains.  Now, I want to access the gallery on domain a from another domain b on my server.  I can do that - the swf appears and plays in domain b...but I can't make it clickable.  You said:

Quote
[quote author=rphMedia link=topic=44042.msg211789#msg211789 date=1181996141
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.

Can you expand on this?  I've done a crossdomain.xml file...I've tried full links inside of the flow_link.php...also tried the flow_link.inc.php suggestion...
Quote
Re: Image Scroller - based on iTunes
« Reply #23 on: June 24, 2007, 07:14:39 PM » 
For those who want an includable version of flow.htm, create a file in the include folder called flow.inc.php:

Code:
<?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:
define('IN_COPPERMINE', false);

Edit GALLERY_URL accordingly.
Gallery and working scroller are at http://www.backgroundlibrary.com
Second location is <!--http://www.presentersresource.com/ gallery.html-->  (remove space before gallery.html this is a temporary page)

I read about the crossdomain.xml rules, and attempted to include both the domainname.com and the www. domainname .com versions of all the sites.

Thank you for any assistance you can offer.
Title: Re: w/Title
Post by: rphMedia on March 04, 2008, 08:09:03 am
Quote from: KB
It looks absolutely great, but I think the "link" functionality got a bit mucked up.
You're correct. That was an old buggy version. I've updated the attachment above. I also resized to 600X300. Re-download (clear your cache) and see if that works for you.

@johnf - before we proceed, you need to make sure that your host supports the crossdomain.xml policy file - some do not.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: johnf on March 04, 2008, 03:47:33 pm
hello rphmedia-
Just called my host and they said yes it is supported.  So what do I need to do next?
Thank you again for the mod and for this assistance.
J
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on March 04, 2008, 04:31:31 pm
hello rphmedia-
Just called my host and they said yes it is supported.  So what do I need to do next?
Thank you again for the mod and for this assistance.
J

Try making your:

'xmlPath=http://www.backgroundlibrary.com/GALcpg1410/flow_link.php'

...instead of that variable you have there.

Other than that, it should work. I just tested it at my site.

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: johnf on March 04, 2008, 04:54:12 pm
Hello rphMedia - thanks for your quick reply...but I'm confused:

Here's the html code at the gallery.html page I'm trying to get to click to the intermediate image on the backgroundlibrary.com site - (gallery.html is the temp page found at my second domain  presentersresource. com)

Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>template-gallery</TITLE>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="http://www.backgroundlibrary.com/GALcpg1410/AC_RunActiveContent.js" language="javascript"></script>


<?php 
define
('IN_COPPERMINE'false);
include(
"http://www.backgroundlibrary.com/GALcpg1410/include/flow_link.inc.php"); 
?>

<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', '900',
'height', '400',
'src', 'http://www.backgroundlibrary.com/GALcpg1410/flow_link',
                                        'FlashVars', 'xmlPath=http://www.backgroundlibrary.com/GALcpg1410/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', 'transparent',
'devicefont', 'false',
'id', 'flow_link',
'bgcolor', '#000000',
'name', 'flow_link',
'menu', 'true',
'allowFullScreen', 'false',
'movie', 'http://www.backgroundlibrary.com/GALcpg1410/flow_link',
'salign', ''
); //end AC code
}
</script>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#0000CC" ALINK="#FF0000" TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
</BODY>
</HTML>

I believe that I already have the xmlPath set as you suggested.  Is there another document you are referring to?
Many thanks
Title: Re: w/Title
Post by: KB on March 04, 2008, 08:39:44 pm
You're correct. That was an old buggy version. I've updated the attachment above. I also resized to 600X300. Re-download (clear your cache) and see if that works for you.

I think we're halfway there - clicking to the left of the center image works perfectly... clicking to the right of the image still has the same odd action...

The new swf is on the site (top slideshow):  http://greyhoundsofshamrock.net. 

The sizing is *great* - much better! 
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on March 04, 2008, 09:21:44 pm
@KB - OK, you got me... I uploaded the new file in the same post to keep things from getting confused. It won't be perfect because of the different sizes of everyone's thumbnails, but it should be close enough.

@johnf - Could be yet another Flash security issue. I originally made these without the dynamic links (ie, never tested separate domains w/embedded links). It's funny that it will work on the same domain loading from different folders (which Flash does treat as a different entity), just won't budge on 2 totally different domains - will need research. It's very lucky that they work by showing/loading the images from another domain. I guess opening links from another domain is another technical hurdle altogether.

Maybe put a hard link somewhere telling them to simply visit the gallery. It would probably be better than having them start somewhere else other than the Gallery start page anyway (MO). Just a recommendation.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: KB on March 05, 2008, 12:17:40 am
@KB - OK, you got me... I uploaded the new file in the same post to keep things from getting confused. It won't be perfect because of the different sizes of everyone's thumbnails, but it should be close enough.

Well - the good news is that the scrolling looks great...

The not-so-good news is that the only clickable area to hit the gallery is a gray box that sits on top of the middle picture... :)
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on March 05, 2008, 12:47:04 am
The not-so-good news is that the only clickable area to hit the gallery is a gray box that sits on top of the middle picture... :)

Sorry. It's been a long day. I've updated the attachment one more time.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: KB on March 05, 2008, 01:07:09 am
Sorry. It's been a long day. I've updated the attachment one more time.

Absolutely perfect... Many many thanks!!
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on March 06, 2008, 12:15:10 pm
Well - the good news is that the scrolling looks great...

The not-so-good news is that the only clickable area to hit the gallery is a gray box that sits on top of the middle picture... :)

Did you receive my PM?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: KB on March 06, 2008, 10:57:45 pm
Did you receive my PM?

I did, and "responded". 

If you get an urge to do more work on this, I do have a few suggestions (nothing I need, just improvements all around):

1.)  Same functionality in the 900x400 format - I could definitely see using this on future sites.
2.)  Talking pseudo-code, since I don't know Flash at all - after a click event on a side pic to bring it to the middle of the viewer, it would be nice to reset the slideshow timer/counter.  Occasionally, I'll click on a slide to bring it to the center of the scroller, and fraction of a second later, it will scroll (I'm guessing the timer just expired and said "scroll!").  Not a bug, not a complaint, just a thought for a future revision.
3.)  Just a suggestion, but I say you should think about setting up a download page for these mods somewhere, since there are so many versions of this (and your other mods) floating around (diff sizes, scaling, titles, clickable, etc.) and link back to these forums for setup/troubleshooting discussions.  I'd suggest a PayPal donations link on that download site as well.  Believe me, I'm all about the free stuff, but when someone puts time and effort into something with such a great (and useful) result, I'm all for a donation to say "thanks", and I'd encourage other users of this mod to do the same...

In the meantime, I'll be keeping an eye out for new developments!

Thanks again!

K

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on March 07, 2008, 12:19:39 pm
Quote from: KB
I did, and "responded".
Hm, never received the response (PM).

Quote from: KB
1.)  Same functionality in the 900x400 format - I could definitely see using this on future sites.
Let me know when you need it. Shouldn't be too much of a problem.

Quote from: KB
2.)  Talking pseudo-code, since I don't know Flash at all - after a click event on a side pic to bring it to the middle of the viewer, it would be nice to reset the slideshow timer/counter.  Occasionally, I'll click on a slide to bring it to the center of the scroller, and fraction of a second later, it will scroll (I'm guessing the timer just expired and said "scroll!").  Not a bug, not a complaint, just a thought for a future revision.
I could easily just turn off the slideshow. Or perhaps create a button/link to start/stop it, but I think it then becomes a bit busy (MO).

Quote from: KB
3.)  Just a suggestion, but I say you should think about setting up a download page for these mods somewhere, since there are so many versions of this (and your other mods) floating around (diff sizes, scaling, titles, clickable, etc.) and link back to these forums for setup/troubleshooting discussions.  I'd suggest a PayPal donations link on that download site as well.  Believe me, I'm all about the free stuff, but when someone puts time and effort into something with such a great (and useful) result, I'm all for a donation to say "thanks", and I'd encourage other users of this mod to do the same...
Ah, most of my time is spent on my new website (muvipix.com (http://muvipix.com)).

I rarely have time for these mods lately, but it does tend to break the monotony on occasion. Just trying to give back to the CPG community. I have 6 of them that I maintain, mostly family sites. I always recommend it to others.

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: raduen on March 22, 2008, 06:20:20 pm
This is GREATE
Just one question.
Maybe i missed it, but is there a way to call a javscript function instead of a direct link to the displayimage.php ? (xml)
I want to make a highslide function call instead of the displayimage.php.

thanks
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: KB on March 29, 2008, 04:17:50 pm
Just a note on a minor issue I found (and it could be just me using the wrong version, due to all the swapping in-out of the flow_link.php)

In this section of the flow_link.php:

I commented this row:
//$row = mysql_fetch_array($result);
while ($row = mysql_fetch_array($result))
[etc...]

Because it was fetching twice before writing data (once for the commented row, and once for the while statement.  This caused the first record in the result set from MySql to be skipped, resulting in the loss of one pic... 

Nothing major, I fixed mine, but just in case you wanted to re-post the flow_link.php or in case anyone else was having issues. 
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: russell235 on April 09, 2008, 08:11:54 pm
how do you change the width without changing the height?  I want to make it span across the top of my gallery without making the height too big, but it seems you can't change one without changing the other.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on April 09, 2008, 09:43:34 pm
This is GREATE
Just one question.
Maybe i missed it, but is there a way to call a javscript function instead of a direct link to the displayimage.php ? (xml)
I want to make a highslide function call instead of the displayimage.php.

thanks

I don't think JavaScript would work, wouldn't hurt to give it a try.

@KB - Thanks, never even noticed that redundancy.

how do you change the width without changing the height?  I want to make it span across the top of my gallery without making the height too big, but it seems you can't change one without changing the other.

You should be able to just change the width in the Flash script. May skew though. What width/height are you looking for?



Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: russell235 on April 10, 2008, 07:54:47 pm

You should be able to just change the width in the Flash script. May skew though. What width/height are you looking for?

about 800 x 250px.  I can't find anywhere that width is defined in the java script file, but i wouldn't expect it to be.  in the html file, i can change it, but i suspect proportions are defined in the swf or something because it won't skew, but it won't increase in width past about 550, unless i increase my height past 250. 

I thought your non-linkable version allowed you to customize your width, but it's been a while so i could be wrong.

Title: 800X250
Post by: rphMedia on April 17, 2008, 12:50:06 pm
Try the attached. Changed the dimensions to 800x250. Ensure you change the dimensions in the html code as well.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: russell235 on April 25, 2008, 06:08:28 pm
the width is perfect, thank you.  this version doesn't display the titles though. :(
Title: 800x250 w/description
Post by: rphMedia on April 25, 2008, 07:23:53 pm
the width is perfect, thank you.  this version doesn't display the titles though. :(

Attached 800x250 w/description.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: manyquestions on April 29, 2008, 01:36:12 pm
Thanks rphMedia a great tool, it worked well, but i can´t link to the original pix by clicking on the scrolling images  :'(

What should i do that when you click on a small thumb you will be redirected to the orginal at display image ... ??

Thanks
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: KB on April 29, 2008, 03:51:04 pm
For anyone testing Safari 3.1.1 on Windows... if you get this error:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://YOURDOMAIN.COM/flow_link.swf cannot load data from http://muvipix.com/cpg/flow.php.
   at com.afcomponents.flowlist::FlowList/set contentXML()
   at flow_link_fla::MainTimeline/flow_link_fla::__setProp_myFlow_Scene1_Layer2_1()
   at flow_link_fla::MainTimeline$iinit()

Just update the Flash plugin for Safari at the adobe site, and all will be well. 
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jimmyeao on April 30, 2008, 08:10:01 pm
Great mod, after a bit of fumbling (should have read the instructions first ::) ) got it working great. Just one question, is it possible to change the speed it runs at?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jimmyeao on May 02, 2008, 09:53:08 pm
Anyone got this working on a bridged installation with PHPBB3.0.1?
I reinstalled my site, bridged, now I can't get it to work again  ???
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Joachim Müller on May 02, 2008, 10:13:30 pm
Don't clutter this thread with totally unrelated questions. Your bridging issue is not the subject of this thread.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jimmyeao on May 03, 2008, 12:04:55 am
Fair enough. I have eliminated bridging as the cause of my problems now anyhow..

I get no pictures, just an empty box with no picture..
tried clearing the cache, deleting temp files/cookies, have double checked my scripts..

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>Flow Link Example</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', '800',
'height', '250',
'src', 'flow_link',
                                        'FlashVars', 'xmlPath=http://www.digitalfix.org/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', 'transparent',
'devicefont', 'false',
'id', 'flow_link',
'bgcolor', '#000000',
'name', 'flow_link',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','always',
'movie', 'flow_link',
'salign', ''
); //end AC code
}
</script>
</td></tr></table>
</body>
</html>

and

Code: [Select]
<?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;
?>
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jimmyeao on May 03, 2008, 01:10:20 pm
Don't clutter this thread with totally unrelated questions. Your bridging issue is not the subject of this thread.

FYI, my issue was not with bridging, it was with the scroller not working after successfully bridiging. I would have PMed this, but your sig says not to..
I think the -1 Karma is a bit harsh? Im still new (and learning) to all of this, and look to forums such as this for help and advice, and thoughtful guidance from the moderators.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jimmyeao on May 03, 2008, 03:54:00 pm
OK, for those of you that want to use this on a bridged installation of coppermine and phpbb3..

the select statement in the flow_link.php was tring to read the images from a non-existant table in the phpbb databse instead of the coppermine database. to fix this, it has to be hard coded so:
Code: [Select]
$result = mysql_query("SELECT * FROM [u][i]user_copperminedatabase[/i].cpg_pictures[/u] AS p WHERE filename LIKE '%.jpg' ORDER BY pid DESC LIMIT 20");
next I found that it was also using the wrong user to perform the select, so in mysql admin, I had to give the phpb1 user rights to the copp1 database.

Now it is all working.
I hope the above helps someone, and apologies to the mods if this is posted in the wrong place!
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on May 03, 2008, 04:53:44 pm
@jimmyeao - FWIW, I have CPG and phpBB3 bridged and the Scroller has worked fine. It really has nothing to do with phbBB3 - bridged or not.

http://muvipix.com/cpg

PS - I would advise also to upgrade your gallery.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Joachim Müller on May 03, 2008, 05:11:07 pm
@jimmyeao: stop it, will you? Do not clutter this thread further with your invalid references to phpbb3.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: manyquestions on May 06, 2008, 07:06:40 am
Is it possible to link the scrolling images to the displayimage?

If i click on a image nothing happened  ??? ??? ???

Thanks
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: PZsHosting on May 07, 2008, 09:55:32 pm
Is there a way to make the the target _blank in the flow_link.php?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jwbworks on June 22, 2008, 02:26:44 pm
rphMedia.

This is an absolutely wonderful mod. I am using the no-scale with description version and can be seen at:

http://www.bwscrapbooking.com. (http://www.bwscrapbooking.com.)

I am having one problem. When I run the swf it only pulls back 5 images. Currently I have 6 items in my gallery. I saw KB post something like this back an march but not see any further discussion. I did make one mod to your php where I changed it to be:

Code: [Select]
<?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  cpg14x_pictures ORDER BY RAND() LIMIT 25");
$row = mysql_fetch_array($result);
while ($row = mysql_fetch_array($result))
{
$type = max($row['pwidth'], $row['pheight']) > $CONFIG['picture_width'] ? 'thumb' : 'thumb';
$xml .= "<image>\n<path><![CDATA[" . $path . get_pic_url($row, $type) . "]]></path>\n<description><![CDATA[" . $row['title'] . "]]></description>\n<data><![CDATA[" . $path . "displayimage.php?pos=-" . $row['pid'] . "]]></data>\n</image>";
}
$xml .= '</content>';
echo $xml;
?>

now I ran the query directly in MyPHPadmin and it pulls all 6 images. Any suggestion?

Also on a side note I do flex dev, so I us ethe flash debug player. When I run the swf I get the following error:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://bwscrapbooking.com/gallery/flow_link.swf cannot load data from http://muvipix.com/cpg/flow.php.
   at com.afcomponents.flowlist::FlowList/set contentXML()
   at flow_link_fla::MainTimeline/__setProp_myFlow_Scene1_Layer2_1()
   at flow_link_fla::MainTimeline()

I just dismiss it and the swf runs

Thanks for your time

Jeff

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Nibbler on June 23, 2008, 03:19:45 am
Maybe you used the wrong prefix. Change

Code: [Select]
$result = mysql_query("SELECT * FROM  cpg14x_pictures ORDER BY RAND() LIMIT 25");
to use the variable like this:

Code: [Select]
$result = mysql_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} ORDER BY RAND() LIMIT 25");
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jwbworks on June 23, 2008, 07:33:56 am
Nope no dice. the issue isn't that the query doesn't work its that its pulling 5 results back versus the whole 25. currently I have 6 images in the gallery, but only 5 come back. now if I look at the xml output of the php script. I see all six come through over several runs, so its not an issue of the data being bad and breaking the xml. The issue seems to be that something in coppermine is causing the flow.php to only get 5 results back.

Thanks for your time

Jeff
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Nibbler on June 23, 2008, 10:23:30 am
The php file is http://bwscrapbooking.com/gallery/flow_link.php and it returns 5 images. Likely cause for that is that it is looking at a different gallery than the one you expect.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jwbworks on June 23, 2008, 06:03:39 pm
I just added three new images, and all of them are either in the holiday album under cards, or a new album I just made for special events. Once loaded I have confrimed the issue is the result set from the xml  missing one image from the whole DB call. It has nothing to do with albums, or file permissions. This is the issue that KB mentioned back in March.

Any ideas do you need server info?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Nibbler on June 23, 2008, 06:37:51 pm
Solution is simple. Remove this line:

Code: [Select]
$row = mysql_fetch_array($result);
I don't know why I didn't notice that in there before.  :-[
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: joginvik on July 07, 2008, 08:02:08 pm
super mod

one question - how to open images in external window

and can you do flash 750*250 - manually is not looking good

see my page here - yet with old version - without links

http://www.tennis-expert.narod.ru/index.htm
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: phatair on July 15, 2008, 07:46:19 pm
This is similar to this mod (http://forum.coppermine-gallery.net/index.php?topic=44042.0) except the center image now links to the Intermediate page.

1. Same as most of my mods, drop the 3 files (flow_link.php, flow_link.swf, AC_RunActiveContent.js) to the root of your gallery
2. Modify the Flash script (example inside flow_link_example.htm) to indicate the absolute path to flow_link.php on your server
3. Include the script in your anycontent (or for the advanced, put the script anywhere on your site)

That's it.

I will take a limited amount of custom requests, if my time permits. I'll subject line it with the custom attachment.

The images are currently 160x120 and the exact dimension of the Flash file is 900x400 (most users, I believe, are 1024x768 display resolution or greater). You could probably adjust it minimally without too much distortion. Currently, the flow_link.php picks up the last 20 images loaded to your gallery (respects private albums). You can change this to whatever you like (eg., ORDER BY RAND() LIMIT 20, specific album, etc).

If I forgot anything, let me know. Enjoy !

Hi, i have some questions to the install process.
Quote
1. Same as most of my mods, drop the 3 files (flow_link.php, flow_link.swf, AC_RunActiveContent.js) to the root of your gallery
Ok thats no problem.

Quote
2. Modify the Flash script (example inside flow_link_example.htm) to indicate the absolute path to flow_link.php on your server
What means "Flash script"? The swf file?

Quote
3. Include the script in your anycontent (or for the advanced, put the script anywhere on your site)
Which script should i copy in the anycontent.php?

Sorry for the "stupid" questions, but i'm very new in this hole thing. Is there any step by step manual for this plugin?
Thanks a lot for you help
Best regards
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jimmyeao on July 18, 2008, 05:52:59 pm
Quote from: phatair

What means "Flash script"? The swf file?


Which script should i copy in the anycontent.php?


Sorry for the "stupid" questions, but i'm very new in this hole thing. Is there any step by step manual for this plugin?
Thanks a lot for you help
Best regards
Yes the flash script is the swf file

Goto Config - Album View and in the 'The content of the main page' box add anycontent.php - mine looks like this:
breadcrumb/catlist/alblist/onlinetoday/anycontent.php/

hope that helps!
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: phatair on July 18, 2008, 06:43:02 pm
thanks jimmyeao,

but with which tool can i open and edit the swf file? If i try to open it with editor i don't see anything.

And i have to copy some script in the anycontent.php - but what script text i have to copy in this php file?

Sorry again - i hope you can help me.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jimmyeao on July 18, 2008, 07:19:25 pm
thanks jimmyeao,

but with which tool can i open and edit the swf file? If i try to open it with editor i don't see anything.

And i have to copy some script in the anycontent.php - but what script text i have to copy in this php file?

Sorry again - i hope you can help me.

You dont need to edit the .swf file, my anycontent.php fil looks like this, should give you an idea..

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>Flow Link Example</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', '800',
'height', '250',
'src', 'flow_link',
                                        'FlashVars', 'xmlPath=http://www.yoursite.com/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', 'transparent',
'devicefont', 'false',
'id', 'flow_link',
'bgcolor', '#000000',
'name', 'flow_link',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','always',
'movie', 'flow_link',
'salign', ''
); //end AC code
}
</script>
</td></tr></table>
</body>
</html>

Just replace yoursite.com with your domain name
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: phatair on July 19, 2008, 11:04:08 am
HI,
thanks for your help. I insert now the script in the anycontent.php and "activated" it in coppermine.
Now i see a big black screen but no slider - i changed the path to my gallery site - all 3 files are in the root directory of the gallery.

what is now the problem?
the site is www.evol-eno.de/gallery
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on July 19, 2008, 01:37:28 pm
I would recommend getting someone to help you with this as you obviously have no experience in editing website files at all.

1. Add the www to your absolute path in the flash script
2. Remove the html information that you added to anycontent - the flash script is from <script> to </script>, nothing more (the html file was only an example).
3. This mod may not look/work right with your current theme.
4. Who is your host? When executing flow_link.php, it's empty. Any 404's go to Google ads (sounds like a free host?). Free hosts are notorious for modifying configurations that play havoc on flash/php.



Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: tristancol on August 03, 2008, 12:28:45 pm
Thanks, this is a great addition. Any chance you could do an 800x250 with the description/title in white? If you just want to release the fla file I could change it myself too.

Thanks again

Thanks rphMedia a great tool, it worked well, but i can´t link to the original pix by clicking on the scrolling images  :'(

What should i do that when you click on a small thumb you will be redirected to the orginal at display image ... ??

Thanks
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on August 04, 2008, 10:09:10 pm
Any chance you could do an 800x250 with the description/title in white?
Attached.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: tristancol on August 19, 2008, 06:52:13 am
Ooops  :o I forgot I'd asked about this. Thank you very much
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: twicklund on August 29, 2008, 03:01:10 am
Hi...Great Mod..Thanks so much for developing.

Is there a way to pass the images (XML) to the SWF without using the xmlPath variable?

I would like to not call the flow.php file.  I am doing the processing (collection of the images) in the same page I have the swf loaded in and cannot pass the list to the flow.php.  I thought that appending the xml to the end of the xmkPath variable would accomplish this, but it is not.

 ie, FlashVars='xmlPath=http...//.../flow.php?xml='.$xml

The xml does not get appended to the query string for some reason.  So i was hoping to just through a formatted script into the FlashVars variable.  Is his possible?  or is there another approach?

I also know you can not give me the .fla file as you don't have permissions, but is there someone I could contact to get permission? I would like to make a popup semi transparent window containing certain attributes about the image in the middle block.

Thanks a million!

=twicklund
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on August 29, 2008, 11:46:36 am
If you look at the output of flow.php, you'll see the structure you would need for your images:
Code: [Select]
<?xml version="1.0" encoding="iso-8859-1" ?>
- <content>
- <image>
- <path>
- <![CDATA[ http://muvipix.com/cpg/albums/userpics/10015/thumb_thumb_LensFlareMeteors.jpg
  ]]>
  </path>
- <description>
- <![CDATA[
  ]]>
  </description>
- <data>
- <![CDATA[ http://muvipix.com/cpg/displayimage.php?pos=-901
  ]]>
  </data>
  </image>
...
</content>

Then, simply replace the path to the flow.php file with your xml file:

 
Code: [Select]
FlashVars='xmlPath=http://yoursite.com/created_xml.xml
Unless I'm not understanding what you actually want.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 12, 2008, 02:06:40 pm

Some time ago I asked how to include or exclude specific categories. I can't find these examples anymore.

Please, can you give me one example how to include two categories and one example how to exclude two categories.

I think I have to change something in this line of flow_link.php:

Code: [Select]
$result = mysql_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE filename LIKE '%.jpg' ORDER BY pid DESC LIMIT 20");

Thanks a lot and have a nice weekend  :)

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 20, 2008, 05:06:22 pm
Some time ago I asked how to include or exclude specific categories. I can't find these examples anymore.

Please, can you give me one example how to include two categories and one example how to exclude two categories.

I think I have to change something in this line of flow_link.php:

Code: [Select]
$result = mysql_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE filename LIKE '%.jpg' ORDER BY pid DESC LIMIT 20");

Thanks a lot and have a nice weekend  :)



Please, can somebody give me a hint.  :)


Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 20, 2008, 05:46:13 pm

Another question to rphMedia:

Can you please construct a flow_link.swf which fits in 500x200, respecting private albums and has the possibility to exclude or include specific albums (as I asked in the posting above)?

I tested with no link (looks good with the size, the pics are not pressed together, but have no link): http://orst.ch/index3.php (http://orst.ch/index3.php)

Now it looks like that (there is a problem with the size and the pics are too pressed together and I need help with that): http://orst.ch/index33.php (http://orst.ch/index33.php)

Thanks in advance.

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on September 20, 2008, 11:52:02 pm
Sorry Hama, forgot about this one.

The SQL for Categories: I don't really know SQL that well. Maybe Nibbler can hook us up with that? :)

And yes, I can make you a re-sized version, give me a few days.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 21, 2008, 06:39:51 pm

@rphMedia:
Sounds good! No stress, I can wait.  ;)

@Nibbler:
rphMedia recommends you as SQL-professional (and I know that this is true!  :) ). So can you help us please with that:

I need one example how to include two categories and one example how to exclude two categories.

I think I have to change something in this line of flow_link.php:

Code: [Select]
$result = mysql_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE filename LIKE '%.jpg' ORDER BY pid DESC LIMIT 20");

Thanks a lot!

hama

Title: 500 x 200
Post by: rphMedia on September 21, 2008, 07:33:38 pm
Try the attached, Hama. The current code respects private albums.

Edit: fixed attachment.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Nibbler on September 21, 2008, 07:44:53 pm
Code: [Select]
$result = mysql_query("SELECT p.* FROM {$CONFIG['TABLE_PICTURES']} AS p INNER JOIN {$CONFIG['TABLE_ALBUMS']} AS a ON a.aid = p.aid WHERE category IN (1, 2) AND filename LIKE '%.jpg' ORDER BY pid DESC LIMIT 20");

To exclude categories use "NOT IN" instead of "IN".

Also, try to use Coppermine's cpg_db_query() instead of mysql_query().
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 22, 2008, 07:43:07 am


Also, try to use Coppermine's cpg_db_query() instead of mysql_query().


Thanks a lot for your help! By the way: Why is cpg_db_query() the better choice?
Can I change that for myself or has rphMedia to change more stuff in the main php file for that?

Title: Re: 500 x 200
Post by: hama on September 22, 2008, 07:55:26 am

Try the attached, Hama. The current code respects private albums.

It looks like that at the moment: http://orst.ch/index33.php (http://orst.ch/index33.php)

In my view there is too much space at the top and too less space at the bottom. The main picture is behind a "gray wall". And the pictures are too much pressed together (please see this example where the pictures are not pressed together, I like it [but has no links]: http://orst.ch/index3.php (http://orst.ch/index3.php)).

Maybe something is wrong in my php code (see below the php file and the piece in the index):


Code: [Select]

<?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: [Select]

<div align="center">
<script type="text/javascript" src="http://orst.ch/flashobject.js"></script>
<div id="flashcontent" style="width: 500; height: 200px"></div>
<script type="text/javascript">
var fo = new FlashObject("flow33.swf", "animationName", "500", "200", "8", "#FFFFFF");
fo.addVariable("xmlPath", "http://orst.ch/copper/flow33.php"); <!-- absolute path to flow.php -->
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("wmode", "transparent");
fo.write("flashcontent");
</script>
</div>


Thanks for your help and have a nice day!  :)

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on September 22, 2008, 10:34:29 am
Quote from: hama
By the way: Why is cpg_db_query() the better choice?
Can I change that for myself or has rphMedia to change more stuff in the main php file for that?

You can change that yourself.

I fixed the attachment in the above post, sorry about that.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 22, 2008, 08:25:24 pm


I fixed the attachment in the above post, sorry about that.


You fixed it but you loaded an flvPlayer.  :o





Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on September 22, 2008, 08:29:26 pm
Didn't have my morning coffee yet, fixed :)
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 22, 2008, 10:10:30 pm

Thanks for your work! Is it possible to change it a bit?

That's the actual situation with your new .flv: http://orst.ch/index33.php (http://orst.ch/index33.php).

--> My pics are 133 x 100 (I think in your flash file the definition is bigger?).

--> In my opinion the pics are too close together. I like this little bit vertical white between the pictures ...

--> My wish is to have it similar to the example in http://orst.ch/index3.php (http://orst.ch/index3.php) but linked to intermediate.

Sorry for that and no hurry. Have a lot of coffees!!!  ;)

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on September 22, 2008, 10:16:17 pm
Hama, that's not the new file. Be sure you replace your flow33.swf with the new file. The pictures are not that close together in the new file.

Edit: Wait, scratch that, I didn't clear MY cache. I'll adjust the image sizes for you (133x100).
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on September 22, 2008, 10:24:04 pm
OK, try this one (replaced file above) 133x100 and created more padding between images -
http://forum.coppermine-gallery.net/index.php?action=dlattach;topic=48822.0;attach=14120
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 22, 2008, 10:42:17 pm

That looks much better!

The padding has the exact size.

Can you resize the mirrored pictures a bit that they are about half the height of the pictures above? They are too high at the moment.

Thanks in advance!

hama

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on September 22, 2008, 10:49:47 pm
They are too high at the moment.
I don't understand what you want there.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 22, 2008, 10:57:47 pm

http://orst.ch/index3.php (http://orst.ch/index3.php)

This example shows the ideal height of the mirror pictures ... and the desired size of the horizontal padding.

Sorry for my permanent and not always perfect translated wishes!  ::)

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on September 22, 2008, 11:34:52 pm
OK, I'll have to get to that later. Probably tomorrow.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on September 23, 2008, 11:31:00 pm
That looks much better!

The padding has the exact size.

Can you resize the mirrored pictures a bit that they are about half the height of the pictures above? They are too high at the moment.

Thanks in advance!

hama



Try the attached, Hama. Should be what you need.
Edit: Removed attachment.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 23, 2008, 11:52:15 pm
Yes, that's it. - It looks great. - Thanks!  :)

One problem I can't solve: I get always the same 20 pictures ... after deleting the cache ... after reloading the page.

That's the flow.php:

Code: [Select]
<?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 = cpg_db_query("SELECT p.* FROM {$CONFIG['TABLE_PICTURES']} AS p INNER JOIN {$CONFIG['TABLE_ALBUMS']} AS a ON a.aid = p.aid WHERE category NOT IN (9) AND 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;
?>

That's a part of the index.php:

Code: [Select]
<script type="text/javascript" src="http://orst.ch/flashobject.js"></script>
<div id="flashcontent" style="width: 500; height: 200px"></div>
<script type="text/javascript">
var fo = new FlashObject("flow33.swf", "animationName", "500", "220", "8", "#FFFFFF");
fo.addVariable("xmlPath", "http://orst.ch/copper/flow33.php"); <!-- absolute path to flow.php -->
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("wmode", "transparent");
fo.write("flashcontent");
</script>

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on September 24, 2008, 12:21:12 am
Change flow.php to:
Code: [Select]
<?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 = cpg_db_query("SELECT p.* FROM {$CONFIG['TABLE_PICTURES']} AS p INNER JOIN {$CONFIG['TABLE_ALBUMS']} AS a ON a.aid = p.aid WHERE category NOT IN (9) AND filename LIKE '%.jpg' ORDER BY RAND() 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;
?>
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 24, 2008, 12:38:24 am

Your new flow.php gives no picture.  :'(

Then I changed "ORDER BY BY RAND" to "ORDER BY RAND". - Again no picture.

I don't know why. First I was so happy and now with the random it doesn't work. - Strange.

Thanks for your patience!

hama
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on September 24, 2008, 12:52:22 am
Try the code again. I had 2 "BY" in there.

You ask for so much, we're bound to make mistakes :)
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 24, 2008, 01:05:31 am

Something is wrong at the moment. I have a look tomorrow. Thanks and good Night.

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 24, 2008, 01:24:58 am

I couldn't wait and so I tried again. Everything works now and I'm happy!  :)

Thanks a lot for your big and professional help!

hama

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 24, 2008, 01:40:41 am

There is one issue in the newest flow_link.swf:

It doesn't respect "upright" (is that correct in English?) pictures.

133x100 gives 133x100

but

75x100 gives 133x100 (doesn't look good)

Sorry. - I hope you don't have to change a lot.

hama
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on September 24, 2008, 02:21:19 am
You may not like this one. Try the attached, it doesn't scale the images.
Edit: Removed attachment.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 24, 2008, 08:49:35 am

I think I didn't explain the problem good enough (your in the last post attached file has the same problem). I try it again:

In my gallery there is also a "flow" running (without link to intermediate). This one respects that the thumbs can have two sizes (133x100 or 75x100). Please see the first attached screenshot "flow-gallery-hama.jpg" (picture in the middle).

The "flow" for the front which you constructed for me in the last few days (and I'm very happy about that!!!) has everything I wish except that this version doesn't respect the 75x100 thumbs. It takes for example 20 pictures from the gallery (random works now!) and doesn't check if on of these thumbs has dimension 75x100, it just makes with every thumb 133x100.

Finally some pictures in the flow_link.swf look stretched because the don't have the right proportions. Please see the second attached screenshot "flow-link-front-hama.jpg" (the picture in the middle has originally 133x100 but now it's 75x100).

Thanks for looking into that.

hama

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Joachim Müller on September 24, 2008, 09:19:15 am
It doesn't respect "upright" (is that correct in English?) pictures.
I think you're refering to portrait orientation (where the width is smaller than the height), opposed to the term "landscape orientation" (width larger than height).
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 24, 2008, 06:27:29 pm

Yes, that's right. I wasn't able to explain that ...  :-\

I keep the two expressions "portrait" and "landscape" in mind, now.

@Joachim: Thanks, I hope it helps that rphMedia doesn't go crazy with me.  ::)



Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on September 25, 2008, 10:30:06 pm
Hi Hama,

That last attachment lets the orientation remain. Be careful when replacing flash files as sometimes they tend to stay in your cache until you physically remove it (by clearing).

Try replacing the flow_link with the last attached and tell me what you get (and give me a link).

I personally think it looks better when all images are the same size, but I'll let you be the judge :)
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 25, 2008, 10:43:13 pm

Hi Ron

I downloaded again your last file, installed it and cleared the cache. That's the link:

http://orst.ch/index33.php (http://orst.ch/index33.php)

I personally prefer "portrait" and "landscape".

Can you change it? That would be very nice!

Greetings

hama
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on September 25, 2008, 11:08:32 pm
Hama, I just checked about 5-6 of your thumbs and none of them are portrait, they are all landscape. I assure you that that last file respects orientation. I just tried my file with your PHP file and none of them are portrait??? When I try it with MY PHP file, I have several that are portrait and they work fine.

Try removing the random setting (put it back to DESC), that way we can see if the thumbnails are actually portrait or not, because it will be a fixed query.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 26, 2008, 08:13:00 am

Hi Ron

I changed back to "ORDER BY pid DESC".

That's the actual flow-file:

Code: [Select]
<?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 = cpg_db_query("SELECT p.* FROM {$CONFIG['TABLE_PICTURES']} AS p INNER JOIN {$CONFIG['TABLE_ALBUMS']} AS a ON a.aid = p.aid WHERE category NOT IN (9) AND filename LIKE '%.jpg' ORDER BY pid DESC LIMIT 30");
$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;
?>

The following picture in the gallery has portrait orientation:

http://orst.ch/copper/displayimage.php?pos=-34314

but comes with landscape orientation in the folw of the homepage (it's Nr. 21):

http://orst.ch/index33.php

Maybe you wonder what we did at school (see the picture): First a teacher showed that it is possible to drink water upside down and second the pupils had to build bridges only with thin paper and we tested how many book the bridge was able to hold (the best bridge was close to 20 books).

;)

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on September 26, 2008, 11:46:36 am
OK, think I got it. Try the attached.

You're so picky  ;D
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on September 26, 2008, 01:11:37 pm


OK, think I got it. Try the attached.


Yes! You got it! Now it works just perfect! Yeah!  :)



You're so picky  ;D


At this moment my girlfriend is standing behind me - smiling about me - and saying "Hey, who's this man? Why does he know you so good?".  ::)

Ron, thank you so much for your help - and again, have a good time!

hama
 
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Joachim Müller on September 26, 2008, 08:14:51 pm
Ron, imo you should share your amazon wishlist here or refer to a donation button by paypal or similar ;-)
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on September 27, 2008, 09:06:48 pm
Ron, imo you should share your amazon wishlist here or refer to a donation button by paypal or similar ;-)
Yes, Hama did offer but nah, (I know it's cliche, but) just giving back. I like sprucing up their CPGs!
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jeepguy_1980 on November 10, 2008, 11:25:08 pm
I have read the topics for each of the slider mods multiple times, but the scroller is still showing up blank on my site.

http://www.loopfamily.net/flow_link_example.htm

I have ensured that the flow_link.php, flow_link.swf,  and AC_RunActiveContent.js files are in my gallery root (/CPG).
I have tried using
Code: [Select]
'FlashVars', 'xmlPath=http://loopfamily.net/CPG/flow_link.php', <!--Absolute path to 'flow.php'-->and
Code: [Select]
'FlashVars', 'xmlPath=http://www.loopfamily.net/CPG/flow_link.php', <!--Absolute path to 'flow.php'-->
I have tried deleting my .htaccess file but none of that has worked.  I have cleared my cache before each attempt.

Do you have any ideas?

Thanks
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Nibbler on November 11, 2008, 12:10:36 am
Change mysql_query to cpg_db_query in flow_link.php
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jeepguy_1980 on November 11, 2008, 12:22:52 am
That worked. Thanks.

If that was posted previously, I'm not sure how I missed it.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jeepguy_1980 on November 11, 2008, 02:44:49 am
Can the auto scrolling be disabled via a parameter? Or is that a part of the swf file?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Cath22 on November 13, 2008, 01:35:47 pm
Hi there, I also was interested in this image scroller.  I first tried the AC_RunActiveContent.js, in the beginning it gave me red boxes scrolling with the example. But with foto's it didnt work nicely. I followed the thread from Hama and liked that option. I saw he used different java which i believe is already superseeded by newer version, so i tried the swfobject.js (version 1.5). That worked at some point and the one made for Hama was also just what i wanted.
I carried out some more enhancement. Than i noticed that the scroller didnt work in Explorer (i use Firefox 3). Then I closed Firefox and upon reopening the scroller didnt work anymore (perhaps I had been working with a cached version???). I have been trying everything now, tested with other swf files, which do work (for instance swfobject.html). So nowi have come to a point that in both browsers the scroller is still not visible, but somehow working, upon clicking i see the intermediate picture.  I can see the www is chopped of for some reason, i dont know if that has something to do with it.
Is the swf then damaged or what is going on? Why did it work at some point and then not anymore?

Here is the code i use in
Code: [Select]
<?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 = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE filename LIKE '%.jpg' ORDER BY RAND() LIMIT 10");
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;
?>

and in the anycontent page
Code: [Select]
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css" media="screen">
   
    object {
    outline:none;
     }
     
    #flashcontent {
width: 500px;
height: 220px;
}
   
</style>

</head>
<body bgcolor="#000000" scroll="auto">
<tr align="center" valign="middle"><td>

<div id="flashcontent"><strong>You need to upgrade your Flash Player</strong>
</div>

<script type="text/javascript">
// <![CDATA[

var so = new SWFObject("flow_link.swf", "flow_link", "500", "220", "9", "#FFFFFF");

so.addVariable("xmlPath", "http://www.fotofantastic.nl/flow33.php"); <!-- absolute path to flow.php -->
so.addParam("quality", "high");
so.addParam("scale", "noscale");
so.addParam("wmode", "transparent");
so.write("flashcontent");

// ]]>
</script>
</td></tr>

<p><br>

  <tr align="center" valign="middle"><td class="tableb" >
  <div align="justify"><img src ="images/cath_marco.png" align="left" valign="30">
  <p>
  <b>Welkom op onze site</b>. Wij zijn Cathelijne en Marco. In onze mooie relatie doen wij veel leuke dingen zoals dierenparken en motorraces bezoeken, motorrijden en van dat alles fotos te nemen. Daarnaast doen wij met veel plezier fotoshoots waarbij mijn allerliefste Cath model is en ik de fotograaf ben, (omdat wij een liefdesteam zijn).<BR />
  Veel kijkplezier op deze door Cathelijne gemaakte website, Cath & Marco. &nbsp; &nbsp; &nbsp; &nbsp; P.S. deze site is nog in aanbouw, dus als iets (nog) niet goed werkt...... </div>
  </td></tr>
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on November 13, 2008, 02:09:43 pm
Link?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Cath22 on November 13, 2008, 02:37:53 pm
Link is http://www.fotofantastic.nl
Everything is in root, at first I added modifications by stramm

to recap: the initial flow mod just gave moving red squares, no pictures, flow_link doesnt show anything but does link to intermediate.

On another site i have installed in subdir (and which is a clean install)

http://www.transgendernederland.nl/coppermine

I have tested on this second site with AC_RunActiveContent.js and that gives the same result as above stated, except that I just tried there the "Image Scroller - based on ???" mod and that one works instantly ???????

P.S. coppermine is in both installed through a utility from my provider, i dont have rights to install myself, but i can do modifications.

Thanks in advance.
Cath
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on November 13, 2008, 03:31:54 pm
P.S. coppermine is in both installed through a utility from my provider

This is obviously the problem. I really can't help with that. The PHP file doesn't even connect to the database.

Sorry.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Cath22 on November 13, 2008, 03:49:08 pm
I find that hard to believe since it worked at first, and why would your other scroller work perfectly ??? see http://www.transgendernederland.nl/coppermine
(same provider). If it doesnt connect to the database the other ones should have the same problem not?
Also i just installed there lightbox js modification and that also works perfectly.

Thanks in advance
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on November 13, 2008, 04:06:39 pm
Here's the case in point - http://www.fotofantastic.nl/flow_link.php - nothing.

Whereas, this domain - http://www.transgendernederland.nl/coppermine/scroller.php - 4 images are there.

At http://www.fotofantastic.nl , the flash file is loading fine, your images are not. Not to mention that you have Wordpress intermingled in there. I simply have no idea how your files are setup to help.

You could try changing mysql_query to cpg_db_query in flow_link.php like Nibbler suggested, but if that doesn't work, I have no idea.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jeepguy_1980 on November 13, 2008, 04:08:31 pm
Sorry to ask the same question again, but maybe you missed it.

Can the auto scrolling be turned off?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on November 13, 2008, 04:12:55 pm
Sorry to ask the same question again, but maybe you missed it.

Can the auto scrolling be turned off?
Give me a few days and I can provide one with the scrolling off. Which exact download do you have? 900x400 w/description?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Cath22 on November 13, 2008, 04:36:42 pm
Here's the case in point - http://www.fotofantastic.nl/flow_link.php - nothing.

Whereas, this domain - http://www.transgendernederland.nl/coppermine/scroller.php - 4 images are there.

At http://www.fotofantastic.nl , the flash file is loading fine, your images are not. Not to mention that you have Wordpress intermingled in there. I simply have no idea how your files are setup to help.

You could try changing mysql_query to cpg_db_query in flow_link.php like Nibbler suggested, but if that doesn't work, I have no idea.

Ok, I dont know about the wordpress, maybe thats from the mods added.
Anyway since the scroller works fine on http://transgendernederland.nl/coppermine could i derive that the flow_link also should work there??
I just placed a flow_link.swf in there, edited the scroller.php to flow_link.php and edited the anycontent.php. And then same problem pops up, flash is loading, but no images. Any ideas on this then, since its a clean site.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Cath22 on November 13, 2008, 05:14:18 pm
This is so weird, i went back to the scroller without the link to intermediate and now suddenly it works again while i didnt change anything ?????
stranger than life, but I'm happy that it works, hopefully also after making it fit in the theme.

And lastly I do hope it will also work with the intermediate one, fingers crossed.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Cath22 on November 13, 2008, 05:22:34 pm
This is so weird, i went back to the scroller without the link to intermediate and now suddenly it works again while i didnt change anything ?????
stranger than life, but I'm happy that it works, hopefully also after making it fit in the theme.

And lastly I do hope it will also work with the intermediate one, fingers crossed.

Ok scrap that, closing the browser and opening, it gave nothing again (in the bar underneath it says waiting for "sitename". At some point the red boxes again. So i guess the problem is in the server, its taking to long or something?????????
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: jeepguy_1980 on November 13, 2008, 07:26:25 pm
Give me a few days and I can provide one with the scrolling off. Which exact download do you have? 900x400 w/description?

You don't have to make a custom one. I just didn't know if I could pass in a parameter that told it to not scroll.

I have two versions that I use.

Both are without description.

One is 900x250 and the other is 900x400.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Cath22 on November 13, 2008, 09:06:31 pm
Ok scrap that, closing the browser and opening, it gave nothing again (in the bar underneath it says waiting for "sitename". At some point the red boxes again. So i guess the problem is in the server, its taking to long or something?????????

What do you know I solved the problem.....
In the "Config - General settings" there is a line with "URL of your coppermine gallery folder", there I had forgotten to place the www in the link. By adding this, all the scroll mods did work instantly. So its a thing to keep in mind hihi :D

Greetz
Cath
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Cath22 on November 17, 2008, 10:10:09 pm
Question: In both this version as the scroller version the pictures are mirrored, which is a nice touch. In the scroller shows them in full size. This version though they are faded out to show only half, which I like, but the person I am making the site for does not.... Is it possible to make the last version made for Hama (which I also use), with full mirror versions?

Thanks in advance
Cath
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on November 18, 2008, 12:46:01 pm
Question: In both this version as the scroller version the pictures are mirrored, which is a nice touch. In the scroller shows them in full size. This version though they are faded out to show only half, which I like, but the person I am making the site for does not.... Is it possible to make the last version made for Hama (which I also use), with full mirror versions?

Thanks in advance
Cath

I don't really understand what you're saying nor the request.
Title: 900x400, no Scroll, No Desc
Post by: rphMedia on November 18, 2008, 01:06:20 pm
You don't have to make a custom one. I just didn't know if I could pass in a parameter that told it to not scroll.

I have two versions that I use.

Both are without description.

One is 900x250 and the other is 900x400.
900x400, no scroll, no description attached.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Cath22 on November 18, 2008, 02:15:49 pm
I don't really understand what you're saying nor the request.

Well let me try to rephrase. In the scroller based on .... you see the pictures and underneath they are mirrored into a slightly fading darkness, which is very nice. This is the same with this image scroller based on iTunes except the pictures underneath are much more faded out, you can only see half of them.
Is it possible to see the image scroller based on iTunes with underneath the mirrored images in the same way as with the scroller based on......?
And if so I am using the last swf file you created for Hama. I have included this one.

Hope this makes it clearer.
Thanx
Title: 500x200 Full Mirror
Post by: rphMedia on November 18, 2008, 02:50:27 pm
Well let me try to rephrase. In the scroller based on .... you see the pictures and underneath they are mirrored into a slightly fading darkness, which is very nice. This is the same with this image scroller based on iTunes except the pictures underneath are much more faded out, you can only see half of them.
Is it possible to see the image scroller based on iTunes with underneath the mirrored images in the same way as with the scroller based on......?
And if so I am using the last swf file you created for Hama. I have included this one.

Hope this makes it clearer.
Thanx
Try the attached, has full mirror.
Title: Re: 500x200 Full Mirror
Post by: Cath22 on November 18, 2008, 03:07:33 pm
Try the attached, has full mirror.

Great !!!!!

Many thanks, also for the quick reply.

Greetz
Cath
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on December 09, 2008, 06:33:37 pm

Hi Ron

One user gave me the feedback that he can't see this add-on. He works with:

Kubuntu 8.10 (2.6.27-9-generic x86_64) with Firefox of Kubuntu and Flash 10.0rc12 via nspluginwrapper.

When he goes to http://orst.ch/index33.php (http://orst.ch/index33.php) he sees a white square instead of the add-on.

Do you have an idea?

Thanks!

hama
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on December 09, 2008, 07:39:30 pm
No, sorry, I don't have any idea. I don't even know what Kubunto is so it would be really hard for me to help.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on December 09, 2008, 08:07:02 pm

No problem at all. Thanks for having a look at it.

Greetings

hama

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Nibbler on December 09, 2008, 10:57:00 pm
It's a GNU/Linux distribution. I see the same problem also. I get this message in the console, not sure if it is related.

Code: [Select]
Warning: Use of getBoxObjectFor() is deprecated. Try to use element.getBoundingClientRect() if possible.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on December 10, 2008, 08:36:25 pm

I see the same problem also.


Hi Nibbler

Thanks for your feedback. Can you please check the index.php of my coppermine installation.
On the top there is the same image scroller but without link to intermediate. Can you see this version?

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

Maybe there are some differences between these two versions and this will help to find a solution.

Greets

hama
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Nibbler on December 10, 2008, 09:39:32 pm
Yes, I can see that version.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on December 12, 2008, 09:21:47 pm

Once again @Nibbler:

First try:

What about this version? Can you see the flash plugin? I changed from "flashobject.js" to "AC_RunActiveContent.js".

--> http://orst.ch/index44.php (http://orst.ch/index44.php)

Second try:

What about this version? Can you see the flash plugin? I changed from "flashobject.js" to the newest "swfobject.js".

--> http://orst.ch/index55.php (http://orst.ch/index55.php)

Sorry, I couldn't try it for myself. I wasn't able to install this Linux version in my VMware and I know, that you are working with Linux. Under Windows I can see both versions in IE and FF.

Thanks

hama

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Nibbler on December 12, 2008, 09:33:08 pm
I can't see either of those.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on December 12, 2008, 09:42:40 pm

Thanks for testing.  :)

For the moment that's the end of my know-how. It's too complex.  :-\

hama

Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on January 06, 2009, 07:27:45 am
I've got a new question around "Image Scroller - based on iTunes [link to Intermediate]":

Is it possible to have a reload after for example 10 minutes to get new pictures? We tried it with a bit javascript but it doesn't work.

Code: [Select]
$.timer(600000, Orst.Index.reload_slideshow);
The problem is that I can reload the page "by hand" or with "ctrl r" and I don't get new pictures. I have to close the browser open it again and then I get new pictures.

The scroller is on the homepage and it would be a nice mod when it would be reload for itself.

--> http://orst.ch/ (http://orst.ch/)

Does maybe someone know a solution?   ;)

Thanks  :)

hama
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on January 06, 2009, 12:45:56 pm
Is it possible to have a reload after for example 10 minutes to get new pictures? We tried it with a bit javascript but it doesn't work.

The only way that I know of is to reload the page:

Code: [Select]
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="refresh" content="60000">


Is this what you want?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: hama on January 06, 2009, 01:07:32 pm
Hi Ron

This method will refresh the whole page. My idea is only to "refresh" the "flash snippet".

I do it with some other pieces of the page (for example the news on the right side) but with the scroller it doesn't work.

Maybe it is not possible.

Have a good day!

hama
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on January 06, 2009, 01:10:45 pm
Sounds like a job for AJAX. I'm not real familiar with it.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: MLP on February 13, 2009, 08:55:47 pm
Safari does not seem to work with Image scroller script.
Please see attached screen shot with errors. I just discovered this from a friend. I have tested the image scroller on IE7.x and IE6.x and Firefox. All are on windows. All browsers work well.
The error is #2004 on Flash Player 10.
Has anyone experienced this problem? and if so is there a fix?

Incidentially the scroller is terrific!!!

Thanks

MLP
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on February 13, 2009, 09:03:22 pm
Sounds like a Safari problem to me.

I can't keep up with all the browser differences. It's bad enough that I do take IE & FF into consideration (doubles the workload).

If it's bothersome enough (only 4% use Safari at my site), I would remove the mod. Or there are ways to substitute the flash with an image, for example.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: MLP on February 13, 2009, 10:44:00 pm
Good idea.
I will substitute an image, with a browser detection. 
No need to keep up with all the browsers. Appreciate the quick response.

MLP
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Cath22 on February 14, 2009, 03:01:07 pm
Hi RpH,

strange thing, my scroller doesnt work on Explorer anymore, for no reason as far I can see, It works great on Firefox. The only thing recently changed on the site is that i have a guestbook implemented but that software runs separately. Also I have tried to upgrade, but then nothing of my changes worked anymore (overwritten), so I put back an backup. I'll have to implemented the 1.4.20 version more carefully.
But why it doesnt work??

My site http://www.fotofantastic.nl

Thanks
Cath
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on February 14, 2009, 03:26:48 pm
I just tried it with IE and it works fine  ???
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Cath22 on February 14, 2009, 03:31:03 pm
I just tried it with IE and it works fine  ???

Weird, my friend and I tested both and didnt work, maybe its network related?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: flapane on February 17, 2009, 11:52:35 pm
Hi
I downloaded the 600x300 version and put it for testing purposes at http://www.test.com/flow.htm
Anyway I have two requests, shown in this image:
(http://img19.imageshack.us/img19/9338/81469663xe3.jpg)

The portrait thumbs are bad sized, and I'd like to delete those upper and bottom black spaces, as I should embed the slideshow in a small space.
Thanks in advance!

p.s
what about releasing the source code?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Fabricio Ferrero on February 17, 2009, 11:55:58 pm
Please, attach images instead of hot linking. As explained in board rules.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: flapane on February 18, 2009, 11:43:59 am
Well, that's the attachment, then.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on February 18, 2009, 12:13:35 pm
You really need to read the entire thread. I'm sure you'll find what you're looking for.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: flapane on February 18, 2009, 12:22:50 pm
-Yesterday I already read the whole 11 pages, and couldn't find an attachment with portraits well oriented for the 600x300 swf.
-If you scale it, you won't delete those two black parts, they are only scaled.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: flapane on February 18, 2009, 12:31:52 pm
For all that wanted a smaller version, try the attached. It should maintain aspect ratio, but still scale the content within the stage.

This one is 600x300.

Here's a quoting of the file I am using, and that is the result.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on February 18, 2009, 12:58:53 pm
I'll see what I can do about the scaling.

If you get rid of the "black parts", you'll lose some of the mirroring effect. Is that what you want?

Try changing this line:
Code: [Select]
'wmode', 'window',
to:
Code: [Select]
'wmode', 'transparent',

Might be what you need.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: flapane on February 18, 2009, 01:03:55 pm
Yeah that transparent trick wouldn't be bad, but I would phisically need to delete those two black or whatever color/transparent parts, as I have a thin space where to put that slideshow.
The upper one wouldn't change anything, and the bottom part should be cutted 'till the mirrored image border.
I don't know if you get well what I said.
Thanks anyway.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: flapane on February 24, 2009, 12:55:17 pm
The portrait thumbs are bad sized, and I'd like to delete those upper and bottom black spaces, as I should embed the slideshow in a small space.
Thanks in advance!

p.s
what about releasing the source code? it would be easier to us to fit our needs

hi, any news?
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Joe Carver on April 24, 2009, 02:00:03 am
This mod. is magic! Thanks, you put in a lot of time and patience into this and the results are fantastic. Your dozens of pages of support amaze me too. Great work. It was easy to set up on my two galleries
(The low cpu load in all of the browsers I've tested this with so far with is nice too)
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Imustbethick on May 03, 2009, 09:32:21 pm
Hi, First of all I want to say this is probably the nicest modification I have ever seen anywhere on any gallery package, I have seen it on loads of sites (I went looking) and love it, unfortunately I am living up to my uiser name once again, I seem to be unable to get it working :'(

I had a similar problem with a plugin yesterday and ended up asking for help so once again I am here begging for assistance! :o

My gallery can be found at http://www.rebelslair.co.uk/pic_gallery.

In case it was a cache problem I have cleared all cache's and even tried with 3 different computers to see if it was an issue with my PC, but it looks like i have done something silly and unfortunately I cannot find what as it was the same on all of them.

I have uploaded all the files to my gallery root having edited the flow_link.php file as I THINK it should be.
Code: [Select]
<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
$path=$CONFIG['http://www.rebelslair.co.uk/pic_gallery'];
$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' AND aid = 44 ORDER BY RAND() LIMIT 25");
$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;
?>

I have also edited the anycontent.php file according to the instructions here I think
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>Flow Link Example</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', '800',
'height', '250',
'src', 'flow_link',
                   'FlashVars', 'xmlPath=http://www.rebelslair.co.uk/pic_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', 'transparent',
'devicefont', 'false',
'id', 'flow_link',
'bgcolor', '#000000',
'name', 'flow_link',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','always',
'movie', 'flow_link',
'salign', ''
); //end AC code
}
</script>
</td></tr></table>
</body>
</html>

If someone could have a look for me and tell me what I have done wrong I would be very grateful.

Thanks in advance

http:www.rebelslair.co.uk/pic_gallery (http://http:www.rebelslair.co.uk/pic_gallery)

ps. In case it was not obvious, I am a newbie to this type of coding, and whilst I have read as much as I could about coppermine modifications on this site, I have ended up confusing myself.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Joe Carver on May 04, 2009, 12:06:16 am
A few points, this mod. is in a no support thread, using terms like begging will probably get you more ignored than noticed and that the forum is not for detailed instructions on how to code php and html. I can say this with certainty because I have read the same words many times before here throughout the support form. I can also say this because I know virtually nothing about coding, editing and html  myself. It took me more than a few hours to get this working to my satisfaction.

You must be patient and read through the thread for guidance  Read this thread also, I recommend that you try those examples and test files too.  (http://forum.coppermine-gallery.net/index.php/topic,44042.0.html)

The first thing that I saw when I went to your site was that AC_RunActiveContent.js was not immediately visible in the <head> of your home page, meaning that you did not put it into your template file. Therefore you are not off to a good start...... I can't instruct you on how to do that kind of editing, you'll have to read and learn the Coppermine docs.

My best instruction to you is to
1) get it to work with your site/file paths etc. using the flow_link_example.htm file. That one is practically ready to run with only the most minor of edits. You are in too deep if you can't get something out of that file.

2) Read about the different styles of images and the troubles people saw in both threads. Test to see what works for you and your needs. Use the flow_link_example.htm that is provided

3) Before you try to drop the html into your anycontent.php see if you are able to successfully manipulate anycontent.php at all. Read up if you cannot.

4) Once you are able to get it into anycontent.php keep in mind that this is an unsupported mod. You might see interference with your theme or other content in the page. Right now I am seeing this mod. not work for my site when a language other than english_us is selected, a flash error console confirms my observations and it is still being worked on.
You might see thumbs or images  not to your liking, but you will see a lot of support in the two threads about this mod. and many views to choose from.

Read about and use the  Tools recommended by the devs   (http://forum.coppermine-gallery.net/index.php/topic,31423.0.html)

Everything above is how I got this working on my two galleries.
Good Luck


Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Imustbethick on May 04, 2009, 11:17:04 pm
Hi Guys,
I just wanted to once again say thanks for a fantastic mod.

It has taken a lot of hours trying to understand and I have a lot less hair than I did at the start of this exercise but I finally got there.

Anyway whilst it may be a little daunting for complete newbies, I would just like to say stick at it, you can eventually get there (I did so anyone can)

Regards and best wishes to all concerned.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Joe Carver on August 22, 2009, 06:15:16 pm
@ rphMedia,

One quick question, non-technical, there is no rush to reply.

I have been working this mod. around to make a plug-in version.

The plugin would need to have your files, AC_RunActiveContent.js and flow_link.swf included.

Are there any issues with, or do you have any objections to, redistributing those files?

Thanks in advance - since I'm only 30-40% into this there won't be anything happening soon.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: rphMedia on August 22, 2009, 10:10:06 pm
Not at all, as long as they're not sold in any way, there's no problems.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: flapane on April 08, 2010, 03:44:49 pm
Hey, I think I'll use the mod for my new home page layout (you gave me a 600x300 version a year ago):
(http://i.imgur.com/ZjfzTs.jpg) (http://i.imgur.com/ZjfzT.jpg)

 :)
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: flapane on April 08, 2010, 03:48:55 pm
Unfortunately there still is the issue with the photos in portraits mode not well scaled (they are stretched).
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: Joachim Müller on April 08, 2010, 04:04:33 pm
You're not respecting board rules (http://forum.coppermine-gallery.net/index.php/topic,55415.0.html), so why should anybody look into your issues?Please do not clutter this announcement thread with replies to what I just said, as those rules are generic and not related to the issues that should be discussed in this thread. You have been told about board rules in previous threads, so you should be aware of them already.

Joachim
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: flapane on April 08, 2010, 04:06:10 pm
O.o

I didn't ask him to resolve anything, I just wanted to tell him: Hey, your plug-in is really useful, I'll include it on my page
 ???

Well, delete that post, anyway.
Title: Re: Image Scroller - based on iTunes [link to Intermediate]
Post by: heavensportal on May 15, 2010, 03:42:14 am
I installed this on my gallery and love it, it works very nicely but I was just wondering how to change the title color. The images scroll and just above the center one is the title of the image...on light backgrounds the color is shown as black but on my dark theme it is shown as a dark charcoal.

I would like to change it to red color of font.

http://thefantasiesattic.net/attic/cpg/index.php

Also I was wanting to ask, does this plugin draw the images to scroll from ANY album or is it like the cpg settings and is by group allowance....which means our adult group images will not be seen by anyone other than that group I hope.