Tarih: 2007-01-02, 03:34:38 Mesaj konusu: Bu iki bloğu birleştiremedim yardımcı olurmusunuz?
arkadaşlar bu iki bloğu komutlar ile birleştirip yan yana koyamadım. Acaba bu blokları yan yana orta block olacak şekilde birleştirmemde yardımcı olurmusunuz?
Haber başlıkları bloğu
Kod:
<?php
/////////////////////////////////////////////////////////////////////////////////////
// Bu blok //
// Bu satırı silmemeniz şartıyla serbestçe dağıtılabilir. //
// Bloğu hazırlayanlar: Ali Osman kahraman & Buket Karanlı //
// Web Sitesi: http://eski.netopsiyon.com //
// Herhangi bir sorun durumunda webmaster@netopsiyon.com adresine mesaj gönderin. //
/////////////////////////////////////////////////////////////////////////////////////
if (eregi("block-haberbaslik.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
global $storyhome, $topicname, $topicimage, $topictext, $datetime, $user, $c o o k i e, $nukeurl, $prefix, $multilingual, $currentlang, $articlecomm, $dbi;
if ($multilingual == 1) {
$querylang = "AND (alanguage='$currentlang' OR alanguage='')";
} else {
$querylang = "";
}
$result = mysql_query("SELECT sid, title, hometext FROM $prefix"._stories." WHERE (ihome='0' OR catid='0') $querylang ORDER BY sid DESC limit 50");
if(!$result) {
echo @mysql_errno(). ": ".mysql_error(). "<br>"; exit();
}
while (list($s_sid, $title, $hometext) = mysql_fetch_row($result)) {
if ($catid > 0) {
list($cattitle) = mysql_fetch_row(mysql_query("select title from $prefix"._stories."_cat where catid='$catid'"));
}
$sid = $s_sid;
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2005 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. */
/************************************************************************/
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}
global $prefix, $db, $sitename;
$sql = "SELECT t.forum_id, topic_id, topic_title, auth_view, auth_read FROM ".$prefix."_bbtopics AS t, ".$prefix."_bbforums AS f WHERE f.forum_id=t.forum_id ORDER BY topic_time DESC LIMIT 10";
$result = $db->sql_query($sql);
$content = "<br>";
while (list($forum_id, $topic_id, $topic_title, $auth_view, $auth_read) = $db->sql_fetchrow($result)) {
$forum_id = intval($forum_id);
$topic_id = intval($topic_id);
$topic_title = check_html($topic_title, "nohtml");
$auth_view = intval($auth_view);
$auth_read = intval($auth_read);
if (($auth_view < 2) OR ($auth_read < 2)) {
$content .= "<img src=\"images/arrow.gif\" border=\"0\" alt=\"\" title=\"\" width=\"9\" height=\"9\"> <a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id\">$topic_title</a><br>";
}
}
global $storyhome, $topicname, $topicimage, $topictext, $datetime, $user, $c o o k i e, $nukeurl, $prefix, $multilingual, $currentlang, $articlecomm, $dbi;
if ($multilingual == 1) {
$querylang = "AND (alanguage='$currentlang' OR alanguage='')";
} else {
$querylang = "";
}
$result = mysql_query("SELECT sid, title, hometext FROM $prefix"._stories." WHERE (ihome='0' OR catid='0') $querylang ORDER BY sid DESC limit 50");
if(!$result) {
echo @mysql_errno(). ": ".mysql_error(). "<br>"; exit();
}
while (list($s_sid, $title, $hometext) = mysql_fetch_row($result)) {
if ($catid > 0) {
list($cattitle) = mysql_fetch_row(mysql_query("select title from $prefix"._stories."_cat where catid='$catid'"));
}
$sid = $s_sid;
çok teşekkür ediyorum Ali Osman abi;
Ekledim diye belirtmen beni çok mutlu etti . Olayı ezbere değil, tablo komutu kullanarak yapılacağını anladım. Teşekkür ederim. Birde siteye bugün yazılan haberlerin başlıklarını nasıl kırmızı yapabiliriz? bir komutu varmı?
hocam ben shoutbox ile forum orta block birlestirdim bu sekilde calisti ancak blocktan sonraki blocklar acilmadi. birlesik blockun altında baska blocklar olmasına ragmen cıkmadı. neden olabilir? tsk
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