Advanced search  

News:

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

Pages: 1 ... 4 5 6 7 [8] 9 10 11 12   Go Down

Author Topic: Image Scroller - based on iTunes [link to Intermediate]  (Read 254650 times)

0 Members and 1 Guest are viewing this topic.

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #140 on: September 22, 2008, 11:34:52 pm »

OK, I'll have to get to that later. Probably tomorrow.

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #141 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.
« Last Edit: September 26, 2008, 11:48:07 am by rphMedia »
Logged

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #142 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>

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

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #143 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;
?>
« Last Edit: September 24, 2008, 12:51:25 am by rphMedia »
Logged

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #144 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
Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #145 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 :)

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #146 on: September 24, 2008, 01:05:31 am »


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

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

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #147 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

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

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #148 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
Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #149 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.
« Last Edit: September 26, 2008, 11:47:18 am by rphMedia »
Logged

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #150 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

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #151 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).
Logged

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #152 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.  ::)



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

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #153 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 :)

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #154 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

I personally prefer "portrait" and "landscape".

Can you change it? That would be very nice!

Greetings

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

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #155 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.

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #156 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).

;)

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

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #157 on: September 26, 2008, 11:46:36 am »

OK, think I got it. Try the attached.

You're so picky  ;D

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #158 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
 
Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #159 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 ;-)
Logged
Pages: 1 ... 4 5 6 7 [8] 9 10 11 12   Go Up
 

Page created in 0.039 seconds with 20 queries.