crnr / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

Wordpress multisite and shortcodes (using the MU fix) #332

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a multisite enviroment
2. Use an image shortcode which use the full file URL as specified by wordpress 
when uploaded i.e. SITE.com/SUBSITE/files/FILENAME.jpg

What is the expected output? What do you see instead?
I expect timthumb to resize the image as it does with the "featured image" 
(which works due to the MU fix available at binarymoon homepage).

Instead it displays nothing.

Using latest version of both WP and Timthumb.

More infor from my WordPress thread: 

Hi!

I've got a delicious problem.

Trying to set up a network with some sites for a client and I use TimThumb a 
lot when developing themes. (Any cons to that?)

Anyway, I do get the TimThumb to work and resize images, but only featured 
images and when the url looks like:

http://SITE.se/SUBSITE/wp-content/themes/THEME/timthumb.php?
src=/blogs.dir/2/files/FILENAME.jpg&h=640&w=1080&zc=1

and not when it looks like

http://SITE.se/SUBSITE/wp-content/themes/THEME/timthumb.php?src=http://SITE.se/S
UBSITE/files/FILE.jpg&h=40&w=40&zc=1&a=c

And I also make use of it in shortcodes, but since I use the full URL in the 
shortcode, it doesn't work their either, only when I write /blogs.dir/2/etc.

Any ideas?

Any help is greatly appreciated!

Original issue reported on code.google.com by maila...@enkreativbyra.se on 31 Jan 2012 at 7:00

GoogleCodeExporter commented 8 years ago
I can confirm I have the same behaviour.

It works fine on the master site but not on the subsites.

Original comment by p...@uptosummit.com on 8 Feb 2012 at 5:20

GoogleCodeExporter commented 8 years ago

Original comment by BinaryMoon on 3 Oct 2013 at 7:10