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
newbie - can't post topics
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 30, 2013 - 7:22 pm

looks like its still running...  at least something opacity and fading of thumbnails is throwing errors and stopping script processing...

Avatar
lyal Strickland
Member
Free Members
sp_UserOfflineSmall Offline
Feb 1, 2013 - 1:37 pm

any idea how i can hunt this down and fix it? 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 1, 2013 - 2:14 pm

This is the code that the console is flagging as producing errors:

<script type="text/javascript">
var $ = jQuery;
$(document).ready(function(){
    $(".fadein").fadeTo("medium", 0.7); // This sets the opacity of the thumbs to fade down to 30% when the page loads
    $(".fadein").hover(function(){
        $(this).fadeTo("medium", 1.0); // This should set the opacity to 100% on hover
    },function(){
        $(this).fadeTo("medium", 0.7); // This should set the opacity back to 30% on mouseout
    });
});
</script>

 

So what you really need to do is locate this code in th theme files. I wuld start by looking in the functions.php file - then the header.php. If not in those - look to see if there is a specific folder with .js files in.We can certainly help rewrite this to avoid this particular error ans hopefullty this error is not masking another one.

andy-signature.png
YELLOW
SWORDFISH
Avatar
lyal Strickland
Member
Free Members
sp_UserOfflineSmall Offline
Feb 1, 2013 - 3:01 pm

thanks... i'm looking now. i'll let you know if i find it! :)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 1, 2013 - 10:26 pm

please do...

Avatar
lyal Strickland
Member
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2013 - 9:10 am

found it in a document called wordpress-hooks.php.. deleted it and the forum works fine. is there a way to re-write the script so both work? it not, it's no big deal...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2013 - 9:38 am

lets try something simple first... try changing it to:

<script type="text/javascript">
jQuery(document).ready(function(){
    jQuery(".fadein").fadeTo("medium", 0.7); // This sets the opacity of the thumbs to fade down to 30% when the page loads
    jQuery(".fadein").hover(function(){
        jQuery(this).fadeTo("medium", 1.0); // This should set the opacity to 100% on hover
    },function(){
        jQuery(this).fadeTo("medium", 0.7); // This should set the opacity back to 30% on mouseout
    });
});
</script>
Avatar
lyal Strickland
Member
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2013 - 9:54 am

ack! that took the whole site down. lol :)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2013 - 10:06 am

sounds like you didnt enter the code properly...  or you got strange characters when you copied it...

noticed I didnt mark it as code... let me do that and then you should use the raw copy button...

Avatar
lyal Strickland
Member
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2013 - 10:27 am

okie. :)

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625