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 ... 3 4 5 6 [7] 8 9 10 11 12   Go Down

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

0 Members and 1 Guest are viewing this topic.

twicklund

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #120 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
Logged

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

hama

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

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 #123 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.  :)


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 #124 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

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

Thanks in advance.

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

hama

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

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
500 x 200
« Reply #127 on: September 21, 2008, 07:33:38 pm »

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

Edit: fixed attachment.
« Last Edit: September 22, 2008, 10:22:39 pm by rphMedia »
Logged

Nibbler

  • Guest
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #128 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().
Logged

hama

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

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: 500 x 200
« Reply #130 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

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

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

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

hama

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





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 #133 on: September 22, 2008, 08:29:26 pm »

Didn't have my morning coffee yet, fixed :)

hama

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

--> 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 but linked to intermediate.

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

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 #135 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).

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 #136 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

hama

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

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 #138 on: September 22, 2008, 10:49:47 pm »

They are too high at the moment.
I don't understand what you want there.

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Image Scroller - based on iTunes [link to Intermediate]
« Reply #139 on: September 22, 2008, 10:57:47 pm »


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

Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!
Pages: 1 ... 3 4 5 6 [7] 8 9 10 11 12   Go Up
 

Page created in 0.05 seconds with 20 queries.