Tarih: 2007-07-02, 03:17:47 Mesaj konusu: İki blok arasını küçültmek
Arkadaşlar daha önce soruldumu bilmiyorum ama şu orta blokların aralarında acayip boşluk var yani çok büyük onları nasıl küçültürüz ana sayfada orta bloklarda iki blok arasındaki boşluktan bahsediyorum bu boşluk çok bunu nasıl küçültür ve iki blok arasını sıfıra yakın yaparız saygılar
temanda block.html de header.html de story_home.html de cellpadding değerlerini sıfırlarsan boşluklar kalkacaktır. eğer temanda ayrıca tables.php de varsa bundada aynı işlemi yapman gerekir.
Bu arada Buna Benzer Bir Sorun bendede Var. her ne kadar Cellpadding değerlerini Sıfırlasamda temadaki Tüm Boşlukları almama rağmen Orta Bloklar arasında (Orta haberler Değil ) Nsn center blocklar Arasında altlı üstlü çok boşluklar var. bunların sanırım tema ile alakası yok nerden sıfırlandığını bilen varmı?
bunlarda ekran görüntüleri. Sol ve SAğ Boşluklar sıfır ama alt ve üst boşluklar epey var.
/*=======================================================================
Nuke-Evolution Basic: Enhanced PHP-Nuke Web Portal System
=======================================================================*/
/************************************************************************/
/* PHP-NUKE: Advanced Content Management 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. */
/************************************************************************/
/*****[CHANGES]**********************************************************
-=[Base]=-
NukeSentinel v2.5.08 07/11/2006
Nuke Patched v3.1.0 06/26/2005
Language Selector v3.0.0 12/11/2005
Admin File Check v3.0.0 11/19/2005
PHP Input Filter v1.2.2 10/14/2005
HTML Parser v1.2.0 10/27/2005
Caching System v1.0.0 10/29/2005
Debugger v1.0.0 11/14/2005
Module Simplifications v1.0.0 11/17/2005
Evolution Functions v1.5.0 11/24/2005
Theme Management v1.0.2 12/14/2005
-=[Mod]=-
Admin Icon/Link Pos v1.0.0 06/02/2005
Advanced Username Color v1.0.5 06/11/2005
Evolution Version Checker v1.0.0 06/16/2005
Lock Modules v1.0.0 08/04/2005
Group Colors v1.0.0 10/20/2005
Censor v1.0.0 10/20/2005
NBBCode v9.26.0 11/23/2005
Color Toggle v1.0.0 11/25/2005
Lazy Google Tap v1.0.0 01/27/2005
Switch Content Script v2.0.0 03/30/2006
-=[Module]=-
CNB Your Account v4.4.2 06/15/2005
-=[Other]=-
SSL Administration v1.0.0 08/29/2005
Validation v1.1.0 10/17/2005
Extra Functions v1.0.0 12/22/2005
************************************************************************/
if(defined('NUKE_EVO')) return;
if (realpath(__FILE__) == realpath($_SERVER['script_FILENAME'])) {
exit('Access Denied');
}
//Check for these functions to see if we can use the new captcha
if(function_exists('imagecreatetruecolor') && function_exists('imageftbbox')) {
define('CAPTCHA',true);
}
if (CAN_MOD_INI) {
ini_set('magic_quotes_sybase', 0);
ini_set('zlib.output_compression', 0);
}
// Include config file
@require_once(NUKE_BASE_DIR.'config.php');
if(!$directory_mode) {
$directory_mode = 0777;
} else {
$directory_mode = 0755;
}
if (!$file_mode) {
$file_mode = 0666;
} else {
$file_mode = 0644;
}
// Include the required files
@require_once(NUKE_DB_DIR.'db.php');
//$db->debug = true;
// Include Error Logger and identify class
@require_once(NUKE_CLASSES_DIR.'class.identify.php');
global $agent;
$agent = identify::identify_agent();
@require_once(NUKE_INCLUDE_DIR.'log.php');
if (ini_get('output_buffering') && !isset($agent['bot'])) {
ob_end_clean();
header('Content-Encoding: none');
}
/*****[BEGIN]******************************************
[ Base: PHP Input Filter v1.2.2 ]
******************************************************/
if (PHPVERS > '4.0' && (!defined('NO_SECURITY') && !defined('ADMIN_FILE'))) {
require_once(NUKE_CLASSES_DIR.'class.inputfilter.php');
$data = array_merge($_POST, $_GET);
//This is the new php input class it will filter out bad HTML code and XSS
//data from POSTs or GETs
if(defined('MEDIUM_SECURITY')) {
if(isset($_POST['message']) && !empty($_POST['message'])){
if (preg_match("/(<.*?pre\s?.*?>.*<.*?pre\s?'.*?>|document.location.*?=.*document\..*)/i", $_POST['message'])) {
InputFilter::filtered('',$_POST['message']);
}
}
$filter = new InputFilter("", "", 1, 1, 0);
} else {
$filter = new InputFilter("", "", 1, 1, 1);
}
if(!empty($data)) {
$data = $filter->process($data);
}
define('INPUT_FILTER',true);
}
/*****[END]********************************************
[ Base: PHP Input Filter v1.2.2 ]
******************************************************/
// We globalize the $c o o k i e and $userinfo variables,
// so that they dont have to be called each time
// And as you can see, getusrinfo() is now deprecated.
// Because you dont have to call it anymore, just call $userinfo
if(is_user()) {
$c o o k i e = c o o k i edecode();
$userinfo = get_user_field('*', $c o o k i e[1], true);
} else {
$c o o k i e = array();
$userinfo = get_user_field('*', 'Anonymous', true);
//$userinfo = array();
}
/*****[BEGIN]******************************************
[ Base: Admin File Check v3.0.0 ]
******************************************************/
if (!defined('FORUM_ADMIN')) {
global $admin_file;
if(!isset($admin_file) || empty($admin_file)) {
die('You must set a value for $admin_file in config.php');
} elseif (!empty($admin_file) && !file_exists(NUKE_BASE_DIR.$admin_file.'.php')) {
die('The $admin_file you defined in config.php does not exist');
}
}
/*****[END]********************************************
[ Base: Admin File Check v3.0.0 ]
******************************************************/
function define_once($constant, $value) {
if(!defined($constant)) {
define($constant, $value);
}
}
function is_admin($trash=0) {
static $adminstatus;
if(isset($adminstatus)) return $adminstatus;
$adminc o o k i e = isset($_COOKIE['admin']) ? $_COOKIE['admin'] : false;
if (!$adminc o o k i e) { return $adminstatus = 0; }
$adminc o o k i e = (!is_array($adminc o o k i e)) ? explode(':', base64_decode($adminc o o k i e)) : $adminc o o k i e;
$aid = $adminc o o k i e[0];
$pwd = $adminc o o k i e[1];
$aid = substr(addslashes($aid), 0, 25);
if (!empty($aid) && !empty($pwd)) {
if (!function_exists('get_admin_field')) {
global $db, $prefix;
$pass = $db->sql_ufetchrow("SELECT `pwd` FROM `" . $prefix . "_authors` WHERE `aid` = '" . str_replace("\'", "''", $aid) . "'", SQL_ASSOC);
$pass = (isset($pass['pwd'])) ? $pass['pwd'] : '';
} else {
$pass = get_admin_field('pwd', $aid);
}
if ($pass == $pwd && !empty($pass)) {
return $adminstatus = 1;
}
}
return $adminstatus = 0;
}
function is_user($trash=0) {
static $userstatus;
if(isset($userstatus)) return $userstatus;
$userc o o k i e = isset($_COOKIE['user']) ? $_COOKIE['user'] : false;
if (!$userc o o k i e) { return $userstatus = 0; }
$userc o o k i e = (!is_array($userc o o k i e)) ? explode(':', base64_decode($userc o o k i e)) : $userc o o k i e;
$uid = $userc o o k i e[0];
$pwd = $userc o o k i e[2];
$uid = intval($uid);
if (!empty($uid) AND !empty($pwd)) {
$user_password = get_user_field('user_password', $uid);
if ($user_password == $pwd && !empty($user_password)) {
return $userstatus = 1;
}
}
return $userstatus = 0;
}
function c o o k i edecode($trash=0) {
global $c o o k i e;
static $rc o o k i e;
if(isset($rc o o k i e)) { return $rc o o k i e; }
$userc o o k i e = $_COOKIE['user'];
$rc o o k i e = (!is_array($userc o o k i e)) ? explode(':', base64_decode($userc o o k i e)) : $userc o o k i e;
$pass = get_user_field('user_password', $rc o o k i e[1], true);
if ($rc o o k i e[2] == $pass && !empty($pass)) {
return $c o o k i e = $rc o o k i e;
}
return false;
}
function headlines($bid, $side=0, $row='') {
global $prefix, $db, $my_headlines, $cache;
if(!$my_headlines) return;
$bid = intval($bid);
if (!is_array($row)) {
$row = $db->sql_ufetchrow('SELECT `title`, `content`, `url`, `refresh`, `time` FROM `'.$prefix.'_blocks` WHERE `bid`='.$bid, SQL_ASSOC);
}
$content =& trim($row['content']);
if ($row['time'] < (time()-$row['refresh']) || empty($content)) {
$content = rss_content($row['url']);
$btime = time();
$db->sql_query("UPDATE `".$prefix."_blocks` SET `content`='".Fix_Quotes($content)."', `time`='$btime' WHERE `bid`='$bid'");
$cache->delete('blocks', 'config');
}
if (empty($content)) {
$content = _RSSPROBLEM.' ('.$row['title'].')';
}
$content = '<span class="content">'.$content.'</span>';
if ($side == 'c' || $side == 'd') {
themecenterbox($row['title'], $content);
} else {
themesidebox($row['title'], $content, $bid);
}
}
function ultramode() {
global $db, $prefix, $multilingual, $currentlang;
$querylang = ($multilingual == 1) ? "AND (s.alanguage='".$currentlang."' OR s.alanguage='')" : "";
$sql = "SELECT s.sid, s.catid, s.aid, s.title, s.time, s.hometext, s.comments, s.topic, s.ticon, t.topictext, t.topicimage FROM `".$prefix."_stories` s LEFT JOIN `".$prefix."_topics` t ON t.topicid = s.topic WHERE s.ihome = '0' ".$querylang." ORDER BY s.time DESC LIMIT 0,10";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result, SQL_ASSOC)) {
$rsid = $row['sid'];
$raid = $row['aid'];
$rtitle = htmlspecialchars(stripslashes($row['title']));
$rtime = $row['time'];
$rcomments = $row['comments'];
$topictext = $row['topictext'];
$topicimage = ($row['ticon']) ? stripslashes($row['topicimage']) : '';
$rtime = formatTimestamp($rtime, 'l, F d');
$content .= "%%\n".$rtitle."\n/modules.php?name=News&file=article&sid=".$rsid."\n".$rtime."\n".$raid."\n".$topictext."\n".$rcomments."\n".$topicimage."\n";
}
$db->sql_freeresult($result);
if (file_exists(NUKE_BASE_DIR."ultramode.txt") && is_writable(NUKE_BASE_DIR."ultramode.txt")) {
$file = fopen(NUKE_BASE_DIR."ultramode.txt", "w");
fwrite($file, "General purpose self-explanatory file with news headlines\n".$content);
fclose($file);
} else {
global $debugger;
$debugger->handle_error('Unable to write ultramode content to file', 'Error');
}
}
// Adds slashes to string and strips PHP+HTML for SQL insertion and hack prevention
// $str: the string to modify
// $nohtml: strip PHP+HTML tags, false=no, true=yes, default=false
function Fix_Quotes($str, $nohtml=false) {
global $db;
//If there is not supposed to be HTML
if ($nohtml) $str = strip_tags($str);
// Quote if not integer
if (!is_numeric($str)) {
$str = str_replace('%27', "'", $str);
$str = $db->sql_addq($str);
}
return $str;
}
function Remove_Slashes($str) {
static $magic_quotes;
if (!isset($magic_quotes)) $magic_quotes = get_magic_quotes_gpc();
if ($magic_quotes) $str = stripslashes($str);
return $str;
}
/*****[BEGIN]******************************************
[ Base: Theme Management v1.0.2 ]
[ Base: Evolution Functions v1.5.0 ]
******************************************************/
function get_theme() {
static $ThemeSel;
if (isset($ThemeSel)) return $ThemeSel;
global $Default_Theme, $c o o k i e;
#Quick Theme Change - Theme Management (JeFFb68CAM)
if(isset($_REQUEST['chngtheme']) && is_user()) {
ChangeTheme($_REQUEST['theme'], $c o o k i e[0]);
}
#Theme Preview Mod - Theme Management (JeFFb68CAM)
if(isset($_REQUEST['tpreview']) && ThemeAllowed($_REQUEST['tpreview'])) {
$ThemeSel = $_REQUEST['tpreview'];
if(!is_user()) {
setc o o k i e('guest_theme', $ThemeSel, time()+84600);
}
return $ThemeSel;
}
#Theme Preview for guests Mod - Theme Management (JeFFb68CAM)
if (isset($_COOKIE['guest_theme']) && !is_user()) {
return (ThemeAllowed($_COOKIE['guest_theme']) ? $_COOKIE['guest_theme'] : $Default_Theme);
}
#New feature to grab a backup theme if the one we are trying to use does not exist, no more missing theme errors :)
$ThemeSel = (ThemeAllowed($nTheme = (isset($c o o k i e[9]) ? $c o o k i e[9] : $Default_Theme))) ? $nTheme : ThemeBackup($nTheme);
mainfaile.php de includes/messagebox.php de theme.php de satılarını sildim. Şu anda SAdece Nsn CEnter blocklar arasındaki boşluklar kaldı onları arıyom
Ya hakaten ali osman abinin dediği gibi yaptım biraz daha sıklaştı ama hala bayabi fark var ali osman abi yokmudur başka çaresi halen epey ara var colpadingleri sildim sonra emrahkaya kardeşe dediğinide yaptım yine çok ara bırakıyor bu meret yan bloklarda sorun yok onlar sıfır ama orta blokta kocaman aralar her blok arasında umarım vardır çaresi
bloklarımı frontpagede düzenliyorum o yüzden sizinde bildiğiniz gibi kodları açık açık görebiliyorum yani elle (manuel) de düzeltebiliyorum bu yüzden iyice dikkat ediyorum br gibi bir boşluk bırakacak kod olmamasına fakat yine hakikaten bayabi ara bırakıyor sadece orta bloklar ama yan bloklarda o sorunu colpadingleri silerek hallettik orta bloklar ise hala bi dünya boşluklar mevcut halde çıkıyor
Tarih: 2007-07-04, 13:54:46 Mesaj konusu: Re: İki blok arasını küçültmek
Arkadaşlar bu merete çare bulamadım blok.html den düzelttim yan bloklar sıfır şuan, onun yanı sıra story.home, storypage dende düzelttim yok olmuyor neyden olabilir başka bu he bide theme.php den collpadingleride sıfır yaptım yine aynı baksanıza ne kadar çok ara var yaf
arkadaşlar ali osman abinin yukarda belirttiği gibi mainfileden sildim fakat echo "<br>"; satırını komple değil sadece br olan yeri sildim küçüldü biraz daha şimdi yine boşluk var ve bu boşluk sanırım eklediğimiz blogun başlığının olduğu boşluk bunu nasıl kaldırabiliriz orta blokları barındıran dosya hangisidir nerden düzeltme yapabiliriz
sadece tables.php değil mainfaile.php messagebox.php theme.php bunların hepsinde edit yapması gerekiyor ve bunun yanında messagebox.php de ve mainfaile.php de çok ince detaylar var. eğer mainfaile.php ni ve messagebox.php ni buraya atarsan sana düzenleyip gönderebilirim. Ben evolution kullandığım için bendeki kodlar biraz daha farklı.
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız