Support Forum

TinyMCE "cannot type in text box" problem + a few other issues

CM Carley A Morrow
Carley A Morrow
Member

Hello,

I’m looking for someone who can….

  1. get one of the “formatting” plugins to work on my simple-press forum
  2. fix the stats (forum/member stats dont seem to be changing)
  3. make my forum magic! (open to any suggestions you have!)

The site is Buddypress/Wordpress & I would need to get the work done on a test-site & if successful, make the changes.

Relevant posts:

https://simple-press.com/support-forum/sp5-plugin-topics/tinymce-unable-to-type-in-text-field/page-4/

https://simple-press.com/support-forum/sp5-plugin-topics/formatting-buttons-not-working-in-tinymce-editor/

https://simple-press.com/support-forum/sp5-plugin-topics/quicktags-bbcode-html-plugins-problem/

 

Would like to get issue 1 sorted asap; drop me a message!

Thanks 🙂

22 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

What do you mean by ‘formatting’ plugins? Do you mean editors?

Why don’t you zip up your WP theme and email it to me and I can try and find the problem area. support at simple-press dot com.

But I think we need to talk to you about the stats. Can you open a brand new topic on that as a separate issue?

CM Carley A Morrow
Carley A Morrow
Member

Thanks! 

Have sent zip file of theme & will start a new post re stats

 

PS. yes; I meant “editors” embarassed😉

YS Yellow Swordfish
Yellow Swordfish
Member

Yes – got it. Afraid it will be tomorrow now before I can look.

YS Yellow Swordfish
Yellow Swordfish
Member

Well the first piece of bad news is that I can not try this theme out on my development system because it makes calls to other plugins that I do not have and they make no checks for the existence of those plugins which would be the right thing to do.

The next bad news is that there are badly written calls to javascript routines all over the place and very few of them where they actually should be. Having seen ClassiPress themes before I can only assume this is an old one or a very heavily customised one.

So – any edits I suggest here may still not be totally correct as it is really hard to analyse. But let’s at least try.

There are 4 separate header php files. I do not know which one is actually used or if all of them are but as they all essentially have the same calls in them. There is a block of directly loaded script statements that includes these 4:

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

These appear to be the ones that are causing the current problems. Please note that word ‘appear’! I can not 100% confirm this. Now my suggestion for correcting this is not ideal but it should be safe and I see it is a method that the header php file uses already so I assume it should work. These 4 lines need replacing with:

<?php
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-widget');
wp_enqueue_script('jquery-ui-datepicker');
?>

However, the custom.min,.js file that is currently being loaded does contain some other libraries so we may need to add to this but we wont know what with until these lines are replaced. As I say – this is not the ideal way to do it but it is the best I can do without pulling the theme apart and re-writing most of it!

CM Carley A Morrow
Carley A Morrow
Member

thanks @YS – will get them to look at it asap; the theme was fairly recent (December/Jan) but it has been highly customised

CM Carley A Morrow
Carley A Morrow
Member

Yellow Swordfish

 

If I am putting the code you have suggested, that is

<?php
2 wp_enqueue_script(‘jquery-ui-core’);
3 wp_enqueue_script(‘jquery-ui-widget’);
4 wp_enqueue_script(‘jquery-ui-datepicker’);
5 ?>

then it is not adding the js files and my functionality id getting break.

YS Yellow Swordfish
Yellow Swordfish
Member

Was it not loading the ‘datepicker’ js file? Or do you mean it was missing something else? If the latter I did say above that there may be something else missing but we wouldn’t know what until the current scripts were cleaned up properly.

So the key to this is to determine whether the datepicker script is being loaded. If so then the next step if to find out what else is missing so we can add it back in.

If the datepicker script is NOT being loaded then, as I said, I was not totally comfortable with the method but accepted it because the theme was already doing things that way.

The best thing to do woud be for you to tell me when you make those changes – or better still pre-arrange a time – so that I can dive straight in and take a look at the outcome.

YS Yellow Swordfish
Yellow Swordfish
Member

Yes – I was worried about that. I am sorry to be blunt but your theme is a bit of a mess as far as working out what should go where is concerned. And the theme itself is using the method we tried even though I had my doubts about it.

I think all I can do in the absence of actually being able to use the theme on my dev site is tell you how to enablwe these so they load globally – which might be what you want.

So – still remove those script statements (they are really bad) AND the new code I suggested.

Open the functions.php file in yoiur wp theme. In there you will find a function called bp_dtheme_enqueue_scripts() – I have no idea why it has that name! Paste the three wp_enqueue statements into that function. See if that works!

Now – remember what I said above. There may be some other script files we will need to add to this but we can not tell what until we run it and see what is missing. This is NOT a problem – just a matter of getting it right.

If this does NOT work after all of this I am not sure how much more I can advise top be honest. I would seriously recommend getting someone in to work through that theme code and clean it up and make sense of it…. and sory to be blunt there.

CM Carley A Morrow
Carley A Morrow
Member

Hello Yellow Swordfish,

 

Thanks a lot for your help.

 

The bug is resolved with the solution you have given and I have updated the plugin to latest version.

YS Yellow Swordfish
Yellow Swordfish
Member

Oh that is good news to cheer me up with on this damp, grey morning!