Suffusion 3.1.5 and Plugin Quote Rotator

Reports about issues that you encounter in Suffusion
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Suffusion 3.1.5 and Plugin Quote Rotator

Postby Honigkuchenwolf » 05 Jan 2010, 05:51

HI,

I use the Plugin Quote rotator in my blog, but since Suffusion 3.1.5 it isn't working anymore and I don't know why...

Page of the plugin
my Blog
Honigkuchenwolf
 
Posts: 27
Joined: 06 Dec 2009, 04:52

Re: Suffusion 3.1.5 and Plugin Quote Rotator

Postby sayontan » 05 Jan 2010, 06:01

Do you know if this plugin is using Scriptaculous and / or Prototype? Seems to be a problem with a JavaScript call to "$(element)", which is failing.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: Suffusion 3.1.5 and Plugin Quote Rotator

Postby Honigkuchenwolf » 05 Jan 2010, 06:17

Sorry I don't know what it is using :-(

EDIT:

The code:

*/

require_once('classes/quote-rotator.class.php');
require_once('classes/quote-rotator-management.class.php');


if( class_exists('QuoteRotator') && class_exists('QuoteRotatorManagement') ) :

$quoteRotator = new QuoteRotator();
$management = new QuoteRotatorManagement();

if( isset($quoteRotator) && isset($management) )
{
if($_GET['action']=="delete-quote")
{
$management->deleteQuote($_GET['id']);
}

if($_POST['addQuote'] == 1)
{
$management->addQuote($_POST['quote'], $_POST['author']);
}

if($_POST['editQuote'] == 1)
{
$management->editQuote($_POST['quote'], $_POST['author'], $_POST['id']);
}

function widgetInit()
{
global $quoteRotator, $management;

if( !function_exists('register_sidebar_widget') )
{
return;
}

register_sidebar_widget('Quotes', array(&$quoteRotator, 'displayWidget'));
register_widget_control('Quotes', array(&$management, 'displayWidgetControl'), 375, 200);
}

function managementInit()
{
global $management;

wp_enqueue_script( 'listman' );
//add_management_page('Quote Rotator', 'Quote Rotator', 10, basename(__FILE__), array(&$management, 'displayManagementPage'));
add_submenu_page('edit.php', 'Quote Rotator', 'Quotes', 10, __FILE__, array(&$management, 'displayManagementPage'));
}

add_action('activate_quote-rotator/quote-rotator.php', array(&$quoteRotator, 'createDatabaseTable'));
add_action('deactivate_quote-rotator/quote-rotator.php', array(&$quoteRotator, 'deleteDatabaseTable'));
add_action('wp_head', array(&$quoteRotator, 'addHeaderContent'));
add_action('wp_ajax_delete-quote', array(&$management, 'ajaxDelete'));
add_action('admin_menu', 'managementInit');
add_action('plugins_loaded', 'widgetInit');
}

endif;
?>
Honigkuchenwolf
 
Posts: 27
Joined: 06 Dec 2009, 04:52

Re: Suffusion 3.1.5 and Plugin Quote Rotator

Postby sayontan » 05 Jan 2010, 06:28

Looks like this is your problem: http://stackoverflow.com/questions/1345 ... e-conflict. In 3.1.5 I moved the Featured Content code (which uses JQuery) into the main body of the code because some users were facing issues with it. What is happening now is that the JQuery call is happening after the Scriptaculous call that the quote rotator uses and that is causing Scriptaculous to fail.

Let me think about this one.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: Suffusion 3.1.5 and Plugin Quote Rotator

Postby Honigkuchenwolf » 05 Jan 2010, 06:31

ok thx
Honigkuchenwolf
 
Posts: 27
Joined: 06 Dec 2009, 04:52

Re: Suffusion 3.1.5 and Plugin Quote Rotator

Postby sayontan » 13 Jan 2010, 21:40

Looks like the changes I made in 3.1.6 fixed this. Can you confirm that it is working as you would expect?
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 4 guests