Support

Home Forums Event Espresso Premium Event Description Visual Editor Problems What is PHP template for Event Desc

Event Description Visual Editor Problems What is PHP template for Event Desc

Posted: August 21, 2013 at 1:14 am


Megan Murray

August 21, 2013 at 1:14 am

Hello-

First, thanks for an awesome plugin! I love it.

I’m having the same problem as many people with the Event Description Visual / Text Editor not working.

I’ve deactivated and TinyMCE plugins that could be a conflict. I’m running WordPress 3.5.1. (Also, I’m runing Event Espresso 3.1.34 and using the Duotive 5 Theme).

At this point I am under the gun with launching this event and don’t want to risk having to restore my entire website if there is a problem updating to 3.6.

I’d like to go straight to the PHP template file that contains the Event “Description” word and add the actual event description in place of the word “description.” What is the name of the php template file that contains this information? Also, what line contains this code?

Or, if you have a better idea of how I get the event description into to the registration form, please let me know.

the website I’m working on is http://bgclt.org/

Thank you!!!


Dean

August 21, 2013 at 3:47 am

Hi Megan,

Have you tracked down which plugin is causing the problem with the event editor? It may also be the theme, basically anything that modifies the buttons or output of the editor could be to blame.

Honestly, modifying the word Description to add in the actual description is going to cause you more headaches in the long run than troubleshooting the actual issue will.

However, if it’s a single event and you need to hack it to get going, then look at the registration_page_display.php file, around line 40. You can alter that to add in the description. But note that it is not a recommended course of action.

You would be best copying the registration_page.php and registration_page_display.php files over to wp-content/uploads/espresso/templates first and then modify the registration_page_display.php file there. Both files need to be copied even if you only edit one (they are linked).


Megan Murray

August 21, 2013 at 11:10 am

Dean-

I agree that modifying the actual “description” in the php file is probably not going to work as the Client’s event description is long and detailed (bullet points, etc).

So if its not a plugin conflict and I’m very doubtful the problem is related to me running WordPress 3.5.2, what exactly should I be ask the Theme Developers to do to enable the EVENT Description visual editor to work? If I’m asking them to modify the THEMES TinyMCE, won’t that create issues on all of the other pages on the website where I used the THEMES TinyMCE buttons & shortcodes to create the layouts on those pages?

I’ve got to be able to get the event description loaded onto the registration page somehow.

Thanks in advance for your help.
Megan
I have ruled out any PlugIn conflicts.


Josh

  • Support Staff

August 21, 2013 at 12:35 pm

Hi Megan,

The ideal fix would be the theme dev make the tinyMCE customizations load where needed, not everywhere.

In reality they could do a hack that removes them only for the Event Espresso event editor. A few code examples follow:

//This is for cases where the extra tiny MCE buttons are added by means of a filter
if (isset($_REQUEST['action']) && ($_REQUEST['action'] == 'add_new_event' || $_REQUEST['action'] == 'edit')) {
remove_filter('mce_external_plugins', "theme_register_function"); // theme function name
remove_filter('mce_buttons_3', 'theme_add_buttons_function', 0); // theme function name
}

//or

//This is for cases where the extra tiny MCE buttons are added by means of an action
if (isset($_REQUEST['action']) && ($_REQUEST['action'] == 'add_new_event' || $_REQUEST['action'] == 'edit')) {
	remove_action('init', 'add_button');
}


Megan Murray

August 21, 2013 at 12:44 pm

Ok. Fair enough. But here is the million dollar question. There’s a good chance my Theme Developers are going tell me that they don’t offer “development service” for a $50 Theme particularly when the problem is being caused by a Plugin and not the Theme itself.

Since, the Event Description editing problem is pretty widespread with Event Espresso and I doubt my THEME will take the time to hack their code for me, ARE THEIR ANY OTHER last resort options.

Your time is much appreciated.

Thank you!
Megan


Josh

  • Support Staff

August 21, 2013 at 1:32 pm

This problem only happens when themes or plugins are coded in such a way where extra buttons are injected into every editor box in the admin. Event Espresso has a built in function that tries to mitigate this, but it doesn’t work every time.

If you can send a copy of the theme to support@eventespresso.com we can take a look at the code and offer a solution.


Josh

  • Support Staff

August 22, 2013 at 11:43 am

Hi Megan,

I whipped up a little compatibility plugin that will fix the issues you’re having with the event editor’s editor box. You can download it from here:

https://github.com/joshfeck/remove-extra-editor-buttons

Look for the “Download Zip” button on the lower right side of the page there. It can be uploaded, installed, and activated via the WP plugin manager.


Megan Murray

August 24, 2013 at 9:52 am

Josh-
Sorry for the delay! I used the Plugin you created and its working great! Thank you for the quick help on this issue.

By far, the customer service experience with Event Espresso has been the best of any WordPress Theme or Paid Plugin that I’ve used in the past two years!

Thank you,
Megan

The support post ‘Event Description Visual Editor Problems What is PHP template for Event Desc’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso