FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

New Plugin: Events Calendar/Manager, 'Leapfrog'

Feed 42 posts, 16 voices

Avatar
6 posts

Thanks for the feedback guys. We have updated the Leapfrog page with instructions on how to apply the patch.

We’ve also added a zip file with the affected files already patched, which you can extract over your existing Frog installation instead of applying a patch.

 
Avatar
125 posts

Really interesting plugin!
How to display a list (listing) of events?

 
Avatar
6 posts

All events will be listed under the following URL:

http://example.com/leapfrog/events

If you want to just show events from a certain date, you can specify the year, year and month or year, month and day like so:

http://example.com/leapfrog/events/2009
http://example.com/leapfrog/events/2009/12
http://example.com/leapfrog/events/2009/12/31

If you include a calendar on your site, days that have events on them will link to a URL like the last one.

 
Avatar
125 posts

thank you very much!
How to translate date and/or language?

 
Avatar
6 posts

It can be translated as per the convention for plugins. See this page for details.

We have probably missed some tokens though. We will try and fix it up as we go along but any help in this regard would be great.

 
Avatar
19 posts

Hey All

We’d love to see how you’re implementing the plugin so that we can decide on the roadmap of development. Adding a link in this topic would be great.

Thanks!

Grant

 
Avatar
108 posts

Just thought you guys (developers of this plugin) should know that i added the patch to my frog (latest version) and now all my admin doesnt work :@(

I’ll replace all the files to get it back again!

 
Avatar
6 posts

Hi Andy,

By ‘latest version’ do you mean 0.9.5 or an SVN checkout?

And how was the admin not working? Was it just missing styling or were you getting blank pages or something like that?

 
Avatar
108 posts

I was getting blank pages…and i am using 0.9.5.

Hope this helps

 
Avatar
125 posts

Hi Andy
if you’re using the 0.9.5 version, you need to use the zip file of the pre-patched files

 
Avatar
108 posts

I did, thats what made it all go tits up :@)

 
Avatar
19 posts

Thanks Andy

Chances are there was a PHP error, which would explain the WSOD. Frog hides PHP errors by default, and doesn’t provide you with anything useful for debugging as a result.

If you could try again, and edit the config.php file modifying this line (for me it is line 15):

define('DEBUG', false);

to be

define('DEBUG', true);

Once you’ve done this, visit your site and see what the error message that PHP throws up is, pasting it here would be great. For security reasons you will want to switch this back once you’ve received your error message.

Grant

 
Avatar
18 posts

I have the same problem as Andy! It shows a white page. I am testing the added functions in the “zip file of the pre-patched files”. And found this line that gives an error

=> in the plugin.php file you have the following:

static function addController($plugin_id, $label, $permissions=false, $show_tab=true) { if (!isset(self::$plugins_infos[$plugin_id])) return; $class_name = Inflector::camelize($plugin_id).‘Controller’;

self::$controllers[$plugin_id] = (object) array( ‘label’ => ucfirst($label), ‘class_name’ => $class_name, ‘file’ => CORE_ROOT.’/plugins/’.$plugin_id.’/’.$class_name.’.php’, ‘permissions’ => $permissions, ‘show_tab’ => $show_tab );

AutoLoader::addFile($class_name, self::$controllers[$plugin_id]->file); }

=> the line: if (!isset(self::$plugins_infos[$plugin_id])) return;
=> this gives me a white page
=> I commented this line, but now I get an error page when I click an event on the calender which I created by using the following line <?php echo leapfrog_showEvents(true); ?>

 
Avatar
18 posts

Like I said in my previous post, I commented one line of code in plugin.php
Then I can see my website again.

With the debugging on I see the following error when I click on an item in the calender:

Trace in execution order:

require(‘frog…’) on line 90 in index.php main() on line 256 in frog/app/main.php Dispatcher→dispatch(‘plugin’, ‘leapfrog’, array4) on line 224 in frog/app/main.php Dispatcher→executeAction(‘leapfrog’, array4) on line 214 in frog/Framework.php PluginController→execute(array2, array3) on line 272 in frog/Framework.php LeapfrogController→events_list(‘2009’, ‘10’, ‘24’) on line 155 in frog/app
/controllers/PluginController.php PluginController→display(’../../plugins/leapfrog/views/f_events_list’, array1) on line 284 in frog/plugins/leapfrog/LeapfrogController.php PluginController→render(’../../plugins/leapfrog/views/f_events_list’, array1) on line 76 in frog/app/controllers/PluginController.php View→__construct(’../../plugins/../../plugins/leapfrog/views/f_events_list’, array1) on line 136 in frog/app/controllers/PluginController.php

Exception was thrown on line 688 in frog/Framework.php

 
Avatar
125 posts

I’m use it example (beta website)
How to modify the display pages?
Is it possible to use textile or markdown editor for description?
I add a file in the link field, but it’s not a real link in the event page…
I would like a start date and a end date for event…

 
Avatar
3 posts

Hi,
I have been installed Leapfrog. How can I transalate it in italian?

 
Avatar
18 posts

Could anybody help me with my error when opening a link by clicking on it => Exception was thrown on line 688 in frog/Framework.php (see my previous post)

 
Avatar
24 posts

I’m having a problem with making a list of events view correctly on a site I’m working on. There’s no way (at least that I see) that I can edit the view and it duplicates my primary navigation links where my secondary links are suppose to be. Also my secondary links disappear. Go here to see what I mean. :( Can anyone help?