Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog
December 04, 2008, 07:54:45 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Coppermine Live-Demo 1.5
For those who want to preview Coppermine before actually installing it on a real production server we have created a Live-Demo. It is just a package that provides a local webserver with a pre-configured Coppermine install rolled into one package to preview the "real" Coppermine Photo Gallery on your Windows box. The webserver is being started by only executing one single file, so you don't have to go through the troubles of setting up a webserver environment on your local PC just for evaluation purposes. The sole purpose of the live-demo is to give you an impression how the admin backend of Coppermine looks and feels. It is only meant to be used for evaluation purposes. You mustn't run it as a production system, because it has deliberately been configured in an unsecure manner to provide a newbie-proof experience in the first place.
The Live-Demo 1.5 is not the release of cpg1.5.x - it is version 1.5 of the Live-Demo that is built against cpg1.4.18
[more]
   Home   Help Search Board rules Login Register  
Pages: 1 ... 3 4 5 6 [7] 8 9 10   Go Down
  Print  
Author Topic: Image Scroller - based on iTunes [link to Intermediate]  (Read 27191 times)
0 Members and 1 Guest are viewing this topic.
twicklund
Coppermine newbie

Posts: 1


« 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 Topic starter
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 492


***muvipix.com***


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

Regards,

Ron
hama
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 204



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

[
hama
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 204



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

[
hama
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 204



« 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

[
rphMedia Topic starter
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 492


***muvipix.com***


WWW
« 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? Smiley

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

Regards,

Ron
hama
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 204



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

[
rphMedia Topic starter
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 492


***muvipix.com***


WWW
« 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

Regards,

Ron
Nibbler
Dev Team member
Coppermine addict
****
Gender: Male
Posts: 18180



WWW
« Reply #128 on: September 21, 2008, 07: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

I want to believe.
hama
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 204



« 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

[
hama
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 204



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

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

[
rphMedia Topic starter
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 492


***muvipix.com***


WWW
« 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.
Logged

Regards,

Ron
hama
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 204



« 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.  Shocked





Logged

[
rphMedia Topic starter
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 492


***muvipix.com***


WWW
« Reply #133 on: September 22, 2008, 08:29:26 PM »

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

Regards,

Ron
hama
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 204



« 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!!!  Wink

Logged

[
rphMedia Topic starter
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 492


***muvipix.com***


WWW
« 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).
Logged

Regards,

Ron
rphMedia Topic starter
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 492


***muvipix.com***


WWW
« 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
Logged

Regards,

Ron
hama
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 204



« 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

[
rphMedia Topic starter
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 492


***muvipix.com***


WWW
« 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.
Logged

Regards,

Ron
hama
Contributor
Coppermine frequent poster
***
Gender: Male
Posts: 204



« 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!  Roll Eyes

Logged

[
Pages: 1 ... 3 4 5 6 [7] 8 9 10   Go Up
  Print  
 
Jump to:  

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