>>  Site Map >>  Forums >>  Blocks 7x

Forum module - topics in forum:



Blocks 7x - Discussions regarding PHP-Nuke Blocks. 7x



User Info 2 block - off site avatar not showing

Hi guys

I have searched for this and found some articles that were kinda on the right track, but didn't really come to any kind of conclusion. I'm not sure if this is the problem which Dirk thought was to do with the ported version of PHPBB, but here goes...

I have used the UserInfo2 block with great success over the last few weeks, until I was told that users using offsite avatars do not display in the avatar window. Gallery avatars work just fine.

It would seem that the code only caters for Gallery avatars. What I would like is something like... [begin pseudocode lol Laughing ]

Code: :
If user is not using a gallery avatar
    use address from Avatar field in users table
else
    use gallery avatar


What it's doing for offsite avatars is apending the URL of the offsite avatar to the path for the gallery. So when i bring up properties of the failed image, I get...

http://www.mysite.com/modules/Forums/images/avatars//http://ImageHost.com/avatar.jpg

whereas a working one would be

http://www.mysite.com/modules/Forums/images/gallery/myavatar.jpg

It's therefore appending the entry of the Avatar field to "http://www.mysite.com/modules/Forums/images/avatars" whether or not it's a remote url, or a link into the gallery.

Here's the code, which as you'll see I've commented out a lot of information I don't want, but I've not altered any existing code.

Code: :
<?php
/************************************************************/
/* (C) 2002                                                 */
/* All rights beyond the GPL are reserved                   */
/* http://www.dutchies.be/phpnuke                           */
/************************************************************/

if (eregi("block-User_Info.php",$_SERVER['PHP_SELF'])) {Header("Location: index.php");}

function convertIP ($xip) {
global $admin;
if (is_admin($admin)) return $xip;
$xipx = explode('.',$xip);
for ($i=2;$i<count($xipx);$i++) {
$xipx[$i] = preg_replace ('/(0|1|2|3|4|5|6|7|8|9)/', "X", $xipx[$i]);
}
return implode('.',$xipx);
}

global $user, $cookie, $prefix, $user_prefix, $db, $dbi, $anonymous, $mode, $t, $f, $redirect, $random_num, $userinfo, $gfx_chk, $bgcolor1;

/***********************************************************************************************************************/
$TBLWIDTH   = "145";    # WIDTH OFF THE BLOCK CAN BE % OFF OR FIXED SIZE LIKE 150
$GALLERY    = "";       # WHEN YOU DONT SEE AVATARS AS GUEST OR MEMBER TYPE  BETWEEN THE 2 QUOTES $GALLERY  = "gallery";
$PM         = "1";      # 1 = PRIVATE MESSAGES BLOCK ON  /  0 = PRIVATE MESSAGES BLOCK OFF
$ST         = "0";      # 1 = SECURITY CODE ON           /  0 = SECURITY CODE OFF
/***********************************************************************************************************************/

$content  = "";
$username = $cookie[1];
$ip = getenv( "REMOTE_ADDR" );
getusrinfo($user);
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, 10);
cookiedecode($user);
$sql = "SELECT username FROM $user_prefix"._users." ORDER BY user_id DESC LIMIT 0,1";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$lastuser = $row[username];
$numrows = $db->sql_numrows($db->sql_query("SELECT user_id FROM $user_prefix"._users.""));

$sql = "SELECT uname, guest FROM $prefix"._session." WHERE guest=0";
$result = $db->sql_query($sql);
$member_online_num = $db->sql_numrows($result);
$who_online_now = "";
$l = 1;
while ($session = $db->sql_fetchrow($result)) {
if (isset($session["guest"]) and $session["guest"] == 0) {
if ($l < 10) {
$resultuser_id = sql_query( "SELECT user_id FROM ".$prefix."_users where username='$session[uname]'", $dbi );
list( $user_id ) = sql_fetch_row( $resultuser_id, $dbi );
$who_online_now .= "&nbsp;0$l:<A HREF=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$user_id\"><img src=\"images/blocks/userprofil.gif\" align=\"absmiddle\" border=\"0\" ALT=\"Forum profile $session[uname] \"></a><A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$session[uname]\">$session[uname]</a><br>\n";
} else {
$resultuser_id = sql_query( "SELECT user_id FROM ".$prefix."_users where username='$session[uname]'", $dbi );
list( $user_id ) = sql_fetch_row( $resultuser_id, $dbi );
$who_online_now .= "&nbsp;$l:<A HREF=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$user_id\"><img src=\"images/blocks/userprofil.gif\" align=\"absmiddle\" border=\"0\" ALT=\"Forum profile $session[uname] \"></a><A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$session[uname]\">$session[uname]</a><br>\n";
}
$who_online_now .= ($l != $member_online_num ? "  " : "");
$l++;
}}

$sql = "SELECT uname, guest FROM $prefix"._session." WHERE guest=1";
$result = $db->sql_query($sql);
$gmember_online_num = $db->sql_numrows($result);
$gwho_online_now = "";
$i = 1;
while ($session = $db->sql_fetchrow($result)) {
if (isset($session["guest"]) and $session["guest"] == 1) {
if ($i < 10) {
$gwho_online_now .= "&nbsp;0$i:&nbsp;".convertIP($session[uname])."\n";
} else {
$gwho_online_now .= "&nbsp;$i:&nbsp;".convertIP($session[uname])."\n";
}
$gwho_online_now .= ($i != $gmember_online_num ? "  " : "");
$i++;
}
}

$sql = "SELECT uname FROM ".$prefix."_session WHERE guest=1";
$result = $db->sql_query($sql);
$guest_online_num = $db->sql_numrows($result);
$sql = "SELECT uname FROM ".$prefix."_session WHERE guest=0";
$result = $db->sql_query($sql);
$member_online_num = $db->sql_numrows($result);
$who_online_num = $guest_online_num + $member_online_num;
$sql = "SELECT total, members, nonmembers FROM ".$prefix."_mostonline";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$total = $row[total];
$members = $row[members];
$nonmembers = $row[nonmembers];
if ($total < $who_online_num) {
$db->sql_query("DELETE FROM ".$prefix."_mostonline WHERE total='$total' LIMIT 1", $dbi);
$db->sql_query("INSERT INTO ".$prefix."_mostonline VALUES ('$who_online_num','$member_online_num','$guest_online_num')", $dbi);
$total = $who_online_num;
$members = $member_online_num;
$nonmembers = $guest_online_num;
} else {
$sql = "SELECT total, members, nonmembers FROM ".$prefix."_mostonline";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$total = $row[total];
$members = $row[members];
$nonmembers = $row[nonmembers];
}

$Today = getdate();
$month = $Today['month'];
$mday = $Today['mday'];
$year = $Today['year'];
$pmonth = $Today['month'];
$pmday = $Today['mday'];
$pmday = $mday-1;
$pyear = $Today['year'];
if ($pmonth=="January") { $pmonth=1; } else
if ($pmonth=="February") { $pmonth=2; } else
if ($pmonth=="March") { $pmonth=3; } else
if ($pmonth=="April") { $pmonth=4; } else
if ($pmonth=="May") { $pmonth=5; } else
if ($pmonth=="June") { $pmonth=6; } else
if ($pmonth=="July") { $pmonth=7; } else
if ($pmonth=="August") { $pmonth=8; } else
if ($pmonth=="September") { $pmonth=9; } else
if ($pmonth=="October") { $pmonth=10; } else
if ($pmonth=="November") { $pmonth=11; } else
if ($pmonth=="December") { $pmonth=12; };
$test = mktime (0,0,0,$pmonth,$pmday,$pyear,1);
$curDate2 = "%".$month[0].$month[1].$month[2]."%".$mday."%".$year."%";
$preday = strftime ("%d",$test);
$premonth = strftime ("%B",$test);
$preyear = strftime ("%Y",$test);
$curDateP = "%".$premonth[0].$premonth[1].$premonth[2]."%".$preday."%".$preyear."%";
$sql = "SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDate2'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$userCount = $row[userCount];
$sql = "SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDateP'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$userCount2 = $row[userCount];
$guest_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest=1"));
$member_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest=0"));
$pmi=($member_online_num/$who_online_num)*100; $pmi = number_format($pmi, 0);
$pvi=($guest_online_num/$who_online_num)*100; $pvi = number_format($pvi, 0);

/* Hits Total */
$result = sql_query("SELECT count FROM $prefix"._counter." WHERE type='total' AND var='hits'", $dbi);
$count_holder = sprintf ("%05d", implode(mysql_fetch_row($result), $dbi));
mysql_free_result ($result);
$nbhits .= $count_holder;

/* Hits for Today */
//$t_time = time();
//$t_year = date("Y", $t_time);
//$t_month = date("n", $t_time);
//$t_date = date("j", $t_time);
//$result = sql_query("SELECT hits FROM $prefix"._stats_date." WHERE year='$t_year' AND month='$t_month' AND date='$t_date'", $dbi);
//list($today) = sql_fetch_row($result, $dbi);

/* Hits for Yesterday */
//$y_time = $t_time - 86400;
//$y_year = date("Y", $y_time);
//$y_month = date("n", $y_time);
//$y_date = date("j", $y_time);
//$result = sql_query("SELECT hits FROM $prefix"._stats_date." WHERE year='$y_year' AND month='$y_month' AND date='$y_date'", $dbi);
//list($yesterday) = sql_fetch_row($result, $dbi);

/* Hourly Hits */
//$result = sql_query("SELECT count(*) FROM $prefix"._stats_hour."", $dbi);
//list($hours) = sql_fetch_row($result, $dbi);
//$hourly = number_format($count_holder/$hours, 0);

/* Daily Hits */
//$result = sql_query("SELECT count(*) FROM $prefix"._stats_date."", $dbi);
//list($days) = sql_fetch_row($result, $dbi);
//$daily = number_format($count_holder/$days, 0);

/* Monthly Hits */
//$result = sql_query("SELECT count(*) FROM $prefix"._stats_month."", $dbi);
//list($months) = sql_fetch_row($result, $dbi);
//$monthly = number_format($count_holder/$months, 0);

/* Yearly Hits */
$result = sql_query("SELECT count(*) FROM $prefix"._stats_year."", $dbi);
list($years) = sql_fetch_row($result, $dbi);
$yearly = number_format($count_holder/$years, 0);

/* Server Time */
//$Time   = date("d/m/y");
//setlocale (LC_TIME, "C");
//$Today = (strftime ("%X\n"));
//$Offset = date("Z")/3600-1;
//if ($Offset >= 0) {
//v$Offset = "+ ".$Offset;}


$who_online_num = $guest_online_num + $member_online_num;
$content .= "<form action=\"modules.php?name=Your_Account\" method=\"post\">";

/* Info for users which is logged in */
if (is_user($user)) {
if ($userinfo[user_avatar]) {$content .= "<div align=\"center\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=$TBLWIDTH><tr><td width=\"100%\" height=\"10\"></td></tr><tr><td width=\"100%\"><center><img src=\"modules/Forums/images/avatars/$GALLERY/$userinfo[user_avatar]\" alt=\"\"></center></td></tr>\n";}
$content .= "<tr><td width=\"100%\" height=\"10\"></td></tr>\n";
$content .= "<tr><td width=\"100%\"><center><b>"._BWEL." $username</b></center></td></tr></table></div><hr noshade size=1>\n";
$content .= "<div align=\"center\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=$TBLWIDTH>\n";
$content .= "<tr><td width=\"100%\">&nbsp;<img src=\"images/blocks/ball_r.gif\" align=\"absmiddle\" alt=\"logoff\" border=\"0\">&nbsp;<a href=\"modules.php?name=Your_Account&amp;op=logout\">"._LOGOUT."</a></td></tr>\n";
$content .= "</table></div><hr noshade size=1>\n";
if ($PM == 1) {
$sql = "SELECT user_id FROM $user_prefix"._users." WHERE username='$username'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$uid = $row[user_id];
$newpms = $db->sql_numrows($db->sql_query("SELECT privmsgs_to_userid FROM $prefix"._bbprivmsgs." WHERE privmsgs_to_userid='$uid' AND (privmsgs_type='1' OR privmsgs_type='5')"));
$oldpms = $db->sql_numrows($db->sql_query("SELECT privmsgs_to_userid FROM $prefix"._bbprivmsgs." WHERE privmsgs_to_userid='$uid' AND privmsgs_type='0'"));
$content .= "<div align=\"center\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=$TBLWIDTH>\n";
if ($newpms == 0) {
   $content .= "<tr><td colspan=\"2\"><a href=\"modules.php?name=Private_Messages\"><b>"._BPM."</b></a></td></tr>\n";
   $content .= "<tr><td width=\"80%\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BUNREAD.":</td>\n";
   $content .= "<td width=\"20%\"><p align=\"right\"><b>$newpms</b></td></tr>\n";
   $content .= "</tr></table></div><hr noshade size=1>\n";
} else {
   $content .= "<tr><td colspan=\"2\"><img src=\"images/blocks/email-y.gif\" height=\"10\" width=\"14\"> <a href=\"modules.php?name=Private_Messages\"><b>"._BPM."</b></a></td></tr>\n";
   $content .= "<tr><td width=\"80%\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BUNREAD.":</td>\n";
   $content .= "<td width=\"20%\"><p align=\"right\"><b>$newpms</b></td></tr>\n";
   $content .= "</tr></table></div><hr noshade size=1>\n";
}
} else {}
} else {
$content .= "<div align=\"center\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=$TBLWIDTH><tr><td width=\"100%\" height=\"10\"></td></tr><tr><td width=\"100%\">\n";
$content .= "<center><img src=\"modules/Forums/images/avatars/blank.gif\" alt=\"\"></center></td></tr>\n";
$content .= "<tr><td width=\"100%\" height=\"10\"></td></tr>\n";
$content .= "<tr><td width=\"100%\"><center><b>"._BWEL." $anonymous</b></center></td></tr></table></div><hr noshade size=1>\n";
$content .= "<div align=\"center\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=$TBLWIDTH>\n";
$content .= "<tr><td width=\"100%\">&nbsp;<img align=\"absmiddle\" src=images/blocks/ball_g.gif>&nbsp;<a href=\"modules.php?name=Your_Account&amp;op=new_user\">"._BREG."</a></td></tr>\n";
$content .= "<tr><td width=\"100%\" height=\"5\"></td></tr>\n";
$content .= "<tr><td width=\"100%\">&nbsp;<img align=\"absmiddle\" src=images/blocks/ball_r.gif>&nbsp;<a href=\"modules.php?name=Your_Account&amp;op=pass_lost\">"._PASSFOR."</a></td></tr></table></div><hr noshade size=1>";
$content .= "<div align=\"center\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=$TBLWIDTH><tr><td width=\"100%\">\n";
$content .= "<center>"._NICKNAME."<br><input type=\"text\" name=\"username\" size=\"13\" maxlength=\"25\"><br>";
$content .= ""._PASSWORD."<br><input type=\"password\" name=\"user_password\" size=\"13\" maxlength=\"20\"><br>";
if (extension_loaded("gd") AND ($gfx_chk == 3 OR $gfx_chk == 4 OR $gfx_chk == 6 OR $gfx_chk == 7)) {
$content .="<img src=images/blocks/spacer.gif border=0><br>Code<br><img src='modules.php?name=Your_Account&op=gfx&random_num=$random_num' border='1' align='center' alt='Enter Code' title='Enter Code'>\n";
$content .="<br><img src=images/blocks/spacer.gif border=0><br>Enter Code<br><input type=\"text\" NAME=\"gfx_check\" SIZE=\"8\" MAXLENGTH=\"10\">";
$content .="<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">";
}
$content .="<input type=\"hidden\" name=\"op\" value=\"login\">&nbsp;<input type=\"submit\" value=\"Go\"></center>";
$content .="<input type=\"hidden\" name=\"redirect\" value=$redirect>";
$content .="<input type=\"hidden\" name=\"mode\" value=$mode>";
$content .="<input type=\"hidden\" name=\"f\" value=$f>";
$content .="<input type=\"hidden\" name=\"t\" value=$t>";
$content .="";
$content .= "</tr></table></div><hr noshade size=1>\n";
}

/* GENERAL STATS */
//$content .= "<div align=\"center\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=$TBLWIDTH>\n";
//$content .= "<tr><td width=\"100%\" colspan=\"2\"><img src=\"images/blocks/group.gif\" height=\"16\" width=\"17\" align=\"absmiddle\"> <u><b>"._BMEMP."</b></u><br><img src=images/blocks/spacer.gif border=0></td></tr>\n";
//$content .= "<tr><td width=\"90%\"><p align=\"left\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BTD."</td>\n";
//$content .= "<td width=\"10%\"><p align=\"right\"><b>$userCount</b></td></tr>\n";
//$content .= "<tr><td width=\"90%\"><p align=\"left\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BYD."</td>\n";
//$content .= "<td width=\"10%\"><p align=\"right\"><b>$userCount2</b></td></tr>\n";
//$content .= "<tr><td width=\"90%\"><p align=\"left\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BOVER."</td>\n";
//$content .= "<td width=\"10%\"><p align=\"right\"><b>$numrows</b></td></tr>\n";
//$content .= "</tr></table></div><hr noshade size=1>\n";

/* TOP 3 MEMBERS */
$content .= "<div align=\"center\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=$TBLWIDTH>\n";
$content .= "<tr><td width=\"100%\"><img src=\"images/blocks/group.gif\" height=\"16\" width=\"17\" align=\"absmiddle\"> <b><u>Latest Member</u></b><br><img src=images/blocks/spacer.gif border=0></td></tr>\n";
$a = 1;
$result = sql_query("select user_id, username, user_regdate from ".$prefix."_users order by user_id DESC limit 0,1", $dbi);
while(list($lid, $title, $user_regdate) = sql_fetch_row($result, $dbi)) {
$title2 = ereg_replace("_", " ", $title);
$content .= "<tr><td>&nbsp;<strong><big>&middot;</big></strong>&nbsp;<a title=\"$user_regdate\" href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$lid\">$title2</a></td></tr>\n";
$a++;
}
$content .= "</table></div><hr noshade size=1>\n";

/* NOW ONLINE */
$content .= "<div align=\"center\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=$TBLWIDTH>\n";
$content .= "<tr><td width=\"100%\" colspan=\"2\"><img src=\"images/blocks/group.gif\" height=\"16\" width=\"17\" align=\"absmiddle\"> <b><u>"._BVISIT."</u></b><br><img src=images/blocks/spacer.gif border=0><br><img src=images/blocks/spacer.gif border=0></td></tr>\n";
$content .= "<tr><td width=\"85%\"><p align=\"left\">&nbsp;<img src=\"images/blocks/guest.gif\" width=\"14\" height=\"14\" align=\"absmiddle\"><b>"._BVIS."</b> ($pvi%)</td>\n";
$content .= "<td width=\"15%\"><p align=\"right\"><b>$guest_online_num</b></td></tr>\n";
if ($gmember_online_num > 0) {
//$content .= "<tr><td width=\"100%\" colspan=\"2\">$gwho_online_now<br><img src=images/blocks/space.gif border=0></td></tr>\n";
} else {
$content .= "<tr><td width=\"100%\" colspan=\"2\"><img src=images/blocks/space.gif border=0></td></tr>\n";
}
$content .= "<tr><td width=\"85%\"><p align=\"left\">&nbsp;<img src=\"images/blocks/member.gif\" width=\"14\" height=\"14\" align=\"absmiddle\"><b>"._BMEM."</b> ($pmi%)</td>\n";
$content .= "<td width=\"15%\"><p align=\"right\"><b>$member_online_num</b></td></tr>\n";
if ($member_online_num > 0) {
$content .= "<tr><td width=\"100%\" colspan=\"2\">$who_online_now</td></tr>\n";
} else {
$content .= "<tr><td width=\"100%\" colspan=\"2\"><img src=images/blocks/space.gif border=0></td></tr>\n";
}
$content .= "<tr><td width=\"100%\" colspan=\"2\"><img src=images/blocks/space.gif border=0></td></tr>\n";
$content .= "<tr><td width=\"90%\"><p align=\"left\">&nbsp;<img src=\"images/blocks/admin.gif\" width=\"14\" height=\"14\" align=\"absmiddle\"><b>"._BTT." online</b></td>\n";
$content .= "<td width=\"10%\"><p align=\"right\"><b>$who_online_num</b></td></tr>\n";
$content .= "</table></div><hr noshade size=1>\n";

/* MOST EVER ONLINE */
//$content .= "<div align=\"center\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=$TBLWIDTH>\n";
//$content .= "<tr><td width=\"100%\" colspan=\"2\"><img src=\"images/blocks/group.gif\" height=\"16\" width=\"17\" align=\"absmiddle\"> <b><u>Most Ever Online</u></b><br><img src=images/blocks/spacer.gif border=0></td></tr>\n";
//$content .= "<tr><td width=\"90%\"><p align=\"left\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BTT."</td>\n";
//$content .= "<td width=\"10%\"><p align=\"right\"><b>$total</b></td></tr>\n";
//$content .= "<tr><td width=\"90%\"><p align=\"left\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BMEM."</td>\n";
//$content .= "<td width=\"10%\"><p align=\"right\"><b>$members</b></td></tr>\n";
//$content .= "<tr><td width=\"90%\"><p align=\"left\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BVIS."</td>\n";
//$content .= "<td width=\"10%\"><p align=\"right\"><b>$nonmembers</b></td></tr>\n";
//$content .= "</table></div>\n<hr noshade size=1>";

/* TOTAL HITS */
//$content .= "<div align=\"center\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" width=$TBLWIDTH>\n";
//$content .= "<tr><td width=\"100%\" colspan=\"2\"><img src=\"images/blocks/stats.gif\" height=\"16\" width=\"17\" align=\"absmiddle\"> <b><u>"._BHITS."</u></b><br><img src=images/blocks/spacer.gif border=0></td></tr>\n";
//$content .= "<tr><td width=\"65%\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BTDAY."</td>\n";
//$content .= "<td width=\"35%\"><p align=\"right\"><b><a href=\"modules.php?name=Statistics&op=DailyStats&year=$t_year&month=$t_month&date=$t_date\">$today</a></b></td></tr>\n";
//$content .= "<tr><td width=\"65%\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BYDAY."</td>\n";
//$content .= "<td width=\"35%\"><p align=\"right\"><b><a href=\"modules.php?name=Statistics&op=DailyStats&year=$y_year&month=$y_month&date=$y_date\">$yesterday</a></b></td></tr>\n";
//$content .= "<tr><td width=\"65%\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BTT." Hits</td>\n";
//$content .= "<td width=\"35%\"><p align=\"right\"><b><a href=\"modules.php?name=Statistics\">$nbhits</a></b></td></tr>\n";
//$content .= "</table><hr noshade size=1>\n";

/* AVERAGE HITS */
//$content .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" width=$TBLWIDTH>\n";
//$content .= "<tr><td width=\"100%\" colspan=\"2\"><img src=\"images/blocks/stats.gif\" height=\"16\" width=\"17\" align=\"absmiddle\"> <b><u>"._BHITA."</u></b><br><img src=images/blocks/spacer.gif border=0></td></tr>\n";
//$content .= "<tr><td width=\"65%\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BHOUR."</td>\n";
//$content .= "<td width=\"35%\"><p align=\"right\">$hourly</td></tr>\n";
//$content .= "<tr><td width=\"65%\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BDAIL."</td>\n";
//$content .= "<td width=\"35%\"><p align=\"right\">$daily</td></tr>\n";
//$content .= "<tr><td width=\"65%\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BMONT."</td>\n";
//$content .= "<td width=\"35%\"><p align=\"right\">$monthly</td></tr>\n";
//$content .= "<tr><td width=\"65%\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BYEAR."</td>\n";
//$content .= "<td width=\"35%\"><p align=\"right\">$yearly</td></tr>\n";
//if ($ST == 1) {
//$content .= "</table><hr noshade size=1>";

/* SERVER TIME */
//$content .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" width=$TBLWIDTH>\n";
//$content .= "<tr><td width=\"100%\" colspan=\"2\"><img src=\"images/blocks/time.gif\" height=\"16\" width=\"17\" align=\"absmiddle\"> <b><u>Server "._BTIME."</u></b><br><img src=images/blocks/spacer.gif border=0></td></tr>\n";
//$content .= "<tr><td width=\"35%\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BTIME."</td>\n";
//$content .= "<td width=\"65%\"><p align=\"right\">$Today</td></tr>\n";
//$content .= "<tr><td width=\"35%\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._DATE."</td>\n";
//$content .= "<td width=\"65%\"><p align=\"right\">$Time</td></tr>\n";
//$content .= "<tr><td width=\"35%\">&nbsp;<strong><big>&middot;</big></strong>&nbsp;"._BZONE."</td>\n";
//$content .= "<td width=\"65%\"><p align=\"right\">GMT $Offset<br><img src=images/blocks/spacer.gif border=0></td></tr>\n";
//$content .= "</form></table></div>\n";
//} else {$content .= "</form></table></div>\n";}
?>


Could anyone possibly help me alter this code please? I know an avatar isn't necessary as such, but I think it's a nice touch to the user info block.

Thanks guys
Mal






I'd pesonally use a different block rather than trying to get that 1 to work as it should.

Try this 1

http://phpnuke-uk.net/downloads/czuserinfo_v5_universal.zip






Does the job perfectly!

Thanks Darren Very Happy




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS