Repeet - Events with no specific end time.
Posted: 28 August 2008 01:06 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  41
Joined  07-25-2008

Is there any way to have event times display as either a start and end time or, if there is no specific end time for the event, just the start time. Basically I would like to be able to write something like this:
{if repeet:end_time == repeet:start_time}
{entry_date format=”%l, %g:%i %A”}
{if:else}
{entry_date format=”%l, %g:%i %A”}{expiration_date format=” - %g:%i %A”}
{/if}

Does that make sense?

Profile
 
 
Posted: 29 August 2008 12:20 PM   [ Ignore ]   [ # 1 ]  
Grad Student
Rank
Total Posts:  41
Joined  07-25-2008

Anyone?

Profile
 
 
Posted: 29 August 2008 12:31 PM   [ Ignore ]   [ # 2 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6610
Joined  04-15-2006

Yep can be done but needs a little bit of work to get it going.

I just had to do this on a site here and this is how I did it :

{if "{entry_date format="%Y%z"}" == "{expiration_date format="%Y%z"}"}
<p>{entry_date format="%j%S %F %Y"} at {entry_date format="%g:%i %A"}</p>
{if:else}
<p>{entry_date format="%j%S %F %Y"} to {expiration_date format="%j%S %F %Y"} from {entry_date format="%G:%i"} to {expiration_date format="%g:%i %A"}</p>
{/if}

I’m not 100% sure that you are actually supposed to do what I have done there in that I have the variables quoted but I just couldn’t find another way of doing it quickly so this had to suffice as the site needed it working as soon as possible. You could probably also use PHP to compare the time-stamps though i guess.

Would be nice for one of the moderators to let us know how to get this working the right way though.

Hope that helps a bit?

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65085 Total Logged-in Users: 38
Total Topics: 82223 Total Anonymous Users: 21
Total Replies: 441915 Total Guests: 221
Total Posts: 524138    
Members ( View Memberlist )
Newest Members:  BombermanhaimtuagocsadamVeNeaDoRHildegaardhrtrulzUNFORGIVEN IIIEmmanuelYanYanTomsB