Foren / Cotonti / Extensions / Can someone port the MCalendar plugin?

tensh
#15220 31. Juli 2009, 03:44
I mean this version:
http://www.cotonti.com/forums.php?m=posts&p=631&highlight=MCALENDAR#631

As for forums, it depends where exactly you want to put it. Check if you have the version above, and see the contents: there are many parts that hook up to different Cotonti sections.

I think it would be enough to copy e.g. this file:
<?PHP
/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=plugins/mcalendar/mcalendar.list.tags.php
Version=121
Updated=2006-mar-15
Type=Plugin
Author=Neocrome
Description=
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=mcalendar
Part=list
File=mcalendar.list.tags
Hooks=list.tags
Tags=list.tpl:{LIST_MCALENDAR}
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]
==================== */
if(!defined('SED_CODE')){die('Wrong URL.');}
require("plugins/mcalendar/inc/main.php");
$t->assign(array("LIST_MCALENDAR"=>$plugin_body));
$plugin_body="";
?>

change it as follows:

<?PHP
/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=plugins/mcalendar/mcalendar.forums.sections.tags.php
Version=121
Updated=2006-mar-15
Type=Plugin
Author=Neocrome
Description=
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=mcalendar
Part=forums.sections
File=mcalendar.forums.sections.tags
Hooks=forums.sections.tags
Tags=forums.sections.tpl:{FORUMS_SECTIONS_MCALENDAR}
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]
==================== */
if(!defined('SED_CODE')){die('Wrong URL.');}
require("plugins/mcalendar/inc/main.php");
$t->assign(array("FORUMS_SECTIONS_MCALENDAR"=>$plugin_body));
$plugin_body="";
?>

Name it mcalendar.forums.sections.tags.php, and insert the {FORUMS_SECTIONS_MCALENDAR} tag into forums.sections.tpl. It should do the trick...

You can do similar thing for other forums parts (topics, posts, etc).