PDA

View Full Version : Joomla 1.5 Native Support


m5l5
09-25-2008, 07:27 PM
Edit: The Code for Native 1.5 Support can be found HERE (http://www.easyphpcalendar.com/forums/showpost.php?p=29134&postcount=5).

It was mentioned (http://www.easyphpcalendar.com/forums/showpost.php?p=25958&postcount=3) if there was enough demand that you would consider creating a native module for Joomla 1.5.

The original mod has 2,000+ downloads, and the latest rendition over 300.

I would definitely appreciate such a module, and wanted to see if this is still being considered to be implemented.

Mark

ve9gra
09-25-2008, 07:56 PM
Yes there is over 300 downloads of the 1.0.1 module, but no one actually came back asking specifically for a native mode module as the current module fully satisfies their needs.

Have you tried the module and found that it didn't work?

m5l5
09-25-2008, 08:54 PM
The Module works; however, there are a few small quirks.

Those quirks deal with centering, width, and validating xhtml/css.

I just got everything installed, so haven't spent much time dealing with the above, but will slowly work on it.

Although, the main thing I wanted to get rid of is running Joomla in Legacy mode.

ve9gra
09-26-2008, 07:28 AM
I haven't kept up with Joomla development, and am now quite out of date. Since time is at a premium lately, I simply haven't been able to figure out how the new module system works, which is why there is no 1.5 native mode plugin yet.

And with the demand for the Joomla plugin diminishing so much, I see very limited returns in spending time to develop one.

FYI: centering is most likely affected by your Joomla theme, the width is set in the calendar's theme (not in the plugin), and XHTML and CSS validation has nothing to do with the plugin as you'll find all the errors/warnings in the calendar code itself.

m5l5
09-26-2008, 07:34 AM
<?php defined('_JEXEC') OR defined('_VALID_MOS') or die('...Direct Access to this location is not allowed...'); ?>
<?php $CSS=1; require ("modules/calendar/calendar.php"); ?>
<?php $OL=1; require ("modules/calendar/calendar.php"); ?>
<?php $EPCAJAX=1; require ("modules/calendar/calendar.php"); ?>
<div id="EPCcalendar">
<?php $EPCajax=1; require("modules/calendar/calendar.php"); ?>
</div>


This allows the module to be run Natively in 1.5.x

In regards to installation instructions, the user is not required to install the calendar in the /modules/ folder.

Can install in root Joomla folder and just remove modules/

<?php defined('_JEXEC') OR defined('_VALID_MOS') or die('...Direct Access to this location is not allowed...'); ?>
<?php $CSS=1; require ("calendar/calendar.php"); ?>
<?php $OL=1; require ("calendar/calendar.php"); ?>
<?php $EPCAJAX=1; require ("calendar/calendar.php"); ?>
<div id="EPCcalendar">
<?php $EPCajax=1; require("calendar/calendar.php"); ?>
</div>

ve9gra
09-26-2008, 10:55 AM
Wow! Thanks! I'll update the module to v 1.1 and credit you with the updates.

sdwig
09-29-2008, 07:26 PM
<?php defined('_JEXEC') OR defined('_VALID_MOS') or die('...Direct Access to this location is not allowed...'); ?>
<?php $CSS=1; require ("modules/calendar/calendar.php"); ?>
<?php $OL=1; require ("modules/calendar/calendar.php"); ?>
<?php $EPCAJAX=1; require ("modules/calendar/calendar.php"); ?>
<div id="EPCcalendar">
<?php $EPCajax=1; require("modules/calendar/calendar.php"); ?>
</div>


This allows the module to be run Natively in 1.5.x

In regards to installation instructions, the user is not required to install the calendar in the /modules/ folder.

Can install in root Joomla folder and just remove modules/

<?php defined('_JEXEC') OR defined('_VALID_MOS') or die('...Direct Access to this location is not allowed...'); ?>
<?php $CSS=1; require ("calendar/calendar.php"); ?>
<?php $OL=1; require ("calendar/calendar.php"); ?>
<?php $EPCAJAX=1; require ("calendar/calendar.php"); ?>
<div id="EPCcalendar">
<?php $EPCajax=1; require("calendar/calendar.php"); ?>
</div>

so if we replace the current code in the mod_escal.php file of the 1.01 mod with this new code will we still have to turn on system legacy in Joomla?

Also does anyone have any examples of some Joomla sites that are using the calendar? I would be interested in looking at a couple.

Thanks

m5l5
10-02-2008, 05:59 PM
so if we replace the current code in the mod_escal.php file of the 1.01 mod with this new code will we still have to turn on system legacy in Joomla?


No, you do not have to turn on system legacy; hence, can be run 1.5 Native.


Also does anyone have any examples of some Joomla sites that are using the calendar? I would be interested in looking at a couple.

http://theunr.com/econ/index.php

The above has a minimal integration of Easy PHP Calendar as just a side module. Pop-ups enabled along with AJAX, so the page doesn't completely reload when you switch months.

sdwig
10-03-2008, 04:01 PM
Thanks I just wanted to be sure I think after I installed it that it still showed incompatible on the module in Joomla, but it seemed to be working fine. I also was able to get easy php installed and working on a side module and it looked great. However I am trying to decide to stick with the easy php calendar or switch over to [another] calendar for this new joomla site. I had the other site just html and switched it to Joomla for easier administration of the site for multiple people. Both seem to have there good and bad but I just don't know php real well and the [other calendar] is easier to install. Any thoughts on the two? I will say for those who understand php this calendar is by far the best out there from what I've seen.

Brian
10-03-2008, 04:05 PM
[The other calendar] run on their own server, which means your data is their data. Our calendar lets you keep everything on your own server and your data stays your data.

ianaddison
10-30-2008, 02:38 PM
if you want to see a site with it working visit www.hulbertjunior.co.uk (http://www.hulbertjunior.co.uk)

the_idol
11-09-2008, 12:57 PM
Did this happen? I can't find it.
Wow! Thanks! I'll update the module to v 1.1 and credit you with the updates.

I downloaded the version in the sticky 1.01.
I replaced all the text <?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>
<?php $CSS=1; require ("modules/calendar/calendar.php"); ?>
<?php $OL=1; require ("modules/calendar/calendar.php"); ?>
<div align="center" class="epc">
<?php require ("modules/calendar/calendar.php"); ?><br>
<div style="text-align: center;">[<a href="<?php echo $mosConfig_live_site;?>/modules/calendar/printable.php?mo=<?php echo $mo;?>&yr=<?php echo $yr;?>" target="_blank">printable calendar</a>]</div>
</div>in the mod_escal.php with the new text below.
<?php defined('_JEXEC') OR defined('_VALID_MOS') or die('...Direct Access to this location is not allowed...'); ?>
<?php $CSS=1; require ("calendar/calendar.php"); ?>
<?php $OL=1; require ("calendar/calendar.php"); ?>
<?php $EPCAJAX=1; require ("calendar/calendar.php"); ?>
<div id="EPCcalendar">
<?php $EPCajax=1; require("calendar/calendar.php"); ?>
</div>when installing I get a cannot install error because it was written for an older version? You need to enable legacy mode, and nothing installs

I am using Joomla 1.5.7.

How do I install this thing? I love the calendar and want to intergrate in my site.

All help appreciated.

ve9gra
11-09-2008, 10:20 PM
I just took the time to rollup the updates into new packages. I tested and was able to use the module with the Legacy plugin disabled. Have a look at the repository and they're there.

the_idol
11-10-2008, 02:11 AM
Thanks for the revision.

I am running Joomla 1.5.7
when I try to install the file I still get

"Your Extension appears to be written for an older version of Joomla!. You must enable the System - Legacy Plugin in the Plugin Manager if you wish to complete this task."

and

"Install Module Error"

and nothing is installed.

Any ideas?

ve9gra
11-10-2008, 07:55 AM
Make sure that you physically remove the old files as I don't think that the install overwrites files.

I was able to upload the mod_escal folder directly to the /modules folder and go through the install with the Legacy plugin disabled.

the_idol
11-10-2008, 12:08 PM
I had removed all trace of those files.

Even doing your method I still get the same error.

I am going to try this on another installation just incase this one is messed up.

the_idol
11-10-2008, 12:51 PM
Ok I tried it on a stock installation and still got the same legacy mode error.

I just don't understand how this works for you and not here?

the_idol
11-10-2008, 02:46 PM
Ok , I got it to install by changing the mos_escal.xml file
<mosinstall type="module" version="1.1">
</mosinstall>
to
<install type="module" version="1.5.0">
</install>

But I an now having other issues (if enabled, webpage blank).

I will try and work through those next

the_idol
11-10-2008, 03:18 PM
Ok Works now!

I had a path issue besides the xml syntax issue.

Thanks

ve9gra
11-10-2008, 07:21 PM
I will fix the xml and re-release the modules.