PhotoDune

Wordpress MU and Timthumb problem

181 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Mexico
  • Has been a member for 3-4 years
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
MCStudios says

One person purchased one of my themes but he is using wordpress multisite and is having problems with the images.

I’ve found this page http://www.binarymoon.co.uk/2009/10/timthumb-wordpress-mu/ but I’m still having problems with that.

My theme does not use custom fields for the images instead use the post thumbnail feature of wordpress.

I did not know that there were problems with timthumb and multisites so i hope somebody can help me.

2965 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 100 and 199 users
+2 more
duotive says

i bet is the same problem with the host as a customer of mine has :) ... read my earlier post…

181 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Mexico
  • Has been a member for 3-4 years
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
MCStudios says
i bet is the same problem with the host as a customer of mine has :) ... read my earlier post…

I don’t think it has something to do with the host, the problem with Timthumb and Wordpress MU exist.

But i will check if the permissions are fine and the rest of thinks to make work timthumb.

But thank’s anyway

249 posts
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 50 and 99 users
  • Sold between 100 000 and 250 000 dollars
  • Won a Competition
der says

WordPress multisite works differently than the normal WordPress distribution. On Multisite, the blog’s data, plugins & attachments are located on the wp-content/blogs.dir/X, being X the ID for the Blog (or site) in question.

So, in order for you to use timthumb correctly on Multisite, you need to include the complete path to the site, so this invalidates the common “wp-content/uploads/...” path.

Now, to make the URL ’s correctly, you should include the path to the image, but using the relative blogs.dir path. Here’s an example URL :

http://blah.com/timthumb.php?src=/wp-content/blogs.dir/1/files/2010/01/hi.jpg

That’ll work ;)

P.S.: You mentioned your customer is using Multisite, remember that he/she needs to purchase an Extended license to use your work on WordPress multisite.

181 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Mexico
  • Has been a member for 3-4 years
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
MCStudios says
P.S.: You mentioned your customer is using Multisite, remember that he/she needs to purchase an Extended license to use your work on WordPress multisite.

Is that true? i did not now that, how can i confirm this?

249 posts
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 50 and 99 users
  • Sold between 100 000 and 250 000 dollars
  • Won a Competition
der says
P.S.: You mentioned your customer is using Multisite, remember that he/she needs to purchase an Extended license to use your work on WordPress multisite.
Is that true? i did not now that, how can i confirm this?

» Regular & Extended License usage examples
» Licensing Terms

181 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Mexico
  • Has been a member for 3-4 years
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
MCStudios says
P.S.: You mentioned your customer is using Multisite, remember that he/she needs to purchase an Extended license to use your work on WordPress multisite.
Is that true? i did not now that, how can i confirm this?

» Regular & Extended License usage examples
» Licensing Terms

Ok i see that but what if he want to create the same site with different languages, that’s why he is using multisites, he want to create one site for example with the language spanish and other site with the language of french, both sites using my theme.

249 posts
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 50 and 99 users
  • Sold between 100 000 and 250 000 dollars
  • Won a Competition
der says

In that case you could contact Support for this situation, but I think he’s using multiple sites, even if they’re the same.

Advice your customer that he can use a translation plugin from the WordPress plugins repository.

181 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Mexico
  • Has been a member for 3-4 years
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
MCStudios says

Thank’s der

I will contact support and about timthumb this is the code I’m using the get the images:

<img src="&lt;?php bloginfo('template_directory'); ?&gt;/js/timthumb.php?src=/wp-content/blogs.dir/1/files&lt;?php echo thumb_url(); ?&gt;&w=939&h=391&q=96&zc=1" alt="&lt;?php the_title_attribute(); ?&gt;" />

and then that code is converted to this:

<img src="http://site.com/fr/wp-content/themes/alabastroswp/js/timthumb.php?src=http://sebastienchort.com/fr/files/2010/09/Debate_Final_0344.jpg&w=939&h=391&q=96&zc=1" alt="slid2" />

I’ve been trying all day to make this work but until now i got nothing.

How can i edit the code using blogs.dir path?

Thank’s

181 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Mexico
  • Has been a member for 3-4 years
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
MCStudios says

Well it seems that contact support for this is not an option because Support cannot answer license questions

This is what they put at the bottom of the message If you are still unsure about a license issue, we suggest that you contact a legal professional to assist you.

And I really don’t want to contact a legal professional for this.

Theme Forest always surprises me

by
by
by
by
by