Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Problem Add New Topic
Avatar
Serge Panayi
Sydney, Australia
Rookie
Free Members
Offline
Jun 19, 2013 - 9:44 pm

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jun 19, 2013 - 10:50 pm

gonna need some more info...  sounds like a js/jquery conflict...  see:  http://codex.simple-press.com/.....-conflict/

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

any errors in the browser console?

Avatar
Serge Panayi
Sydney, Australia
Rookie
Free Members
Offline
Jun 19, 2013 - 11:12 pm

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 :)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jun 20, 2013 - 1:20 am

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...

Avatar
Serge Panayi
Sydney, Australia
Rookie
Free Members
Offline
Jun 22, 2013 - 6:32 am

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jun 22, 2013 - 10:21 am

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

http://codex.wordpress.org/Fun.....eue_script

let us know how it goes...

Avatar
Nicol Botha
Rookie
Free Members
Offline
Jun 29, 2013 - 1:18 am

Hi Mr Papa,

Im having a similar issue however it looks like my site is loading the latest version of jquery:
<script type='text/javascript' src='http://code.jquery.com/jquery-.....?ver=3.5.2'></script>

Link: http://www.endlessflooring.co.nz/forum/

Any help would be much appreciated.

Thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jun 29, 2013 - 1:59 am

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...

Avatar
Nicol Botha
Rookie
Free Members
Offline
Jun 29, 2013 - 5:15 pm

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');
?>

Avatar
Nicol Botha
Rookie
Free Members
Offline
Jun 29, 2013 - 5:27 pm

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!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625