WordPress.org

Support

Support » Plugins and Hacks » Support Tickets v2 » [Resolved] Using this plugin on multisite

[Resolved] Using this plugin on multisite

  • I have successfully made this compatible with wordpress multisite by modifying a bit of how it install itself. Check the code below:

    add_action( 'activate_' . SUPTIC_PLUGIN_BASENAME, 'activate_suptic' );
    
    function activate_suptic() {
    	global $wpdb;
    
    	if (function_exists('is_multisite') && is_multisite()) {
    		// check if it is a network activation - if so, run the activation function for each blog id
    		if (isset($_GET['networkwide']) && ($_GET['networkwide'] == 1)) {
    	                $old_blog = $wpdb->blogid;
    			// Get all blog ids
    			$blogids = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM $wpdb->blogs"));
    			foreach ($blogids as $blog_id) {
    				switch_to_blog($blog_id);
    				suptic_install();
    			}
    			switch_to_blog($old_blog);
    			return;
    		}
    	}
    	suptic_install();
    }

    Everything works fine but not on the Ticket page wherein when I submit a reply to a ticket, it redirects to the submission form. The reply message is inserted in the database but on the ticket itself, its not showing unless when you re-login, the replied message now shows up. I tried cleaning my cache, disable cache plugin etc. Its just that, you need to re-login to view the replied message. What seems to be the problem?

    http://wordpress.org/extend/plugins/support-tickets-v2/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have solved my problem..

    Thank you and your version of the plugin rocks..

    The problem persist though I thought I already fixed it.. Please help.

    Sir.. Can you make multisite compatible?

    Thank you.

    Plugin Author kezakez

    @kezakez

    Unfortunately I do not have a multi-site server to test on. Do you have a test server I can access?

    What do you mean access?
    I can set up a test site with some FTP access, but I will have to limit you when it comes to the MySQL access. That would have to remain local. Is that good enough to get multisite support tested?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Using this plugin on multisite’ is closed to new replies.
Skip to toolbar