WPIntell

Source evidence

[Plugin: AutoThumb] SOLUTION: Make AutoThumb work on WP Multisite

AutoThumb 路 support 路 2012-10-04T16:11:00+00:00

complaintsentiment
highseverity
0.91relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 26 rows with source links

15.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

22 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
korythewebguy unresolved
Here鈥檚 a quick & easy solution for making this great plugin work on a WordPress multisite installation. PLEASE NOTE: The following will require you to make minor code adjustments to 2 files. If you later update the AutoThumb plugin, OR update your permalinks, the changes will be overwritten and you will need to re-add the necessary code to those 2 files. [Step 1] Locate /wp-content/plugins/autothumb/image.php and add the following code right before the line which reads include('phpthumb/phpThumb.php'); : /* Multisite Compatability Hack */ include '../../../wp-config.php'; include '../../../wp-load.php'; if( MULTISITE == true && preg_match('%'.$base.'.*/files/(.+)%i', $_GET['src'], $matches) ){ $_GET['src'] = BLOGUPLOADDIR.$matches[1]; } [Step 2] Locate the .htaccess file in the root of your WordPress installation, and add the following code directly after the line which reads RewriteRule ^index\.php$ - [L] : RewriteRule ^YourSiteName/images/(.*)$ /YourSiteName/wp-content/plugins/autothumb/image.php?$1 [QSA,L] Make sure to replace the word YourSiteName with the name of your actual site. For example, if your site is at http://www.someblog.com/MyKittyBlog/ , you would change the above to read as follows: RewriteRule ^MyKittyBlog/images/(.*)$ /MyKittyBlog/wp-content/plugins/autothumb/image.php?$1 [QSA,L] Note that, with this code, you will need to add a RewriteRule line to your .htaccess file for each one of the sites where you want AutoThumb to be able to function. There is probably a better way to do this, but I unfortunately am not a Regular Expressions genius. Questions, comments, or suggestions for a better way to do this? Post them here. Hopefully the plugin author will update AutoThumb to include multisite comparability in the future. 馃檪 http://wordpress.org/extend/plugins/autothumb/

Comments

0 shown

No comments were stored for this source.