Support Forum
Using default theme it quotes correctly. I've notified the theme author again, although he hasn't yet viewed the previous message from Mr Papa so once he does that, it may work correctly. I will let you know once he replies again!
(And can I just say how good it is that both plugin and theme developers are trying to help resolve this!)
OK, latest from the theme author:
"I don’t know what to suggest – the quote is another conflict with the WP jQuery libraries. The only way I can get the plugin fully working is to disable any WordPress jQuery calls, but then the Theme will not function.
I’m 99% sure you’ll get this with any premium Theme using jQuery for their functionality. The default Theme doesn’t use jQuery ( it’s pretty featureless ) hence why that works fine.
Another strange thing I found is that for the ”New Topic” to work it requires a dependency on jQuery Tabs… if I remove the call to the jQuery Tabs it fails.
I can’t write conditional statements for jQuery Core UI / jQuery Core Effects because it’s needed throughout the Theme. e.g. Menu"
It would be a real shame if SimplePress (with bbcode editor) and Tersus can't be used together, so I'm hoping there is a solution to this (other than resorting back to the plain text editor!)
Thanks once again.
It might be worth sending our Codex link to your theme author as well: http://codex.simple-press.com/.....-conflict/
This tries to explain why not using the enqueue methods can be a problem.
If your theme author is helpful then cherish that! We so often hear tales where theme authors completely ignore their users questions and just blame everything on plugins!
YELLOW
SWORDFISH
|
Thanks again... So, not wanting to create a problem, but are you confident that this is definitely not an issue with SimplePress, and is mostly/wholly down to how the theme uses jquery? I have no knowledge of jquery and am just trying to pass info back and forth as best I can to get it solved!
Worst case scenario is I'll have to use a different theme, which is not the end of the world, but does mean more work for me!
If all theme and plugin code sticks to the WP rules than all should be well.
Your site is throwing one script error to do with tabs but I am unsure what is generating that - theme or plugin - which wont help things. This is because it is using the '$' instead of 'jQuery' whuch is the preferred WP method as discussed in the codex article I linked to.
YELLOW
SWORDFISH
|
Theme author:
The Theme *is* using enqueue methods!
I’m using all standard WP Enqueue scripts found here http://codex.wordpress.org/Fun.....eue_script
When I get chance I’ll do a simple test with the default theme which if it turns out to what I believe it is, the Theme / Plugin will break.
I'll let you know what happens!
Please make sure they are enqueueing with dependencies too. Last example you posted did not make it dependent on jQuery or jQuery ui. Otherwise it might get loaded before needed components are loaded.
Visit Cruise Talk Central and Mr Papa's World
Further reply from theme author:
I've done a test with the standard Theme TwentyEleven, it works fine with the quote function as standard. However if you enqueue some default jQuery Scripts using WordPress scripts / methods, it stops working. I’ve added this to the functions.php file and if you activate Twenty Eleven, you’ll see it no longer works.
function custom_scripts()
{
if ( !is_admin() )
{
wp_enqueue_script(’jquery-ui-core’,false,array(’jquery’));
wp_enqueue_script(’jquery-effects-core’,false,array(’jquery’));
}
}add_action(’wp_enqueue_scripts’, ’custom_scripts’);
I hope this can be fixed!
Thanks,
Andy
1 Guest(s)