Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-06-15 17:47:12

eightounces
New Member
From: Philadelphia
Registered: 2004-04-27
Posts: 7
Website

About Upcoming Events

I love the upcoming events plug-in by greenrift, but there are just a few things I’d like to be able to do, and I’m not sure if they’re possible-
First, it would be great if the date could be output in the format specified in the txp prefs, and second, if there was some way to use a form to control the output. I realize the second one may be a bit more difficult, but it would mean being able to use the plugin in two different ways in the same site. For an “events” section, one might want to display the next event coming up in full detail, while also creating a excerpted side list of all upcoming events.
An events (especially upcoming) container is an important part of any CMS, and I hope the function provided by this might bundled with txp in the future.

Offline

#2 2004-06-15 19:28:45

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

Re: About Upcoming Events

I totally agree with this.


bludrop studios .::. Creative Expression

Offline

#3 2004-06-17 03:01:58

greenrift
Archived Plugin Author
Registered: 2004-03-08
Posts: 186
Website

Re: About Upcoming Events

I’ll toss the use TXP date format on a TODO list. For the other idea I was going to add the ability to display the body of the most upcoming event.

Offline

#4 2004-06-17 03:23:38

eightounces
New Member
From: Philadelphia
Registered: 2004-04-27
Posts: 7
Website

Re: About Upcoming Events

Thanks for the reply- I actually just finished looking through the code and realizing that what I wanted to do was completely achievable by editing the plugin a bit. The date thing would still be awesome, so I eagerly anticipate hearing if this feature becomes available. Awesome plugins, by the way.

Also, I asked for a site I’m working on, hoping to launch by end of the week. You can see the calendar and upcoming events in use here. Thanks again for the plugins.


This was down recently for an hour or so, but now is back up. Also, here is where the site actually uses the plugins.

Last edited by eightounces (2004-06-17 06:56:08)

Offline

#5 2004-06-18 03:41:10

greenrift
Archived Plugin Author
Registered: 2004-03-08
Posts: 186
Website

Re: About Upcoming Events

Updated to v0.2

I added some of your suggestions that were quite nice and couple of other things. Should work perfectly, but tell if it doesn’t.

Offline

#6 2004-06-18 18:53:10

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

Re: About Upcoming Events

Wow. Really nice site eightounces.

Thanks greenrift. Will check it out.


bludrop studios .::. Creative Expression

Offline

#7 2004-06-18 19:18:50

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

Re: About Upcoming Events

The date doesn’t work. If I put nothing (no dateformat option), then I get some weird date. If I put dateformat=“dateformat”, then I get somehthing like 21am30efoMon, 21 Jun 2004 02:34:00 +000006am30.

Thanks


bludrop studios .::. Creative Expression

Offline

#8 2004-06-18 23:57:08

greenrift
Archived Plugin Author
Registered: 2004-03-08
Posts: 186
Website

Re: About Upcoming Events

> blumie607 wrote:

> The date doesn’t work. If I put nothing (no dateformat option), then I get some weird date. If I put dateformat=“dateformat”, then I get somehthing like 21am30efoMon, 21 Jun 2004 02:34:00 +000006am30.

Thanks

If you do this:
<txp:mdp_upcomingeventlist /> the date will be in the same format as the “Date Format” option in the “Site Perferences”.

If you did this:
<txp:mdp_upcomingeventlist dateformat=”“ /> No date will be outputted.

If you did this:
<txp:mdp_upcomingeventlist dateformat=“M d, Y” /> the date would like like “Aug 4, 2004”.

and if you did this:
<txp:mdp_upcomingeventlist dateformat=“dateformat” /> You’ll just get back a bunch of crap (exactly what you are getting).

So leave out the dateformat unless you want to change the format. Formatting instructions are available from PHP.net.

Last edited by greenrift (2004-06-19 00:16:54)

Offline

#9 2004-06-19 01:21:24

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

Re: About Upcoming Events

Okay, now I get how the dateformat thingy works. But when I don’t use dateformat, I get some weird thing like this: 00346ce.

I will just use PHP date format, though. Hopefully that will work. (By the way I also have a section option and extrainfo option in the tag).

Thanks


bludrop studios .::. Creative Expression

Offline

#10 2004-06-19 17:57:53

eightounces
New Member
From: Philadelphia
Registered: 2004-04-27
Posts: 7
Website

Re: About Upcoming Events

Thanks for the update greenrift, its greatly appreciated.

Offline

#11 2004-06-20 00:42:31

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: About Upcoming Events

greenrift, could u post the attributes available with the <txp:mdp_upcomingeventlist /> tag?

couldn’t find on your website…

many thanks

Offline

#12 2004-06-20 01:07:23

greenrift
Archived Plugin Author
Registered: 2004-03-08
Posts: 186
Website

Re: About Upcoming Events

> nardo wrote:

> greenrift, could u post the attributes available with the &lt;txp:mdp_upcomingeventlist /&gt; tag?

All the documentation is available when you install the plugin. I’m trying to get away from putting all the documentation on my site as well, its a pain to keep the two (site and plugin) in sync.

There’s no harm in installing a TXP plugin. Even if the author had malicious code in the plugin, the plugin’s are not activated until you tell TXP to turn them on. Although, once you activate the plugin the author could do plenty of harm really easily.

Offline

Board footer

Powered by FluxBB