This custom island displays the last N number of public events from your Calendar. Clicking on the event's title takes you to forum post or calendar entry, depending on how the event was created.
The code for the custom island is attached. Configure the date format you wish to use along with the number of items to display in the header of the code.
Formatting of the island is controlled via two new CSS classes you need to create in your site's stylesheet (Styles > Extra Properties):
.event_item - applies to each event .event_today - only applies to events occuring "today" (i.e. useful for highlighting)
Will this work for external islands? Meaning formatting and guests viewing? And last question is how to modify it to post from the current day to future dates. Past dates would be useless for me.
Last edited by Ruben Rocha; 07/28/20093:31 PM.
There is no such thing as stupid questions. Just stupid answers.
how do I get this to show the next event at the top of the list? reverse the order?
You may be interested in ver 2 of this mod which only shows events from "today" onwards (i.e. doesn't show any past events). I've updated the original post with new attachments.
Quote
also..., it isn't showing any of the events for next month, first event it is listing is in october...?
Are you sure you've created "public" events in the month of September? If so, then check that your $eventTotal value isn't too low.
Better yet, you might want to try ver 2 of the mod instead.
ok... i just noticed that when I click on some of the events, it takes me to a random thread.. totally unrelated to the event posting.. am rebuilding posts and topics, etc, will see if that fixes it.
rebuilding didn't fix it... if I click on the event from teh event island, it takes me to some random post, if I go to the calendar and click on the event, it takes me to the correct listing.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.