Support

Home Forums Event Espresso Premium Embed webinars

Embed webinars

Posted: October 17, 2015 at 11:25 am

Viewing 2 reply threads


Jim Meyer

October 17, 2015 at 11:25 am

I would like to use eventespresso to list all my events, including webinars. I’m not selling tickets for webinars, so my idea was that I would make it so that the “Display Ticket Selector” was set to “No”. Access would be controlled by s2member levels and the webinars are hosted by BrightTalk so all I do is embed a code.

When I post the code (below) in an ordinary post it works. But when I paste it into an event it gets completely stripped out. Any ideas?


<script src="https://www.brighttalk.com/clients/js/embed/embed.js" type="text/javascript"></script>
<object class="BrightTALKEmbed" width="656" height="507"><param name="player" value="webcast_player_widescreen" /><param name="domain" value="https://www.brighttalk.com" /><param name="channelid" value="8725" /><param name="communicationid" value="XXXXX" /><param name="autoStart" value="false" /><param name="theme" value="" /></object>

If I could get this to work I would then use a combination of shortcodes with categories and parameters so that past webinars are listed on a page.


Jim Meyer

October 18, 2015 at 2:46 am

I have got this to work, but only by creating a shortcode which handles embedding the code. For any one who is interesting in the same thing, here is the code:


	function robobrief_brighttalk( $atts ) 
	{
		$a = shortcode_atts(array 
		(
			"communication_id" => 'ABC',
			"channel_id" => "XYZ",
		), $atts );
		return '<script src="https://www.brighttalk.com/clients/js/embed/embed.js" type="text/javascript"></script>
            <object class="BrightTALKEmbed" width="656" height="507"><param name="player" value="webcast_player_widescreen" /><param name="domain" value="https://www.brighttalk.com" /><param name="channelid" value="' . $a['channel_id'] . '" /><param name="communicationid" value="' . $a['communication_id'] . '" /><param name="autoStart" value="false" /><param name="theme" value="" /></object>';
	}
	add_shortcode( 'brighttalk', 'robobrief_brighttalk' );

The good thing is that now my events pages shows all events, including webinars. I link each webinar to a “webinars” category so that I can also display all past a list of all webinars on a separate page so that visitors can watch them at their leisure.


Tony

  • Support Staff

October 19, 2015 at 4:00 am

Hi Jim,

Thank you for sharing your solution.

Currently Event Espresso removes various tags from the event description and it appears to be stripping all HTML out of the content, we have a ticket that includes a fix for this that will be included in the next version of Event Espresso (4.8.15.p).

This means you won’t need to force the input to be done through shortcodes and can do so through the editor if you prefer.

Viewing 2 reply threads

The support post ‘Embed webinars’ 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