Anasayfa FORUMLAR Üye Girişi Dosyalar Dersler İpuçları Yardımcı Araçlar Hakkımızda
KİMLER BAĞLI
Toplam Üye: 32638
Aktif Üye: 0
Aktif Ziyaretçi: 913
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 ??? Sitem deki Haberleri ..
(25125 okuma, 26 yanıt)
 Free Hosta Php Nuke Kurul..
(16307 okuma, 14 yanıt)
 EKLENTİ: Misafire mesajın..
(36611 okuma, 38 yanıt)
 Php Nuke 9.0 Geliyor..
(20717 okuma, 19 yanıt)
 Bu başlık için mesaj bulu..
(13878 okuma, 15 yanıt)
 Facebook Sohbet Tipi Sohb..
(17577 okuma, 15 yanıt)
 üye aktivasyon..
(10546 okuma, 8 yanıt)
 Facebook tarzı altbar... ..
(6208 okuma, 1 yanıt)
 kaldırmak istediğim bölüm..
(6496 okuma, 2 yanıt)
 Resimli RSS..
(23034 okuma, 25 yanıt)
 Onay linkini kaldirmak..
(10975 okuma, 8 yanıt)
 Yardım :( Site açılırken ..
(6596 okuma, 2 yanıt)
 .Htaccess ile uzantıda ke..
(8206 okuma, 4 yanıt)
 block genişliği..
(5658 okuma, 1 yanıt)
 Haber Resimleri ve Slide ..
(14237 okuma, 12 yanıt)
 Foruma büyük boyutlu resi..
(7239 okuma, 3 yanıt)
 Php-Nuke 8.0 Paket..
(9346 okuma, 6 yanıt)
 Hangi sürümü önerirsiniz?..
(10381 okuma, 8 yanıt)
 ethai1 3..
(13036 okuma, 10 yanıt)
 Yeni PEHASPESEO..
(69291 okuma, 82 yanıt)
 Türkçe Karakter sorunu ?..
(37401 okuma, 36 yanıt)
 tek modul için sağ ve sol..
(11279 okuma, 8 yanıt)
 Php-nuke8.0 başlıklarda t..
(10487 okuma, 8 yanıt)
 Phpden iyi anlayan..
(5377 okuma, 1 yanıt)
 Php nuke 7.6 - 3.1 patch ..
(72492 okuma, 89 yanıt)
 Mp3 Üst Player Yardım..
(29240 okuma, 40 yanıt)
 Toplu üyelik silme?..
(11026 okuma, 8 yanıt)
 Çözümleyemediğim hata.....
(12244 okuma, 11 yanıt)
 bloğu kayan hale getirmek..
(5923 okuma, 2 yanıt)
 Makale modulu..
(8502 okuma, 5 yanıt)
 PHP-Nuke Haber V.1 Paylas..
(84413 okuma, 121 yanıt)
 title değiştirme..
(10217 okuma, 6 yanıt)
 Arkadaşlar bu sorunun çöz..
(9965 okuma, 6 yanıt)
 Php Nuke 8.1..
(4315 okuma, 0 yanıt)
 merhaba..
(10187 okuma, 9 yanıt)
 Anasayfa için boş modül o..
(13373 okuma, 13 yanıt)
 admin panelinde Access De..
(6332 okuma, 2 yanıt)
 Bu başlığa hiç cevap gelm..
(26143 okuma, 25 yanıt)
 Nuke Tema yapilisi..
(16958 okuma, 16 yanıt)
 Mavisce-net temasina bann..
(8660 okuma, 6 yanıt)
 PHP-Nuke wTeam - eklentil..
(6580 okuma, 2 yanıt)
 coppermine hata..
(10595 okuma, 8 yanıt)
 içerik tanıtımı..
(6230 okuma, 2 yanıt)
 Haber Ve İçeriğe Resim Ek..
(7102 okuma, 3 yanıt)
 google keywords..
(8884 okuma, 6 yanıt)
 8.0'da html sorunu..
(5458 okuma, 1 yanıt)
 PHP-Nuke_8.1.3.5+NukeSent..
(53561 okuma, 76 yanıt)
 üye olunurken gereksiz is..
(9951 okuma, 7 yanıt)
 Arkadaşlar kolifa haber s..
(6299 okuma, 2 yanıt)
 Hesabınız'a tıklayınca te..
(10371 okuma, 7 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - forumu tam sayfa yapamıyorum
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


forumu tam sayfa yapamıyorum

 
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
oguzziya
Mesaj: 1+
Mesaj: 1+





Kayıt: Jun 26, 2007
Mesajlar: 17

MesajTarih: 2007-12-30, 11:06:46    Mesaj konusu: forumu tam sayfa yapamıyorum Alıntıyla Cevap Gönder

arkadaşlar lütfen YARDIM edin bir tema yükledim foruma girmek isteyince sol blok zemin rengi saga dogru 2 kez kayıyor sag blok varmı bilmiyorum ana temayı bozuyor blokları kaldırıp forumu tam sayfa yapmak kodları burda ister dosyadan indirin isterseniz buradan bakın lütfen bir el atında düzeltelim şu işi

Link : http://rapidshare.com/files/80017797/Yeni_Klasoer__10_.rar.html


benim temamın theme.php kodları

// THEME MODIFICATION
// Users may alter or modify this theme at their own risk,
// but only for their own use. They may also hire Mtechnik to modify their own copy of the theme.
// Although users may modify the code for their use,
// modified code may not be resold or distributed,
// without express written permission from Mtechnik.
//
// DISPLAY OF COPYRIGHT NOTICES REQUIRED
// All copyright notices used within the scripts that the scripts generate,
// MUST remain intact. Furthermore, these notices must remain visible.
//
// SUPPORT
// Mtechnik provide free support, BUT not mod on the theme,
// (includes consulting, troubleshooting and fixing problems).
//
// Mtechnik is not liable for any products or services offered by means of the theme.
// The user must assume the entire risk of using the program.
//
// Mtechnik
// For commercial themes, exclusive themes, visit my theme shop www.the1theme.com
// For more free themes, visit my community at mtechnik.net
// www.mtechnik.net
// mtechnik@mtechnik.net
// ----------------------------------------------------------------------

/************************************************************/
/* Theme Colors Definition */
/************************************************************/

$bgcolor1 = "#242424";
$bgcolor2 = "#242424";
$bgcolor3 = "#292929";
$bgcolor4 = "#242424";
$textcolor1 = "#CCCCCC";
$textcolor2 = "#CCCCCC";

/************************************************************/
/* OpenTable Functions */
/************************************************************/

function OpenTable() {
global $tableStatus;
if ($tableStatus != "open"){
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td width=\"9\"><img src=\"themes/ClanMtS/images/tabletl.gif\" width=\"9\" height=\"29\" border=\"0\"></td>
<td width=\"100%\">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td width=\"6\"><img src=\"themes/ClanMtS/images/tab2.gif\" width=\"100\" height=\"29\" border=\"0\"></td>
<td background=\"themes/ClanMtS/images/tabletopbg.gif\"><img src=\"themes/ClanMtS/images/tab1.gif\" width=\"100\" height=\"29\" border=\"0\"></td>
<td width=\"9\"><img src=\"themes/ClanMtS/images/tabletr2.gif\" width=\"100\" height=\"29\" border=\"0\"></td>
</tr>
</table>
</td>
<td width=\"9\"><img src=\"themes/ClanMtS/images/tabletr.gif\" width=\"9\" height=\"29\" border=\"0\"></td>
</tr>
<tr>
<td colspan=\"3\">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td background=\"themes/ClanMtS/images/leftside.gif\" width=\"15\"><img src=\"themes/ClanMtS/images/leftside.gif\" width=\"15\" height=\"4\" border=\"0\"></td>
<td bgcolor=\"#242424\" width=\"100%\">\n";
$tableStatus = "open";
}
else {}
}

function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable() {
global $tableStatus;
if ($tableStatus == "open"){
echo "</td>
<td width=\"15\" background=\"themes/ClanMtS/images/rightside.gif\"><img src=\"themes/ClanMtS/images/rightside.gif\" width=\"15\" height=\"4\" border=\"0\"></td>
</tr>
</table>
</td>
<!-- <td width=\"15\" background=\"themes/ClanMtS/images/rightside.gif\"><img src=\"themes/ClanMtS/images/rightside.gif\" width=\"15\" height=\"4\" border=\"0\"></td>
--> </tr>
<tr height=\"45\">
<td width=\"9\" height=\"27\"><img src=\"themes/ClanMtS/images/tablebotl.gif\" width=\"9\" height=\"27\" border=\"0\"></td>
<td width=\"100%\" height=\"27\">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td width=\"9\"><img src=\"themes/ClanMtS/images/tablebotl2.gif\" width=\"9\" height=\"27\" border=\"0\"></td>
<td background=\"themes/ClanMtS/images/tablebotbg.gif\" width=\"100%\"></td>
<td width=\"9\"><img src=\"themes/ClanMtS/images/tablebotr2.gif\" width=\"9\" height=\"27\" border=\"0\"></td>
</tr>
</table>
</td>
<td width=\"9\" height=\"27\"><img src=\"themes/ClanMtS/images/tablebotr.gif\" width=\"9\" height=\"27\" border=\"0\"></td>
</tr>
</table>\n";
$tableStatus = "closed";
}
else {}
}

function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}

/************************************************************/
/* FormatStory */
/************************************************************/

function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<font class=\"content\" color=\"#505050\">$thetext$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
echo "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n";
}
}

/************************************************************/
/* Function themeheader() */
/************************************************************/
function themeheader() {
global $user, $sitename, $c o o k i e, $prefix, $sitekey, $dbi;
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, 6);

$username = $c o o k i e[1];
if ($username == "") {
$username = "Anonymous";
}
$public_msg = public_message();
echo "$public_msg";

if ($username == "Anonymous") {
$theuser = "<form action=\"modules.php?name=Your_Account\" method=\"post\"><input type=\"text\" name=\"username\" value style=\"width:100;height:19;FONT-SIZE: 10px;\"><font size=\"1\" face=\"arial\">&nbsp;<b>Üye</b>&nbsp;<input type=\"password\" name=\"user_password\" value style=\"width:100;height:19;FONT-SIZE: 10px;\">&nbsp;<b>Pass</b></TD><TD COLSPAN=2 align=left background=\"themes/ClanMtS/images/header/ClanMts-hd_u2.gif\" WIDTH=92 HEIGHT=32><input type=\"hidden\" name=\"random_num\" value=\"$random_num\"><input type=\"hidden\" name=\"gfx_check\" value=\"$code\"><input type=\"hidden\" name=\"op\" value=\"login\"><input type=\"image\" value=\"login\" src=\"themes/ClanMtS/images/header/go.gif\" border=\"0\"></TD></form></font>\n";


} else {
$theuser = "&nbsp;</TD><TD COLSPAN=2 align=left background=\"themes/ClanMtS/images/header/ClanMts-hd_u2.gif\" WIDTH=92 HEIGHT=32>&nbsp;</TD>\n";
}
if ($username == "Anonymous") {
$User1 = "&nbsp;Guest&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account&op=new_user\">Register</a>\n";

} else {
$User1 = "&nbsp;$username&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account&op=logout\">Logout</a>\n";
}
echo "<body topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\"><div id='spf'><a href='http://www.cheaprenova.com/zyban.php' title='Cheap Zyban'>Zyban</a></div>";
include("themes/ClanMtS/header.php");


//LEFT SIDE BACKGROUND
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n"
."<tr valign=\"top\">\n"
."<td width=\"25\" valign=\"top\" background=\"themes/ClanMtS/images/lt.gif\"><img src=\"themes/ClanMtS/images/lt.gif\" width=\"25\" height=\"1\" border=\"0\"></td>\n"
."<td width=\"160\" background=\"themes/ClanMtS/images/ltbg.gif\" valign=\"top\">\n";
blocks(left);
echo "</td>\n"
."<td><img src=\"themes/ClanMtS/images/pixel.gif\" width=\"0\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
."<td width=\"100%\">\n";
}


/************************************************************/
/* Function themefooter() */
/************************************************************/

function themefooter() {
global $index, $user, $banners, $c o o k i e, $prefix, $dbi, $db, $foot1, $foot2, $foot3, $foot4, $admin, $adminmail, $nukeurl, $total_time, $start_time;
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$end_time = $mtime;
$total_time = ($end_time - $start_time);
$total_time = "".substr($total_time,0,5)." "._SECONDS."";
if ($banners == 1) {
$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
/* Get a random banner if exist any. */
/* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */

if ($numrows>1) {
$numrows = $numrows-1;
mt_srand((double)microtime()*1000000);
$bannum = mt_rand(0, $numrows);
} else {
$bannum = 0;
}
$sql = "SELECT bid, imageurl, clickurl, alttext FROM ".$prefix."_banner WHERE type='0' AND active='1' LIMIT $bannum,1";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$bid = $row[bid];
$imageurl = $row[imageurl];
$clickurl = $row[clickurl];
$alttext = $row[alttext];

if (!is_admin($admin)) {
$db->sql_query("UPDATE ".$prefix."_banner SET impmade=impmade+1 WHERE bid='$bid'");
}
if($numrows>0) {
$sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE bid='$bid'";
$result2 = $db->sql_query($sql2);
$row2 = $db->sql_fetchrow($result2);
$cid = $row2[cid];
$imptotal = $row2[imptotal];
$impmade = $row2[impmade];
$clicks = $row2[clicks];
$date = $row2[date];

/* Check if this impression is the last one and print the banner */

if (($imptotal <= $impmade) AND ($imptotal != 0)) {
$db->sql_query("UPDATE ".$prefix."_banner SET active='0' WHERE bid='$bid'");
$sql3 = "SELECT name, contact, email FROM ".$prefix."_bannerclient WHERE cid='$cid'";
$result3 = $db->sql_query($sql3);
$row3 = $db->sql_fetchrow($result3);
$c_name = $row3[name];
$c_contact = $row3[contact];
$c_email = $row3[email];
if ($c_email != "") {
$from = "$sitename <$adminmail>";
$to = "$c_contact <$c_email>";
$message = ""._HELLO." $c_contact:\n\n";
$message .= ""._THISISAUTOMATED."\n\n";
$message .= ""._THERESULTS."\n\n";
$message .= ""._TOTALIMPRESSIONS." $imptotal\n";
$message .= ""._CLICKSRECEIVED." $clicks\n";
$message .= ""._IMAGEURL." $imageurl\n";
$message .= ""._CLICKURL." $clickurl\n";
$message .= ""._ALTERNATETEXT." $alttext\n\n";
$message .= ""._HOPEYOULIKED."\n\n";
$message .= ""._THANKSUPPORT."\n\n";
$message .= "- $sitename "._TEAM."\n";
$message .= "$nukeurl";
$subject = "$sitename: "._BANNERSFINNISHED."";
mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
}
}
$showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a>";
}
}
$footer_message = "$foot1<br>$foot2<br>$foot3<br>$foot4";

if (defined('INDEX_FILE')) {

echo "</td>\n"
."<td><img src=\"themes/ClanMtS/images/pixel.gif\" width=\"0\" height=\"0\" border=\"0\" alt=\"\"></td>\n"
."<td valign=\"top\" background=\"themes/ClanMtS/images/ltbg.gif\" width=\"160\">\n";
blocks(right);
}

echo "</td>\n"
."<td width=\"25\" valign=\"top\" background=\"themes/ClanMtS/images/rt.gif\"><img src=\"themes/ClanMtS/images/rt.gif\" width=\"25\" height=\"0\" border=\"0\"></td>\n"
."</tr>\n"
."</table>\n\n\n";


include("themes/ClanMtS/footer.php");

}

/************************************************************/
/* Function themeindex() */
/* This function format the stories on the Homepage */
/************************************************************/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;

$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> $notes\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
//Code Changed - just show posted by
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time ";
//End Code Change
$datetime = substr($morelink, 0, strpos($morelink, "|") - strlen($morelink));
$morelink = substr($morelink, strlen($datetime) + 2);
$tmpl_file = "themes/ClanMtS/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}

/************************************************************/
/* Function themeindex() */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
$posted = ""._POSTEDON." $datetime "._BY." ";
$posted .= get_author($aid);
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
}
$tmpl_file = "themes/ClanMtS/story_page.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}

/************************************************************/
/* Function themesidebox() */
/************************************************************/

function themesidebox($title, $content) {
$tmpl_file = "themes/ClanMtS/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}

?>


modül forum index.php kodlarıda


Alıntı:
if ( !defined('MODULE_FILE') )
{
die("You can't access this file directly...");
}
if (!isset($popup) OR ($popup != "1"))
{
$module_name = basename(dirname(__FILE__));
require("modules/".$module_name."/nukebb.php");
}
else
{
$phpbb_root_path = 'modules/Forums/';
}
define('IN_PHPBB', true);
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX, $nukeuser);
init_userprefs($userdata);
//
// End session management
//

$viewcat = ( !empty($HTTP_GET_VARS[POST_CAT_URL]) ) ? $HTTP_GET_VARS[POST_CAT_URL] : -1;

if( isset($HTTP_GET_VARS['mark']) || isset($HTTP_POST_VARS['mark']) )
{
$mark_read = ( isset($HTTP_POST_VARS['mark']) ) ? $HTTP_POST_VARS['mark'] : $HTTP_GET_VARS['mark'];
}
else
{
$mark_read = '';
}

//
// Handle marking posts
//
if( $mark_read == 'forums' )
{
if( $userdata['session_logged_in'] )
{
setc o o k i e($board_config['c o o k i e_name'] . '_f_all', time(), 0, $board_config['c o o k i e_path'], $board_config['c o o k i e_domain'], $board_config['c o o k i e_secure']);
}

$template->assign_vars(array(
"m e t a" => '<m e t a http - e q u i v="refresh" content="3;url=' .append_sid("index.$phpEx") . '">')
);

$message = $lang['Forums_marked_read'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a> ');

message_die(GENERAL_MESSAGE, $message);
}
//
// End handle marking posts
//

$tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . "_t"]) : array();
$tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . "_f"]) : array();

//
// If you don't use these stats on your index you may want to consider
// removing them
//
$total_posts = get_db_stat('postcount');
$total_users = get_db_stat('usercount');
$newest_userdata = get_db_stat('newestuser');
$newest_user = $newest_userdata['username'];
$newest_uid = $newest_userdata['user_id'];

if( $total_posts == 0 )
{
$l_total_post_s = $lang['Posted_articles_zero_total'];
}
else if( $total_posts == 1 )
{
$l_total_post_s = $lang['Posted_article_total'];
}
else
{
$l_total_post_s = $lang['Posted_articles_total'];
}

if( $total_users == 0 )
{
$l_total_user_s = $lang['Registered_users_zero_total'];
}
else if( $total_users == 1 )
{
$l_total_user_s = $lang['Registered_user_total'];
}
else
{
$l_total_user_s = $lang['Registered_users_total'];
}


//
// Start page proper
//
$sql = "SELECT c.cat_id, c.cat_title, c.cat_order
FROM " . CATEGORIES_TABLE . " c
ORDER BY c.cat_order";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql);
}

$category_rows = array();
while ($row = $db->sql_fetchrow($result))
{
$category_rows[] = $row;
}
$db->sql_freeresult($result);

if( ( $total_categories = count($category_rows) ) )
{
//
// Define appropriate SQL
//
switch(SQL_LAYER)
{
case 'postgresql':
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
FROM " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p, " . USERS_TABLE . " u
WHERE p.post_id = f.forum_last_post_id
AND u.user_id = p.poster_id
UNION (
SELECT f.*, NULL, NULL, NULL, NULL
FROM " . FORUMS_TABLE . " f
WHERE NOT EXISTS (
SELECT p.post_time
FROM " . POSTS_TABLE . " p
WHERE p.post_id = f.forum_last_post_id
)
)
ORDER BY cat_id, forum_order";
break;

case 'oracle':
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
FROM " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p, " . USERS_TABLE . " u
WHERE p.post_id = f.forum_last_post_id(+)
AND u.user_id = p.poster_id(+)
ORDER BY f.cat_id, f.forum_order";
break;

default:
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
FROM (( " . FORUMS_TABLE . " f
LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )
LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id )
ORDER BY f.cat_id, f.forum_order";
break;
}
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query forums information', '', __LINE__, __FILE__, $sql);
}

$forum_data = array();
while( $row = $db->sql_fetchrow($result) )
{
$forum_data[] = $row;
}
$db->sql_freeresult($result);

if ( !($total_forums = count($forum_data)) )
{
message_die(GENERAL_MESSAGE, $lang['No_forums']);
}

//
// Obtain a list of topic ids which contain
// posts made since user last visited
//
if ($userdata['session_logged_in'])
{
// 60 days limit
if ($userdata['user_lastvisit'] < (time() - 5184000))
{
$userdata['user_lastvisit'] = time() - 5184000;
}

$sql = "SELECT t.forum_id, t.topic_id, p.post_time
FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p
WHERE p.post_id = t.topic_last_post_id
AND p.post_time > " . $userdata['user_lastvisit'] . "
AND t.topic_moved_id = 0";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query new topic information', '', __LINE__, __FILE__, $sql);
}

$new_topic_data = array();
while( $topic_data = $db->sql_fetchrow($result) )
{
$new_topic_data[$topic_data['forum_id']][$topic_data['topic_id']] = $topic_data['post_time'];
}
$db->sql_freeresult($result);
}

//
// Obtain list of moderators of each forum
// First users, then groups ... broken into two queries
//
$sql = "SELECT aa.forum_id, u.user_id, u.username
FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g, " . USERS_TABLE . " u
WHERE aa.auth_mod = " . TRUE . "
AND g.group_single_user = 1
AND ug.group_id = aa.group_id
AND g.group_id = aa.group_id
AND u.user_id = ug.user_id
GROUP BY u.user_id, u.username, aa.forum_id
ORDER BY aa.forum_id, u.user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql);
}

$forum_moderators = array();
while( $row = $db->sql_fetchrow($result) )
{
$forum_moderators[$row['forum_id']][] = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '">' . $row['username'] . '</a>';
}
$db->sql_freeresult($result);

$sql = "SELECT aa.forum_id, g.group_id, g.group_name
FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g
WHERE aa.auth_mod = " . TRUE . "
AND g.group_single_user = 0
AND g.group_type <> " . GROUP_HIDDEN . "
AND ug.group_id = aa.group_id
AND g.group_id = aa.group_id
GROUP BY g.group_id, g.group_name, aa.forum_id
ORDER BY aa.forum_id, g.group_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql);
}

while( $row = $db->sql_fetchrow($result) )
{
$forum_moderators[$row['forum_id']][] = '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=" . $row['group_id']) . '">' . $row['group_name'] . '</a>';
}
$db->sql_freeresult($result);

//
// Find which forums are visible for this user
//
$is_auth_ary = array();
$is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata, $forum_data);

//
// Start output of page
//
define('SHOW_ONLINE', true);
$page_title = $lang['Index'];
include("modules/$module_name/includes/page_header.php");

$template->set_filenames(array(
'body' => 'index_body.tpl')
);

$template->assign_vars(array(
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">', $newest_user, '</a>'),

'FORUM_IMG' => $images['forum'],
'FORUM_NEW_IMG' => $images['forum_new'],
'FORUM_LOCKED_IMG' => $images['forum_locked'],

'L_FORUM' => $lang['Forum'],
'L_TOPICS' => $lang['Topics'],
'L_REPLIES' => $lang['Replies'],
'L_VIEWS' => $lang['Views'],
'L_POSTS' => $lang['Posts'],
'L_LASTPOST' => $lang['Last_Post'],
'L_NO_NEW_POSTS' => $lang['No_new_posts'],
'L_NEW_POSTS' => $lang['New_posts'],
'L_NO_NEW_POSTS_LOCKED' => $lang['No_new_posts_locked'],
'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'],
'L_ONLINE_EXPLAIN' => $lang['Online_explain'],

'L_MODERATOR' => $lang['Moderators'],
'L_FORUM_LOCKED' => $lang['Forum_is_locked'],
'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'],

'U_MARK_READ' => append_sid("index.$phpEx?mark=forums"))
);

//
// Let's decide which categories we should display
//
$display_categories = array();

for ($i = 0; $i < $total_forums; $i++ )
{
if ($is_auth_ary[$forum_data[$i]['forum_id']]['auth_view'])
{
$display_categories[$forum_data[$i]['cat_id']] = true;
}
}

//
// Okay, let's build the index
//
for($i = 0; $i < $total_categories; $i++)
{
$cat_id = $category_rows[$i]['cat_id'];

//
// Yes, we should, so first dump out the category
// title, then, if appropriate the forum list
//
if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])
{
$template->assign_block_vars('catrow', array(
'CAT_ID' => $cat_id,
'CAT_DESC' => $category_rows[$i]['cat_title'],
'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))
);

if ( $viewcat == $cat_id || $viewcat == -1 )
{
for($j = 0; $j < $total_forums; $j++)
{
if ( $forum_data[$j]['cat_id'] == $cat_id )
{
$forum_id = $forum_data[$j]['forum_id'];

if ( $is_auth_ary[$forum_id]['auth_view'] )
{
if ( $forum_data[$j]['forum_status'] == FORUM_LOCKED )
{
$folder_image = $images['forum_locked'];
$folder_alt = $lang['Forum_locked'];
}
else
{
$unread_topics = false;
if ( $userdata['session_logged_in'] )
{
if ( !empty($new_topic_data[$forum_id]) )
{
$forum_last_post_time = 0;

while( list($check_topic_id, $check_post_time) = @each($new_topic_data[$forum_id]) )
{
if ( empty($tracking_topics[$check_topic_id]) )
{
$unread_topics = true;
$forum_last_post_time = max($check_post_time, $forum_last_post_time);

}
else
{
if ( $tracking_topics[$check_topic_id] < $check_post_time )
{
$unread_topics = true;
$forum_last_post_time = max($check_post_time, $forum_last_post_time);
}
}
}

if ( !empty($tracking_forums[$forum_id]) )
{
if ( $tracking_forums[$forum_id] > $forum_last_post_time )
{
$unread_topics = false;
}
}

if ( isset($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . '_f_all']) )
{
if ( $HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . '_f_all'] > $forum_last_post_time )
{
$unread_topics = false;
}
}

}
}

$folder_image = ( $unread_topics ) ? $images['forum_new'] : $images['forum'];
$folder_alt = ( $unread_topics ) ? $lang['New_posts'] : $lang['No_new_posts'];
}

$posts = $forum_data[$j]['forum_posts'];
$topics = $forum_data[$j]['forum_topics'];

if ( $forum_data[$j]['forum_last_post_id'] )
{
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);

$last_post = $last_post_time . '<br />';

$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';

$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
}
else
{
$last_post = $lang['No_Posts'];
}

if ( count($forum_moderators[$forum_id]) > 0 )
{
$l_moderators = ( count($forum_moderators[$forum_id]) == 1 ) ? $lang['Moderator'] : $lang['Moderators'];
$moderator_list = implode(', ', $forum_moderators[$forum_id]);
}
else
{
$l_moderators = '&nbsp;';
$moderator_list = '&nbsp;';
}

$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

$template->assign_block_vars('catrow.forumrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'FORUM_FOLDER_IMG' => $folder_image,
'FORUM_NAME' => $forum_data[$j]['forum_name'],
'FORUM_DESC' => $forum_data[$j]['forum_desc'],
'POSTS' => $forum_data[$j]['forum_posts'],
'TOPICS' => $forum_data[$j]['forum_topics'],
'LAST_POST' => $last_post,
'MODERATORS' => $moderator_list,

'L_MODERATOR' => $l_moderators,
'L_FORUM_FOLDER_ALT' => $folder_alt,

'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
);
}
}
}
}
}
} // for ... categories

}// if ... total_categories
else
{
message_die(GENERAL_MESSAGE, $lang['No_forums']);
}

//
// Generate the page
//
$template->pparse('body');

include("modules/$module_name/includes/page_tail.php");

?>



şeklinde lütfen YARDIM edin


En son oguzziya tarafından 2008-01-01, 01:43:29 tarihinde değiştirildi, toplam 1 kere değiştirildi
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-05-04, 01:02:18    Mesaj konusu: Forum Arası Reklamlar


Başa dön
String
Mesaj: 1+
Mesaj: 1+





Kayıt: Dec 30, 2007
Mesajlar: 22

MesajTarih: 2007-12-31, 01:47:11    Mesaj konusu: Alıntıyla Cevap Gönder

Bu tema içerisinde sol blok olduğuna emin misin? Sildiniz mi yoksa...
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
oguzziya
Mesaj: 1+
Mesaj: 1+





Kayıt: Jun 26, 2007
Mesajlar: 17

MesajTarih: 2008-01-01, 01:34:31    Mesaj konusu: Alıntıyla Cevap Gönder

padon arkadaşlar

blocks(left); kodunu silmişim teheme dosyasından ama onu silincede bu şekil olmuyor hata veriyor
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Önceki mesajları göster:   
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke Tüm zamanlar GMT + 3 Saat
1. sayfa (Toplam 1 sayfa)

 
Geçiş Yap:  
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

Benzer Konular

Başlık Yazar Forum Cevaplar Tarih
Yeni mesaj yok Php nuke Forumu Düzenlemek? hakan10 Php Nuke Modülleri 6 2010-07-10, 22:28:29 Son Mesajı Görüntüle
Yeni mesaj yok bos sayfa nasil olustururum? Hakraa Php Nuke Sorunlarınız 4 2010-06-23, 19:04:17 Son Mesajı Görüntüle
Yeni mesaj yok Forumu kuramıyorum. anzerhoneybee phpBB 2.x Sürümleri 1 2010-06-13, 12:59:57 Son Mesajı Görüntüle
Yeni mesaj yok Sayfa Sıralamak garapapag Php Nuke Sorunlarınız 1 2010-06-10, 06:26:30 Son Mesajı Görüntüle
Yeni mesaj yok Yardım :( Site açılırken beyaz sayfa ... bluwow Php-Nuke 2 2010-05-27, 17:58:59 Son Mesajı Görüntüle

Copyright © 2002-2024 Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. - Bütün hakları saklıdır!
Bu site Netopsiyon.com.tr Sunucularında Barındırılmaktadır.
Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. Netopsiyon Copyright