Hallo,
gibt es eine möglichkeit das \"Home-Modul\" über dem Centerblock zu positionieren?
Bösen Schreibfehler korregiert!
[Bearbeitet am: 21/4/2002 von schwanauer]
hi
schau dir mal die neue PROXIMA an.
VKP 5.5 fsz & maaX dESIGN --UPDATE PACK +PROXIMA Addon --
du findest diese im downloadbereich unter updates.
Hallo,
danke für den Tip, aber ich will deshalb nich gleich ein Addon installieren.
Gibts den keine Möglichkeit das irgendwie in der Index.php oder mainfile.php zu ändern?
Hi
wenn ich dich richtig versteh wilst du den centerblcok z.B unter den News haben ??
das wäre recht einfach dann gelöst ich schaue mir das mal an :) sobald ich weiss was du genau meinst
Hi,
genau das meine ich allerdings nicht die News sondern die Weblinks!
Hi
du startes also mit Weblinks als PUT in HOME und nicht mit den news ?
oder in den WEBLINKS möchtest du unter den Weblinks einen bottom center haben?
Hi,
ja, ich starte mit dem Weblinksmodul als put in Home und hätte gern unter dem Weblinksmodul einen bottom Center-Block!
Hi,
Evtl. kannst du diesen center-Block als Basis verwenden. Du musst es NUR umändern dass er das zeigt was du willst. So zeigt er auf:
10 Neue Posts in Forum
10 Neue Links
10 Neue Downloads
10 Neue Artikel
und dass geht gut!
Da beginnen aber erst meine Problemem! Ich möchte es so haben:
10 Neue Reviews
10 Neue Links
10 Topbewertete Reviews
10 Topbewertete Links
Geht aber nicht! Kann einer da helfen?
Zum instalieren: nur block-Center.php
in Block Ordner laden und als Admin aktivieren.
<?php
########################################################################
# PHP-Nuke Block: Center Block v.01 #
# #
# Copyright (c) 2002 by dECkER (decker@ircharstad.no) #
# #
########################################################################
# 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. #
# If you modify this, let me know for fun. =) #
########################################################################
if (eregi("block-Center.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
global $prefix, $dbi, $sitename;
// Change this to your own needs =)
$strip = "30"; // how many characters to show
$textforum = "10 Neue Posts in Forum"; // 10 last posts in the forum
$textlinks = "10 Neue Links"; // 10 last added links
$textdowns = "10 Neue Downloads"; // 10 last added downloads
$textartic = "10 Neue Artikel"; // 10 last posted articles.
$textsubmit = "Submit news"; // Submit news
$textforums = "Forum"; // forum
$textaccount = "Ihre Benutzerdaten"; // your account
$textspacer = "|"; // text spacer
// 10 last posts in the forum
$a = 1;
$result = sql_query("SELECT topic_id, topic_title, forum_id FROM $prefix"._bbtopics." ORDER BY topic_time DESC LIMIT 10", $dbi);
$content .= "<table width=\"100%\" border=\"0\"><tr><td><br>$textforum</a><br>";
while(list($topic_id, $topic_title, $forum_id) = sql_fetch_row($result, $dbi)) {
$linkstrip1 = stripslashes($topic_title);
$linkstrip2 = substr($linkstrip1, 0, $strip) . "...";
$res = sql_query("select image from $prefix"._posts." where post_id='$topic_id'", $dbi);
list ($image) = sql_fetch_row($res, $dbi);
$content .= "<strong><big>·</big></strong> $a: <a href=\"modules.php?mop=modload&name=Forum&file=viewtopic&topic=$topic_id&forum=$forum_id\">$linkstrip2</a><br>";
$a++;
}
$content .="</td>";
// 10 last added links
$a = 1;
$result = sql_query("select lid, title from $prefix"._links_links." order by lid DESC limit 0,10", $dbi);
$content .= "<td><br><b>$textlinks</b><br>";
while(list($lid, $title) = sql_fetch_row($result, $dbi)) {
$linkstrip3 = stripslashes($title);
$linkstrip4 = substr($linkstrip3, 0, $strip) . "...";
$content .= "<strong><big>·</big></strong> $a: <a href=\"modules.php?name=Web_Links&l_op=viewlinkdetails&lid=$lid&title=$title\">$linkstrip4</a><br>";
$a++;
}
$content .="</td></tr>";
// 10 last added downlads
$a = 1;
// $result = sql_query("select lid, title from $prefix"._downloads_downloads." order by hits DESC limit 0,10", $dbi);
$result = sql_query("select cid, lid, title from $prefix"._downloads_downloads." order by lid DESC limit 0,10", $dbi);
$content .= "<tr><td height=\"50%\"><br><b>$textdowns</b><br>";
while(list($cid, $lid, $title) = sql_fetch_row($result, $dbi)) {
$linkstrip5 = stripslashes($title);
$linkstrip6 = substr($linkstrip5, 0, $strip) . "...";
$content .= "<strong><big>·</big></strong> $a: <a href=\"modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$lid&title=$title\">$linkstrip6</a><br>";
$a++;
}
$content .="</td>";
// 10 last articles
$a = 1;
$result = sql_query("select sid, title, comments, counter from ".$prefix."_stories $querylang order by sid DESC limit 0,10", $dbi);
$content .= "<td height=\"50%\"><br><b>$textartic</b><br>";
while(list($sid, $title, $comtotal, $counter) = sql_fetch_row($result, $dbi)) {
$linkstrip7 = stripslashes($title);
$linkstrip8 = substr($linkstrip7, 0, $strip) . "...";
$content .= "$a: <a href=\"modules.php?name=News&file=article&sid=$sid\">$linkstrip8</a><br>";
$a++;
}
$content .="</td></tr></table>";
$content .="<center><a href=modules.php?name=Submit_News>$textsubmit</a>$textspacer<a href=modules.php?name=Forum>$textforums</a>$textspacer<a href=modules.php?name=Your_Account>$textaccount</a></center>";
?>
Hi
das wird so nicht gehen, wir haben aber einen center block als BOTTOM , wird anchgereicht beim nächsten Update:) so ca irgendwann heute :)