We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Export Calendar Events to a List?
Topic Started: Dec 14 2011, 07:14 PM (599 Views)
Deleted User
Deleted User

I was wondering if anyone knew of a code that would make a list of the next few calendar events that are coming up based on the Zetaboard calendar. I would like to have this displayed at the top of the forum rather than having to look under the Board Stats or at the actual calendar. Something that just displayed the date and title would be all I would need.

Thanks!
Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
if (location.href.indexOf('/index') !== -1) {
$('#main').prepend('<table class="calendar" id="current_event"><thead><tr><th colspan="3">Current Events</th></tr></thead><tbody><tr class="to_this"></tr></tbody></table>');

$.get(main_url + 'calendar', function (data) {
$('#cal_current', data).appendTo('tr.to_this')
$('#cal_current', data).next().appendTo('tr.to_this')
$('#cal_current', data).next().next().appendTo('tr.to_this');
});
}
</script>
That will display the current and next two days on the index.
Offline Profile Goto Top
 
Deleted User
Deleted User

Awesome! Thanks so much!

One thing though. I have a header on my forums, so is there any way to get this to display below that? It's also throwing off the font size of the title of that box, so maybe if it was below that it wouldn't?
Goto Top
 
Deleted User
Deleted User

This worked for a while, but now here at the end of the week, it is only showing Saturday. Yesterday it only showed Friday and Saturday. Why isn't it carrying over into the new week?
Bump
Goto Top
 
Brendan
Member Avatar


Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic