Event Calendar mysql plugin

Having trouble installing serendipity?
Post Reply
barleyman
Posts: 2
Joined: Mon Feb 21, 2011 4:14 pm

Event Calendar mysql plugin

Post by barleyman »

Hi,

The Event Calendar MYSQL plugin seems to stop the comment form coming up when clicking on comments in a post. When the plugin is removed from the plugin section, you are able to click on a post comment again and the comment form appears again. Does anyone else have this problem and is there a work around to get both active. Also cannot get the Event calendar to show as frontpage after ticking the checkbox for frontpage within it's static page setting - it disappears completely no other static pages were installed. Please advise - thanks
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Event Calendar mysql plugin

Post by Timbalu »

barleyman wrote:The Event Calendar MYSQL plugin seems to stop the comment form coming up when clicking on comments in a post. When the plugin is removed from the plugin section, you are able to click on a post comment again and the comment form appears again. Does anyone else have this problem and is there a work around to get both active.
Hi barleyman
Very funny.... :? I have a local blog here with my testing eventcal Plugin, but there are no comments for my normal blog test entries. If I click the comment[0] link underneath a blog entry nothing happens. So this is corresponding to your issue. Blame me as the author of this plugin, but I can't imagine anything inside that could do this to the blogs commentsform. I tried and controlled each assign var inside, but they seem all to be named very specific and I don't think they could do something like that to comments.

So I have no idea, really - please Garvin - help us here!
barleyman wrote:Also cannot get the Event calendar to show as frontpage after ticking the checkbox for frontpage within it's static page setting - it disappears completely no other static pages were installed. Please advise - thanks
I do not understand the correlation to staticpages. The eventcal plugin is something on its own to be called like http://www.domain.com/blogname/pages/eventcal.html in rewrite mode. In its config there is no setting to have it as the blogs startpage.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Event Calendar mysql plugin

Post by garvinhicking »

Hi!

I just reviewed the code. I can only think of this:

1. Line 28 - you create the smarty object before your plugin is even called. Never do that, only do it inside the hook_event() functions where you would need the access. Using it outside of the s9y API might lead to strange results, just like this one.

2. The code to me looks like you call cleanup() through frontned_configure on every page request?

3. If solution 1.) does not work, you could try to disable every event hook and re-enable them one after another to find which place could make the problem.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Event Calendar mysql plugin

Post by Timbalu »

Whow Garvin ..., I'm really amazed!
It was the smarty object call! First hit, Touché and flushed! :wink:

@barleyman
If you can't wait for an updated version, just set it to #serendipity_smarty_init() by yourself.

To point 2:
Yes it looks like I did so, which is not actually what I wanted to do.
Is it necessary to call cleanup by $this->cleanup(); at all, or does the plugins config SUBMIT execute plugins cleanup() function by its own? Which is what I intended to have.

Thank you :!:
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
barleyman
Posts: 2
Joined: Mon Feb 21, 2011 4:14 pm

Re: Event Calendar mysql plugin

Post by barleyman »

Just the job Guys, all works now!! :D
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Event Calendar mysql plugin

Post by garvinhicking »

Hi!

How should I patch the plugin, are you preparing something?

And yes, cleanup() is called in the configuration of s9y, by the API itself.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Event Calendar mysql plugin

Post by Timbalu »

garvinhicking wrote:How should I patch the plugin, are you preparing something?
YES I am, please wait.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Post Reply