ik heb een leuk gastenboek geripped en heb deze op mijn hosting account gezet, tot zover ging alles goed.
het bleek dat het script fantastich werkte, echter geeft hij het icoon voor de website niet goed weer aan de linker kan...
hier het gastenboek in actie www.beekman-net.com
het gaat om het plaatje "home.gif' die hij niet wil weergeven de ander doen het wel.
het gedeelte van dit script waar het probleem plaatje wordt aangeroepen staat hier onder:
$result = mysql_db_query($database, "SELECT * FROM guestbook ORDER by id $sort LIMIT $offset, $perpage");
while ($db = mysql_fetch_array($result)) {
if ($dateformat=="eu")
{ // European Date & Timeformat
$when = strftime("%d.%m.%Y %H:%M", $db["timestamp"]);
} else { // US Date & Timeformat
$when = strftime("%m/%d/%Y %I:%M %p", $db["timestamp"]);
}
if ($db[email] != "none") {
$email = "<a href=\"mailto:".$db[email]."\"><img src=\"$image_dir/icons/email.gif\" alt=\"$send_email\" border=\"0\" align=\"right\"></a>";
} else {
$email = "";
}
if ($db[icq] != 0) {
$icq = "<a href=\"http://wwp.icq.com/scripts/contact.dll?msgto=$db[icq]\"><img src=\"http://wwp.icq.com/scripts/online.dll?icq=" . $db[icq] . "&img=5\" alt=\"$icq_message\" border=\"0\" align=\"right\" height=\"17\"></a>";
} else {
$icq = "";
}
if ($db[http] != "none") {
$http = "<a href=\"http://$db[http]\" target=\"_blank\"><img src=\"$image_dir/icons/home.gif\" alt=\"$view_homepage\" border=\"0\" align=\"right\"></a>";
} else {
$http = "";
}
if ($db[ip] != "none") {
if ($admin==$adminpass) {
$ip = "<img src=\"$image_dir/icons/ip.gif\" alt=\"".$db[ip]."\" align=\"left\">";
} else {
$ip = "<img src=\"$image_dir/icons/ip.gif\" alt=\"$ip_logged\" align=\"left\">";
}
} else {
$ip = "";
}
if ($db[location]!= "none") {
$location = "$gb_location<br>$db[location]<br>";
} else {
$location = "<br><br>";
}
if ($db[browser] != "") {
$browser = "<img src=\"$image_dir/icons/browser.gif\" alt=\"$db[browser]\" align=\"left\">";
} else {
$browser = "";
}
echo " <tr>\n";
echo " <td class=\"gbtable1\">\n";
echo " <div class=\"mainname\">$db[name]</div><br>\n";
echo " <div class=\"smallleft\">$location<br></div>\n";
echo " <br>$icq $http $email $ip $browser\n";
echo " </td>\n";
echo " <td class=\"gbtable2\"><div class=\"smallleft\">\n";
if ($admin==$adminpass) {
echo "<a href=\"$PHP_SELF?action=submit&delid=$db[id]&offset=$offset&poffset=$poffset$adminlink\"><img src=\"$image_dir/icons/trash.gif\" alt=\"$moderator_del_action\" border=\"0\" align=\"right\"></a>";
echo "<a href=\"$PHP_SELF?action=submit&delcommentid=$db[id]&offset=$offset&poffset=$poffset$adminlink\"><img src=\"$image_dir/icons/trashcomment.gif\" alt=\"$moderator_del_comment\" border=\"0\" align=\"right\"></a>";
echo "<a href=\"$PHP_SELF?action=submit&commentid=$db[id]&offset=$offset&poffset=$poffset$adminlink\"><img src=\"$image_dir/icons/comment.gif\" alt=\"$moderator_edit_comment\" border=\"0\" align=\"right\"></a>";
echo "<div class=\"spaceleft\"> </div>\n";
}
echo " $gb_posted $when</div><hr><div class=\"mainleft\">".censor_msg($db[message],($admin==$adminpass))."</div>\n";
if($commentid == $db[id] && $action!="changed" && $admin==$adminpass) {
echo "  \n";
echo " <form action=\"$PHP_SELF?action=submit\" method=\"post\">\n";
echo " <input type=\"hidden\" name=\"admin\" value=\"$admin\"><input type=\"hidden\" name=\"commentid\" value=\"$commentid\">\n";
echo " <input type=\"hidden\" name=\"offset\" value=\"$offset\"><input type=\"hidden\" name=\"poffset\" value=\"$poffset\">\n";
echo " <div class=\"comment\"><textarea name=\"comment\" cols=\"".($text_field_size-5)."\" rows=\"5\">".decode_msg($db[comment])."</textarea>\n<BR>";
echo " <input type=\"submit\"> <a href=\"smiliehelp.php\"
onClick='enterWindow=window.open(\"smiliehelp.php\",\"Smilie\",
\"width=250,height=450,top=100,left=100,scrollbars=yes\"); return false'
onmouseover=\"window.status='$smiliehelp'; return true;\"
onmouseout=\"window.status=''; return true;\">$smiley_help</a></div>\n";
echo " </form>\n";
} elseif(!empty($db[comment])) {
echo "  <div class=\"comment\">".$gb_modcomment.$db[comment]."</div>\n";
}
echo " </td>\n </tr>\n";
}
# End of Page reached
het bleek dat het script fantastich werkte, echter geeft hij het icoon voor de website niet goed weer aan de linker kan...
hier het gastenboek in actie www.beekman-net.com
het gaat om het plaatje "home.gif' die hij niet wil weergeven de ander doen het wel.
het gedeelte van dit script waar het probleem plaatje wordt aangeroepen staat hier onder:
$result = mysql_db_query($database, "SELECT * FROM guestbook ORDER by id $sort LIMIT $offset, $perpage");
while ($db = mysql_fetch_array($result)) {
if ($dateformat=="eu")
{ // European Date & Timeformat
$when = strftime("%d.%m.%Y %H:%M", $db["timestamp"]);
} else { // US Date & Timeformat
$when = strftime("%m/%d/%Y %I:%M %p", $db["timestamp"]);
}
if ($db[email] != "none") {
$email = "<a href=\"mailto:".$db[email]."\"><img src=\"$image_dir/icons/email.gif\" alt=\"$send_email\" border=\"0\" align=\"right\"></a>";
} else {
$email = "";
}
if ($db[icq] != 0) {
$icq = "<a href=\"http://wwp.icq.com/scripts/contact.dll?msgto=$db[icq]\"><img src=\"http://wwp.icq.com/scripts/online.dll?icq=" . $db[icq] . "&img=5\" alt=\"$icq_message\" border=\"0\" align=\"right\" height=\"17\"></a>";
} else {
$icq = "";
}
if ($db[http] != "none") {
$http = "<a href=\"http://$db[http]\" target=\"_blank\"><img src=\"$image_dir/icons/home.gif\" alt=\"$view_homepage\" border=\"0\" align=\"right\"></a>";
} else {
$http = "";
}
if ($db[ip] != "none") {
if ($admin==$adminpass) {
$ip = "<img src=\"$image_dir/icons/ip.gif\" alt=\"".$db[ip]."\" align=\"left\">";
} else {
$ip = "<img src=\"$image_dir/icons/ip.gif\" alt=\"$ip_logged\" align=\"left\">";
}
} else {
$ip = "";
}
if ($db[location]!= "none") {
$location = "$gb_location<br>$db[location]<br>";
} else {
$location = "<br><br>";
}
if ($db[browser] != "") {
$browser = "<img src=\"$image_dir/icons/browser.gif\" alt=\"$db[browser]\" align=\"left\">";
} else {
$browser = "";
}
echo " <tr>\n";
echo " <td class=\"gbtable1\">\n";
echo " <div class=\"mainname\">$db[name]</div><br>\n";
echo " <div class=\"smallleft\">$location<br></div>\n";
echo " <br>$icq $http $email $ip $browser\n";
echo " </td>\n";
echo " <td class=\"gbtable2\"><div class=\"smallleft\">\n";
if ($admin==$adminpass) {
echo "<a href=\"$PHP_SELF?action=submit&delid=$db[id]&offset=$offset&poffset=$poffset$adminlink\"><img src=\"$image_dir/icons/trash.gif\" alt=\"$moderator_del_action\" border=\"0\" align=\"right\"></a>";
echo "<a href=\"$PHP_SELF?action=submit&delcommentid=$db[id]&offset=$offset&poffset=$poffset$adminlink\"><img src=\"$image_dir/icons/trashcomment.gif\" alt=\"$moderator_del_comment\" border=\"0\" align=\"right\"></a>";
echo "<a href=\"$PHP_SELF?action=submit&commentid=$db[id]&offset=$offset&poffset=$poffset$adminlink\"><img src=\"$image_dir/icons/comment.gif\" alt=\"$moderator_edit_comment\" border=\"0\" align=\"right\"></a>";
echo "<div class=\"spaceleft\"> </div>\n";
}
echo " $gb_posted $when</div><hr><div class=\"mainleft\">".censor_msg($db[message],($admin==$adminpass))."</div>\n";
if($commentid == $db[id] && $action!="changed" && $admin==$adminpass) {
echo "  \n";
echo " <form action=\"$PHP_SELF?action=submit\" method=\"post\">\n";
echo " <input type=\"hidden\" name=\"admin\" value=\"$admin\"><input type=\"hidden\" name=\"commentid\" value=\"$commentid\">\n";
echo " <input type=\"hidden\" name=\"offset\" value=\"$offset\"><input type=\"hidden\" name=\"poffset\" value=\"$poffset\">\n";
echo " <div class=\"comment\"><textarea name=\"comment\" cols=\"".($text_field_size-5)."\" rows=\"5\">".decode_msg($db[comment])."</textarea>\n<BR>";
echo " <input type=\"submit\"> <a href=\"smiliehelp.php\"
onClick='enterWindow=window.open(\"smiliehelp.php\",\"Smilie\",
\"width=250,height=450,top=100,left=100,scrollbars=yes\"); return false'
onmouseover=\"window.status='$smiliehelp'; return true;\"
onmouseout=\"window.status=''; return true;\">$smiley_help</a></div>\n";
echo " </form>\n";
} elseif(!empty($db[comment])) {
echo "  <div class=\"comment\">".$gb_modcomment.$db[comment]."</div>\n";
}
echo " </td>\n </tr>\n";
}
# End of Page reached
Ik heb d’r nich veur keuzn Tukker te wean, ik heb gewoon onmeunig mazzel had!