önemli sorunlardan bir tane (Çözüldü)

phpBB 2.0.x sürümleri için MODlar hakkında ihtiyacınız olan desteği buradan sorarak alabilirsiniz.
Kilitli
somee
Kayıtlı Kullanıcı
Mesajlar: 90
Kayıt: 04.04.2006, 08:53
İletişim:

önemli sorunlardan bir tane (Çözüldü)

Mesaj gönderen somee »

daha önce açtım ama kapattınız buraya açıyorum

arkadaslar oluya ya 1 sayfa 2 sayfa bende 10 sayfalık olduğu halde 1 sayfa gösteriyo ayarlardan baktım normal ne yapacam

tşk modunu yükledikten sonra oldu


teşekkür modunu sildim oldu ekledim yine bozulddu ne yapacam nasıl düzeltecem.modu kurarken söyle biseye rastladım.

Kod: Tümünü seç

# 
#-----[ FIND ]--------------------------------- 
# 
# the whole line is: $pagination = ( $highlight != '' ) ? generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order&highlight=$highlight", $total_replies, $board_config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start); 
# 
$pagination = 

# 
#-----[ AFTER, ADD ]--------------------------------- 
# 
$current_page = get_page($total_replies, $board_config['posts_per_page'], $start); 


yaniKod: 
 the whole line is: $pagination = ( $highlight != '' ) ? generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order&highlight=$highlight", $total_replies, $board_config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start); 
burda ne anlatmak istiyo ben burda

Kod: Tümünü seç

$pagination =$current_page = get_page($total_replies, $board_config['posts_per_page'], $start); 
burda hatamı yaptım acaba

not;lütfen konumu silmeyin kilitlemeyin.bilmiyorsanız bilmiyorum diyin.
Kullanıcı avatarı
NEFRİT
Uzaklaştırıldı
Mesajlar: 1404
Kayıt: 28.01.2006, 04:15
Konum: DarkKingdom
İletişim:

viewtopic

Mesaj gönderen NEFRİT »

Viewtopic.php içerisine gir ve şunları kontrol et ayrıca senin kurduğun mod ile karşılaştır aynı mı fark var mı ?

Kod: Tümünü seç


#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]---------------------------------
#
$forum_id = intval($forum_topic_data['forum_id']);

#
#-----[ AFTER, ADD ]---------------------------------
#
// Begin Thanks Mod

	// Check if the Thanks feature is active for this forum
$sql = "SELECT `forum_thank` 
		FROM " . FORUMS_TABLE . " 
		WHERE  forum_id =$forum_id";
if ( !($result = $db->sql_query($sql)) )
{
	message_die(GENERAL_ERROR, "Could not obtain forum information", '', __LINE__, __FILE__, $sql);
}
if ( !($forum_thank_result = $db->sql_fetchrow($result)) )
{
	message_die(GENERAL_MESSAGE, $lang['thank_no_exist']);
}
	// Setting if feature is active or not 

	$show_thanks = ($forum_thank_result['forum_thank'] == FORUM_THANKABLE) ? FORUM_THANKABLE : FORUM_UNTHANKABLE;

// End Thanks Mod

#
#-----[ FIND ]---------------------------------
#
$reply_topic_url = append_sid("posting.$phpEx?mode=reply&" . POST_TOPIC_URL . "=$topic_id");

#
#-----[ AFTER, ADD ]---------------------------------
#
// Begin Thanks Mod
$thank_topic_url = append_sid("posting.$phpEx?mode=thank&" . POST_TOPIC_URL . "=$topic_id");
// End Thanks Mod

#
#-----[ FIND ]---------------------------------
#
$post_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new'];
$post_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $lang['Forum_locked'] : $lang['Post_new_topic'];

#
#-----[ AFTER, ADD ]---------------------------------
#
// Begin Thanks Mod
$thank_img = $images['thanks'];
$thank_alt = $lang['thanks_alt'];
// End Thanks Mod

#
#-----[ FIND ]---------------------------------
#
# the whole line is: $pagination = ( $highlight != '' ) ? generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order&highlight=$highlight", $total_replies, $board_config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start);
#
$pagination =

#
#-----[ AFTER, ADD ]---------------------------------
#
$current_page = get_page($total_replies, $board_config['posts_per_page'], $start);

#
#-----[ FIND ]---------------------------------
#
//
// Update the topic view counter
//
$sql = "UPDATE " . TOPICS_TABLE . "
	SET topic_views = topic_views + 1
	WHERE topic_id = $topic_id";
if ( !$db->sql_query($sql) )
{
	message_die(GENERAL_ERROR, "Could not update topic views.", '', __LINE__, __FILE__, $sql);
}
#
#-----[ AFTER, ADD ]---------------------------------
#
// Begin Thanks Mod
//
// Get topic thanks
//
if ($show_thanks == FORUM_THANKABLE)
{
	// Select Format for the date
	$timeformat = "d-m, G:i";

	$sql = "SELECT u.user_id, u.username, t.thanks_time
		 FROM " . THANKS_TABLE . " t, " . USERS_TABLE . " u
		 WHERE topic_id = $topic_id
		 AND t.user_id = u.user_id";

	if ( !($result = $db->sql_query($sql)) )
	{
		message_die(GENERAL_ERROR, "Could not obtain thanks information", '', __LINE__, __FILE__, $sql);
	}

	$total_thank = $db->sql_numrows($result);
	$thanksrow = array();
	$thanksrow = $db->sql_fetchrowset($result);

	for($i = 0; $i < $total_thank; $i++)
	{
		$topic_thanks = $db->sql_fetchrow($result);
		$thanker_id[$i] = $thanksrow[$i]['user_id'];
		$thanker_name[$i] = $thanksrow[$i]['username'];
		$thanks_date[$i] = $thanksrow[$i]['thanks_time'];

		// Get thanks date
		$thanks_date[$i] = create_date($timeformat, $thanks_date[$i], $board_config['board_timezone']);

		// Make thanker profile link
		$thanker_profile[$i] = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$thanker_id[$i]");   
		$thanks .= '<a href="' .$thanker_profile[$i] . '">' . $thanker_name[$i] . '</a>(' . $thanks_date[$i] . '), ';
		
		if ($userdata['user_id'] == $thanksrow[$i]['user_id'])
		{
			$thanked = TRUE;
		}
	}

	$sql = "SELECT u.topic_poster, t.user_id, t.username
			FROM " . TOPICS_TABLE . " u, " . USERS_TABLE . " t
			WHERE topic_id = $topic_id
			AND u.topic_poster = t.user_id";

	if ( !($result = $db->sql_query($sql)) )
	{
		message_die(GENERAL_ERROR, "Could not obtain user information", '', __LINE__, __FILE__, $sql);
	}

	if( !($autor = $db->sql_fetchrowset($result)) )
	{
		message_die(GENERAL_ERROR, "Could not obtain user information", '', __LINE__, __FILE__, $sql);
	}	

	$autor_name = $autor[0]['username'];
	$thanks .= "".$lang['thanks_to']." $autor_name ".$lang['thanks_end']."";

	// Create button switch
	if ($userdata['user_id'] != $autor['0']['user_id'] && !$thanked)
	{
		$template->assign_block_vars('thanks_button', array(
			 'THANK_IMG' => $thank_img,
			 'U_THANK_TOPIC' => $thank_topic_url,
			 'L_THANK_TOPIC' => $thank_alt
		));
	}	

}
// End Thanks Mod

#
#-----[ FIND ]---------------------------------
#
		'U_POST_ID' => $postrow[$i]['post_id'])
	);

#
#-----[ AFTER, ADD ]---------------------------------
#
	// Begin Thanks Mod
	if( ($show_thanks == FORUM_THANKABLE) && ($i == 0) && ($current_page == 1) && ($total_thank > 0))
	{
		$template->assign_block_vars('postrow.thanks', array(
		'THANKFUL' => $lang['thankful'],
		'THANKED' => $lang['thanked'],
		'HIDE' => $lang['hide'],
		'THANKS_TOTAL' => $total_thank,
		'THANKS' => $thanks
		)
		);

	}
	// End Thanks Mod
Özellerden kullanıcılara reklam yaptığım için sayın yöneticim beni uzaklaştırdı.
zirve
Kayıtlı Kullanıcı
Mesajlar: 474
Kayıt: 28.04.2006, 10:26
İletişim:

Mesaj gönderen zirve »

sorunu hallettim mod yazarken hata yapılmıs ben hallettim o sorunu kendim :lol:
Kullanıcı avatarı
NEFRİT
Uzaklaştırıldı
Mesajlar: 1404
Kayıt: 28.01.2006, 04:15
Konum: DarkKingdom
İletişim:

Tamamdır

Mesaj gönderen NEFRİT »

Tamamdır sorunu bulduna sevindim.
Özellerden kullanıcılara reklam yaptığım için sayın yöneticim beni uzaklaştırdı.
Kilitli

“2.0.x MOD Destek” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 0 misafir