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
Theme Background Disappears on Forum Page [WP Integration]
Avatar
N
Member
Free Members
sp_UserOfflineSmall Offline
Oct 24, 2013 - 4:45 am

Mr Papa said
odd... the wp theme is doing a couple things that violate the wp standards...  not sure it has any impact but may...

its loading jquery and jquery ui from an external source instead of the using the copies that come with wp...

<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js?ver=1.5.2'></script>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/jquery-ui.min.js?ver=1.8.15'></script>

thats not a good thing to do, especially with those old versions...  jquery 1.5.2 is very old - current version that comes with wp is 1.10.2...   jquery ui isnt as bad but still 1.8.15 vs wp version of 1.10.3...

but those old versions of jquery and jquery ui could be quite unstable and not what wp and other plugins are expecting...  but cant guarantee its the problem either though...

does the wp theme have any options to not load external jquery or jquery ui?  and use the wp versions?

That is very interesting... there aren't any options to do this within the theme options itself, but is it something that can be achieved via the coding without breaking all of the hover animations (etc)?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 24, 2013 - 10:17 am

unknown...  is this theme quite old?  because that jquery version is?  unless they explicitly used methods in the very old jquery version, it should work with the latest...

we can easily correct the theme to use the wp version and see what happens...  search through the theme files and look for those strings (ie the jquery versions)...  the theme will likely be deregisterig the wp jquery version then registering the external version, then enqueing the jquery (and ui)...  we will just want to remove the first two (deregister and register) and leave the enqueue in place.. that will use the wp version instead...

unfortunately, I do not know if this will help the background image issue but will at worst, fix other issues...

Avatar
N
Member
Free Members
sp_UserOfflineSmall Offline
Oct 24, 2013 - 5:07 pm

Mr Papa said
unknown...  is this theme quite old?  because that jquery version is?  unless they explicitly used methods in the very old jquery version, it should work with the latest...

we can easily correct the theme to use the wp version and see what happens...  search through the theme files and look for those strings (ie the jquery versions)...  the theme will likely be deregisterig the wp jquery version then registering the external version, then enqueing the jquery (and ui)...  we will just want to remove the first two (deregister and register) and leave the enqueue in place.. that will use the wp version instead...

unfortunately, I do not know if this will help the background image issue but will at worst, fix other issues...

The theme has been updated fairly recently - the background and scripts disappear in the front end completely when I remove the deregister/register commands.

I've instead opted to point to the latest versions of jQuery, but the original problem still remains (background and scripts not showing on Forum page).

wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', false, '1.9.1');
 wp_register_script('jquery-ui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js', 'jquery', '1.10.3');
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 24, 2013 - 7:36 pm

as I said, not sure they are related, but you will likely run into other issues...

not sure why the image would disappear with proper ones...  the ones you listed are still wrong... that is an older jquery than what comes with wp...  and picking the same version may not be enough since google apis typically doesn use noconflict either... and when wp updates, like it does in most releases, you will still be out of date...

if you want to send me a temp wp admin account with sp admin caps, I can take a look at some other sp options or theme options and see if they are in conflict or something...

Avatar
N
Member
Free Members
sp_UserOfflineSmall Offline
Oct 25, 2013 - 12:57 pm

Mr Papa said
as I said, not sure they are related, but you will likely run into other issues...

not sure why the image would disappear with proper ones...  the ones you listed are still wrong... that is an older jquery than what comes with wp...  and picking the same version may not be enough since google apis typically doesn use noconflict either... and when wp updates, like it does in most releases, you will still be out of date...

if you want to send me a temp wp admin account with sp admin caps, I can take a look at some other sp options or theme options and see if they are in conflict or something...

Thank you, I'll create an account and send you over the details in PM :-)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 25, 2013 - 1:29 pm

okay, thanks...  will try to look this afternoon, but its senior night at my sons HS football game tonight so will be packing it in a bit early... might be this weekend...

Avatar
N
Member
Free Members
sp_UserOfflineSmall Offline
Oct 25, 2013 - 3:17 pm

No problem Mr Papa, your time is greatly appreciated :-)  

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

sorry, afraid the account you created does not have the needed permissions... you did make it a wp admin account, but not an sp admin account...  please go to forum - admins - manage admins and give it all the sp admin capabilities...

Avatar
N
Member
Free Members
sp_UserOfflineSmall Offline
Oct 26, 2013 - 4:46 pm

Apologies, have just rectified the problem and given you SP admin access.

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

I am still unsure what might be changing the background image to display:none...  but there are lots of js issues on your site...  jquery is not working right because of the wrong versions still getting loaded...  we really should fix the jquery and jquery ui stuff first and either rule it out while fixing other issues or maybe it will help this too...

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