ImageFlow in CP Images special

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: ImageFlow in CP Images special

Post by flip-flop »

Es ist sicher einfacher ein Update nach mind. 1.3.5 zu machen.
du kannst allerdings auch die 1.3.3 und 1.3.5 vergleichen und schauen was sich geändert hat.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
rednus
Posts: 5
Joined: Fri 8. Feb 2008, 10:32

Re: ImageFlow in CP Images special

Post by rednus »

I dont know what i am doing wrong.. but imageflow doesnt work for me.. :(

somehow these lines are appearing in page source.. so i assue the css and javascript are not being changed in globals..

Code: Select all

<a href="#" id="move_left">Left</a> | <a href="#" id="move_right">Right</a>




	$GLOBALS['block']['css']['slider'] = 'specific/slider.css';
	
	$GLOBALS['block']['custom_htmlhead']['slider'] = '  <script type="text/javascript">
  <!--

	window.addEvent(\'domready\', function(){
	
		var slider_width	= 0;
		var step			= 106;
		var scroll_x		= 0;
		var slider_parent	= $(\'slider_container_2\').getSize().size.x;
check this page..

http://www.adoptsap.net/index.php?housewarming

i am using phpwcms_r182..

thanks in advance
User avatar
Cipolla
Posts: 451
Joined: Sat 16. Feb 2008, 20:39
Location: Muppet Show

Re: ImageFlow in CP Images special

Post by Cipolla »

First check your slider template for starting and ending [PHP] ... [/PHP] tags.

and check this in your config:

Code: Select all

$phpwcms['allow_cntPHP_rt']   = 1; //allow PHP replacement tags and includes in content parts
...
rednus
Posts: 5
Joined: Fri 8. Feb 2008, 10:32

Re: ImageFlow in CP Images special

Post by rednus »

Aaah.. perfect.. thanks a lot.. it works now.. :D

however.. i wanted a bigger thumnail.. so i changed the following in imageflow.js

Code: Select all

source image var conf_focus = 2;                  
	size = images_width * 0.7;
	max_height = images_width * 0.7;
but now the slider is not centered.. check here.. http://www.adoptsap.net/index.php?housewarming

could you please let me know which variable to centre it?

Thanks
User avatar
Heiko H.
Posts: 868
Joined: Thu 27. Oct 2005, 11:41
Location: Dresden
Contact:

Re: ImageFlow in CP Images special

Post by Heiko H. »

rednus wrote:i wanted a bigger thumnail..
This is not possible!
Please have a look in the ImageFlow FAQ Nr. 9.
The only thing you can do, is make your site larger (more width).

Regards Heiko...
Not longer here - sorry...

Haubner-IT GbR Dresden
rednus
Posts: 5
Joined: Fri 8. Feb 2008, 10:32

Re: ImageFlow in CP Images special

Post by rednus »

thank heiko.. i played a bit with the js and got it working..

however.. when i open the page in IE i get "Error on page" at line 141 and char 4 with message "Invalid argument" and unable to display any images after the error occurred.. the error comes after going thru few images.. also there is a flicker when changing the images..

but works a treat on firefox..

here is the link: http://www.adoptsap.net/index.php?housewarming

pleae help.. thanks
User avatar
Heiko H.
Posts: 868
Joined: Thu 27. Oct 2005, 11:41
Location: Dresden
Contact:

Re: ImageFlow in CP Images special

Post by Heiko H. »

rednus wrote:however.. when i open the page in IE i get "Error on page" at line 141 and char 4 with message "Invalid argument" and unable to display any images after the error occurred.. the error comes after going thru few images.. also there is a flicker when changing the images..
It is a newer Version of ImageFlow (v0.9) available here. These bugs are fixed in this version.
ChangeLog

Version 0.9

* Fixed the IE bug (Invalid Argument, line 141, character 4)
* Fixed the selection bug (ugly text and image selection on slider dragging)
* Fixed the back button bug (using the back button with Safari 3 or Opera sometimes crashed ImageFlow)
Heiko...
Not longer here - sorry...

Haubner-IT GbR Dresden
rednus
Posts: 5
Joined: Fri 8. Feb 2008, 10:32

Re: ImageFlow in CP Images special

Post by rednus »

Heiko, thanks for that. V0.9 solved the freezing problem on IE but now there are more problems with both IE and firefox.

check here:

http://www.adoptsap.net/index.php?housewarming

following problems are encountered:

1. (Fireforx) the div height is overlapping footer (even though i have increased the height to 350px in image flow container)
2. (IE) displays larger images on the flow following thumnails
3. still shows larger reflection even though i sent the reflection to 0.1
4. thumnail images are distorted


ps: btw, before using copying the css we need to make changes to suit phpwcms..

thanks
User avatar
Heiko H.
Posts: 868
Joined: Thu 27. Oct 2005, 11:41
Location: Dresden
Contact:

Re: ImageFlow in CP Images special

Post by Heiko H. »

rednus wrote:following problems are encountered:
Seems you have some CSS-Trouble.?.

Code: Select all

#imageflow_container {
	 	position:relative;
	 	text-align:left;
	 	pa/dding-top:20px;
		 width: 100%;
	    height: 350px;
	 	background-color:#ffffff;	
}
pa/dding-top:20px; should be padding-top:20px;
rednus wrote:3. still shows larger reflection even though i sent the reflection to 0.1
How have you done this?
You have to set the height in template like this:

Code: Select all

<img src="reflect.php?img={THUMB_REL}&height=10%" longdesc="{IMAGE_REL}" alt="{CAPTION}" />
instead of height in % you can set the height in px too

Code: Select all

<img src="reflect.php?img={THUMB_REL}&height=20" longdesc="{IMAGE_REL}" alt="{CAPTION}" />
good luck, Heiko...
Not longer here - sorry...

Haubner-IT GbR Dresden
rednus
Posts: 5
Joined: Fri 8. Feb 2008, 10:32

Re: ImageFlow in CP Images special

Post by rednus »

thanks for that heiko.. that works..

now, i am trying to display the zoomed image in the same page as an iframe.. however.. not being an web expert i am having some issues.. could you please take a look at the link http://www.adoptsap.net/index.php?housewarming and see whatz wrong with it..

thanks for all your help in advance..
dagba
Posts: 7
Joined: Sun 8. Jun 2008, 13:09

Re: ImageFlow in CP Images special

Post by dagba »

Hallo,

ich habe heute mal probiert ob ich das hinbekomme, aber es funktioniert nicht.

beim aufruf der "reflect.php" bekomme ich folgende Fehlermeldung:
GD library is too old. Version 2.0.1 or later is required, and 2.0.28 is strongly recommended.
Wenn ich aber auf meinen Server schaue wird mir angezeigt das ich die Version 2.0.33 installiert habe:
apt-cache show libgd2-xpm
Package: libgd2-xpm
Priority: optional
Section: libs
Installed-Size: 616
Maintainer: Jonas Smedegaard <dr@jones.dk>
Architecture: i386
Source: libgd2
Version: 2.0.33-5.2
Replaces: libgd2 (<< 2.0.4-2)
Depends: libc6 (>= 2.3.6-6), libfontconfig1 (>= 2.4.0), libfreetype6 (>= 2.2), libjpeg62, libpng12-0 (>= 1.2.8rel), libx11-6, libxpm4, zlib1g (>= 1:1.2.1)
Suggests: libgd-tools
Conflicts: libgd2-noxpm, libgd2 (<< 2.0.4-5)
Filename: pool/main/libg/libgd2/libgd2-xpm_2.0.33-5.2_i386.deb
Size: 199724
Wo liegt nun das Problem, hat jemand ne idee???

Dann noch was anderes:

Wenn ich Bilder einfügemit "Bilder <div>" und Lightbox anklicke hab ich das Problem wenn ich mit der Maus über das Bild fahre das mir das Bild dann 2 mal angezeigt wird (2 mal nen halbes, siehe Bild)... Woran könnte das liegen???

Image

Vielen Dank schon einmal im voraus

Gruß

Kai

P.S.: ach ja habe die phpwcms-Version 1.3.9 r182 installiert
dagba
Posts: 7
Joined: Sun 8. Jun 2008, 13:09

Re: ImageFlow in CP Images special

Post by dagba »

Hallo,

ich hab es hinbekommen. Hab mir die "ImageFlow 0.9" hier: http://194.95.111.244/~countzero/scripts/_myImageFlow/ runtergeladen und die reflect.php und die imageflow.js ersetzt, dann ging es.

Da ich dann noch "Highslide" wollte, habe ich mir das hier: http://194.95.111.244/~countzero/script ... HighSlide/ runtergeladen und mit ein wenig ausprobieren auch hinbekommen. Zu sehen hier:

http://dagba.de/index.php?id=15,2,0,0,1,0

Nun habe ich aber das Problem das die Linie mit dem Punkt durch das Bild durch scheint

Image

wenn ich das Bild vergrößere mit Highslide....

Hat jemand ne idee wie ich das weg bekomme???

Danke schon mal im voraus


Gruß

Kai
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: ImageFlow in CP Images special

Post by update »

has anybody tried this one with an r182 or later? Following Heikos rather clear and simple description doesn't lead to success... :(
Could it be that there is a collision with mootools (which are loaded by images special)?
Or is there some trick (or magic spell ;) ) I cannot find out?
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: ImageFlow in CP Images special

Post by update »

to answer it myself - yes, there is a collision with mootools (I just renamed it to something else and now imageflow is working. But I think this is not what I want ;)
perhaps there are some additional ideas?

EDIT: I'm testing / running r191...
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Re: ImageFlow in CP Images special

Post by pepe »

claus wrote:...
EDIT: I'm testing / running r191...
What the hell is that, r191 ???

You are juggeling with a veeeery OLD version, my friend... we now have r203... for the next 5 minutes or so !!!
Post Reply