1
Gestione utenti e community / Re: Errore componente Eventlist con community builder
« il: 13 Gen 2008, 20:11:35 »
nessuno sa darmi qualche indicazione su almeno dove cercare?
Questa sezione ti permette di visualizzare tutti i post inviati da questo utente. N.B: puoi vedere solo i post relativi alle aree dove hai l'accesso.
Notice: Undefined variable: return in \components\com_comprofiler\plugin\user\plug_eventlistmy\eventlist_my.plugin.php on line 79
$return .= "<div style=\"padding:4px;\">"."</div>";
class getMyEventsTab extends cbTabHandler {
function getMyEventsTab() {
$this->cbTabHandler();
}
function getDisplayTab($tab,$user,$ui) {
global $database,$mosConfig_live_site, $mosConfig_absolute_path, $mosConfig_lang;
//Language:
if (file_exists($mosConfig_absolute_path."/components/com_comprofiler/plugin/user/plug_eventlistmy/language/".$mosConfig_lang.".php")) { include($mosConfig_absolute_path."/components/com_comprofiler/plugin/user/plug_eventlistmy/language/".$mosConfig_lang.".php");
} else { if(file_exists($mosConfig_absolute_path."/components/com_comprofiler/plugin/user/plug_eventlistmy/language/english.php")) { include($mosConfig_absolute_path."/components/com_comprofiler/plugin/user/plug_eventlistmy/language/english.php");
} else {
return "Error: No language file could be loaded. Is the Event List component properly installed? \n".$mosConfig_absolute_path."/components/com_comprofiler/plugin/user/plug_eventlistmy/language/english.php";
}}
$cbpi_header = _EVENTLIST_CBPI_HEADER;
$cbpi_title = _EVENTLIST_CBPI_TITLE;
$cbpi_where = _EVENTLIST_CBPI_WHERE;
$cbpi_date = _EVENTLIST_CBPI_DATE;
$cbpi_city = _EVENTLIST_CBPI_CITY;
$cbpi_click_title = _EVENTLIST_CBPI_CLICK_TITLE;
$cbpi_click_location = _EVENTLIST_CBPI_CLICK_LOCATION;
$cbpi_no_events = _EVENTLIST_CBPI_NO_EVENTS;
$params = $this->params; // get parameters (plugin and related tab)
$myEventNumber = $params->get('myEventNumber', "20");
/* braucht es nicht - wird eh nicht benutzt, oder?
if ($showTotal == 1) {
$countsql = "select count(*)"
. "\n FROM `#__eventlist_register` "
. "\n WHERE uid = ". $user->id .";";
$database->setQuery($countsql);
$count = $database->loadResult();
}
*/
$query = "SELECT s.id, s.titel, s.dates, s.locid, l.club, l.city"
. "\n FROM "
. "\n `#__eventlist_dates` s, `#__eventlist_locate` l"
. "\n WHERE s.sendermail = '".$user->email ."'"
. "\n AND s.locid = l.id"
. "\n AND s.published = 1"
. "\n ORDER BY s.dates"
. "\n LIMIT $myEventNumber";
$database->setQuery( $query );
$events = $database->loadObjectList();
if(!count($events)>0) {
$return = $cbpi_no_events;
return $return;
}
$return .= "<div style=\"padding:4px;\">"."</div>";
$return .= "<table cellpadding=\"5\" cellspacing=\"0\" border=\"0\" width=\"95%\">";
$return .= "<tr class=\"sectiontableheader\">";
$return .= "<td>".$cbpi_title."</td><td>".$cbpi_where."</td><td>".$cbpi_city."</td><td>".$cbpi_date."</td>";
$return .= "</tr>";
$i=1;
foreach($events AS $event) {
$i= ($i==1) ? 2 : 1;
$return .= "<tr class=\"sectiontableentry$i\"><td>"
."<a href=\"".sefRelToAbs($mosConfig_live_site."/index.php?option=com_eventlist&Itemid=102&func=details&did=".$event->id)."\" title=\"".$cbpi_click_title."\" />".$event->titel."</a></td>"
."<td><a href=\"".sefRelToAbs($mosConfig_live_site."/index.php?option=com_eventlist&Itemid=102&func=shlocevents&locatid=".$event->locid)."\" title=\"".$cbpi_click_location."\" />".$event->club."</a></td>"
."<td>".$event->city."</td>"
."<td> ".mosFormatDate( $event->dates." 00:00:00", _DATE_FORMAT_LC, "1")." </td>"
."</tr>\n";
}
$return .= "</table>";
return $return;
}
}
<table width="100%" border="0" cellspacing="1" cellpadding="1" style="table-layout:fixed">
<tr>
<td>
<div align="center">
<div id="motioncontainer" style="position:relative; overflow:hidden;">
<div id="motiongallery" style="position:absolute; left:0; top:0; white-space: nowrap;">
<nobr id="trueContainer">
<?php
}
if (count($rows) > 0) {
foreach ($rows as $row1) {
if (is_file(_PONY_ABSOLUTE_PATH . $ag_paththumbs . '/' .$row1->imgfilename)) {
$tnfile = '';
} else {
$tnfile = 'tn_';
}
if ($ag_minisprop == 2 ) {
$miniwidth = "";
$miniheight = 'height="'.$ag_miniHeight.' px"';
} else if ($ag_minisprop == 1 ) {
$miniwidth = 'width="'.$ag_miniWidth.' px"';
$miniheight = "";
} else {
$miniwidth = 'width="'.$ag_miniWidth.' px"';
$miniheight = 'height="'.$ag_miniHeight.' px"';
}
?>
<a href="<?php echo sefRelToAbs("index.php?option=com_ponygallery&Itemid=$Itemid&func=detail&id=$row1->id#ponyimg"); ?>">
<?php
if ( $row1->id == $id ) {
?>
<img src="<?php echo $thumbnailpath.$tnfile.$row1->imgfilename; ?>" style="border-style:solid; border-width:1px; border-color:<?php echo $ag_miniabordercolor; ?>; padding:1px;"<?php echo $miniwidth; ?> <?php echo $miniheight; ?> alt="<?php echo $row1->imgtitle; ?>" id="pg_mini_<?php echo $row1->id; ?>" /></a>
<?php
} elseif ( $row1->id != $id ) {
?>
<img src="<?php echo $thumbnailpath.$tnfile.$row1->imgfilename; ?>" style="border-style:solid; border-width:1px; border-color:<?php echo $ag_minibordercolor; ?>; padding:1px; margin-top:1px;" <?php echo $miniwidth; ?> <?php echo $miniheight; ?> alt="<?php echo $row1->imgtitle; ?>" id="pg_mini_<?php echo $row1->id; ?>" /></a>
</nobr>
</div>
</div>
</div>
</td>
</tr>
</table>
|