Image Scroller - based on iTunes [link to Intermediate] - Page 9 Image Scroller - based on iTunes [link to Intermediate] - Page 9
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Image Scroller - based on iTunes [link to Intermediate]

Started by rphMedia, December 05, 2007, 02:17:20 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

rphMedia

Quote from: 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 ;-)
Yes, Hama did offer but nah, (I know it's cliche, but) just giving back. I like sprucing up their CPGs!

jeepguy_1980

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
'FlashVars', 'xmlPath=http://loopfamily.net/CPG/flow_link.php', <!--Absolute path to 'flow.php'-->
and '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

Nibbler

Change mysql_query to cpg_db_query in flow_link.php

jeepguy_1980

That worked. Thanks.

If that was posted previously, I'm not sure how I missed it.

jeepguy_1980

Can the auto scrolling be disabled via a parameter? Or is that a part of the swf file?

Cath22

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 <?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
<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>
qui custodiet ipsos custodes

rphMedia


Cath22

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
qui custodiet ipsos custodes

rphMedia

Quote from: Cath22 on November 13, 2008, 02:37:53 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.

Cath22

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
qui custodiet ipsos custodes

rphMedia

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.

jeepguy_1980

Sorry to ask the same question again, but maybe you missed it.

Can the auto scrolling be turned off?

rphMedia

Quote from: 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?
Give me a few days and I can provide one with the scrolling off. Which exact download do you have? 900x400 w/description?

Cath22

Quote from: 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.

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.
qui custodiet ipsos custodes

Cath22

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.
qui custodiet ipsos custodes

Cath22

Quote from: 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.

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?????????
qui custodiet ipsos custodes

jeepguy_1980

Quote from: rphMedia on November 13, 2008, 04:12:55 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.

Cath22

Quote from: Cath22 on November 13, 2008, 05:22:34 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
qui custodiet ipsos custodes

Cath22

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
qui custodiet ipsos custodes

rphMedia

Quote from: 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

I don't really understand what you're saying nor the request.