extra event info displaying from event.tpl page not profile page

boplive
@boplive
10 years ago
345 posts
Is it possible to have the description or any info belonging to an event appear in a modal window
from the events page or even the home page not from the profile page. Allowing someone to get like a sneak preview of the
event before clicking any link and going to the main event on the profile. I was able to get the modal window working
and displaying a description of the event when clicking on the image link but whats happening is that I have many events on the event page.tpl...
and when clicking on any of them...they all show the same description info...not the specific info for that event.

I know specific music or video can be played from either a music.tpl or video.tpl page not just from the profile page...
but I haven't seen event info popup from an event on the event page on neither of the skins.
updated by @boplive: 03/31/14 02:33:33PM
brian
@brian
10 years ago
10,148 posts
You will need to use unique element ID's for each event - i.e.

<a onclick="$('e{$item._item_id}').modal()">Click here</a>
<div id="e{$item._item_id}" style="display:none;">{$item.event_description}</div>

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
boplive
@boplive
10 years ago
345 posts
Hi Brian..I tried this but it just had an empty modal...ill put up later what else I been trying to get it to work
boplive
@boplive
10 years ago
345 posts
I havent forgotten about this..will give it another go this weekend..;)

Tags