amirhossein1367
Member
سلام
چطوري مي شه براي يك بلوك در نوك ارتفاع تعيين كنيم يعني يه ارتفاع خاصي داشته باشه مثلا 300
اينم بلوك :
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* 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. */
/************************************************************************/
/* Additional security & Abstraction layer conversion */
/* 2003 chatserv */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/
if (eregi("block-Top10_Downloads.php",$_SERVER['SCRIPT_NAME'])) {
Header("Location: index.php");
die();
}
global $prefix, $db;
$a = 1;
$result = $db->sql_query("SELECT lid, title FROM ".$prefix."_downloads_downloads ORDER BY date DESC LIMIT 0,20");
while ($row = $db->sql_fetchrow($result)) {
$lid = intval($row['lid']);
$title = stripslashes($row['title']);
$title2 = ereg_replace("_", " ", $title);
$content .= "<strong><big>·</big></strong> $a: <a href=\"modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$lid&title=$title\">$title2</a><br>";
$a++;
}
?>
چطوري مي شه براي يك بلوك در نوك ارتفاع تعيين كنيم يعني يه ارتفاع خاصي داشته باشه مثلا 300
اينم بلوك :
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* 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. */
/************************************************************************/
/* Additional security & Abstraction layer conversion */
/* 2003 chatserv */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/
if (eregi("block-Top10_Downloads.php",$_SERVER['SCRIPT_NAME'])) {
Header("Location: index.php");
die();
}
global $prefix, $db;
$a = 1;
$result = $db->sql_query("SELECT lid, title FROM ".$prefix."_downloads_downloads ORDER BY date DESC LIMIT 0,20");
while ($row = $db->sql_fetchrow($result)) {
$lid = intval($row['lid']);
$title = stripslashes($row['title']);
$title2 = ereg_replace("_", " ", $title);
$content .= "<strong><big>·</big></strong> $a: <a href=\"modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$lid&title=$title\">$title2</a><br>";
$a++;
}
?>