Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Андрей Волков

Расположение "Событий календаря" и "ДР"

Recommended Posts

Подскажите пожалуйста, как изменить последовательность чередования блоков нижней части главной страницы (статистике)? А именно первым отображать "Дни рождения" потом "События Календаря" и в конце "Посетителей". Спасибо.

Share this post


Link to post
Share on other sites

Look & Feel > Manage Skin Sets & Templates > Manage Templates in IP.Board

Board Index > boardIndexTemplate

<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'>{$stats['MEMBERS']} {$this->lang->words['members']}, {$stats['GUESTS']} {$this->lang->words['guests']}, {$stats['ANON']} {$this->lang->words['anon_users']} | {$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>

 

Эти блоки идут подряд в коде. Переставляем их как хотим.

Share this post


Link to post
Share on other sites

ipb_styles.css

 

Класс .stats_list правьте, если скин дефолтный (или типа того).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...