Sehitler Olmez Vatan Bolunmez
Ücretsiz Üyelik
Ana Menü
Ana Sayfa
Makaleler
Lisans
Lisans Alan Siteler
Nasıl Lisans Alırım
Yardım
S.S.S.
Kurulum
Destek Forumları
Forum Kuralları
GNU/GPL Lisansı
Dosya & Modül
Modül Veritabanı
Dosyalar
Linkler & İletişim
İletişim
Arama
Atatürk Köşesi
M.Kemal Atatürk
Atatürk Resimleri
Üyelerimizin Siteleri

Yeni Başlayanlar
PHP-Fusion Rehberi

Reklam Verin
Üye Girişi
Kullanıcı Adı

Şifre



Henüz üye olmadınız mı?
Buraya tıklayarak üye olabilirsiniz.

Şifremi unuttum?
Şifrenizi öğrenebilmek için buraya tıklayınız.
Çevrimiçi Üyeler
Çevrimiçi Ziyaretçiler: 6
Çevrimiçi Üyeler: SoulSmasher

Kayıtlı Üyeler: 6,937
En Yeni Üye: cengiz6666
Türkçe Konuş

Bize Destek Olabilmek İçin

Aşağıdaki kodu sitenize blok olarak ekleyebilirsiniz...


Başlığı Görüntüle
PHP-Fusion Türkiye Resmi Destek Sitesi - Yardım - Tema - Modül - Eklenti | PHP-Fusion Türkiye | Öneriler ve İstekler
Yazar Alt Kategorili İncelemelerde isim sorunu
mustili
Üye

Üye Avatar

Mesaj Sayısı: 137
Katılım Tarihi: 30.08.07
Mesaj Tarihi 09.05.2008 16:09
Arkadaşlar Alt kategorili incelemelerde resimde de görüldüğü üzere bu başlıkların yerini değiştirmek istiyorum nasıl yaparız . readarticle.php kodları aşağıda




<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------+
| CHANGELOG:
| 06.09.06 - contains modified code for TWB Articles Infusion
| Len Johnson: http://www.web-bureau.com
+----------------------------------------------------*/
require_once "../../maincore.php";
require_once BASEDIR."subheader.php";
require_once BASEDIR."side_left.php";
require_once INCLUDES."comments_include.php";
require_once INCLUDES."ratings_include.php";
require_once "admin_config.php";

// Check if locale file is available matching the current site locale setting.
if (file_exists(INFUSIONS."articles/locale/".LOCALESET."articles.php")) {
// Load the locale file matching the current site locale setting.
include INFUSIONS."articles/locale/".LOCALESET."articles.php";
} else {
// Load the infusion's default locale file.
include INFUSIONS."articles/locale/English/articles.php";
}

if (!isset($article_id) || !isNum($article_id)) fallback("index.php");
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;

$result = dbquery(
"SELECT ta.*,tac.*, tu.user_id,user_name FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
LEFT JOIN ".$db_prefix."users tu ON ta.article_name=tu.user_id
WHERE article_id='$article_id'"
);
$res = 0;
if (dbrows($result) != 0) {
$data = dbarray($result);

if (checkgroup($data['article_cat_access'])) {
$res = 1;
if ($rowstart == 0) $result = dbquery("UPDATE ".$db_prefix."articles SET article_reads=article_reads+1 WHERE article_id='$article_id'");
$article = stripslashes($data['article_article']);
$article = explode("<--PAGEBREAK-->", $article);
$pagecount = count($article);
$article_subject = stripslashes($data['article_subject']);
$article_info = array(
"article_id" => $data['article_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"article_date" => $data['article_datestamp'],
"article_breaks" => $data['article_breaks'],
"article_comments" => dbcount("(comment_id)", "comments", "comment_type='A' AND comment_item_id='".$data['article_id']."'"),
"article_reads" => $data['article_reads'],
"article_allow_comments" => $data['article_allow_comments'],
// twb mods
"article_cat_id" => $data['article_cat_id'],
"article_cat_name" => $data['article_cat_name']
// END twb mods
);

// show pagination
if (count($article) > 1) {
$rows = $pagecount;
$article_info['navigation'] = "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,1,$rows,3,FUSION_SELF."?article_id=$article_id&")."\n</div>\n";
}

// show the category navigation for article
if (PRIAM_NAV) {
render_article1($article_subject, $article[$rowstart], $article_info);
} else {
render_article2($article_subject, $article[$rowstart], $article_info);
}


if (count($article) > 1) {
$rows = $pagecount;
echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,1,$rows,3,FUSION_SELF."?article_id=$article_id&")."\n</div>\n";
}
echo "<a href='".INFUSIONS."report_errors_panel/report_error.php?er_type=A&er_tid=".$info['article_id']."'><div align='left'><img border='0' src='".IMAGES."hatabildir.png' width='100' height='25' alt=''></div></a>";
if ($data['article_allow_comments']) showcomments("A","articles","article_id",$article_id,FUSION_SELF."?article_id=$article_id");
if ($data['article_allow_ratings']) showratings("A",$article_id,FUSION_SELF."?article_id=$article_id");
}
}
if ($res == 0) redirect("index.php");

opentable("En Son Eklenen 10 Konu");
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access')." ORDER BY article_datestamp DESC LIMIT 0,10"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 83);
echo "<tr><td class='tbl' style='border-top:1px #ccc dotted;'> <img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."infusions/articles/readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
require_once BASEDIR."side_right.php";
require_once BASEDIR."footer.php";
?>




Lütfen yardım .. Teşekkürler
http://www.ujbej.org
Yazar RE: Alt Kategorili İncelemelerde isim sorunu
mustili
Üye

Üye Avatar

Mesaj Sayısı: 137
Katılım Tarihi: 30.08.07
Mesaj Tarihi 10.05.2008 01:12
Lütfen arkadaşlar Yardım edin bunu da düzelttimmi sayfam benim için süper olmuş olacak nolur yahu smiley Şunların yerini bi değiştirelim
http://www.ujbej.org
Yazar RE: Alt Kategorili İncelemelerde isim sorunu
SoulSmasher
Süper Yönetici

Üye Avatar

Mesaj Sayısı: 7779
Nereden: Jotunheim
Katılım Tarihi: 05.01.06
Mesaj Tarihi 10.05.2008 01:29
kodlar alakasız veritabanı sorguıları ile çekiliyor. denemedim ama şöyle olabilir:

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------+
| CHANGELOG:
| 06.09.06 - contains modified code for TWB Articles Infusion
| Len Johnson: http://www.web-bureau.com
+----------------------------------------------------*/
require_once "../../maincore.php";
require_once BASEDIR."subheader.php";
require_once BASEDIR."side_left.php";
require_once INCLUDES."comments_include.php";
require_once INCLUDES."ratings_include.php";
require_once "admin_config.php";

// Check if locale file is available matching the current site locale setting.
if (file_exists(INFUSIONS."articles/locale/".LOCALESET."articles.php")) {
// Load the locale file matching the current site locale setting.
include INFUSIONS."articles/locale/".LOCALESET."articles.php";
} else {
// Load the infusion's default locale file.
include INFUSIONS."articles/locale/English/articles.php";
}

if (!isset($article_id) || !isNum($article_id)) fallback("index.php");
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;

$result = dbquery(
"SELECT ta.*,tac.*, tu.user_id,user_name FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
LEFT JOIN ".$db_prefix."users tu ON ta.article_name=tu.user_id
WHERE article_id='$article_id'"
);
$res = 0;
if (dbrows($result) != 0) {
$data = dbarray($result);

if (checkgroup($data['article_cat_access'])) {
$res = 1;
if ($rowstart == 0) $result = dbquery("UPDATE ".$db_prefix."articles SET article_reads=article_reads+1 WHERE article_id='$article_id'");
$article = stripslashes($data['article_article']);
$article = explode("<--PAGEBREAK-->", $article);
$pagecount = count($article);
$article_subject = stripslashes($data['article_subject']);
$article_info = array(
"article_id" => $data['article_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"article_date" => $data['article_datestamp'],
"article_breaks" => $data['article_breaks'],
"article_comments" => dbcount("(comment_id)", "comments", "comment_type='A' AND comment_item_id='".$data['article_id']."'"),
"article_reads" => $data['article_reads'],
"article_allow_comments" => $data['article_allow_comments'],
// twb mods
"article_cat_id" => $data['article_cat_id'],
"article_cat_name" => $data['article_subject']
// END twb mods
);

// show pagination
if (count($article) > 1) {
$rows = $pagecount;
$article_info['navigation'] = "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,1,$rows,3,FUSION_SELF."?article_id=$article_id&")."\n</div>\n";
}


// show the category navigation for article
if (PRIAM_NAV) {
render_article1(stripslashes($data['article_cat_name']), $article[$rowstart], $article_info);
} else {
render_article2(stripslashes($data['article_cat_name']), $article[$rowstart], $article_info);
}


if (count($article) > 1) {
$rows = $pagecount;
echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,1,$rows,3,FUSION_SELF."?article_id=$article_id&")."\n</div>\n";
}
echo "<a href='".INFUSIONS."report_errors_panel/report_error.php?er_type=A&er_tid=".$info['article_id']."'><div align='left'><img border='0' src='".IMAGES."hatabildir.png' width='100' height='25' alt=''></div></a>";
if ($data['article_allow_comments']) showcomments("A","articles","article_id",$article_id,FUSION_SELF."?article_id=$article_id");
if ($data['article_allow_ratings']) showratings("A",$article_id,FUSION_SELF."?article_id=$article_id");
}
}
if ($res == 0) redirect("index.php");

opentable("En Son Eklenen 10 Konu");
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access')." ORDER BY article_datestamp DESC LIMIT 0,10"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 83);
echo "<tr><td class='tbl' style='border-top:1px #ccc dotted;'> <img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."infusions/articles/readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
require_once BASEDIR."side_right.php";
require_once BASEDIR."footer.php";
?>






Tercümelerimi Ve Kodlamalarımı Çalıp İsimlerini Silenler Size Sesleniyorum:
Gölgem Olmaktan Öteye Gidemeyeceksiniz!!
Yazar RE: Alt Kategorili İncelemelerde isim sorunu
mustili
Üye

Üye Avatar

Mesaj Sayısı: 137
Katılım Tarihi: 30.08.07
Mesaj Tarihi 10.05.2008 14:51
veritabanı sorguları??

soul teşekkürler ama sadece yazılar değişti. yani tamam yer olarak değiştiler fakat kategori linki konu başlığında kaldı ve baştaki ok resmide duruyor
Düzenleyen: mustili Düzenleme Tarihi: 11.05.2008 10:50
http://www.ujbej.org
Atlanilacak Forum:
¤ Php-Fusion Türkiye Resmi Destek ve Yardım Sitesi ¤

¤ youtube ¤ blog ¤ Buraya Reklam Verin ¤
Smart Blue Theme By SoulSmasher
Powered By PHP Fusion