Support Forum

Problem Add New Topic

SP Serge Panayi
Serge Panayi
Member

Hi, I’m liking the plugin but I’m a novice and having some trouble. I can not add a topic even as administrator, I click the add topic button and nothing happens. Any ideas?

Thanks

10 Answers

New Answer

MP Mr Papa
Mr Papa
Member

gonna need some more info…  sounds like a js/jquery conflict…  see:  http://codex.simple-press.com/codex/faq/troubleshooting/what-is-this-jquery-conflict/

do you have link so we can look for obvious conflicts?

any errors in the browser console?

SP Serge Panayi
Serge Panayi
Member

thanks for your swift reply, the forum can be found here : www. grannyflatapprovals.com.au/forum

sorry, i not sure if i can create a link, but that is the address without the space :)

MP Mr Papa
Mr Papa
Member

links are fine…

the link I gave you pretty much explains it… your theme is violating the wp standards and recommended usage..

<script src=”//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js”></script>
<script>window.jQuery || document.write(unescape(‘%3Cscript src=”http://www.grannyflatapprovals.com.au/wp-content/themes/5150studios/library/js/libs/jquery-1.7.1.min.js”%3E%3C/script%3E’))</script>

its loading jquery from an external site instead of using the jquery that come with wp…  that is a recipe for failure with other wp plugins that use jquery and frankly, expect the wp version of jquery…

check your theme options and see if there is a way to force it to do it the wp way instead of loading that offsite jquery…

if not, see if you can find in your theme where its doing it wrong and we can help you fix it…

SP Serge Panayi
Serge Panayi
Member

Yeah i had a read and checked my source and noticed. I’m going to talk to the web dev on Monday.Thanks for everything to this point. I will let you know early next week on the outcome.

MP Mr Papa
Mr Papa
Member

they should really be doing it the wp way… loading the local wp version via wp_enqueue_script()

http://codex.wordpress.org/Function_Reference/wp_enqueue_script

let us know how it goes…

MP Mr Papa
Mr Papa
Member

no, thats improper… its loading jquery from an external source… it should load the jquery that ships with WordPress…  noconflict and other things are problematic for wp plugins when jquery outside of the wp version is loade…  plugin devs cannot test with all the external versions – we test with the jquery that COMES with wp…

if you can find where in your wp theme its doing that, we can help correct it…

or maybe your theme has an option to not load external jquery…

NB Nicol Botha
Nicol Botha
Member

Looks like its loaded in theme-scripts.php, this was the original file:

<?php
function my_script() {
    if (!is_admin()) {
        wp_deregister_script(‘jquery’);
        wp_register_script(‘jquery’, get_bloginfo(‘template_url’).’/js/jquery-1.6.4.min.js’, false, ‘1.6.4’);
        wp_enqueue_script(‘jquery’);
    
        wp_enqueue_script(‘modernizr’, get_bloginfo(‘template_url’).’/js/modernizr.js’, array(‘jquery’), ‘2.0.6’);
        wp_enqueue_script(‘superfish’, get_bloginfo(‘template_url’).’/js/superfish.js’, array(‘jquery’), ‘1.4.8’);
        wp_enqueue_script(‘prettyPhoto’, get_bloginfo(‘template_url’).’/js/jquery.prettyPhoto.js’, array(‘jquery’), ‘3.1.2’);
        wp_enqueue_script(‘nivo’, get_bloginfo(‘template_url’).’/js/jquery.nivo.slider.js’, array(‘jquery’), ‘2.5.2’);
        wp_enqueue_script(‘easytooltip’, get_bloginfo(‘template_url’).’/js/easyTooltip.js’, array(‘jquery’), ‘1.0’);
        wp_enqueue_script(‘loader’, get_bloginfo(‘template_url’).’/js/jquery.loader.js’, array(‘jquery’), ‘1.0’);
        wp_enqueue_script(‘cufon_yui’, get_bloginfo(‘template_url’).’/js/cufon-yui.js’, array(‘jquery’), ‘1.09i’);
        wp_enqueue_script(‘Bebas_regular’, get_bloginfo(‘template_url’).’/js/Aller_italic_400.font.js’, array(‘jquery’), ‘1.0’);
        wp_enqueue_script(‘cufon_replace’, get_bloginfo(‘template_url’).’/js/cufon-replace.js’, array(‘jquery’), ‘1.0’);
        wp_enqueue_script(‘swfobject’, get_bloginfo(‘url’).’/wp-includes/js/swfobject.js’, array(‘jquery’), ‘2.2’);
        wp_enqueue_script(‘cycleAll’, get_bloginfo(‘template_url’).’/js/jquery.cycle.all.js’, array(‘jquery’), ‘2.99’);
        wp_enqueue_script(‘audiojs’, get_bloginfo(‘template_url’).’/js/audiojs/audio.js’, array(‘jquery’), ‘1.0’);
        wp_enqueue_script(‘custom’, get_bloginfo(‘template_url’).’/js/custom.js’, array(‘jquery’), ‘1.0’);
    }
}
add_action(‘init’, ‘my_script’);
?>

 

 

I later modified it to this in order to get another plugin working which needed a later version of jquery:

<?php
function my_script() {
    if (!is_admin()) {
        wp_deregister_script(‘jquery’);
        wp_register_script(‘jquery’, (“http://code.jquery.com/jquery-latest.min.js”), false, ”);
        wp_enqueue_script(‘jquery’);
    
        wp_enqueue_script(‘modernizr’, get_bloginfo(‘template_url’).’/js/modernizr.js’, array(‘jquery’), ‘2.0.6’);
        wp_enqueue_script(‘superfish’, get_bloginfo(‘template_url’).’/js/superfish.js’, array(‘jquery’), ‘1.4.8’);
        wp_enqueue_script(‘prettyPhoto’, get_bloginfo(‘template_url’).’/js/jquery.prettyPhoto.js’, array(‘jquery’), ‘3.1.2’);
        wp_enqueue_script(‘nivo’, get_bloginfo(‘template_url’).’/js/jquery.nivo.slider.js’, array(‘jquery’), ‘2.5.2’);
        wp_enqueue_script(‘easytooltip’, get_bloginfo(‘template_url’).’/js/easyTooltip.js’, array(‘jquery’), ‘1.0’);
        wp_enqueue_script(‘loader’, get_bloginfo(‘template_url’).’/js/jquery.loader.js’, array(‘jquery’), ‘1.0’);
        wp_enqueue_script(‘cufon_yui’, get_bloginfo(‘template_url’).’/js/cufon-yui.js’, array(‘jquery’), ‘1.09i’);
        wp_enqueue_script(‘Bebas_regular’, get_bloginfo(‘template_url’).’/js/Aller_italic_400.font.js’, array(‘jquery’), ‘1.0’);
        wp_enqueue_script(‘cufon_replace’, get_bloginfo(‘template_url’).’/js/cufon-replace.js’, array(‘jquery’), ‘1.0’);
        wp_enqueue_script(‘swfobject’, get_bloginfo(‘url’).’/wp-includes/js/swfobject.js’, array(‘jquery’), ‘2.2’);
        wp_enqueue_script(‘cycleAll’, get_bloginfo(‘template_url’).’/js/jquery.cycle.all.js’, array(‘jquery’), ‘2.99’);
        wp_enqueue_script(‘audiojs’, get_bloginfo(‘template_url’).’/js/audiojs/audio.js’, array(‘jquery’), ‘1.0’);
        wp_enqueue_script(‘custom’, get_bloginfo(‘template_url’).’/js/custom.js’, array(‘jquery’), ‘1.0’);
    }
}
add_action(‘init’, ‘my_script’);
?>

NB Nicol Botha
Nicol Botha
Member

Looks like I have it working, I commented out these two lines:

        wp_deregister_script(‘jquery’);
        wp_register_script(‘jquery’, get_bloginfo(‘template_url’).’/js/jquery-1.6.4.min.js’, false, ‘1.6.4’);

And all seems well!

MP Mr Papa
Mr Papa
Member

glad its working… that should be fine as long as the theme doesnt complain about using the wp version – it shouldnt!  nice job.