Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
July 05, 2009, 01:56:18 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Maintenance release cpg1.4.25 - upgrade recommended
The Coppermine development team is releasing an update for Coppermine in order to fix an issue with http uploads that could occur in particular versions of PHP.The fix is not security-critical, so if your gallery is running fine with cpg1.4.23 or cpg1.4.24 you don't need to upgrade. If you are running an older version than cpg1.4.23, you must update to this latest version as soon as possible because of the security impact (the past few maintenance releases before cpg1.4.24 all were security-related).
[more]
   Home   Help Search Board rules Login Register  
Pages: 1 ... 3 4 5 6 [7] 8 9 10 11   Go Down
  Print  
Author Topic: Image Scroller - based on iTunes [link to Intermediate]  (Read 44572 times)
0 Members and 1 Guest are viewing this topic.
twicklund
Coppermine newbie

Posts: 1


« Reply #120 on: August 29, 2008, 02: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 Topic starter
Contributor
Coppermine addict
***
Gender: Male
United States United States

Posts: 507


***muvipix.com***


WWW
« Reply #121 on: August 29, 2008, 10:46:36 am »

If you look at the output of flow.php, you'll see the structure you would need for your images:
Code:
<?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:
FlashVars='xmlPath=http://yoursite.com/created_xml.xml

Unless I'm not understanding what you actually want.
Logged

hama
Contributor
Coppermine frequent poster
***
Gender: Male
Switzerland Switzerland

Posts: 214



« Reply #122 on: September 12, 2008, 01: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:
$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  Smiley

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
***
Gender: Male
Switzerland Switzerland

Posts: 214



« Reply #123 on: September 20, 2008, 04: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:
$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  Smiley



Please, can somebody give me a hint.  Smiley


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
***
Gender: Male
Switzerland Switzerland

Posts: 214



« Reply #124 on: September 20, 2008, 04: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 Topic starter
Contributor
Coppermine addict
***
Gender: Male
United States United States

Posts: 507


***muvipix.com***


WWW
« Reply #125 on: September 20, 2008, 10: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? Smiley

And yes, I can make you a re-sized version, give me a few days.
Logged

hama
Contributor
Coppermine frequent poster
***
Gender: Male
Switzerland Switzerland

Posts: 214



« Reply #126 on: September 21, 2008, 05:39:51 pm »


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

@Nibbler:
rphMedia recommends you as SQL-professional (and I know that this is true!  Smiley ). 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:
$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 Topic starter
Contributor
Coppermine addict
***
Gender: Male
United States United States

Posts: 507


***muvipix.com***


WWW
« Reply #127 on: September 21, 2008, 06:33:38 pm »

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

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

Nibbler
Dev Team member
Coppermine addict
****
Gender: Male
United Kingdom United Kingdom

Posts: 19041



WWW
« Reply #128 on: September 21, 2008, 06:44:53 pm »

Code:
$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

Deny everything.
hama
Contributor
Coppermine frequent poster
***
Gender: Male
Switzerland Switzerland

Posts: 214



« Reply #129 on: September 22, 2008, 06: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
***
Gender: Male
Switzerland Switzerland

Posts: 214



« Reply #130 on: September 22, 2008, 06: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:

<?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:

<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!  Smiley

Logged

Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!
rphMedia Topic starter
Contributor
Coppermine addict
***
Gender: Male
United States United States

Posts: 507


***muvipix.com***


WWW
« Reply #131 on: September 22, 2008, 09: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.
Logged

hama
Contributor
Coppermine frequent poster
***
Gender: Male
Switzerland Switzerland

Posts: 214



« Reply #132 on: September 22, 2008, 07:25:24 pm »



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


You fixed it but you loaded an flvPlayer.  Shocked





Logged

Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!
rphMedia Topic starter
Contributor
Coppermine addict
***
Gender: Male
United States United States

Posts: 507


***muvipix.com***


WWW
« Reply #133 on: September 22, 2008, 07:29:26 pm »

Didn't have my morning coffee yet, fixed Smiley
Logged

hama
Contributor
Coppermine frequent poster
***
Gender: Male
Switzerland Switzerland

Posts: 214



« Reply #134 on: September 22, 2008, 09: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!!!  Wink

Logged

Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!
rphMedia Topic starter
Contributor
Coppermine addict
***
Gender: Male
United States United States

Posts: 507


***muvipix.com***


WWW
« Reply #135 on: September 22, 2008, 09: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).
Logged

rphMedia Topic starter
Contributor
Coppermine addict
***
Gender: Male
United States United States

Posts: 507


***muvipix.com***


WWW
« Reply #136 on: September 22, 2008, 09: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
Logged

hama
Contributor
Coppermine frequent poster
***
Gender: Male
Switzerland Switzerland

Posts: 214



« Reply #137 on: September 22, 2008, 09: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 Topic starter
Contributor
Coppermine addict
***
Gender: Male
United States United States

Posts: 507


***muvipix.com***


WWW
« Reply #138 on: September 22, 2008, 09:49:47 pm »

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

hama
Contributor
Coppermine frequent poster
***
Gender: Male
Switzerland Switzerland

Posts: 214



« Reply #139 on: September 22, 2008, 09: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!  Roll Eyes

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   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.115 seconds with 19 queries.