Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#97 2006-06-22 07:15:23

jufemaiz
Archived Plugin Author
From: nth narrabeen, sydney, nsw, au
Registered: 2005-03-17
Posts: 91
Website

Re: [plugin] [ORPHAN] jmc_event_manager

was there a new post here or not? something seems missing


BE + MEngSc = engineer with a side dish of frustrated designer/developer with a penchant for photography outside

Offline

#98 2006-06-22 07:28:46

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] jmc_event_manager

ghosts in the machine

Offline

#99 2006-06-25 12:27:12

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [plugin] [ORPHAN] jmc_event_manager

jufemaiz wrote:

was there a new post here or not? something seems missing

Indeed there was.

I posted a question on how to sync this plugin with iCal but for some reason you cant see it (?)

Edit: Also, I forgot to mention that I would like to list one-off events (Which means only starting time) and it seems your plugin requires an end time. Hopefully there is an easy workaround…

Last edited by Ace of Dubs (2006-06-25 12:32:22)

Offline

#100 2006-06-25 12:48:59

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] jmc_event_manager

weird!

you first need to mark up your event html as a valid hcalendar microformat

then to enable subscription with iCal, you could pass the url of an event page through an engine like the like the one offered by Technorati
like this: <code> webcal://feeds.technorati.com/events/http://www.secretshine.co.uk/gigs </code>

or if you just want to offer a one off ‘add this event to iCal’ with no subscription, you could pass an event URL to Brian Suda’s XSLT script
like this: <code>http://suda.co.uk/projects/X2V/get-vcal.php?uri=http://www.secretshine.co.uk/gigs </code>

I seem to remember those two engines require a couple of different tweaks in your hCalendar markup to work properly, but it’s possible to get both working from the same HTML.

Offline

#101 2006-07-18 15:25:39

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [plugin] [ORPHAN] jmc_event_manager

jufemaiz,

This plugin is really excellent man. My ony gripe is that your form tags generate p tags when all I want is the text. As maniqui suggested, wraptag is key. I could simply put wraptag=”“ and that would solve my problem. In the meantime, I am poking through your code to see if I can figure out where exactly you have set the default wraptag to <code><p></code> Wish me luck!

Edit: So I have localized the problem. Apprently you have enabled Textile by default within some of the textfields. Perhaps it would be best to provide a dropdown so folks can turn it on or off. For now instead of hacking your code I will have to resort to putting a space in front of all my entries. Kind of ghetto but it works for now

Edit2: Okay so I couldnt resist and the curiosity is killing me:

bc..
$textile = new Textile();

extract(gpsa(array_merge($vars_events,$calendar_start,$calendar_finish))); $CategoryID = $CategoryID?$CategoryID:0; $OtherBands_html = $OtherBands?$textile->TextileThis($OtherBands):”“; $OtherInfo_html = $OtherInfo?$textile->TextileThis($OtherInfo):”“;

Am I correct in guessing that the problem lies here? You have this code repeated a few times (post,save,etc) I imagine it would be a simple affair to disable textile for these fields.. but I am not PHP savvy enough to figure out exactly how..

Edit3: LOL.. I cant believe how simple it actually was…

All I did was change every instance of

bc..
$OtherInfo_html = $textile->TextileThis($OtherInfo);

To this

bc..
$OtherInfo_html = $OtherInfo;

And it WORKS!! This calls for a celebration :D

Last edited by Ace of Dubs (2006-07-18 17:07:23)

Offline

#102 2006-07-18 20:27:55

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [plugin] [ORPHAN] jmc_event_manager

Okay so all is well in jmc-land. The only weird thing is that I get this error every time I delete a category or venue:

bc..
Notice: Undefined index: category in /usr/home/housecaf/public_html/textpattern/lib/txplib_misc.php(459) : eval()’d code on line 214

I get this warning but apparently everything still works fine. I tried this on another install of TXP without my hack and still getting this message. just an FYI

Edit: I repaired my tables with rss_admin and now everything is perfect.

Have I mentioned how awesome this plugin is?

Last edited by Ace of Dubs (2006-07-18 21:06:53)

Offline

#103 2006-07-27 19:41:14

mungy
Member
Registered: 2006-03-12
Posts: 22

Re: [plugin] [ORPHAN] jmc_event_manager

I’m trying to list by venue.

what i want is:

Dyserth
12th Aug 2006
15th Sept 2006

Liverpool
29th July 2006
5th August 2006

anyone know how to do it?

edited to clarify my requirements.

Last edited by mungy (2006-07-27 21:16:24)

Offline

#104 2006-07-28 07:41:25

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] jmc_event_manager

I don’t think that’s possible with the curent version

Offline

#105 2006-07-28 17:55:53

mungy
Member
Registered: 2006-03-12
Posts: 22

Re: [plugin] [ORPHAN] jmc_event_manager

pieman wrote:

I don’t think that’s possible with the curent version

Thanks for the response.
what about:-

july
1-4th Dyserth
12th Liverpool

august
5-9th Rhyl
15-18th Chester

My guess is that isn’t possible yet either. Maybe I could do list of the venues in a box on the side and the user clicks on the link to get the list of the dates in that venue. It’s still better than having to wade through a big list and getting the order of the dates muddled up ;)

Offline

#106 2006-07-31 23:41:27

joelwitherspoon
New Member
Registered: 2006-07-31
Posts: 6

Re: [plugin] [ORPHAN] jmc_event_manager

<p>I hate being a total newb but here I am, at it again.</p>

<p>I’ve installed the jmc plugin but I cannot get it to work on my site. <br />
I’ve followed the instructions in step #9 on page one of this topic.<br />
I’ve used the Example form on page one as well<br />
I’ve created a venue and a few events</p>

<p>I’ve created a form called “newcal” and used the Example form in it (what should its form type be, by the way?)<br />
I’ve called it from the side bar this way</p>

<b>txp:jmc_events form=“newcal” </b>

<p>But it’s not showing up. What are some things I can check?</p>

Last edited by joelwitherspoon (2006-07-31 23:45:55)

Offline

#107 2006-08-01 09:15:18

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] jmc_event_manager

mungy wrote:
july
1-4th Dyserth
12th Liverpool
august
5-9th Rhyl
15-18th Chester

to get that kind of result you could try something like this in your form:

<code> <txp:if_different><li> <h2><txp:posted format=”%b” /></h2></li></txp:if_different> <li><txp:posted format=”%d” />: <txp:jmc_venue_suburb /></li></code>

you’d need to tweak the form to get start and end dates tho… and check PHP DateTime functionality
maybe I misunderstand you but you couldn’t output it as a navigaition list… you can’t generate unique articles with this plugin at the moment, only a single page of all upcoming events, or a page of past ones. So you’d probably want to add a bit more detail to your form as well.

I just noticed on jufemaiz’s todo list

Add functionality of searching by date/venue – added complexity, but added functionality

that might be something worth waiting for :)

Offline

#108 2006-08-01 10:34:01

mungy
Member
Registered: 2006-03-12
Posts: 22

Re: [plugin] [ORPHAN] jmc_event_manager

joelwitherspoon wrote:

<p>I hate being a total newb but here I am, at it again.</p>

<p>I’ve installed the jmc plugin but I cannot get it to work on my site. <br />
I’ve followed the instructions in step #9 on page one of this topic.<br />
I’ve used the Example form on page one as well<br />
I’ve created a venue and a few events</p>

<p>I’ve created a form called “newcal” and used the Example form in it (what should its form type be, by the way?)<br />
I’ve called it from the side bar this way</p>

<b>txp:jmc_events form=“newcal” </b>

<p>But it’s not showing up. What are some things I can check?</p>

if you are copying and pasting the txp commands straight from the instructionsthere is a space like this: txp : that stops it working.

Offline

Board footer

Powered by FluxBB