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
Add Topic Problem
Avatar
Ludovic METZKER
Member
Free Members
sp_UserOfflineSmall Offline
Mar 13, 2012 - 1:00 pm

Hello, sorry for this problem ^^ 

I have delete this line in my "header.php" page (theme creator instruction) : 

<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/scripts/jquery-ui.min.js" ></script>

Now, i can answer without problem .... but, i dont see the administrator panel when i play with the mouse  

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 13, 2012 - 3:06 pm

Well that still leaves the mnain jQuery.js file being loaded badly as well I am afraid

andy-signature.png
YELLOW
SWORDFISH
Avatar
Ludovic METZKER
Member
Free Members
sp_UserOfflineSmall Offline
Mar 13, 2012 - 3:50 pm

If you have idea, i take everything 🙂 The theme creator dont give me a solution, only delete one line in header.php lol

 

It's possible to send you a copy of the original theme ? I'm very lost and I dare not bore you but i need very helps.

Thanks you  

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 13, 2012 - 8:47 pm

the problem (as Andy has said) is that your theme is loading jquery incorrectly... its 'hard coded' to load its version of jquery instead of the one that ships with wp...  its doing this by:

<script type="text/javascript" src="http://lapinscannibales.com/site/wp-content/themes/gamespeed/scripts/jquery.min.js"></script>

so if you could look in your theme header.php or functions.php and look for 'jquery.min.js'...

If you cannot find, it go ahead and zip up the theme and send it to us a support at simple-press dot com...  but please look first. wink

Avatar
Ludovic METZKER
Member
Free Members
sp_UserOfflineSmall Offline
Mar 14, 2012 - 2:59 am

Hello, i have try to change code.... i dont understant since 3 hours. If you can help me, i thank you so much !! I test to send you the theme in .zip 

Avatar
Ludovic METZKER
Member
Free Members
sp_UserOfflineSmall Offline
Mar 14, 2012 - 4:37 am

I have send the original theme without modification to upload.com and if you want help me, you can find this one here : 

gamespeed-full-version.zip - 1.7 MB

I am really sorry for the inconvenience but if you can really help me, it would be really really nice of you. The creator of the theme did not seem to understand the worries and gives me the wrong information. 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 14, 2012 - 6:26 am

OK - I have the files and I can see the problem areas. I have to say this theme is very badly constructed. But we can fix it. Will get back to you later today at some point - as soon as I can.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 14, 2012 - 7:43 am

Right - below are the changes needed. These work fine on my test systems. As always we recommend you make safety copies of the files before you change them and store them locally.

header.php

At line 19 locate these two lines of code:

<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/scripts/jquery.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/scripts/jquery-ui.min.js" ></script>

and remove them.

functions.php

Following the three 'include_once' statements at the top of the file, add this code black:

add_action( 'wp_enqueue_scripts', 'gamespeed_load_scripts', 1 );
function gamespeed_load_scripts() {
    wp_enqueue_script( 'jquery' );
    wp_enqueue_script( 'jquery-ui-core' );
}

and further down locate this section of code:

if (is_admin() && $_GET['page']=='options') {
    wp_deregister_script( 'jquery' );
    wp_register_script('jquery', get_bloginfo('template_directory').'/scripts/jquery-1.6.1.js');
    wp_enqueue_script('jquery');
    add_action('wp_print_scripts', 'loadGlobalVariableJs');
}

and change it to:

if (is_admin() && $_GET['page']=='options') {
//    wp_deregister_script( 'jquery' );
//    wp_register_script('jquery', get_bloginfo('template_directory').'/scripts/jquery-1.6.1.js');
    wp_enqueue_script('jquery');
    add_action('wp_print_scripts', 'loadGlobalVariableJs');
}

and that should do the trick. If not - then let me know please.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Joanne Hayes
Member
Free Members
sp_UserOfflineSmall Offline
Mar 14, 2012 - 9:26 am

Hi there,

I loaded Simple: Press yesterday am having the same issue with the topic. When I try to add a topic I can only type in the subject line and the comment box is grayed. Then if I hit submit, it doesn't add the topic.

I read through this post and checked the link in codex on jQuery conflict, read it, then checked my source code and it is set up properly with:

<script type='text/javascript' src='http://mydomain.com/wp-includes/js/jquery/jquery.js?ver=1.7.1'></script>

I am using Socrates theme and S2member plug in for our membership and I used the default theme for Simple: Press, 
but I made it my own by copying and making the changes you outline in the codex paper on themes.

Everything else seemed to load in properly and easily. 

I love the layout for Simple: Press.

Can you help me fix this?

thank you,

Joanne
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 14, 2012 - 1:48 pm

Sounds like something is clearly amiss then, but I will probably need more information. In the first instance - for the sake of elimination - would it be possible for you very briefly switch your site to use the WP default theme to find out if things then work. It's a good starting point. And a link to your forum age would be good to have so that I can take a look at it.

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: 621
Members: 17368
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10129
Posts: 79627