Ich möchte in diesen Code einen Link so einfügen das dieser am Ende steht.
Ich habe es mit
echo "<a href=\"http://www.zweeper.de/thwb/shout_archiv.php\">Archiv</a>";
probiert aber nun hab ich ein Problem mit dem einfügen.
Sobald ich den Link in mein Script setze bekomme ich einen Fehler.
Kann mir schnell jemand zeigen wie ich das am besten mache? habe 2.81.
///////////////////// //Shoutbox ///////////////////// if ($portalrow['portaltext']=="shoutbox" && $portalrow['active']==1 && ((stristr( $_SERVER['PHP_SELF'], 'portal.php' )) || ($portalconfig['menulinks']==1 && $portalrow['align']==0) || ($portalconfig['menurechts']==1 && $portalrow['align']==1))) { if ( isset($shoutsubmit) && $shoutname != NULL && $shouttext != NULL && $shouttext != "Dein Text" && $shoutname != "Dein Name") { $shouttext = ereg_replace("'", "", $shouttext); $shouttext = split(" ", $shouttext); for($i = 0; $i < sizeof($shouttext); $i++){ if(strlen($shouttext[$i]) > 20){ //Set here the maximum number of letters per word $shouttext[$i] = substr($shouttext[$i],0,20); } } $shouttext = implode(" ",$shouttext); $time = time(); thwb_query("INSERT INTO $pref"."shoutbox (posttime, posttext, postguestname) VALUES ('$time', '$shouttext', '".$g_user['username']."')"); } $shoutbox = "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"$style[border_col]\">"; if (isset($g_user['username']) && !empty($g_user['username']) && $g_user['username'] != "Gast") { $shoutbox .= "<tr><td><form method=\"post\" action=\"index.php\"> <p> <input type=\"text\" name=\"shoutname\" value=\"".$g_user['username']."\" readonly> <input type=\"text\" name=\"shouttext\" value=\"Dein Text\"> <font size=\"0.5\" color=\"#E2E2E2\">(Max. 20 Zeichen - Wort)</font> <br> <br> <input type=\"submit\" name=\"shoutsubmit\" value=\"Abschicken\"> </p> </form></td></tr>"; } $r_shoutbox = thwb_query("SELECT postguestname, posttext, posttime FROM ".$pref."shoutbox ORDER BY posttime DESC LIMIT ".$portalconfig['shoutanzahl']); $i = "0"; while ($shouttmp = mysql_fetch_array($r_shoutbox)) { $shouttmp['posttext'] = parse_code($shouttmp['posttext'], 1, 1, 1, 0); $shoutbox .= "<tr><td><p><br></p></td></tr><tr><td>$style[smallfont]".$shouttmp['posttext']."$style[smallfontend]</td></tr> <tr><td bgcolor=\"$style[color4]\">$style[smallfont]by ".$shouttmp['postguestname']."</td></tr> <tr><td bgcolor=\"$style[color4]\">$style[smallfont]".form_date($shouttmp['posttime'],0)."$style[smallfontend]</td></tr>"; $i++; } $shoutbox .= "</table>"; } ///////////////////// //Shoutbox /////////////////////