Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

ROZWIĄZANY: Widok Avatara na forum


Adam22

Rekomendowane odpowiedzi

Bit boardIndexTemplate

[long]

<php>
if( !class_exists('Skinbox') )
require_once IPS_PUBLIC_PATH . '/style_images/' . $this->registry->getClass('output')->skin['set_image_dir'] . '/_php/loader.php';

Skinbox::avatars()->in_forums($cat_data);
</php>
{parse js_module="board"}
{parse js_module="hooks"}
{parse variable="sidebar_enabled" default="$show_side_blocks"}
<script type='text/javascript'>
//<![CDATA[
ipb.global.boardMarkers = ({
	'f_cat_unread': "{parse replacement="f_cat_read"}",
	'f_unread': "{parse replacement="f_read"}",
	'f_pass_unread': "{parse replacement="f_pass_read"}"
});
var markerURL = "{parse url="app=forums&module=ajax&section=markasread&i=1" base="public"}"; // Ajax URL so don't use &
//]]>
</script>
<if test="sideBarEnabled:|:$this->templateVars['sidebar_enabled']">
<a href='{parse url="app=forums&module=extras&section=toggle&secure_key={$this->member->form_hash}" base="public"}' id='close_sidebar'  class='sidebar_toggle rounded' <if test="sidebaropen:|:IPSCookie::get('hide_sidebar') != '1'">style='display: none'</if>><img src='{$this->settings['img_url']}/sidebar_close.png' alt='{$this->lang->words['sidebar_close']}' /></a>
<a href='{parse url="app=forums&module=extras&section=toggle&secure_key={$this->member->form_hash}" base="public"}' id='open_sidebar' class='sidebar_toggle rounded' <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>><img src='{$this->settings['img_url']}/sidebar_open.png' alt='{$this->lang->words['sidebar_open']}' /></a>
</if>
<h2 class='hide'>{$this->lang->words['board_index_title']}</h2>
<div id='board_index' class='clearfix'>
<if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">
	<div id='index_stats' class='right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>>
		<foreach loop="side_blocks:$side_blocks as $block">
			{$block}
		</foreach>
	</div>
</if>

<div id='categories' class='<if test="nosidebar:|:IPSCookie::get('hide_sidebar') == '1' || !$this->templateVars['sidebar_enabled']">no_sidebar</if> clearfix'>
	<if test="latestNews:|:is_array($news_data) AND count($news_data)">
		<div id='latest_news' class='row2'><strong>{$this->lang->words['newslink']}</strong> <a href='{parse url="showtopic={$news_data['id']}" template="showtopic" seotitle="{$news_data['seo_title']}" base="public"}' title='{$this->lang->words['newslink']}'>{$news_data['title']}</a></div>
	</if>
<!-- CATS AND FORUMS -->
	<if test="cats_forums:|:is_array( $cat_data ) AND count( $cat_data )">
		<foreach loop="categories:$cat_data as $_data">
			<if test="cat_has_forums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
				{parse striping="catTable" classes="row1,row2"}
				<div class='category_block block_wrap'>
					<h3 id='category_{$_data['cat_data']['id']}' class='maintitle'><a class='toggle right' href='#' title="{$this->lang->words['toggle_cat']}">{$this->lang->words['toggle_cat']}</a> <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['view_cat']}'>{$_data['cat_data']['name']}</a></h3>
					<table class='ipb_table' summary="{$this->lang->words['forums_in_cat']} '{$_data['cat_data']['name']}'">
						<!-- <tr class='header'>
							<th scope='col' class='col_c_icon'> </th>
							<th scope='col' class='col_c_forum'>{$this->lang->words['cat_name']}</th>
							<th scope='col' class='col_c_stats stats'>{$this->lang->words['stats']}</th>
							<th scope='col' class='col_c_post'>{$this->lang->words['last_post_info']}</th>
						</tr> -->
						<!-- / CAT HEADER -->
						<foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">
							<if test="forumRedirect:|:$forum_data['redirect_on']">
								<tr class='{parse striping="catTable"} redirect_forum'>
									<td width="40%">
										<h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$forum_data['name']}</a> {parse replacement="f_redirect"}</h4>
										<p class='desc'>{$forum_data['description']}</p>
									</td>
									<td colspan='2' width="25%" class="textRight">
										{$this->lang->words['rd_hits']}: {parse format_number="$forum_data['redirect_hits']"}
									</td>
								</tr>
							<else />
								<tr class='{parse striping="catTable"}'>
									<td width="40%">
										<h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$forum_data['name']}</a>

										<if test="unreadicon:|:$forum_data['img_new_post'] != 'f_locked' && strstr( $forum_data['img_new_post'], 'unread' )">
											<a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&module=forums&section=markasread&marktype=forum&forumid={$forum_data['id']}&returntoforumid={$this->request['f']}&i=1" base="public"}" title="{$this->lang->words['bi_markread']}" class='forum_marker'>
												{parse replacement="{$forum_data['img_new_post']}"}
											</a>
											<script type='text/javascript'>
												ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "&forumid={$forum_data['id']}" );
											</script>
										<else />
											{parse replacement="{$forum_data['img_new_post']}"}
										</if></h4>
										<p class='desc'>{$forum_data['description']}</p>

										<if test="showSubForums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
											<h5 class='hide'>{$this->lang->words['subforums']}</h5>
											<ol class='subforums' id='subforums_{$forum_data['id']}'>
											<foreach loop="subforums:$forum_data['subforums'] as $__id => $__data">
												<if test="showSubForumsLit:|:$__data[3]"><li class='newposts'><else /><li></if><a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$__data[1]}</a></li>
											</foreach>
											</ol>
										</if>
										<!-- Skinnote: Clean up queued stuff -->
										<if test="hasQueuedAndCanSeeIcon:|:!empty($forum_data['_has_queued_and_can_see_icon'])">
											<em class='moderated'><a href='{parse url="showforum={$forum_data['id']}&modfilter=all" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}' title='{$this->lang->words['view_unapproved']}'>{parse expression="sprintf( $this->lang->words['f_queued'], $forum_data['queued_topics'], $forum_data['queued_posts'])"}</a></em>
										</if>
									</td>
									<td class='altrow stats' width="14%">
										<ul>
											<li><strong>{$forum_data['topics']}</strong> {$this->lang->words['topics']}</li>
											<li><strong>{$forum_data['posts']}</strong> {$this->lang->words['replies']}</li>
										</ul>
									</td>
									<td width="25%">
										<ul class='last_post'>
										<div class="left padRight">{$forum_data['last_poster_extended']['avatar_html']}</div>
											<if test="hideLastInfo:|:$forum_data['hide_last_info']">
												<li>{$this->lang->words['f_protected']}</li>
											<else />
												<li><strong>{$forum_data['last_topic_title']}</strong></li>
												<li><div class="smalltext"><if test="hideDateUrl:|:$forum_data['_hide_last_date']">
													{parse expression="Skinbox::Date()->short($forum_data['last_post'])"}
												<else />
													<a href='{parse url="showtopic={$forum_data['last_id']}&view=getlastpost" base="public" template="showtopic" seotitle="{$forum_data['seo_last_title']}"}' title='{$this->lang->words['view_last_post']}'>{parse expression="Skinbox::Date()->short($forum_data['last_post'])"}</a>
												</if>
													{$this->lang->words['by']}
													<if test="lastPosterName:|:isset($forum_data['last_poster_name']) AND $forum_data['last_poster_name']">
														<if test="lastPosterID:|:$forum_data['last_poster_id']">
															<a href='{parse url="showuser={$forum_data['last_poster_id']}" template="showuser" seotitle="{$forum_data['seo_last_name']}" base="public"}' title='{$this->lang->words['view_profile']}'>{$forum_data['last_poster_name']}</a>{parse template="user_popup" group="global" params="$forum_data['last_poster_id'], $forum_data['seo_last_name']"}
														<else />
															{$this->settings['guest_name_pre']}{$forum_data['last_poster_name']}{$this->settings['guest_name_suf']}
														</if>
													<else />
														{$this->lang->words['f_none']}
													</if>
												</div>
												</li>
											</if>
										</ul>
									</td>
								</tr>
							</if>
						</foreach>
					</table>
				</div>
			</if>
		</foreach>
	</if>
</div>
</div>
<ul id='stat_links' class='filter_bar rounded'>
<li><a href="{parse url="app=core&module=search&do=active" base="public"}" title="{$this->lang->words['today_active_cont']}">{$this->lang->words['new_active_cont']}</a></li>
<li><a href="{parse url="app=forums&module=extras&section=stats&do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a></li>
<li><a href="{parse url="app=forums&module=extras&section=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a></li>
<li><a href="{parse url="app=members&module=list&max_results=20&sort_key=posts&sort_order=desc&filter=ALL" base="public" seotitle="false"}" title="{$this->lang->words['sm_overall_posters_title']}">{$this->lang->words['sm_overall_posters']}</a></li>
</ul>
<div id='board_statistics' class='statistics general_box clearfix'>
<if test="showTotals:|:$this->settings['show_totals']">
	<div id='stats'>
		<h2>{$this->lang->words['board_stats']}</h2>
		<dl>
			<dt>{$this->lang->words['total_posts']}</dt>
			<dd>{$stats['info']['total_posts']}</dd>
			<dt>{$this->lang->words['total_members']}</dt>
			<dd>{$stats['info']['mem_count']}</dd>
			<dt>{$this->lang->words['newest_member']}</dt>
			<dd><a href='{$stats['info']['last_mem_link']}' title='{$this->lang->words['view_profile']}'>{$stats['info']['last_mem_name']}</a>{parse template="user_popup" group="global" params="$stats['info']['last_mem_id'],$stats['info']['last_mem_seo']"} </dd>
			<dt>{$this->lang->words['online_at_once']}</dt>
			<dd>{$stats['info']['most_online']}<br /><span class='extra'>{$stats['info']['most_time']}</span></dd>
		</dl>
	</div>
</if>
<if test="showActive:|:$this->settings['show_active']">
	<div id='active_users' class='stats_list'>
		<h2>
			{$stats['TOTAL']} {$this->lang->words['active_users_text']} <span>{$this->lang->words['active_users']}</span><br />
			<span class='desc'>{parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"} | {$this->lang->words['show_by']}: <a href='{parse url="app=members&module=online&sort_order=desc" base="public"}'>{$this->lang->words['oul_click']}</a> {$this->lang->words['or']} <a href='{parse url="app=members&module=online&sort_key=name&sort_order=asc&show_mem=reg" base="public"}'>{$this->lang->words['oul_name']}</a></span>
		</h2>
		<if test="activeNames:|:count($stats['NAMES'])">
			<p>
				<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>					
			</p>
		</if>
	</div>
</if>
<if test="calendarEventsOuter:|:$calendar_events">
<div id='cal_events' class='stats_list'>
	<h2>{$this->lang->words['upcoming_events']}</h2>
	<if test="calendarEventsInner:|:is_array( $calendar_events )">
		<p>
			<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $calendar_events )"}</span>
		</p>
	<else />
		<p>{$calendar_events}</p>
	</if>
</div>
</if>

<if test="birthdays:|:$birthdays !== FALSE AND is_array( $birthdays['users'] ) AND count( $birthdays['users'] )">
	<div id='cal_bdays' class='stats_list'>
		<h2>{$birthdays['count']} {$this->lang->words['birthdays_today']}</h2>
		<p>
			<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $birthdays['users'] )"}</span>					
		</p>
	</div>
<else />
	<if test="showBirthdaysAlways:|:$this->settings['show_birthdays'] AND !$this->settings['autohide_bday']">
		<div id='cal_bdays' class='stats_list'>
			<h2>0 {$this->lang->words['birthdays_today']}</h2>
			<p>{$this->lang->words['no_birth_users']}</p>
		</div>
	</if>
</if>

</div>
<if test="autodst:|:$this->memberData['members_auto_dst'] == 1 AND $this->settings['time_dst_auto_correction']">
<script type='text/javascript'>
ipb.vars['dst_on']	= parseInt("{$this->memberData['dst_in_use']}");

ipb.board.checkDST();
</script>
</if>

[/long]

Wyciągnie ktoś z tego kodu fragment odpowiedzialny za takie wyświetlanie avatarów? :D

pre_1313529795__123.png

Edytowane przez Adam22

ipbaddons.com

Odnośnik do komentarza
Udostępnij na innych stronach

<div class="left padRight">{$forum_data['last_poster_extended']['avatar_html']}</div>

  • Lubię to 2

Nasz kolega już siedział za piracką wersję IPB, Ty też możesz
† Będziemy bronić SB po kres naszych sił †
Nie ma bolca na izolca!!!
Tłumaczes Power

Odnośnik do komentarza
Udostępnij na innych stronach

Automatyczna wiadomość

Ten temat został przeniesiony z forum:

"Invision Power Board -> Invision Power Board 3.2 -> Ogólny support IPB"

do:

"Invision Power Board -> Invision Power Board 3.2 -> Skiny - pomoc"

Nasz kolega już siedział za piracką wersję IPB, Ty też możesz
† Będziemy bronić SB po kres naszych sił †
Nie ma bolca na izolca!!!
Tłumaczes Power

Odnośnik do komentarza
Udostępnij na innych stronach

Problem ROZWIĄZANY. Jeśli są jakiekolwiek wątpliwości, pytania proszę o założenie nowego tematu.

Wszelkie uzasadnione reklamacje/pretensje/sugestie/rady przyjmuje ekipa forum.

Nasz kolega już siedział za piracką wersję IPB, Ty też możesz
† Będziemy bronić SB po kres naszych sił †
Nie ma bolca na izolca!!!
Tłumaczes Power

Odnośnik do komentarza
Udostępnij na innych stronach

Dobra uzupełniam inny szablon tak :

<td width="25%">
										<ul class='last_post'>
<div class="left padRight">{$forum_data['last_poster_extended']['avatar_html']}</div>
											<if test="hideLastInfo:|:$forum_data['hide_last_info']">
												<li>{$this->lang->words['f_protected']}</li>
											<else />
												<li><strong>{$forum_data['last_topic_title']}</strong></li>
												<li><div class="smalltext"><if test="hideDateUrl:|:$forum_data['_hide_last_date']">
													{parse date="$forum_data['last_post']" format="LONG"}
												<else />
													<a href='{parse url="showtopic={$forum_data['last_id']}&view=getlastpost" base="public" template="showtopic" seotitle="{$forum_data['seo_last_title']}"}' title='{$this->lang->words['view_last_post']}'>{parse date="$forum_data['last_post']" format="LONG"}</a>
												</if>
													{$this->lang->words['by']}
													<if test="lastPosterName:|:isset($forum_data['last_poster_name']) AND $forum_data['last_poster_name']">
														<if test="lastPosterID:|:$forum_data['last_poster_id']">
															<a href='{parse url="showuser={$forum_data['last_poster_id']}" template="showuser" seotitle="{$forum_data['seo_last_name']}" base="public"}' title='{$this->lang->words['view_profile']}'>{$forum_data['last_poster_name']}</a>{parse template="user_popup" group="global" params="$forum_data['last_poster_id'], $forum_data['seo_last_name']"}
														<else />
															{$this->settings['guest_name_pre']}{$forum_data['last_poster_name']}{$this->settings['guest_name_suf']}
														</if>
													<else />
														{$this->lang->words['f_none']}
													</if>

													<div class="stats_arrow"><a href='{parse url="showtopic={$forum_data['last_id']}&view=getlastpost" base="public" template="showtopic" seotitle="{$forum_data['seo_last_title']}"}' title='{$this->lang->words['view_last_post']}'>{parse replacement="f_lastpost"}</a></div>
												</div></li>
											</if>
										</ul>
									</td>

Coś nie tak ? bo nie działa :P

Edytowane przez Adam22

ipbaddons.com

Odnośnik do komentarza
Udostępnij na innych stronach

Olivier zrobił to z użyciem własnego kodu. Nie wiem czy takie klejenie skinów jest legalne, ale spróbuj.

Na początku bita dodaj:

<php>
if( !class_exists('Skinbox') )
require_once IPS_PUBLIC_PATH . '/style_images/' . $this->registry->getClass('output')->skin['set_image_dir'] . '/_php/loader.php';

Skinbox::avatars()->in_forums($cat_data);
</php>

Plik /_php/loader.php przekopiuj z folderu grafik pierwszego skina do drugiego.

Nasz kolega już siedział za piracką wersję IPB, Ty też możesz
† Będziemy bronić SB po kres naszych sił †
Nie ma bolca na izolca!!!
Tłumaczes Power

Odnośnik do komentarza
Udostępnij na innych stronach

Forum robi się niewymiarowe, i błąd

Warning: parse_ini_file(/public/style_images/skin11/_php/Skinbox/../../_config/features.ini) [function.parse-ini-file]: failed to open stream: No such file or directory in /public/style_images/skin11/_php/Skinbox/Base.php on line 4

Nie podejrzewałem że to takie skomplikowane :D

Edytowane przez Adam22

ipbaddons.com

Odnośnik do komentarza
Udostępnij na innych stronach

  • 2 tygodnie później...

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.