Previous Thread
Next Thread
Print Thread
Rate Thread
#318032 07/24/2009 8:24 AM
Joined: Sep 1999
Posts: 76
Power User
Power User
Offline
Joined: Sep 1999
Posts: 76
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)

The classes I've defined on my site are:

Code
.event_item {
padding-bottom: 5px;
}

.event_today {
font-weight: bold;
border-left: 4px solid red;
padding-left: 2px;
background-color: #ffd1d1;
}
and the results can be seen in the attached screenshot.

Version 2 Update
Added version 2 of the Events Island code with the following changes:
  • Only shows events from today onwards
  • List sorted in ascending order (i.e. nearest event on top)
  • Configurable display limit (set to 0 for no limit)


Version 3 Update
  • Display custom message if no future events found
Attachments
events_island_code.txt (1.8 KB, 21 downloads)
Events island code
SHA1: 75f2c761ec74a0e0b62a85b3163379982286988f
events_island.png (11.15 KB, 148 downloads)
events island screenshot
events_island_v2.png (6.01 KB, 95 downloads)
events island v2 screenshot
events_island_code_v3.txt (2.43 KB, 10 downloads)
Events Island code v3
SHA1: 8d30b590eb6a42e2787cd7c63531a47b4fb7d64b

Last edited by Myke; 10/26/2009 7:41 AM. Reason: added ver 3
Sponsored Links
Entire Thread
Subject Posted By Posted
[7.5.3] Events Island Myke 07/24/2009 3:24 PM
Re: [7.5.3] Events Island Gizmo 07/25/2009 2:47 AM
Re: [7.5.3] Events Island Crasher 07/27/2009 9:47 PM
Re: [7.5.3] Events Island Ruben Rocha 07/28/2009 10:24 PM
Re: [7.5.3] Events Island badfrog 08/18/2009 3:43 AM
Re: [7.5.3] Events Island Myke 08/20/2009 2:41 PM
Re: [7.5.3] Events Island badfrog 08/21/2009 2:22 AM
Re: [7.5.3] Events Island badfrog 08/22/2009 5:13 PM
Re: [7.5.3] Events Island badfrog 08/22/2009 5:41 PM
Re: [7.5.3] Events Island Myke 08/23/2009 3:35 PM
Re: [7.5.3] Events Island badfrog 08/23/2009 4:25 PM
Re: [7.5.3] Events Island Myke 08/24/2009 3:32 AM
Re: [7.5.3] Events Island badfrog 08/24/2009 6:43 AM
Re: [7.5.3] Events Island Myke 10/26/2009 2:43 PM
Re: [7.5.3] Events Island Myke 08/20/2009 2:32 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)