pragmaMx Support Forum

pragmaMx => Individuelle Anpassungen => Thema gestartet von: gabin in 05 Juli 2006, 16:03:29

Titel: block-vkp_News_Related.php bearbeiten
Beitrag von: gabin in 05 Juli 2006, 16:03:29
Hi allesamt,

für diejenigen, die das block-vkp_News_Related.php  aktiviert haben,
sende ich Ihnen ein Paar Tipps damit das Style des Blocks besser aussieht.


Bitte Öffnen die folgende Datei:
blocks\block-vkp_News_Related.php

Es werden nur 3 Zeilen bearbeitet.


Gehe zur Zeile 59. Da steht:
Zitat

  • $content .= sprintf($line, 'modules.php?name=News&new_topic='.$GLOBALS['story_blocks']['topic'], '_self', _MOREABOUT.' '.$GLOBALS['story_blocks']["topictext"]);



Dieser Zeile wird folgendes ergänzt:
<div style=\"padding:5px; margin:5px;\"> ... </div>


Es soll, wie folgt aussehen:
Zitat

  • $content .= "<div style=\"padding:5px; margin:5px;\">".sprintf($line, 'modules.php?name=News&amp;new_topic='.$GLOBALS['story_blocks']['topic'], '_self', _MOREABOUT.' '.$GLOBALS['story_blocks']["topictext"])."</div>";




So was ähnliches machen wir auch in der Zeile 77. Da steht:

Zitat

  • $content .= "<div align=\"center\"><b>"._MOSTREAD." ".$GLOBALS['story_blocks']["topictext"].":</b></div>\n";



Wir fügen dazu folgendes hinzu:
style=\"padding-left:5px; padding-right:5px; margin-left:5px; margin-right:5px;\"


Es soll, wie folgt aussehen:

Zitat

  • $content .= "<div align=\"center\" style=\"padding-left:5px; padding-right:5px; margin-left:5px; margin-right:5px;\">"._MOSTREAD."<br>".$GLOBALS['story_blocks']["topictext"].":</div>";



Noch eine letzte Zeile. Gehe zur Zeile 78. Da steht:

Zitat

  • $content .= sprintf($line, "modules.php?name=News&amp;file=article&amp;sid=$sid", '_self', $title);



Da fügen wir folgendes hinzu:
<div style=\"padding:5px; margin:5px;\">...</div>



Es soll, wie folgt aussehen:

Zitat

  • $content .="<div style=\"padding:5px; margin:5px;\">".sprintf($line, "modules.php?name=News&amp;file=article&amp;sid=$sid", '_self', $title)."</div>";


Nun, jetzt die Datei hochladen und dann aktualisieren. Das wars!


Siehe hier Block: Verwandte Links als Muster  (http://www.soneros.de/modules.php?name=News&file=article&sid=128)


Gruß

gabin


Titel: Re: block-vkp_News_Related.php bearbeiten
Beitrag von: gabin in 08 Juli 2006, 08:17:50
Ergänzung

Siehe folgende Zeile 64.

Da steht:
Zitat

  • $content .= $related;


Bitte wie folgt ändern:
Zitat

  • $content .= "<div style=\"margin:5px;\">".$related."</div>";

Datei hochladen, aktualisieren und das wars!

Gruß

gabin