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
WP 3.3 & SP 5.0 Upgrade and serious javascript functions (topic, post, links) not working
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 14, 2011 - 4:23 am

What, exactly, are you referring to when you day 'glider'? I didn't see any animation when I loaded and looked through the site so you need to point it out to me please. Need to know what it is before we go much further.

I am not sure what to suggest. Looking on google I see quite lot of people having issues with the jQuery easing plugin and WP. One of the problems may well be that it has not been updated since 2007 and in software terms that is a long time. In those 4 years jQuery has undergone many changes so this may just be a compatibility issue causing knock-on effects.

andy-signature.png
YELLOW
SWORDFISH
Avatar
PCDF
Guest
Guests
Dec 14, 2011 - 5:00 am

The glider is the segment beneath the header image - the 4 small images and post excerpts, it's on all pages immediately under the menu. There are prev/next buttons that "glide" the (recent) posts across. This no longer works. The css code for it is the top line before the enqueue stuff. When I removed /js/jquery.easing.1.1.js, the forum starts working but the glider stops working. So I was asking, given this code that seems to be at issue, do you see a solution to make them both work? 

 

link rel="stylesheet" type="text/css" href="]]?php bloginfo('template_directory'); ?]]/glide.css" media="screen" />

]]?php
wp_enqueue_script('jquery');
wp_enqueue_script('cufon', get_stylesheet_directory_uri() . '/js/cufon.js');
wp_enqueue_script('easing', get_stylesheet_directory_uri() . '/js/jquery.easing.1.1.js');
wp_enqueue_script('carousal', get_stylesheet_directory_uri() . '/js/jcarousel.js');
wp_enqueue_script('Myriad', get_stylesheet_directory_uri() . '/js/Myriad_Pro_700.font.js');
wp_enqueue_script('Effects', get_stylesheet_directory_uri() .'/js/effects.js');

?]]

]]script type="text/javascript"]] ]]!--//--]] ]]![CDATA[//]] ]]!--
sfHover = function() {
if (!document.getElementsByTagName) return false;
var sfEls1 = document.getElementById("catmenu").getElementsByTagName("li");
for (var i=0; i<sfEls1.length; i++) {
sfEls1[i].onmouseover=function() {
this.className+=" sfhover1";
}
sfEls1[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover1\\b"), "");
}
}
var sfEls1 = document.getElementById("menu").getElementsByTagName("li");
for (var i=0; i<sfEls1.length; i++) {
sfEls1[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls1[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--]] ]]!]]]]]]/script]]

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 14, 2011 - 6:25 am

Ok- this is going to depend on where your wp_enqueue code is called from but it's worth a try. Change that one line of code for this:

if ( ! sp_is_forumpage() ) {
    wp_enqueue_script('easing', get_stylesheet_directory_uri() . '/js/jquery.easing.1.1.js');
}

Now this might just give you an error in which case remove it again - but see what happens on the forum page AND other pages where the easing is used. And note that exclamation mark!

andy-signature.png
YELLOW
SWORDFISH
Avatar
PCDF
Guest
Guests
Dec 14, 2011 - 7:09 am

Thanks. I will give that a go and report back in a bit. After coffee 😉

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 14, 2011 - 7:11 am

please let us know...

Avatar
PCDF
Guest
Guests
Dec 14, 2011 - 10:03 pm

Woo! * does happy dance* Now they both work. So far, no glitches that I can tell. Glider glides and forum forums. You are at the top of my favorite people list. Thanks so much for helping me. And I see this code and the logic and suddenly that makes total and complete sense. Hah.

 

Thanks so much for staying with me on this. It is appreciated. 

 

Now...about the cool image drag & math captcha and the sidebar admin online thing? Where might I find those?cool

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 14, 2011 - 11:41 pm

admin online is a template tag in the template tags plugin for 5.0...

the math captcha is in the captcha plugin for 5.0...

Avatar
PCDF
Guest
Guests
Dec 15, 2011 - 12:34 am

Thanks. I found those and activated them. Is the admin online set up for a sidebar widget on the site itself? I'm not sure how to implement it. I activated and nothing in particular happened 😀

Avatar
PCDF
Guest
Guests
Dec 15, 2011 - 12:44 am

Also, where might I find 5.0 badges, smileys, and icon sets? In the last version I had an option on the smileys to use the WP ones, which incorporated tango smileys. Is that still available or ?

 

Thanks!

 

Hahah...I'm getting such a kick out of this image drag captcha...feel like a 1st grader on Sesame Street. It's definitely a non obnoxious captcha, really cool. 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 15, 2011 - 5:14 am

Yes... isn't that captcha nice!

The admin online tag is NOT a widget but a standard WP template tag. One day we may find the time to make some more of these into widgets but its a slow process I am afraid.

The calls is:

sp_AdminModeratorOnlineTag();

and if you look in the template tag plugin folder for the /library folder you will find the code file in there which documents all of the possible parameters that can be used. As stated on the V5 download page - documentation is not yet ready I am afraid.

Sadly we had to remove the option to use wp smileys as a default. I honestly can not recall the reason for this now but it was proving troublesome. But there are smiley sets available form all sorts of sources if you google them. V5 doesn't use 'icon sets' in the V4 sense but themes. all icons used in a theme can be found in the relevant theme folder. Badges? Well the one we use here on this site I just made in photoshop.

andy-signature.png
YELLOW
SWORDFISH
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: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625