\n\n";
$email = $user_data->user_email;
$url = $user_data->user_url;
- $bg1 = ($user_data->user_login == $user_login) ? "style=\"background-image: url('../b2-img/b2button.gif');\"" : "bgcolor=\"#dddddd\"";
- $bg2 = ($user_data->user_login == $user_login) ? "style=\"background-image: url('../b2-img/b2button.gif');\"" : "bgcolor=\"#eeeeee\"";
- echo "".$user_data->ID." | \n";
- echo "ID.")\">".$user_data->user_nickname." | \n";
- echo "".$user_data->user_firstname." ".$user_data->user_lastname." | \n";
- echo " | ";
- echo " ";
- if (($user_data->user_url != "http://") and ($user_data->user_url != ""))
- echo " ";
- echo " | \n";
- echo "".$user_data->user_level;
- if ($user_level >= 2)
- echo " ID."&prom=up\">+ ";
+ $short_url = str_replace('http://', '', stripslashes($url));
+ $short_url = str_replace('www.', '', $short_url);
+ if ('/' == substr($short_url, -1))
+ $short_url = substr($short_url, 0, -1);
+ if (strlen($short_url) > 35)
+ $short_url = substr($short_url, 0, 32).'...';
+ $style = ('class="alternate"' == $style) ? '' : 'class="alternate"';
+echo "\n |