cotonti.com : Can someone port the MCalendar plugin? https://www.cotonti.com Останні повідомлення в темі Cotonti en Mon, 29 Dec 2025 23:17:29 -0000 SunChase Пт, 31 Лип 2009 04:18:02 -0000 tensh
But I'll make it a live site, so I'll let you know later.]]>
Пт, 31 Лип 2009 04:08:08 -0000
SunChase bytheway..do you have the a bug,when you put me mouse over some active date it gives out the title like:"News:2;New users:5" giving incorect info?]]> Пт, 31 Лип 2009 04:03:51 -0000 tensh 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).]]>
Пт, 31 Лип 2009 03:44:15 -0000
SunChase
Version=1.3
Date=22-08-2008
Author=Almaz(Edited by Dayver)


Добавлено 18 Минут спустя:

hm.I really dont know what i did but it works ...

Добавлено 3 Минуты спустя:

but now another question.How to put the MCalendar in the forum?]]>
Thu, 30 Лип 2009 06:15:22 -0000
tensh
Added 1 hour 21 minutes later:

For me it works, with an exception of ajax. Can't reproduce problem... be sure to search forums for version ported to Cotonti.]]>
Thu, 30 Лип 2009 04:06:05 -0000
GHengeveld Thu, 30 Лип 2009 03:45:58 -0000 SunChase I think i found out why it doesnt work,but im not a programmer.
I think the problem is here: <!-- BEGIN: NEWS -->
The xtemplate didnt like it till i tryed <!-- BEGIN : NEWS -->,but after this the plugin itself stoped functioning...]]>
Thu, 30 Лип 2009 02:55:49 -0000