Support

Home Forums Community Forum Using shortcodes in event description problem

Using shortcodes in event description problem

Posted: November 22, 2013 at 10:22 am

Viewing 18 reply threads


Alex Ryall

November 22, 2013 at 10:22 am

We are using Event Espresso Premium. I would like users to be able to see who is attending an event so added [LISTATTENDEES] in the event description for the event. This works fine on the events page however the shortcode doesn’t work on the calendar ([ESPRESSO_CALENDAR]), when the event is hovered on it shows [LISTATTENDEES] as a string in the description.

Is there either a way to remove the shortcode from the calendar or make the shortcode work in the calendar?

Thanks

Alex


Josh

  • Support Staff

November 22, 2013 at 11:03 am

Hi Alex,

Adding a more tag will hide everything after it in the Calendar’s tooltip:

[LISTATTENDEES]


Alex Ryall

November 25, 2013 at 3:49 am

Thanks for the quick reply. I can’t get [LISTATTENDEES] to work on the event’s page anymore although it was working fine on Friday when I started this thread. If I do [LISTATTENDEES show_gravatar=”true”] it shows the list on the page but I want the normal [LISTATTENDEES].

Why would this shortcode have stopped working but not all?

Thanks

Alex


Dean

November 25, 2013 at 6:20 am

Hi Alex,

There should be no reason why it would stop working. Can you provide a link to the page in question.


Alex Ryall

November 25, 2013 at 6:58 am


We don’t want the website to be accessed by the public yet so please use username example password example. If you scroll down on the homepage and hover on one of the events, it shows the shortcode however if you click to go to the event’s page the shortcode isn’t working.

Thanks

Alex


Alex Ryall

November 25, 2013 at 6:59 am

I swear I put the link in…


Alex Ryall

November 25, 2013 at 7:00 am

Clicking link to insert a link doesn’t work

http://www.poolerunners.org


Tony

  • Support Staff

November 25, 2013 at 7:21 am

Hi Alex,

I actually see the opposite. When hovering over the event I can see the unparsed shortcode [LISTATTENDEES] http://d.pr/i/8pRG

Then when viewing the event the shortcode is parsed so you see the actual attendees http://d.pr/i/r65t

Is this not what was expected?

On another note when using reCAPTCHA you must register for public and private keys, then input them into the settings. http://www.google.com/recaptcha


Alex Ryall

November 25, 2013 at 7:27 am

For some reason it looks like the CSS didn’t load when you went on the event’s page. This is what I see and cannot see a link to click and see who is attending.

http://oi41.tinypic.com/a0jas9.jpg


Alex Ryall

November 25, 2013 at 7:39 am

Looks like the CSS only loads when you are logged into the site???? I just tested it


Tony

  • Support Staff

November 25, 2013 at 7:47 am

That’s the issue I mentioned. It is due to reCAPTCHA.

reCAPTCHA is only displayed when not logged in so only causes the issue then.

You need to either disabled it, or register for your keys and input them into the settings.


Alex Ryall

November 25, 2013 at 7:52 am

Sorry my fault, I have entered public and private keys now. Could you check an event’s page again and investigate why the shortcode isn’t working please.


Tony

  • Support Staff

November 25, 2013 at 8:06 am

The attendee list is actually loading, but your theme is hiding it using JS.

attendee.js

	function setupAttendeeList(){
		var linkTag = $att('<a/>', { 'href': '#attendee_list', 'class': 'attendee_button' });
		$att(attendeeHeading).wrapInner(linkTag);
		attendeeList.id = 'attendee_list';
		attendeeList.style.display = 'none';
		setupLightbox();
	}

That is why it worked previous when CSS/JS couldn’t load (reCAPATCHA)


Alex Ryall

November 25, 2013 at 10:05 am

Thanks, I have the shortcode working on the event page. Now I am back to the original problem of it saying [LISTATTENDEES] when hovering on the calendar. As suggested I have entered a more tag before the shortcode on the event as can be seen here http://oi40.tinypic.com/1zdrg4m.jpg

Thanks

Alex


Tony

  • Support Staff

November 25, 2013 at 10:09 am

Hi Alex,

If you go to Event Espresso -> Template settings.

Make sure ‘Display short descriptions in the event listings?’ is set to ‘Yes’.


Alex Ryall

November 25, 2013 at 10:37 am

Thanks that worked. I have noticed another problem with the calendar on the homepage where events are showing on the wrong days and if you switch forward/back months the events move to different days. Is our css making the calendar display incorrectly?

http://www.poolerunners.org username: example password: example

Thanks

Alex


Josh

  • Support Staff

November 25, 2013 at 1:58 pm

Hi Alex,

The version of the calendar that’s in the pre-release channel fixes an issue with events not rendering in the correct location. That may be part of the solution.

The theme’s CSS looks like it’s cropping off the bottom of the calendar by setting the height of the calendar to 455px. This ends up hiding the bottom two weeks of the calendar. Here’s the part of the theme’s stylesheet that looks to be part of the issue:

.Calendar{
    max-width: 990px;
    height: 455px; /* temp */
    /*background-color: rgb(255, 255, 255);*/ /* temp */
}


Barry Moore

November 26, 2013 at 2:59 am

I am having trouble using this new calendar. Using the shortcode on our Club Info -> Membership page the calendar loads perfectly however the calendar on the homepage is failing to load. The calendar appears in the markup but the calendar is not displaying.

Thanks

Alex


Dean

November 26, 2013 at 4:04 am

Hi Alex,

It’s often best to create a new forum thread unless your issue exactly matches the original posters problem.

If you can create a new thread and link to the page in question we can check out what’s going on and help you get it sorted.

Viewing 18 reply threads

The support post ‘Using shortcodes in event description problem’ 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