• Resolved Stevish

    (@stevish)


    Is there a reason you can think of that this plugin wouldn’t work properly on a multisite installation? Any given gallery will show up properly on the user’s personal site, but when viewed from the main site (which shows posts from every user), it simply shows the magic code (<!–FBGallery 2508247720683110404 –><!–/FBGallery–>)

    Any ideas? If you think it’s fixable, my client will probably pay the $20 for your specific support, but if you don’t think you have the time to do multisite testing, then they’d probably rather not pay, know what I mean?

    If it normally works as expected on multisite installations, we’ll just wait until the client is ready to update WP to the most recent version to see if that fixes it.

    https://www.ads-software.com/extend/plugins/facebook-photo-fetcher/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author justin_k

    (@justin_k)

    It absolutely works on multisite – something else specific to your installation must be going on. My own blog (on which I developed the plugin) is multisite.

    Thread Starter Stevish

    (@stevish)

    Do you use a default “Home” blog that shows posts from every user? Is that even a normal feature of a multisite installation? It’s that home blog that shows all posts from all users where the plugin breaks.

    Thread Starter Stevish

    (@stevish)

    I deactivated all plugins except FB Photo Fetcher and switched to the default theme, to no avail.

    Thread Starter Stevish

    (@stevish)

    The error I get on the “home” blog is “This plugin does not have a valid Facebook access token. Please use your admin panel to login with Facebook.” I assume it’s because of the inability for the home blog to access the plugin options for each of the individual sites. It feels like the basics of how the plugin works may have to be altered in order to fix this issue.

    If you are willing to work on this issue for a “donation”, just tell me how much you think you’d need for the changes, and I’ll pass the figure on to my client. Otherwise I’ll have to make the changes myself (something we’re avoiding for reasons of future updates to the plugin)

    @stevish – please use the plugin author’s site to discuss paid support – as it’s against the forum guidelines to do that here:

    https://www.justin-klein.com/projects/facebook-photo-fetcher/#feedback

    Plugin Author justin_k

    (@justin_k)

    I’ve never heard of the concept of a “home” blog. If you mean the main / primary site of a multisite install, again, I’m 100% it works there (justin-klein.com is my primary site, and you can see it working in the sample gallery on the plugin documentation page. https://www.justin-klein.com/store is the subblog of the same multisite install).

    Thread Starter Stevish

    (@stevish)

    So if you post on the store blog (or any other sub blog) does that post appear on the primary site? That’s how it’s set up on ours. If user1 (mysite.com/user1) writes a post, it appears on his own blog, but also on the blog at mysite.com. Therefore, mysite.com contains all posts from mysite.com/user1, mysite.com/user2, etc.

    Thread Starter Stevish

    (@stevish)

    Sorry, WPyogi, I didn’t know (Or had forgotten). I’ll refrain in the future

    Plugin Author justin_k

    (@justin_k)

    No, and as far as I know, that’s not how multisite works. The wp_posts table is not shared, so if one blog’s posts are showing up in another blog, it seems to me that you’re doing something very nonstandard…

    Thread Starter Stevish

    (@stevish)

    Sorry, Justin, you’re right. I guess they have a plugin called “Sitewide Tags” that imports all posts into one central blog. Now I just have to see if I can figure out how to get these plugins to play together nicely. I may yet have to visit your website for more official help with this problem.

    Thread Starter Stevish

    (@stevish)

    I found a solution! All I needed to do was edit _output_gallery.php and add the following block of code after the FB access token was looked up:

    global $wpdb;
    	if($wpdb->blogid == 1) { //If it's on blog 1, re-grab the correct token manually
    		$access_token = $wpdb->get_var("SELECT <code>option_value</code> FROM <code>wp_{$GLOBALS['current_blog']->blog_id}_options</code> WHERE <code>option_name</code> = '{$fpf_opt_access_token}'");
    	}

    Blog id 1 is the one that reposts everything, so if it’s on blog 1, I make sure to grab the correct blog’s access token.

    Thanks for your help in letting me know I was barking up the wrong tree. I never thought that the blog I was working on was that different from other blogs. I appreciate your work on this plugin as well as the free help you’ve offered.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Multisite?’ is closed to new replies.