Forum Replies Created

Viewing 15 replies - 91 through 105 (of 265 total)
  • Thread Starter Maxaud

    (@maxaud)

    Otto,

    Thanks again for a prompt reply.

    Need any beta testers for the new plugin?

    Thread Starter Maxaud

    (@maxaud)

    Otto, thanks for the quick response.

    My site publishes actions to Facebook’s Open Graph API so I need users to approve this permissions when the app gets added to their profile. The site/webapp will be driven around these actions so I don’t think it will be an invasion of privacy to ask for them from the start.

    I didn’t think SFC would have a need for permissions, but I thought it might be achievable in some manner since it’s a framework used to “add any sort of Facebook functionality you like to a WordPress blog.”

    If this is not possible, then I suppose I can simply prompt the user with the “Add to timeline” button after signing up but would like to avoid the extra step if possible.

    In addition to this, I’m noticing on a different site using the plugin, users have to go through the registration form twice to actually get an account. Is this expected behavior?

    Thread Starter Maxaud

    (@maxaud)

    I store a serialized array in the post_content field of a post.

    When I edit next to the entry in the wp_posts table and change something like the title and click save it adds backslashes to the quotes in post_content.

    Do you have a list of these files? were any of them WordPress core files?

    I’m having the same issue on a friends site and it’s inserting a 64 ebit encoded string into index.php so I have to remove that but I want to find out where the source of the attack is coming from within the system.

    Figure out what this was?

    Maxaud

    (@maxaud)

    I was however able to get it to work by deactivating all my other plugins. Looks to be a plugin conflict.

    Maxaud

    (@maxaud)

    Having the same problem. Not seeing any Javascript errors.

    Plugin Author Maxaud

    (@maxaud)

    Josh, are you creating a directory of “/siteid” or “/XX” where XX is the ID of the network?

    Note that this is for themes per Network, not themes per site.
    WordPress does themes per site on a fresh install of Multisite no problem.

    Thread Starter Maxaud

    (@maxaud)

    Was able to come up with something that works for me.
    Replace 1,5,7 with the category IDs that you’re searching for posts under.

    <?php
    $query = "
    	SELECT p.ID FROM $wpdb->posts p
    	JOIN $wpdb->term_relationships tr ON (p.ID = tr.object_id)
    	JOIN $wpdb->term_taxonomy tt ON (tr.term_taxonomy_id = tt.term_taxonomy_id)
    	JOIN $wpdb->terms t ON (tt.term_id = t.term_id)
    	WHERE tt.taxonomy = 'category' AND t.term_id IN ('1,5,7')
    ";
    
    $post_ids = $wpdb->get_col($wpdb->prepare($query));
    ?>

    Note: it returns an array of posts IDs like so (1 & 6 are IDs):

    Array
    (
        [0] => 1
        [1] => 6
    )

    enjaytee,

    This plugin allows you to define different themes on a per network basis:
    http://wordpress.org/extend/plugins/multisite-themes/

    It does this by having you place themes in subdirectories that correlate to Network IDs.

    You could then allow FTP access to these directories specific to certain networks but I wouldn’t advise doing so as anyone who can edit php code on the site could compromise the security of the network.

    Plugin Author Maxaud

    (@maxaud)

    Hey guys, sorry for me coming in late on this.
    Didn’t see this post until now.

    I want to make sure you guys understand what this plugin does.

    It creates directories that you can place themes in that make them available only to certain networks.

    By default WordPress already allows you to define only certain themes on a per blog/site basis so why create a plugin that does the same thing?

    Most people don’t have a Multi-Network environment. A multi-network environment would basically have multiple instances of WordPress Multisite. You would most likely not need this plugin unless you have one of the following plugins installed or you have set this up yourself:
    http://wordpress.org/extend/plugins/wp-multi-network/
    http://wpebooks.com/networks/
    (domain mapping is usually common in this environment as well)

    If you check for the global variable $current_site you will see information related to the current Network. At least it’s there on my WP 3.0.1 that has a couple dozen networks on it with this plugin working as it should. I have it placed in the “/wp-content/mu-plugins/” directory. Plugins in this directory get loaded acorss the whole WordPress install and are activated by default. They cannot be deactivated unless they’re removed from the directory.

    Some of this confusion is caused by the change in naming start at 3.0 when what used to be called “Sites” was changed to “Networks” and “Blogs” were changed to “Sites” with the integration of WordPress MU and regular WordPress.

    Daniel, I appreciate the input on the plugin action hook and made the changes and mentioned you on the changelog for the 1.3 release even though I wasn’t encountering any issues with the init hook.

    If you guys are still having issues with the plugin working as it should in a multi-network WordPress deployment, please let me know.

    Maveesli, to allow only certain themes to a specific site. Upload the theme to the /wp-content/themes/ directory but don’t activate it network wide. Go to “Super Admin > Sites” and edit the blog/site you’re wanting to allow that specific theme. On the right hand side you will see a list of themes. Select the checkbox next to the theme you want to allow that blog/site to use and click “update options.”

    Another possible option would be to add a site ID to each current database entry so that you wouldn’t have an additional 10 database tables per site and use an SQL statement that looks for the current site ID

    $current_blog_id = $GLOBALS[‘blog_id’];
    “WHERE site_id = $current_blog_id”

    This is off the top of my head and I haven’t checked it since 3.0 so the blog_id variable may have changed to site_id.

    ClearStreams: the reason that the code most likely isn’t showing up is due to the fact that the code is setup to show only on a “dashboard blog.”
    And the dashboard blog is hard coded as “1.”

    Does the plugin work fine on the “site” that has an ID of “1?”
    I bet it does.

    The database tables are also hardcoded to use the “wp_” so any multisite support is lost there.

    This plugin is not compatible with wpmu/multisite like the plugin author says it is. Looks like they were quick to release a new version and half-assed it. I’ll be going through the plugin and making the necessary changes for it to work but kinda sad that I have to.

    Realshout, maybe a network option would be best for storing the data that is needed instead of creating multiple tables per WordPress “site.” This would allow you to easily store the information on a per site/network basis.

    Thread Starter Maxaud

    (@maxaud)

    Andrea,
    I’m thinking the image is working now because I re-uploaded it.

    I’m thinking it didn’t bring the images over completely when it was imported and that was done around the same time as the update so I assumed it was due to that.

Viewing 15 replies - 91 through 105 (of 265 total)