Your Time:
Our Time:
← Back to discussions

Ajaxify causing issues with plugins

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 9 replies, 4 voices, and was last updated 9 years, 11 months ago by Anonymous.

  • 2016-09-13 at 2:57 am
    Support Expired
    #16490
    tpinkus
    Participant
    • Topics: 7
    • Replies: 24
    • Total posts: 31
    • Post count: 24

    I’m having an issue with AJAXIFY. I have other plugins that when I go from page to page the plugins don’t seem to load. But if I turn off AJAXIFY everything loads great. The problem is, the PLAYER bar doesn’t keep playing now.

    What can I do to fix this?

    2016-09-14 at 10:32 am
    #16500
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Note: Using the theme ajaxified option will not give compatibility for some plugins. we would recommend to use non ajaxified option to make work with third party plugins. So kindly disable ajaxify to make the player work.

    2016-09-14 at 10:39 am
    Support Expired
    #16501
    tpinkus
    Participant
    • Topics: 7
    • Replies: 24
    • Total posts: 31
    • Post count: 24

    Your response doesn’t make sense. With ajaxify active the other plugins don’t work. To resolve this issue I disable ajaxify. However the causes the radio player to reload on every page click.

    Help please

    2016-09-14 at 1:38 pm
    #16507
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Disabling ajaxified will have to reload the full page which causes radio to reload the page. If ajax is enabled then then page will load only the portion of the content area without refreshing the player part and header part of the page.

    2016-10-04 at 7:18 am
    Support Expired
    #16799
    sounds
    Participant
    • Topics: 50
    • Replies: 201
    • Total posts: 251
    • Post count: 470

    Most plugins I have tried with the ajax enabled don’t work.
    What’s the point in loading pages with ajax if plugins won’t work or show up.
    I have had the exact same problem when ajax is enabled, including the player
    will refresh with the pages if you don’t enable ajax, it’s just not fully ajaxified.
    Is there not a way to implement ajax so plugins will function with ajax?
    That would be a perfect soution.

    • This reply was modified 9 years, 11 months ago by sounds.
    • This reply was modified 9 years, 11 months ago by sounds.
    • This reply was modified 9 years, 11 months ago by sounds.
    2016-10-04 at 12:33 pm
    #16828
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Not all the plugins will work with ajaxified option and we have mentioned that in the item details page as well. Some plugin developers will create a callback function if required.

    We are using https://wordpress.org/plugins/ajaxify-wordpress-site/ for the ajaxified option. To work with every plugin you use then you have to use the plugins callback function and modify in ajaxify.js file which is located in musicplay/js/ folder.

    The script will look like this where it contains a support for the buddypress plugin.

    // Add the scripts
    $scripts.each(function(){
    	var scriptText = $(this).html();
    		   
    	if ( '' != scriptText ) {
    			scriptNode = document.createElement('script');
    			scriptNode.appendChild(document.createTextNode(scriptText));
    			contentNode.appendChild(scriptNode);
    	} else {
    			$.getScript( $(this).attr('src') );
    	}
    });
    
    // BuddyPress Support
    if ( aws_data['bp_status'] ) {
    	$.getScript(rootUrl + '/wp-content/plugins/buddypress/bp-templates/bp-legacy/js/buddypress.js');
    }
    
    $body.removeClass('loading');
    2016-10-04 at 1:35 pm
    Support Expired
    #16836
    sounds
    Participant
    • Topics: 50
    • Replies: 201
    • Total posts: 251
    • Post count: 470

    I see.. I need to learn more about this, action hooks..
    Maybe stupid question, but where are the call back functions, if they exist?

    • This reply was modified 9 years, 11 months ago by sounds.
    • This reply was modified 9 years, 11 months ago by sounds.
    • This reply was modified 9 years, 11 months ago by sounds.
    • This reply was modified 9 years, 11 months ago by sounds.
    • This reply was modified 9 years, 11 months ago by sounds.
    2016-10-04 at 5:50 pm
    #16851
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    You have to ask the plugin author for its callback function. You have to mention that your site is not working on ajaxified function.

    2016-10-05 at 3:34 am
    Support Expired
    #16861
    sounds
    Participant
    • Topics: 50
    • Replies: 201
    • Total posts: 251
    • Post count: 470

    Ok will do, have enough info now to at least know what to ask.. thanks!

    2016-10-05 at 11:55 am
    #16873
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    We are setting this topic to be resolved. If you wish to update this topic please reply here instead of creating another topic.

You must be logged in to reply to this topic.