Hallo,
Ich will in den Block rechts ein Bild einfügen .....
habe keine Ahnung von PHP....
Bitte nicht beschimpfen :( , aber vielleicht helfen wo man das lernen kann
...bin ja dabei aber ich will das auf die schnell Haben
mfg
Onkel
<?php // $Id: block-Top10_Downloads.php,v 20.1 2003/08/26 01:26:00 EllselAn Exp $
/************************************************************************/
/* vkpMx 2.0 Content Management System */
/* ==================================================================== */
/* Copyright (C) 2003 by the vkpMx & pragmaMx Developer Team */
/* email: team@pragmamx.org */
/* homepage: http://www.maax-design.de */
/* further sites: http://www.pragmaMx.org, http;//guggemahier.de, */
/* http://www.marx-city.de, http://www.genutec-studios.de, */
/* http://www.shiba-design.de, http://www.power-maax.de */
/* ==================================================================== */
/* Based on: */
/* PHP-NUKE Web Portal System - http://phpnuke.org/ */
/* Thatware - http://thatware.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. */
/************************************************************************/
$scrolling = 1;
$numartikel = 10; # Anzahl der Artikelueberschriften im Block
$hoehe = 100; # Hoehe des Marquee Tag
$modname = "Downloads";
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
$mxblockcache = TRUE;
global $prefix;
$show = ""; $a = 1;
$result = sql_query("select lid, title, hits from ".$prefix."_downloads_downloads where hits>0 order by hits DESC limit 0,".$numartikel."");
while(list($lid, $title, $hits) = sql_fetch_row($result)) {
$title2 = str_replace(" ", "_", $title);
$show .="<div style=\"text-indent: -8px; margin-left: 8px;\"><b>".($a++)."</b>:<big> </big><a href=\"modules.php?name=".$modname."&d_op=viewdownloaddetails&lid=".$lid."&ttitle=".htmlentities($title2,ENT_QUOTES)."\">".$title."</a><span class=\"tiny\"> [Hits: ".$hits." x]</span></div>";
}
if ($show) {
$content = "";
if ($scrolling) $content .= "<MARQUEE behavior=\"scroll\" align=\"left\" direction=\"up\" height=\"".$hoehe."\" scrollamount= \"2\" scrolldelay= \"90\" onmouseover='this.stop()' onmouseout='this.start()'>";
$content .= $show;
if ($scrolling) $content .= "</MARQUEE>";
}
?>
[Editiert am 14/12/2003 von onkel]
Hi Onkel :)
schwr zu sagen, weil wir nicht genau wissen, wo und wie das Bild genau erscheinen soll.
Grundsätzlich kannst Du ein zusätzliches Bild in einen Block folgendermassen einbinden:
$content .= "<img src='pfadzumbild/bild.gif' width='22' height='33' alt='text'>";
ahhhhh,
das Bild soll Rechts erscheinen und in der Mitte..........
käpfe mich grade durch selfphp durch :mad: kennt jemand was besseres ?
mfg
Onkel
[Editiert am 15/12/2003 von onkel]