hallo
ich habe da schon wieder ein problem wenn ihr euch auf meiner seite
http://www.feerum-moricum.comball.net/index.php
denn block links die letzten fünf artikel anseht verschiebt sich der rand nach rechts
hat jemand eine idee wie ich das beheben kann?
grüsse
mario
Liegt an der Aufteilung im Block.
Die Langen Worte werden nicht umgebrochen und da ja unbedingt noch viel mehr an Info dahinter muss, passiert das nun mal.
Abhilfe wäre die Aufteilung der Tabelle zu ändern.
D.h. nicht Zwei Spalten in der einmal der Link zum Artikel ist und daneben die zweite Spalte mit den "wieviel Kommentare" sondern das in zwei Zeilen zu schreiben. Damit wäre, zumindest vorübergehend bis zum nächsten noch längeren Wort, das Problem behoben.
könntest du mir das bitte etwas genauer erklären ich kenne mich hiermit überhaupt nicht aus.
grüsse
mario
die letzten 5 artikel werden im block in 2 spalten angezeigt
<table border="1" width="100%">
<tr>
<td width="50%">Artikel</td>
<td width="50%">gelesen</td>
</tr>
</table>
besser wäre es wenn du die tabelle entfernst und
artikel <br>
gelesen <br>
machst
du kannst auch eine tabelle untereinander machen
<table border="1" width="100%">
<tr>
<td width="100%">artikel</td>
</tr>
<tr>
<td width="100%">gelesen</td>
</tr>
</table>
machen aber kann sein das du dann ein abstand hast
ich glaub <table border="1" width="100%"> ist keine gute idee
<table> sollte auch reichen
muss ich das jetzt in der block-last_5_articels.php ändern??
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com) */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/* Block to fit perfectly in the center of the site, remember that not all
blocks looks good on Center, just try and see yourself what fits your needs */
if (eregi("block-Last_10_Articles.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
global $prefix, $multilingual, $currentlang, $dbi;
if ($multilingual == 1) {
$querylang = "WHERE (alanguage='$currentlang' OR alanguage='')";
} else {
$querylang = "";
}
$content = "<table width=\"100%\" border=\"0\">";
$result = sql_query("select sid, title, comments, counter from ".$prefix."_stories $querylang order by sid DESC limit 0,5", $dbi);
while(list($sid, $title, $comtotal, $counter) = sql_fetch_row($result, $dbi)) {
$content .= "<tr><td align=\"left\"><strong><big>·</big></strong> <a href=\"modules.php?name=News&file=article&sid=$sid\">$title</a></td><td align=\"right\">[ $comtotal "._COMMENTS." - $counter "._READS." ]</td></tr>";
}
$content .= "</table>";
$content .= "<br><center>[ <a href=\"modules.php?name=News\">"._MORENEWS."</a> ]</center>";
?>
grüsse
mario
<?php
/************************************************************************/<
br />
/* PHP-NUKE: Web Portal System
*/
/* ===========================
*/
/*
*/
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com)
*/
/* http://phpnuke.org
*/
/*
*/
/* This program is free software. You can redistribute it and/or modify
*/
/* it under the terms of the GNU General Public License as published by
*/
/* the Free Software Foundation; either version 2 of the License.
*/
/************************************************************************/<
br />
/* Block to fit perfectly in the center of the site, remember that not
all
blocks looks good on Center, just try and see yourself what fits your
needs */
if (eregi("block-Last_10_Articles.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
global $prefix, $multilingual, $currentlang, $dbi;
if ($multilingual == 1) {
$querylang = "WHERE (alanguage='$currentlang' OR alanguage='')";
} else {
$querylang = "";
}
$content = "<table width=\"100%\" border=\"0\">";
$result = sql_query("select sid, title, comments, counter from
".$prefix."_stories $querylang order by sid DESC limit 0,5", $dbi);
while(list($sid, $title, $comtotal, $counter) = sql_fetch_row($result,
$dbi)) {
$content .= "<tr><td
align=\"left\"><strong><big>ˇ</big></strong&
gt; <a
href=\"modules.php?name=News&file=article&sid=$sid\">$title</
a></td><tr><td align=\"right\">[ $comtotal "._COMMENTS." -
$counter "._READS." ]</td></td></tr>";
}
$content .= "</table>";
$content .= "<br><center>[ <a
href=\"modules.php?name=News\">"._MORENEWS."</a>
]</center>";
?>
hab ich nicht getestet verscuh einfach mal
hallo elvis!!
funktioniert leider nicht :cry
grüsse
mario
probier denn hab denn bei mir getestet:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com) */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/* Block to fit perfectly in the center of the site, remember that not all
blocks looks good on Center, just try and see yourself what fits your needs */
if (eregi("block-Last_10_Articles.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
global $prefix, $multilingual, $currentlang, $dbi;
if ($multilingual == 1) {
$querylang = "WHERE (alanguage='$currentlang' OR alanguage='')";
} else {
$querylang = "";
}
$content = "<table width=\"100%\" border=\"0\">";
$result = sql_query("select sid, title, comments, counter from ".$prefix."_stories $querylang order by sid DESC limit 0,5", $dbi);
while(list($sid, $title, $comtotal, $counter) = sql_fetch_row($result, $dbi)) {
$content .= "<tr>
<tr align=\"left\">
<strong><big>·</big></strong>
<a href=\"modules.php?name=News&
file=article&sid=$sid\">$title</a>
</tr>
<tr align=\"right\">[ $comtotal "._COMMENTS." - <br> $counter "._READS." ]
</tr>
</tr>";
}
$content .= "</table>";
$content .= "<br><center>[ <a href=\"modules.php?name=News\">"._MORENEWS."</a> ]</center>";
?>
bekomme immer wieder diese fehlermeldung:
Parse error: parse error in /usr/local/httpd/htdocs/kunden/cbn540/html/blocks/block-Last_5_Articles.php on line 3
grüsse
mario
funktioniert jetzt :D
das war falsch!
/************************************************************************/< br /> /* PHP-NUKE: Web Portal System */
grüsse
mario
lach stimmt ein <br> hat da nix zu suchen. fui wech damit :gunman: :phantom: