Imageflow (coverflowish JS animation) - Page 6 Imageflow (coverflowish JS animation) - Page 6
 

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

Main Menu

Imageflow (coverflowish JS animation)

Started by Timos-Welt, March 25, 2008, 06:52:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

YBnormal

OK, thank you for your time taken to look at it for me. As long as it's working for others then it's not a problem.

YBnormal

I'm sorry to be a bother, but I have since checked this on 3 different computers at different locations and I'm still seeing the same 12 images. The order of the images is shuffling around, but not the actual images.

I think when you reloaded the page a few times you noticed that the images shuffled around and looked to be new images, but since you haven't seen these images before you didn't notice they were still the same 12. I hope that makes sense, lol. I've probably seen them 100 times since making them and then working on my coppermine page, so I kinda have them memorized.

So back to my question before:
Do you know why the "random image" selection isn't picking from the other 100+ images I have uploaded on there and only shuffling the same 12? I actually have it set on 15 images to show as well, and when I set it to show Last Additions/Most Viewed or Top Rated it's still the same 12 images.

Here's my gallery link again, so you don't have to backtrack for it: http://twistedreality.us/gallery/index.php

Timos-Welt

Thanks for your report, I understand what you mean. I'll have a look into this soon.

Juanito

plugin looks very nice, but it runs very slow on my config. just loading up the gallery homepage jumps my server's processors' usage to 100% (dual-core). i've tried setting it to as low as 7 random pictures, but the same thing happens. I have both intermediate and large-pictures. Some of the large pictures are over 2MB and I get the feeling the plugin is resizing each picture (using the large version) on the fly. i also have slider and enlargeit plugins on the gallery, but both of those load instantly.

any idea why it loads slowly? ive tried both Firefox 3 and IE 6. it takes a good 30 seconds to load just 10 photos. and some pictures dont' even load at all. On IE 6, i get some missing photo boxes (with the red X on the top left) but when I click on it, the intermediate photo does pop up with the enlargeit plugin. On firefox, it shows as just a blank white area. all my photos are fine, nothing is missing.

http://www.mckinleytech.org/gallery/index.php

I will try to see if this happens on my home PC. i'm at work atm.

Timos-Welt

Set "Enlarge to" to "intermediate size". ATM it tries to load the full size pics, and they are full of size indeed...

Juanito

under EnlargeIt! options, it is already set to "intermediate (normal) size" for "Enlarge to pic in". same problem.

Timos-Welt

You have to set this as well on the Imageflow config page, not only on the EnlargeIt! config page. Same is valid for the slider config page.

Juanito

that is what i meant. inside the "Imageflow PlugIn - v2.08" config tab, there's a section called "EnlargeIt! options". under that section, there is a setting called "Enlarge to" and it's set to "intermediate size".

I also see a setting labeled "Enlarge to pic in" in the "EnlargeIt! PlugIn - v2.14" config tab, but this is also set to "intermediate size" already.

Same goes for the "Enlarge to" setting under the Slider config tab which is also set to "intermediate size pic".

Here's my settings for Imageflow:

For Imageflow PlugIn - v2.08

Width of Imageflow: 100%
Number of pics: 10
Background color #: FFFFFF
Skip pics in portrait orientation: Yes
Show Imageflow in standard table of the theme: No
Show pics from which meta album: Random Files
Align: Center
Theme has table based layout: Yes

EnlargeIt! options  (but still inside the Imageflow Plugin - v2.08 settings)
Use EnlargeIt!: Yes
Enlarge to pic in: intermediate (normal size)

Hardcore Options
Correct upper border of animation: 0px
Generated reflexion images have size of normal intermediate pics in percent: 66%
Cache generated reflexion pics: Yes

thanks again for the help. its very appreciated  :)

Timos-Welt

Open codebase.php.

Find this line:
if (!cpgif_my_is_file($imageflow_reflfile)) $imageflow_reflfile=get_pic_url($imageflow_row,'fullsize');
and change to
if (!cpgif_my_is_file($imageflow_reflfile)) $imageflow_reflfile=get_pic_url($imageflow_row,'normal');

Then find all files under albums/ and its subfolders that start with refl_ and delete them. Now delete your browser cache and try again.

Does this help?

Juanito

there were two occurrences of the code you mentioned in codebase. i replaced both occurrences with the new code.

works like a charm now. thanks!

Juanito

yup yup. the application now makes small 10-15kb refl_ pictures instead of large 200kb+ refl_ pictures.

YBnormal

Have you been able to look into the issue I posted about? No rush, just wondering if you have yet. Thanks.

btw, the same issue occurs with the Slider plug-in on my gallery. I can report it in that topic too if you wish. I'm hoping it's an easy fix, because I really like the looks of both plugins. It would be awesome if they can both cycle through all of my images.

agr8lemon

This may be a little off topic, but what are you using on your demo site to get the slide show effect under the heading Random Files? Is that also Imageflow?

Thank you.

Timos-Welt

I use the following plugins on my demo gallery:
Slider
EnlargeIt!
Imageflow
CompressHTML

tripslip38

This is a great plugin and it is working very well on my site:

http://www.backcountrypilot.org/gallery

I run this in "Last Added" mode. I'd like to set it up so that by default the left-most (and true last added) photo is at the front. In the default state, the center image of the set is at the forefront, but it can be confusing because to get to the actual last added photo, a user must click on the far left thumb which is slightly obscured.

I don't even know where to start to make this mod. Any clues? Timo?

Thanks,
Zane

Timos-Welt

0. Unpack the ZIP file and go to folder js.
1. Delete imageflow.js and imageflowenl.js.
2. Rename imageflow_source.js to imageflow.js and imageflowenl_source.js to imageflowenl.js.
3. Open first imageflow.js and then imageflowenl.js with a text editor.
4. In both cases, find this line
cpgif_glideTo( -450, 3);
and comment it out like this
// cpgif_glideTo( -450, 3);
5. Save both files and upload them and you're done.

tripslip38

Excellent. Thanks Timos!

Anyone else making this slightly change can just replace imageflow.js and imageflownl.js with minified versions of the source files for better efficiency. There are many javascript minifiers to be found out there.

Thanks again.

YBnormal

Any ideas on the issue I posted above yet?

Thanks.

albertino

Hello

I've installed Imageflow 2.08 on a Coppermine Photo Gallery 1.4.20, along with Enlargeit 2.15 and Slider 2.15.
I can't see any images, only their names (see Image attached). However if I click on the image area everything else seems to work like it's supose too. See it on

http://fotogaleria.eancascais.net/index.php

Bottom of the page

The gallery is running on a linux machine (Linux server.lizardserver.net 2.6.18-ovz-028stab053.5-enterprise), Apache 1.3.41, PHP 5.2.8,  MySQL   5.0.67, GD version: bundled (2.0.34 Compatible) as stated on PHPinfo (attached)

Can you help please?

albertino

#119
Hello again

Just to post the debug info of the issue stated above


==============================================================
USER:
------------------
Array
(
    [ID] => 7b39e565769def8e9835df58d2bec4ce
    [am] => 1
    [lang] => portuguese
    [liv] => Array
        (
            [0] => 355
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_name] => albertino
    [groups] => Array
        (
            [0] => 1
            [1] => 5
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 10
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
    [1] => select * from cpg_plugins order by priority asc; (0s)
    [2] => SELECT * FROM cpg_plugins (0s)
    [3] => SELECT * FROM cpg_mod_imageflow (0s)
    [4] => SELECT * FROM cpg_plugins (0s)
    [5] => SELECT * FROM cpg_plugin_enlargeit (0s)
    [6] => SELECT * FROM cpg_plugins (0s)
    [7] => SELECT * FROM cpg_mod_slider (0s)
    [8] => delete from `adncscom_copp1`.cpg_sessions where time<1240046056 and remember=0; (0s)
    [9] => delete from `adncscom_copp1`.cpg_sessions where time<1238840056; (0s)
    [10] => select user_id from `adncscom_copp1`.cpg_sessions where session_id = 'd6dc0456493a6ebdb87307ee418b58a3' (0s)
    [11] => select user_id as id, user_password as password from `adncscom_copp1`.cpg_users where user_id=2 (0s)
    [12] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `adncscom_copp1`.cpg_users AS u INNER JOIN `adncscom_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='2' (0s)
    [13] => SELECT user_group_list FROM `adncscom_copp1`.cpg_users AS u WHERE user_id='2' and user_group_list <> ''; (0s)
    [14] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg_usergroups WHERE group_id in (1,5) (0s)
    [15] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
    [16] => update `adncscom_copp1`.cpg_sessions set time='1240049656' where session_id = 'd6dc0456493a6ebdb87307ee418b58a3' (0s)
    [17] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 2 (0s)
    [18] => DELETE FROM cpg_banned WHERE expiry < '2009-04-18 10:14:17' (0s)
    [19] => SELECT * FROM cpg_banned WHERE (ip_addr='77.54.202.170' OR ip_addr='77.54.202.170' OR user_id=2) AND brute_force=0 (0s)
    [20] => SELECT cid, name, description, thumb FROM cpg_categories WHERE parent = ''  ORDER BY pos (0s)
    [21] => SELECT aid FROM cpg_albums as a WHERE category>=10000 (0s)
    [22] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
    [23] => SELECT cid, name, description, thumb FROM cpg_categories WHERE parent = '1'  ORDER BY pos (0s)
    [24] => SELECT aid FROM cpg_albums WHERE category = 2 (0s)
    [25] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0s)
    [26] => SELECT count(*) FROM cpg_albums as a WHERE category = '2' (0s)
    [27] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,3 (0s)
    [28] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (3, 1, 2)GROUP BY a.aid (0.002s)
    [29] => SELECT pid FROM cpg_pictures WHERE filepath='userpics/3/' AND filename='CIMG3250.JPG' (0.001s)
    [30] => SELECT pid FROM cpg_pictures WHERE filepath='userpics/1/' AND filename='Regata_10-5-2008_-_04.jpg' (0.001s)
    [31] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='354' (0s)
    [32] => SELECT pid FROM cpg_pictures WHERE filepath='userpics/2/' AND filename='Regata_14-3-2008_-_131.jpg' (0.001s)
    [33] => SELECT cid, name, description, thumb FROM cpg_categories WHERE parent = '2'  ORDER BY pos (0s)
    [34] => SELECT aid FROM cpg_albums WHERE category = 5 (0s)
    [35] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 5 (0s)
    [36] => SELECT count(*) FROM cpg_albums as a WHERE category = '5' (0s)
    [37] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=5 ORDER BY a.pos LIMIT 0,7 (0s)
    [38] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (7, 8, 9, 10, 11, 12, 13)GROUP BY a.aid (0s)
    [39] => SELECT cid, name, description, thumb FROM cpg_categories WHERE parent = '5'  ORDER BY pos (0s)
    [40] => SELECT aid FROM cpg_albums WHERE category = 3 (0s)
    [41] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0s)
    [42] => SELECT count(*) FROM cpg_albums as a WHERE category = '3' (0s)
    [43] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,3 (0s)
    [44] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (4, 5, 6)GROUP BY a.aid (0.002s)
    [45] => SELECT pid FROM cpg_pictures WHERE filepath='userpics/4/' AND filename='IMG_0334.JPG' (0.001s)
    [46] => SELECT pid FROM cpg_pictures WHERE filepath='userpics/5/' AND filename='barcostrad_seixal_2008_095.jpg' (0.001s)
    [47] => SELECT pid FROM cpg_pictures WHERE filepath='userpics/6/' AND filename='Canoagem-Jamor_25_02_09-17.JPG' (0.001s)
    [48] => SELECT cid, name, description, thumb FROM cpg_categories WHERE parent = '3'  ORDER BY pos (0s)
    [49] => SELECT aid FROM cpg_albums as a WHERE category = '0' (0s)
    [50] => SELECT count(*) FROM cpg_albums as a WHERE 1 (0s)
    [51] => SELECT count(*) FROM cpg_pictures as p LEFT JOIN cpg_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
    [52] => SELECT count(*) FROM cpg_comments as c LEFT JOIN cpg_pictures as p ON c.pid=p.pid LEFT JOIN cpg_albums as a ON a.aid=p.aid WHERE 1 (0s)
    [53] => SELECT count(*) FROM cpg_categories WHERE 1 (0s)
    [54] => SELECT sum(hits) FROM cpg_pictures as p LEFT JOIN cpg_albums as a ON p.aid=a.aid WHERE 1 (0.001s)
    [55] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0.001s)
    [56] => SELECT count(*) FROM cpg_albums as a WHERE category = '0' (0s)
    [57] => SELECT COUNT(*) from cpg_pictures WHERE approved = 'YES' AND hits > 0    (0.001s)
    [58] => SELECT * FROM cpg_pictures WHERE approved = 'YES'AND hits > 0   ORDER BY hits DESC, filename   LIMIT 0 ,4 (0.002s)
    [59] => SELECT COUNT(*) from cpg_pictures WHERE approved = 'YES'  (0s)
    [60] => SELECT * FROM cpg_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,4 (0s)
    [61] => SELECT * FROM cpg_pictures AS p WHERE filename like '%.jpg' AND filename not like 'youtube_%' AND approved = 'YES'   ORDER BY RAND() LIMIT 15 (0.011s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.8 - OK
------------------
mySQL version: 5.0.67-community-log
------------------
Coppermine version: 1.4.20(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.34 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.67
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.1.2
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 60 | 60
max_input_time | 60 | 60
upload_max_filesize | 50M | 50M
post_max_size | 50M | 50M
==========================
Page generated in 0.508 seconds - 62 queries in 0.026 seconds - Album set : ; Meta

====================================================================


Best regards


Albertino



Edited: Please, use bbcode to make easier for us to read the post. Insert " [ code] code here [/code ] " when you need to post some code in the forum. - Fabricio Ferrero.