Pagina 1 din 1

exista mod??

Scris: 19-Noi-2007, 23:47:33
de 0pt!0NaL / NeVe
exista vreun mod la color gup ... sa mearga si la top post ?????

Scris: 20-Noi-2007, 00:33:14
de thecrewstyle
scrie "normal" sa inteleaga tot romanul :) Color Groups Si Top Posters on Index

Scris: 20-Noi-2007, 00:34:35
de 0pt!0NaL / NeVe
mda ... vreau sa apra pe bara de la top post aceleasi culori facute in collor grup ..kapish???

Scris: 20-Noi-2007, 00:36:52
de XxL * HoudYnY

Cod: Selectaţi tot

This is an add-on in case you have aUsTiN's AUC mod installed and you want the top posters block on
your index page to use the AUC colors.

#
#-----[ OPEN ]---------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]---------------------------------------------
#
// Begin Top Posters on Index
if ($board_config['top_posters'])
{
	$top_posters = $board_config['top_posters'];

	$sql = "SELECT username, user_id, user_level, user_posts
        	FROM " . USERS_TABLE . "
        	WHERE user_id <ANONYMOUS>sql_query($sql)) )
	{
        message_die(GENERAL_ERROR, 'Could not Query Top Posting Users', '', __LINE__, __FILE__, $sql);
	}

	$user_count = $db->sql_numrows($result);
	$user_data = $db->sql_fetchrowset($result);

	$firstcount = $user_data[0]['user_posts'];
	$total_posts = get_db_stat('postcount');
	$total_top_posters = 0;
	$top_posters_userlist = '';
	$seperator 	= ', ';

	for ($i = 0; $i </span>sql_query($sql)) )
	{
        message_die(GENERAL_ERROR, 'Could not query users', '', __LINE__, __FILE__, $sql);
	}

	$user_count = $db->sql_numrows($result);
	$user_data = $db->sql_fetchrowset($result);

	$firstcount = $user_data[0]['user_posts'];
	$total_posts = get_db_stat('postcount');
	$total_top_posters = 0;
	$top_posters_userlist = '';
	$seperator 	= ', ';

	for ($i = 0; $i < $user_count; $i++)
	{
		if ($user_data[$i]['user_color_gc'])
		{
			$user_data[$i]['username'] = CheckUsernameColor($user_data[$i]['user_color_gc'], $user_data[$i]['username']);
		}
		else if ($user_data[$i]['user_level'] == ADMIN)
		{
			$user_data[$i]['username'] = '<b><span>'. $user_data[$i]['username'] .'</span></b>';
		}
		else if ($user_data[$i]['user_level'] == MOD)
		{
			$user_data[$i]['username'] = '<b><span>'. $user_data[$i]['username'] .'</span></b>';
		}
		else
		{
			$user_data[$i]['username'] = '<b><span>'. $user_data[$i]['username'] .'</span></b>';
		}
		
		$top_posters_userlist .= (( ($top_posters_userlist) && ($user_data[$i]['user_id']) ) ? $seperator : '') .'<a alt="'. $alt .'" title="'. $alt .'" href="profile.'. $phpEx .'?mode=viewprofile&u='. $user_data[$i]['user_id'] .'" class="copyright">'. $user_data[$i]['username'] .'</a>('. $user_data[$i]['user_posts'] .')';
		
		$total_top_posters++;
	}
}
// End Top Posters on Index
# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM

cred ca asta :D

Scris: 20-Noi-2007, 00:47:23
de 0pt!0NaL / NeVe
asa si ce trebuie sa inlocuiesc aici?

Scris: 20-Noi-2007, 00:53:34
de XxL * HoudYnY
daca sti sa pui un mod iti dai seama;)

inlocuieste dar nush daca e bine mai asteapta si pe atcnv

Scris: 20-Noi-2007, 00:59:07
de thecrewstyle
XxL * HoudYnY scrie:daca sti sa pui un mod iti dai seama;)

inlocuieste dar nush daca e bine mai asteapta si pe atcnv
XxL * HoudYnY ... In postul tau anterior(in add-on), iti spune doar sa cauti ceva. Nu iti spune cum ca ar mai trebuie sa adaugi ceva inainte/dupa codu ala sau sa inlocuiesti :) Verifica daca ai copiat tot :)

Scris: 20-Noi-2007, 02:00:08
de XxL * HoudYnY
nu am copiat tot

nici nu mai gasesc ala :))