Please help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rocknolds
Forum Newbie
Posts: 1
Joined: Sun Sep 20, 2009 10:29 am

Please help

Post by rocknolds »

Hello,

I am newbie here and would like to ask your help to modify the code below so that this joomla module will display two columns instead of one.

The output can be seen here http://asmsi-cebu.org by clicking Next Birthday at the front page.
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<?php
echo "<ul style=\"list-style-type:none;\">\n";
if ($geburtstage) {
foreach ($geburtstage as $row) {
// $geburtstag .= " <li><img style=\"MARGIN-BOTTOM: -6px;\" src=\"" . JURI::base() . "modules/mod_geburtstag/images/24/" . $row->day_of_birthday . ".png\"/><b> <a href=\"index.php?option=com_comprofiler&task=userProfile&user=" . $row->user_id . "&Itemid=51\">" . $row->firstname . " " . $row->lastname . "</a></b> (" . $row->days_to_birthday . " Tage)" . "</li>\n";

echo " <li>";
// prüfen ob Kalender ICON angezeigt werden soll
if ($params->get('show_cal',1) == 1) {
echo "<img style=\"MARGIN-BOTTOM: -6px;\" src=\"" . JURI::base() . "modules/mod_birthdays/images/24/" . $row->day_of_birthday . ".png\" alt=\"" . $row->birthday . "\"/>";
}
//prüfen ob der Nutzername oder der reale Name angezeigt werden soll
//Vorname Nachname anzeigen
if ($params->get('display_name',1) == 1) {
//prüfen ob link zum CB Profil angezeigt werden soll
if ($params->get('show_cblink',1) == 1) {
echo "<b> <a href=\"index.php?option=com_comprofiler&task=userProfile&user=" . $row->user_id . "\">" . $row->firstname . " " . $row->lastname . "</a></b>";
}
else {
echo "<b>" . $row->firstname . " " . $row->lastname . "</b>";
}
}
//Username anzeigen
if ($params->get('display_name',1) == 0) {
//prüfen ob link zum CB Profil angezeigt werden soll
if ($params->get('show_cblink',1) == 1) {
echo "<b> <a href=\"index.php?option=com_comprofiler&task=userProfile&user=" . $row->user_id . "\">" . $row->username . "</a></b>";
}
else {
echo "<b>" . $row->username . "</b>";
}
}
//Parameter "Alter anzeigen" auswerten
if ($params->get('show_age',1) == 1) {
echo " <b>" . $row->age . "</b>";
}
// prüfen ob Tage bis zum Geburtstag angezeigt werden sollen
if ($params->get('show_days',1) == 1) {
// am Geburtstag Birthday Icon anzeigen
if ($row->days_to_birthday == 0) {
echo " <img style=\"MARGIN-BOTTOM: -6px;\" src=\"" . JURI::base() . "modules/mod_birthdays/images/24/birthday.png\"/>";
}
//sonst die Anzahl der verbleibenden Tage
else {
echo " (" . $row->days_to_birthday;
//Prüfung ob Tag im Singular verwendet werden muss
if ($row->days_to_birthday == 1) {
echo " " . $params->get('singular_day','day') . ")";
}
//sonst verwende Tag Sting im Plural
else {
echo " " . $params->get('plural_day','days') . ")";
}
}
}
echo "</li>\n";
}
}
echo "</ul>\n";
?>
many many thanks.
Attachments
nextbday.JPG
nextbday.JPG (31.66 KiB) Viewed 59 times
Post Reply