If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
November 26, 2010 at 10:37 am #2373
I am creating my own Flash module for the Display theme and have been having a bit of difficulty getting the correct image sizes back from the cu3er php script that returns an XML feed.
So far I have worked out that I can get a nice XML feed for the slider at http://mywebsite.com/wordpress/wp-content/themes/display/slideshow/dont_edit.php and that it returns exactly the XML feed that I want. Problem is when I look at the images returned by the php call in the XML for example (http://mywebsite.com/wordpress/wp-content/themes/display/framework/includes/timthumb.php?src=/images/slideshow/myimage.jpg&h=420&w=940&zc=1) it is not the size suggested by the parameter tags ( 420 x 940) but instead it returns a 100 x 100pixel thumbnail.
How can I get the full size 940px X 420 px image path? I have tried changing the parameters as per the PHP script but with no love.
zc: zoom crop (0 or 1)
q: quality (default is 75 and max is 100)
TimNovember 29, 2010 at 9:11 am #37736
I checked an image path and it the results looks ok to me: http://baldscone.com/wordpress/wp-content/themes/display/framework/includes/timthumb.php?src=/images/slideshow/afl2011_logo.jpg&h=420&w=940&zc=1
The image has the right dimensions. Can you post an example link (where your problem occurs?).November 29, 2010 at 2:53 pm #37737
Hi – yeah I can see that your image path works and after looking closely it is slightly different from what I get back from the dont_edit.phpI get “& amp ;” instead of just & between the postVars.
So I think the URL generated by the XML is not URL encoded and so I think the & is throwing off the timthumb.php script to return a default 100 x 100 – does that sound right?
If I replace the & with just & it works.
Does my theory sound right? Can I add something to the PHP file to change the & to just & or do I need to do a regEx replacement in Flash?
TimNovember 29, 2010 at 3:00 pm #37738
Yep – that was it – I did a simple unescape(imagePath) in AS3 and sorted. Thanks for your patience!November 30, 2010 at 7:32 am #37739
The topic ‘Customising Frontpage Flash’ is closed to new replies.