Cere avatare postator forum [rezolvat]

Discutii despre tot ce nu se incadreaza in celelalte categorii.

Moderators: Moderatori ajutatori, Moderatori

User avatar
Faby007
Membru, skill +3
Membru, skill +3
Posts: 1179
Joined: 11 Feb 2008, 19:47
Detinator Steam: Da
Detinator server CS: Da
SteamID: Secret
Reputatie: Ban 3 luni !
(Ban scos de 1 mai!)
Location: Ramnicu Valcea
Has thanked: 8 times
Been thanked: 12 times
Contact:

05 Oct 2012, 16:47

Kanthos wrote:
Faby007 wrote:Iti dau TeamViewer? X_X
God no. :))
Faby007 wrote:Zi-mi ce sa ii fac
In automod iti afiseaza modurile instalate si ai optiunea sa le dezinstalezi. Dezinstaleaza modul cu avatarele, instaleaza-l iar si scrie aici erorile pe care le primesti.
Poftim, apar 2 erori, am editat in fisierele cu problema, dar degeaba, zi-mi tu ce sa fac 8-|
Arata cod | Afiseaza codul
[code]File edits
includes/acp/acp_board.php
Find

			break;

			case 'message':

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
				$this->apiv_config($display_vars);
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

}

?>

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
	// borrowed and adapted from "aos who visited a topic" mod
	function apiv_config(&$display_vars)
	{
		global $user;

		for ( $legend = 1; isset($display_vars['vars']['legend' . $legend]); $legend++ )
		{
			$legend;
		}

		$options = array(
			'legend' . $legend => 'APIV',
			'avatar_max_dimensions' => array('lang' => 'APIV_MAX_DIMENSIONS', 'validate' => 'int', 'type' => 'text:7:15', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
			'avatar_forums_last_poster_show' => array('lang' => 'APIV_FORUMS_LAST_POSTER_SHOW', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
			'avatar_topics_first_poster_show' => array('lang' => 'APIV_TOPICS_FIRST_POSTER_SHOW', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
			'avatar_topics_last_poster_show' => array('lang' => 'APIV_TOPICS_LAST_POSTER_SHOW', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),

			'legend' . ($legend + 1) => 'ACP_SUBMIT_CHANGES',
		);

		foreach ( $options as $key => $val )
		{
			$display_vars['vars'][$key] = $val;
		}
		unset($key);
	}
//-- fin mod : apiv ------------------------------------------------------------

Success
includes/acp/acp_forums.php
Find

					// On add, add empty forum_options... else do not consider it (not updating it)

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
					$forum_data += array('forum_last_poster_avatar' => '');
//-- fin mod : apiv ------------------------------------------------------------

Success
includes/acp/acp_users.php
Find

								avatar_delete('user', $user_row);

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
								user_update_avatar($user_row['user_id'], '', 0, 0, 0);
//-- fin mod : apiv ------------------------------------------------------------

Success
includes/mcp/mcp_post.php
Find

		sync('topic', 'topic_id', $post_info['topic_id'], false, false);

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
		$avatar_info = '';
		if ( !empty($userdata['user_avatar']) )
		{
			$avatar_info = serialize(array(
				'avatar' => $userdata['user_avatar'],
				'type' => (int) $userdata['user_avatar_type'],
				'width' => (int) $userdata['user_avatar_width'],
				'height' => (int) $userdata['user_avatar_height'],
			));
		}

		if ( $post_info['topic_last_post_id'] == $post_id )
		{
			$sql = 'UPDATE ' . TOPICS_TABLE . '
				SET topic_last_poster_avatar = \'' . $db->sql_escape($avatar_info) . '\'
				WHERE topic_last_poster_id = ' . (int) $post_info['user_id'];
			$db->sql_query($sql);
		}

		if ( $post_info['forum_last_post_id'] == $post_id )
		{
			$sql = 'UPDATE ' . FORUMS_TABLE . '
				SET forum_last_poster_avatar = \'' . $db->sql_escape($avatar_info) . '\'
				WHERE forum_last_poster_id = ' . (int) $post_info['user_id'];
			$db->sql_query($sql);
		}

		if ( $post_info['topic_first_post_id'] == $post_id )
		{
			$sql = 'UPDATE ' . TOPICS_TABLE . '
				SET topic_first_poster_avatar = \'' . $db->sql_escape($avatar_info) . '\'
				WHERE topic_poster = ' . (int) $post_info['user_id'];
			$db->sql_query($sql);
		}
//-- fin mod : apiv ------------------------------------------------------------

Success
includes/functions_admin.php
Find

			}
			$db->sql_freeresult($result);

			if (!sizeof($forum_ids))

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
				$forum_data[$forum_id]['last_poster_avatar'] = '';
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

				$result = $db->sql_query($sql);

				while ($row = $db->sql_fetchrow($result))
				{
					$post_info[$row['post_id']] = $row;
				}
				$db->sql_freeresult($result);

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
				$sql = str_replace('SELECT ', 'SELECT u.user_avatar, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, ', $sql);
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

							$forum_data[$forum_id]['last_poster_colour'] = $post_info[$data['last_post_id']]['user_colour'];

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
							$forum_data[$forum_id]['last_poster_avatar'] = serialize(array(
								'avatar' => $post_info[$data['last_post_id']]['user_avatar'],
								'type' => $post_info[$data['last_post_id']]['user_avatar_type'],
								'width' => $post_info[$data['last_post_id']]['user_avatar_width'],
								'height' => $post_info[$data['last_post_id']]['user_avatar_height'],
							));
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

							$forum_data[$forum_id]['last_poster_colour'] = '';

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
							$forum_data[$forum_id]['last_poster_avatar'] = '';
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

			// 6: Now do that thing
			$fieldnames = array(

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
			$fieldnames += array('last_poster_avatar');
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

						if (preg_match('#(name|colour|subject)$#', $fieldname))

Add Before

//-- mod : apiv ----------------------------------------------------------------
// here we added
//	|avatar
//-- modify

The Find specified by the MOD could not be found
Add After

//-- fin mod : apiv ------------------------------------------------------------

The Find specified by the MOD could not be found
In-Line Find

subject

The In-Line Find specified by the MOD could not be found.The Find specified by the MOD could not be found
Find

			$result = $db->sql_query($sql);

			while ($row = $db->sql_fetchrow($result))
			{
				if ($row['topic_moved_id'])

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
			$sql = str_replace('SELECT ', 'SELECT t.topic_first_poster_avatar, t.topic_last_poster_avatar, ', $sql);
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

			$result = $db->sql_query($sql);

			$post_ids = array();
			while ($row = $db->sql_fetchrow($result))

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
			$sql = str_replace('SELECT ', 'SELECT u.user_avatar, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, ', $sql);
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

					$topic_data[$topic_id]['first_poster_colour'] = $row['user_colour'];

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
					$topic_data[$topic_id]['first_poster_avatar'] = serialize(array(
						'avatar' => $row['user_avatar'],
						'type' => $row['user_avatar_type'],
						'width' => $row['user_avatar_width'],
						'height' => $row['user_avatar_height'],
					));
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

					$topic_data[$topic_id]['last_poster_colour'] = $row['user_colour'];

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
					$topic_data[$topic_id]['last_poster_avatar'] = serialize(array(
						'avatar' => $row['user_avatar'],
						'type' => $row['user_avatar_type'],
						'width' => $row['user_avatar_width'],
						'height' => $row['user_avatar_height'],
					));
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

					$result = $db->sql_query($sql);

					$post_ids = array();
					while ($row = $db->sql_fetchrow($result))

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
					$sql = str_replace('SELECT ', 'SELECT u.user_avatar, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, ', $sql);
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

								$sync_shadow_topics[$orig_topic_id]['topic_first_poster_colour'] = $row['user_colour'];

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
								$sync_shadow_topics[$orig_topic_id]['topic_first_poster_avatar'] = serialize(array(
									'avatar' => $row['user_avatar'],
									'type' => $row['user_avatar_type'],
									'width' => $row['user_avatar_width'],
									'height' => $row['user_avatar_height'],
								));
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

								$sync_shadow_topics[$orig_topic_id]['topic_last_poster_colour'] = $row['user_colour'];

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
								$sync_shadow_topics[$orig_topic_id]['topic_last_poster_avatar'] = serialize(array(
									'avatar' => $row['user_avatar'],
									'type' => $row['user_avatar_type'],
									'width' => $row['user_avatar_width'],
									'height' => $row['user_avatar_height'],
								));
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

			// These are fields that will be synchronised
			$fieldnames = array(

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
			$fieldnames += array('first_poster_avatar', 'last_poster_avatar');
//-- fin mod : apiv ------------------------------------------------------------

Success
includes/functions_display.php
Find

				$forum_rows[$parent_id]['forum_last_poster_colour'] = $row['forum_last_poster_colour'];

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
				$forum_rows[$parent_id]['forum_last_poster_avatar'] = $row['forum_last_poster_avatar'];
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

		// Assign subforums loop for style authors

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
		user_display_avatar($row, 'forum_last', 'forumrow', $config['avatar_forums_last_poster_show']);
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

	if ($return_moderators)

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
	if ( $config['avatar_forums_last_poster_show'] )
	{
		$template->assign_var('AVATAR_MAX_DIMENSIONS', $config['avatar_max_dimensions']);
	}
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

?>

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
function user_display_avatar($row, $prefix = '', $tpl_switch, $display)
{
	if ( !$display || empty($row[$prefix . '_poster_avatar']) )
	{
		return;
	}

	global $config, $template;

	$avatar = unserialize($row[$prefix . '_poster_avatar']);
	if ( $avatar['width'] >= $avatar['height'] )
	{
		$avatar_width = ($avatar['width'] > $config['avatar_max_dimensions']) ? $config['avatar_max_dimensions'] : $avatar['width'];
		$avatar_height = ($avatar_width == $config['avatar_max_dimensions']) ? round($config['avatar_max_dimensions'] / $avatar['width'] * $avatar['height']) : $avatar['height'];
	}
	else
	{
		$avatar_height = ($avatar['height'] > $config['avatar_max_dimensions']) ? $config['avatar_max_dimensions'] : $avatar['height'];
		$avatar_width = ($avatar_height == $config['avatar_max_dimensions']) ? round($config['avatar_max_dimensions'] / $avatar['height'] * $avatar['width']) : $avatar['width'];
	}

	$template->alter_block_array($tpl_switch, array(
		strtoupper($prefix) . '_POSTER_AVATAR' => get_user_avatar($avatar['avatar'], $avatar['type'], $avatar_width, $avatar_height),
		strtoupper($prefix) . '_POSTER_AVATAR_MARGIN' => ($avatar_width == $config['avatar_max_dimensions']) ? 5 : ($config['avatar_max_dimensions'] - $avatar_width + 5),
	), true, 'change');
}
//-- fin mod : apiv ------------------------------------------------------------

Success
includes/functions_posting.php
Find

			$update_sql[$forum_id][] = "forum_last_poster_colour = ''";

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
			$update_sql[$forum_id][] = "forum_last_poster_avatar = ''";
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

		$result = $db->sql_query($sql);

		while ($row = $db->sql_fetchrow($result))

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
		$sql = str_replace('SELECT ', 'SELECT u.user_avatar, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, ', $sql);
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

		}
		$db->sql_freeresult($result);
	}
	unset($empty_forums, $ids, $last_post_ids);

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
			$avatar_info = serialize(array(
				'avatar' => $row['user_avatar'],
				'type' => (int) $row['user_avatar_type'],
				'width' => (int) $row['user_avatar_width'],
				'height' => (int) $row['user_avatar_height'],
			));

			$update_sql[$row["{$type}_id"]][] = "{$type}_last_poster_avatar = '" . $db->sql_escape($avatar_info) . "'";
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

			$result = $db->sql_query_limit($sql, 1);

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
			$sql = str_replace('SELECT ', 'SELECT u.user_avatar, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, ', $sql);
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

			// Decrementing topic_replies here is fine because this case only happens if there is more than one post within the topic - basically removing one "reply"

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
			$avatar_info = serialize(array(
				'avatar' => $row['user_avatar'],
				'type' => (int) $row['user_avatar_type'],
				'width' => (int) $row['user_avatar_width'],
				'height' => (int) $row['user_avatar_height'],
			));

			$sql_data[TOPICS_TABLE] .= ', topic_first_poster_avatar = \'' . $db->sql_escape($avatar_info) . '\'';
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

			if (isset($poll['poll_options']) && !empty($poll['poll_options']))

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
			$sql_data[TOPICS_TABLE]['sql'] += array(
				'topic_first_poster_avatar' => serialize(array(
					'avatar' => $user->data['user_avatar'],
					'type' => $user->data['user_avatar_type'],
					'width' => $user->data['user_avatar_width'],
					'height' => $user->data['user_avatar_height'],
				)),
				'topic_last_poster_avatar' => '',
			);
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

		}

		unset($sql_data[POSTS_TABLE]['sql']);
	}

	$make_global = false;

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
			$sql_data[TOPICS_TABLE]['sql']['topic_last_poster_avatar'] = serialize(array(
				'avatar' => $user->data['user_avatar'],
				'type' => $user->data['user_avatar_type'],
				'width' => $user->data['user_avatar_width'],
				'height' => $user->data['user_avatar_height'],
			));
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

			$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_colour = '" . $db->sql_escape($user->data['user_colour']) . "'";

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
			$avatar_info = serialize(array(
				'avatar' => $user->data['user_avatar'],
				'type' => (int) $user->data['user_avatar_type'],
				'width' => (int) $user->data['user_avatar_width'],
				'height' => (int) $user->data['user_avatar_height'],
			));

			$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_avatar = '" . $db->sql_escape($avatar_info) . "'";
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

						$result = $db->sql_query($sql);
						$row = $db->sql_fetchrow($result);
						$db->sql_freeresult($result);

						// salvation, a post is found! jam it into the forums table

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
						$sql = str_replace('SELECT ', 'SELECT u.user_avatar, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, ', $sql);
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

						$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_colour = '" . $db->sql_escape($row['user_colour']) . "'";

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
						$avatar_info = serialize(array(
							'avatar' => $row['user_avatar'],
							'type' => (int) $row['user_avatar_type'],
							'width' => (int) $row['user_avatar_width'],
							'height' => (int) $row['user_avatar_height'],
						));

						$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_avatar = '" . $db->sql_escape($avatar_info) . "'";
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

						$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_colour = ''";

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
						$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_avatar = ''";
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

				$result = $db->sql_query($sql);
				$row = $db->sql_fetchrow($result);
				$db->sql_freeresult($result);

				// salvation, a post is found! jam it into the forums table

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
				$sql = str_replace('SELECT ', 'SELECT u.user_avatar, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, ', $sql);
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

				$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_colour = '" . $db->sql_escape($row['user_colour']) . "'";

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
				$avatar_info = serialize(array(
					'avatar' => $row['user_avatar'],
					'type' => (int) $row['user_avatar_type'],
					'width' => (int) $row['user_avatar_width'],
					'height' => (int) $row['user_avatar_height'],
				));

				$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_avatar = '" . $db->sql_escape($avatar_info) . "'";
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

				$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_colour = ''";

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
				$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_avatar = ''";
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

			$result = $db->sql_query($sql);
			$row = $db->sql_fetchrow($result);
			$db->sql_freeresult($result);

			// salvation, a post is found! jam it into the forums table

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
			$sql = str_replace('SELECT ', 'SELECT u.user_avatar, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, ', $sql);
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

			$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_colour = '" . $db->sql_escape($row['user_colour']) . "'";

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
			$avatar_info = serialize(array(
				'avatar' => $row['user_avatar'],
				'type' => (int) $row['user_avatar_type'],
				'width' => (int) $row['user_avatar_width'],
				'height' => (int) $row['user_avatar_height'],
			));

			$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_avatar = '" . $db->sql_escape($avatar_info) . "'";
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

			$sql_data[TOPICS_TABLE]['stat'][] = 'topic_last_post_time = ' . (int) $current_time;

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
			$avatar_info = serialize(array(
				'avatar' => $user->data['user_avatar'],
				'type' => (int) $user->data['user_avatar_type'],
				'width' => (int) $user->data['user_avatar_width'],
				'height' => (int) $user->data['user_avatar_height'],
			));

			$sql_data[TOPICS_TABLE]['stat'][] = "topic_last_poster_avatar = '" . $db->sql_escape($avatar_info) . "'";
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

			$result = $db->sql_query($sql);
			$row = $db->sql_fetchrow($result);
			$db->sql_freeresult($result);

			// salvation, a post is found! jam it into the topics table

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
			$sql = str_replace('SELECT ', 'SELECT u.user_avatar, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, ', $sql);
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

			$sql_data[TOPICS_TABLE]['stat'][] = "topic_last_poster_colour = '" . $db->sql_escape($row['user_colour']) . "'";

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
			$avatar_info = serialize(array(
				'avatar' => $row['user_avatar'],
				'type' => (int) $row['user_avatar_type'],
				'width' => (int) $row['user_avatar_width'],
				'height' => (int) $row['user_avatar_height'],
			));

			$sql_data[TOPICS_TABLE]['stat'][] = "topic_last_poster_avatar = '" . $db->sql_escape($avatar_info) . "'";
//-- fin mod : apiv ------------------------------------------------------------

Success
includes/functions_user.php
Find

/**
* Adds an user

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
function user_update_avatar($user_id, $new_avatar, $new_avatar_type, $new_avatar_width, $new_avatar_height)
{
	global $db;	

	$avatar_info = '';
	if ( !empty($new_avatar) )
	{
		$avatar_info = serialize(array(
			'avatar' => $new_avatar,
			'type' => (int) $new_avatar_type,
			'width' => (int) $new_avatar_width,
			'height' => (int) $new_avatar_height,
		));
	}

	$sql = 'UPDATE ' . FORUMS_TABLE . '
		SET forum_last_poster_avatar = \'' . $db->sql_escape($avatar_info) . '\'
		WHERE forum_last_poster_id = ' . (int) $user_id;
	$db->sql_query($sql);

	$sql = 'UPDATE ' . TOPICS_TABLE . '
		SET topic_first_poster_avatar = \'' . $db->sql_escape($avatar_info) . '\'
		WHERE topic_poster = ' . (int) $user_id;
	$db->sql_query($sql);

	$sql = 'UPDATE ' . TOPICS_TABLE . '
		SET topic_last_poster_avatar = \'' . $db->sql_escape($avatar_info) . '\'
		WHERE topic_last_poster_id = ' . (int) $user_id;
	$db->sql_query($sql);
}
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

						avatar_delete('user', $userdata);
					}
				}

Add After

//-- mod : apiv ----------------------------------------------------------------
//-- add
				$user_id = ($custom_userdata === false) ? $user->data['user_id'] : $custom_userdata['user_id'];
				user_update_avatar($user_id, $sql_ary['user_avatar'], $sql_ary['user_avatar_type'], $sql_ary['user_avatar_width'], $sql_ary['user_avatar_height']);
//-- fin mod : apiv ------------------------------------------------------------

Success
styles/prosilver/template/forumlist_body.html
Find

					<dd class="posts">{forumrow.POSTS} <dfn>{L_POSTS}</dfn></dd>
					<dd class="lastpost"><span>

In-Line Find

<dd class="lastpost">

In-Line After, Add

<!-- IF forumrow.FORUM_LAST_POSTER_AVATAR --><div style="float: left; padding-top: 0px; margin-left: 5px; margin-right: {forumrow.FORUM_LAST_POSTER_AVATAR_MARGIN}px;">{forumrow.FORUM_LAST_POSTER_AVATAR}</div><!-- ENDIF -->

Success
styles/prosilver/template/viewforum_body.html
Find

<!-- IF topicrow.S_UNREAD_TOPIC -->

In-Line Find

<!-- IF topicrow.S_UNREAD_TOPIC -->

In-Line Before, Add

<!-- IF topicrow.TOPIC_FIRST_POSTER_AVATAR --><span style="float: left; padding-top: 3px; margin-right: {topicrow.TOPIC_FIRST_POSTER_AVATAR_MARGIN}px;">{topicrow.TOPIC_FIRST_POSTER_AVATAR}</span><!-- ENDIF -->

Success
Find

				<dd class="lastpost">

In-Line Find

dd class="lastpost">

In-Line After, Add

<!-- IF topicrow.TOPIC_LAST_POSTER_AVATAR --><div style="float: left; padding-top: 0px; margin-left: 5px; margin-right: {topicrow.TOPIC_LAST_POSTER_AVATAR_MARGIN}px;">{topicrow.TOPIC_LAST_POSTER_AVATAR}</div><!-- ENDIF -->

Success
viewforum.php
Find

// Grab icons

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
if ( $config['avatar_topics_first_poster_show'] || $config['avatar_topics_last_poster_show'] )
{
	$template->assign_var('AVATAR_MAX_DIMENSIONS', $config['avatar_max_dimensions']);
}
//-- fin mod : apiv ------------------------------------------------------------

Success
Find

		$s_type_switch = ($row['topic_type'] == POST_ANNOUNCE || $row['topic_type'] == POST_GLOBAL) ? 1 : 0;

Add Before

//-- mod : apiv ----------------------------------------------------------------
//-- add
		user_display_avatar($row, 'topic_first', 'topicrow', $config['avatar_topics_first_poster_show']);
		user_display_avatar($row, 'topic_last', 'topicrow', $config['avatar_topics_last_poster_show']);
//-- fin mod : apiv ------------------------------------------------------------

Success
[/code]
RoyalServer
Kanthos
Fost moderator
Fost moderator
Posts: 745
Joined: 19 Dec 2011, 17:14
Detinator Steam: Da
SteamID: rocklife953
Reputatie: Fost moderator
Location: Lisbon
Has thanked: 51 times
Been thanked: 40 times

05 Oct 2012, 23:27

Vad ca te muti pe IPB, sa inteleg ca nu mai ai nevoie de ajutor?
User avatar
Faby007
Membru, skill +3
Membru, skill +3
Posts: 1179
Joined: 11 Feb 2008, 19:47
Detinator Steam: Da
Detinator server CS: Da
SteamID: Secret
Reputatie: Ban 3 luni !
(Ban scos de 1 mai!)
Location: Ramnicu Valcea
Has thanked: 8 times
Been thanked: 12 times
Contact:

06 Oct 2012, 04:23

Kanthos wrote:Vad ca te muti pe IPB, sa inteleg ca nu mai ai nevoie de ajutor?
Mda, m-am mutat deja, imi era prea greu sa intalez modurile care merg perfect pe IPB, pe phpBB, este o porcarie, oricum multumesc pentru ajutor, poate daca raspundeai mai din timp, ramaneam la phpBB, acum nu mai renunt la nivelul asta de "trai" este foarte bine in IPB, o sa imi fie mai greu sa ma acomodez, dar incerc sa reusesc :)

Poti da Topic Closed!
Post Reply

Return to “Discutii generale”

  • Information