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
Does site need to be live for the Simple Press buttons to work
Avatar
Mark Browning
Member
Free Members
sp_UserOfflineSmall Offline
Oct 21, 2013 - 10:49 am

Okay, it appears I found where js is being loaded. It is under theme-scripts.php. I have cut and pasted the code from the page so you can see it. If you are going to instruct me as to how to change this, please be very specific--I know very little about what I am doing. Much appreciated!

 

<?php function my_script() {  if (!is_admin()) {   wp_deregister_script('jquery');   wp_register_script('jquery', get_bloginfo('template_url').'/js/jquery-1.4.2.min.js', false, '1.4.2');   wp_enqueue_script('jquery');      wp_enqueue_script('prettyphoto', get_bloginfo('template_url').'/js/jquery.prettyPhoto.js', array('jquery'), '2.5.6');   wp_enqueue_script('cufon-yui', get_bloginfo('template_url').'/js/cufon-yui.js', array('jquery'), '1.0.9');   wp_enqueue_script('Tuffy', get_bloginfo('template_url').'/js/Tuffy_500-Tuffy_700.font.js', array('jquery'));   wp_enqueue_script('fade', get_bloginfo('template_url').'/js/fade.js', array('jquery'));   wp_enqueue_script('jqFancyTransitions', get_bloginfo('template_url').'/js/jqFancyTransitions.1.8.min.js', array('jquery'), '1.8');   wp_enqueue_script('s3Slider', get_bloginfo('template_url').'/js/s3Slider.js', array('jquery'));   wp_enqueue_script('cycle', get_bloginfo('template_url').'/js/jquery.cycle.all.min.js', array('jquery'));

 } } add_action('init', 'my_script'); ?>

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 21, 2013 - 11:04 am

again, its best to use the code button when post coding... much, much easier to read...

assuming this is what it really looks like:

<?php 
function my_script() {  
    if (!is_admin()) {   
        wp_deregister_script('jquery');
        wp_register_script('jquery', get_bloginfo('template_url').'/js/jquery-1.4.2.min.js', false, '1.4.2');   
        wp_enqueue_script('jquery');      
        wp_enqueue_script('prettyphoto', get_bloginfo('template_url').'/js/jquery.prettyPhoto.js', array('jquery'), '2.5.6');   
        wp_enqueue_script('cufon-yui', get_bloginfo('template_url').'/js/cufon-yui.js', array('jquery'), '1.0.9');   
        wp_enqueue_script('Tuffy', get_bloginfo('template_url').'/js/Tuffy_500-Tuffy_700.font.js', array('jquery'));   
        wp_enqueue_script('fade', get_bloginfo('template_url').'/js/fade.js', array('jquery'));   
        wp_enqueue_script('jqFancyTransitions', get_bloginfo('template_url').'/js/jqFancyTransitions.1.8.min.js', array('jquery'), '1.8');   
        wp_enqueue_script('s3Slider', get_bloginfo('template_url').'/js/s3Slider.js', array('jquery'));   
        wp_enqueue_script('cycle', get_bloginfo('template_url').'/js/jquery.cycle.all.min.js', array('jquery'));
    } 
} 
add_action('init', 'my_script'); ?>

then just try deleting these two lines:

        wp_deregister_script('jquery');
        wp_register_script('jquery', get_bloginfo('template_url').'/js/jquery-1.4.2.min.js', false, '1.4.2');   

that will tell it to use the wp version instead of its own version...  but if the theme is really coded to use the ancient version of jquery, may need to get more fancy...

Avatar
Mark Browning
Member
Free Members
sp_UserOfflineSmall Offline
Oct 21, 2013 - 11:45 am

Okay. Yes that's what it looks like. I am assuming that I can simply delete the two lines without worrying too much of doing any harm. In other words, no other repercussions on the site?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 21, 2013 - 3:35 pm

as I said in my post, try deleting them... bad things may occur if you theme relied on outdated, ancient jquery from 1.4.2...  in which case we would have to get fancier...

Avatar
Mark Browning
Member
Free Members
sp_UserOfflineSmall Offline
Oct 23, 2013 - 12:03 pm

Am about to remove the two lines that you have suggested. The question I wanted answered first is, if removal of the two lines causes problems, can the lines simply be re-inserted in order to remedy the problems caused by removing them? Thanks. (The less you know, the more cautious you become.)

Avatar
Mark Browning
Member
Free Members
sp_UserOfflineSmall Offline
Oct 23, 2013 - 3:17 pm

Screenshot-of-JS-issue.jpgImage EnlargerAnd one other question has to do with what the page of code should look like when the two lines are deleted. Once the two lines are deleted, should the space remain where they were taken out? Or should the space be removed? See attached screen shot of the edited code.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 23, 2013 - 5:51 pm

blank spaces or not doesnt matter...  its usually easier just to comment them out so  you can easily restore if needed...

to comment out put a # or // in front of the line...  so

//        wp_deregister_script('jquery'); 
//        wp_register_script('jquery', get_bloginfo('template_url').'/js/jquery-1.4.2.min.js', false, '1.4.2');   
Avatar
Mark Browning
Member
Free Members
sp_UserOfflineSmall Offline
Oct 23, 2013 - 7:22 pm

Alright. Went ahead and inserted // in front of the two lines. Refreshed the site, and still no response from the Add a Comment Buttons. All other buttons working fine. My MORON of a developer cannot find the license number for Evanto (MiniBuzz) that he received when he purchased. So, right now I cannot ask them about the problem.

How are the JS errors now? Is it still loading the ancient version?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 23, 2013 - 9:13 pm

sorry, Add a Comment Button?  do you mean add topic or add reply?

you still had the jquery updater plugin active so that was keeping wp from loading its copy of jquery...  I deactivated it and now wp is loading its version...

I still see one js error from the theme fade.js file... but the add topic and add reply buttons work for me...

give it a try...

Avatar
Mark Browning
Member
Free Members
sp_UserOfflineSmall Offline
Oct 24, 2013 - 9:24 am

Yes, sorry, I mean the Add Topic button. Was excited to hear that the buttons were working for you after the deactivation of jquery updater. Alas, when I tried it this morning after reloading the site, none of the buttons and links that were working fine before, including Members button, and the links to the four forums (Barn Owl Biology, etc) were working. However, I was using IE. When I switched to Firefox, everything worked fine including the Add Topic buttons. So right now, all we are dealing with is some kind of glitch in IE. Am using IE 10.

Seems like we might be a tweak away?

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