WordPress.org

Ready to get started?Download WordPress

Forums

Support Tickets v2
[resolved] Using this plugin on multisite (6 posts)

  1. chibib0
    Member
    Posted 1 year ago #

    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/

  2. chibib0
    Member
    Posted 1 year ago #

    I have solved my problem..

    Thank you and your version of the plugin rocks..

  3. chibib0
    Member
    Posted 1 year ago #

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

  4. chibib0
    Member
    Posted 1 year ago #

    Sir.. Can you make multisite compatible?

    Thank you.

  5. kezakez
    Member
    Plugin Author

    Posted 1 year ago #

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

  6. newburns
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.