pragmaMx Support Forum

Archive => veraltete bzw. unsupportete Systeme und Module => Alt Archive => PHPNuke 5.2-6.0 & VKP 5.5 => Thema gestartet von: mario8 am 31 August 2002, 22:47:36

Titel: problem mit letzten fünf artikel block
Beitrag von: mario8 am 31 August 2002, 22:47:36
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
Titel: Re: problem mit letzten fünf artikel block
Beitrag von: Micro am 31 August 2002, 22:52:23
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.
Titel: Re: problem mit letzten fünf artikel block
Beitrag von: mario8 am 31 August 2002, 23:07:33
könntest du mir das bitte etwas genauer erklären ich kenne mich hiermit überhaupt nicht aus.

grüsse
mario
Titel: Re: problem mit letzten fünf artikel block
Beitrag von: elvis am 01 September 2002, 00:39:46
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
 
Titel: Re: problem mit letzten fünf artikel block
Beitrag von: elvis am 01 September 2002, 00:41:14
ich glaub <table border="1" width="100%"> ist keine gute idee
<table> sollte auch reichen
Titel: Re: problem mit letzten fünf artikel block
Beitrag von: mario8 am 01 September 2002, 09:44:24
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>&middot;</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
Titel: Re: problem mit letzten fünf artikel block
Beitrag von: elvis am 01 September 2002, 12:31:37
 <?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
Titel: Re: problem mit letzten fünf artikel block
Beitrag von: mario8 am 03 September 2002, 16:58:46
hallo elvis!!

funktioniert leider nicht :cry

grüsse
mario
Titel: Re: problem mit letzten fünf artikel block
Beitrag von: elvis am 03 September 2002, 17:16:44
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>";
?>
Titel: Re: problem mit letzten fünf artikel block
Beitrag von: mario8 am 03 September 2002, 17:26:55
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
Titel: Re: problem mit letzten fünf artikel block
Beitrag von: mario8 am 03 September 2002, 17:30:31
funktioniert jetzt  :D

das war falsch!
  /************************************************************************/< br /> /* PHP-NUKE: Web Portal System */

grüsse
mario
Titel: Re: problem mit letzten fünf artikel block
Beitrag von: elvis am 03 September 2002, 17:34:32
lach stimmt ein <br> hat da nix zu suchen. fui wech damit  :gunman:  :phantom: