Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Can't create polls
Avatar
Andrew Adie
Rookie
Free Members
sp_UserOfflineSmall Offline
Jan 14, 2013 - 7:59 am

When I edit a topic, and click on the Poll button to add a poll the button points to javascript:void(null) and nothing happens. Any ideas?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 14, 2013 - 8:11 am

It usually (I stress usually) points to a javascript conflict in your site - your wp theme or another plugin - which needs to be fixed. This codex article explains what this means and what to look for:

http://codex.simple-press.com/.....-conflict/

If you give us a link to your forum page we can take a brief look however.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Andrew Adie
Rookie
Free Members
sp_UserOfflineSmall Offline
Jan 14, 2013 - 8:18 am

Hi,

Thanks for your help here. The Link is


http://www.montrosemusicfestiv.....ning-group

 

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 14, 2013 - 8:32 am

Yes - as I suspected. Your WP theme is breaking the WordPress rules as outlined in the article I linked to above. Not only are they force loading their own jQuery library but it is also a woefully out of date version (1.4 as opposed to the proper 1.7).

I think you will find if you can correct this then things will work as expected.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Andrew Adie
Rookie
Free Members
sp_UserOfflineSmall Offline
Jan 14, 2013 - 8:38 am

Thanks. I'll look into updating it. Appreciate your help.

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 14, 2013 - 8:42 am

Come back if you get into difficulties. We can sometimes help although it is always worth talking to the theme author first.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Andrew Adie
Rookie
Free Members
sp_UserOfflineSmall Offline
Jan 14, 2013 - 9:44 am

Hi, the theme author says there will be no further updates. Is there another way I can work around this. The simple:press forums are working great apart from the polls...this is the bit i really need as it is to allow users to vote on bands that apply for our charity music festival. 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 14, 2013 - 11:30 am

How very helpful.
You will need to find where the jQuery.js file is being loaded. I would suggest that it is probably in the themes header.php so start woth that and take a look at the code. See if you can see a script tag loading that library.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Andrew Adie
Rookie
Free Members
sp_UserOfflineSmall Offline
Jan 14, 2013 - 1:31 pm

There was and I updated it to point to:

<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/jquery-1.7.2.min.js"></script>

It all seems to work now....thanks for your help :)

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

Well yes that IS better but I am afraid it is still not actually correct! Scripts in WP should not really be loaded using the script tag at all.

What you should do is remove that line of code completely from the header.php then open up the themes functions.php and add this:

add_action('wp_enqueue_scripts', 'load_script', 1);
function load_script() {
    wp_enqueue_script('jquery');
}

You can change the function name of course.

 

 

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: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625