PDA

View Full Version : Problem with eslist and zweather


jsadony
06-18-2006, 06:53 PM
I am also posting this to the zweather support forum...

I use a slightly midified version of eslist to display the latest event in a small module. Here's the code:

<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<A href="http://www.w3.org/TR/html4/loose.dtd"><?php">http://www.w3.org/TR/html4/loose.dtd"><?php $CSS=1; require ("calendar/calendar.php"); ?>
<table align="center">
<tr><td>
<br>
<?php
$LIST=1;
$DF = "M d";
$template="monthly_list_rdm.php";
require ("calendar/calendar.php");
?>
<div style="text-align: center;">[<a href="<?php echo $mosConfig_live_site;?>/modules/calendar/full_rdm.php" target="_blank">view full calendar</a>]
</div>
</td>
</tr></table>

Here's the problem: When the 'eslist' module is executed before the zweather module (http://www.zcontent.net) it seems that zweather picks up some variable settings from ezphpcal. See zweather the error below:

DB function failed with error number 1146
Table 'ezphpcal.jos_zweather' doesn't exist SQL=SELECT id FROM jos_zweather AS m WHERE published = 1 AND access <= '0' ORDER BY m.ordering ASC

If my template executes zweather before eslist then things are ok. Problem is this limits my placement of both modules. Unfortunately I do not have the PHP skills to t/s the problem further. Please advise. No other modules seem to be affected.

Thanks!
Joe

ve9gra
06-18-2006, 10:49 PM
Ok, first of all, your HTML is completely broken in that module. There's no <head> no <body>, etc...

Second, to fix that problem, all you need to do is have your ESC table in your database that you use for your Mambo/Joomla/other CMS. Don't create a separate database.

jsadony
06-19-2006, 02:43 PM
OK. Thanks. I will apply suggestions.

Joe

ve9gra
06-20-2006, 09:12 AM
Actually, disregard my first comment. I didn't clue in that this was a "module". You should remove the doctype line as this goes before the <head> tag only. The rest of the module should be ok.