Support Forum

Editor issues

AM Andrew Mintram
Andrew Mintram
Member

Hi all,

New installation of SimplePress on my site, but having problems with editors.

The basic plain text editor works fine generally, BUT when trying to ‘quote’, the text box does not contain the quoted text, it remains blank.

When using the bbcode editor (my preferred choice), when trying to start a new topic, I am presented with the first screenshot below.

When quoting a post with bbcode editor, the editor appears correctly, but still does not contain the quoted text (see second screen shot). 

The theme designer has had a look and cannot see any errors, so has suggested I come here next!

Site is at: www.passengerfans.co.uk/forum/ – login details can be provided via PM if necessary.

Thanks in advance,

Andy

problem1.jpgproblem3.jpg

39 Answers

New Answer

MP Mr Papa
Mr Papa
Member

so you are saying on new topic, you cannot post with bbcode?  only when quoting but the quoted stuff does not show up?

hard to see because as you note, guests cannot post…

first, try a quick temp change to wp default theme and see if still issue…

for us to go further, would need a temp account sent to us via pm… please include yellow swordfish, BrandonC and myself on the pm and link back to this topic…

AM Andrew Mintram
Andrew Mintram
Member

That’s exactly correct Mr Papa. Sorry, I had forgotten that I had it set that guests cannot post so you couldn’t replicate it!

It does appear to work correctly on the Twenty Eleven theme (sorry again, I meant to check that before I posted my first post, but it was late!)

I will inform the theme developer also, but if you are able to have a look to see what might be causing it, that would be helpful. PM sent.

Thanks again.

MP Mr Papa
Mr Papa
Member

okay, well now we know the source of the conflict…  not sure the theme author will help much, but who knows…

looks like its loading a single js file

<script type=’text/javascript’ src=’http://www.passengerfans.co.uk/wp-content/themes/Tersus/js/nv-script.pack.js’></script>

any chance you know what that js file is used for??  its minimized so not really readable…  are you using it?  what about on the forum page itself (ideally theme would only load it when needed)…

perhaps you can comment it out in header.php or functions.php or whatever file its included in just to see if it matters…

AM Andrew Mintram
Andrew Mintram
Member

The theme author has been quite responsive so far so I’m sure he will help.

I have no idea what this js file is used for but will ask and find out.

I will also try commenting it out to see what effect it has.

Thanks for now, I’ll let you know.

Andy

AM Andrew Mintram
Andrew Mintram
Member

Reply from theme editor as follows:

“As suspected it’s to do with jQuery Effects – in particular slide. Even if I enqueue the script the plugin fails. i.e.

wp_enqueue_script(”jquery-effects-slide”,false,null);

So it would seem to be something in their plugin which isn’t playing nicely with the jQuery Effects Fade script.

I’ve temporarily disabled the following line in Tersus/functions.php so you can see it working, however you may encounter some other other issues with it disabled.

wp_enqueue_script(”jquery-effects-slide”,false,null);”

Andy

MP Mr Papa
Mr Papa
Member

ah cool… it might not be compatible with the version of jquery or jquery ui that ships with wp now…

enqueueing may not help if there is a conflict… and you really want a dependency in there I think…

wp_enqueue_script(”jquery-effects-slide”,false,array(‘jquery’));

in order to make sure jquery is loaded first…  if its dependent on jquery ui, you would need that too…

but to not load it on the forum page, you can change it to

if (!sp_is_forumpage()) wp_enqueue_script(”jquery-effects-slide”,false,array(‘jquery’));

AM Andrew Mintram
Andrew Mintram
Member

Thanks again, I’ve passed that on the theme author (it doesn’t mean a lot to me!!!).

Also, although the editor does now appear to work, I still cannot quote… is this linked or a separate problem do you think?

YS Yellow Swordfish
Yellow Swordfish
Member

It is probable. A quick test using the default Wp theme will tell you.

If everything gets enqueued correctly hopefully it will be sorted but let us know if it doesn’t

AM Andrew Mintram
Andrew Mintram
Member

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!)

AM Andrew Mintram
Andrew Mintram
Member

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.

YS Yellow Swordfish
Yellow Swordfish
Member

It might be worth sending our Codex link to your theme author as well: http://codex.simple-press.com/codex/faq/troubleshooting/what-is-this-jquery-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!

AM Andrew Mintram
Andrew Mintram
Member

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!

YS Yellow Swordfish
Yellow Swordfish
Member

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.