Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Название: (SOS34) Recent Topics 3.2.2

Добавил: Respected

Добавлен: 14 Янв 2013

Категория: Хуки, Модификации для IP.Board

Название по-русски : Последние темы

Версия IP.Board: 3.4.x

(SOS34) Recent Topics 3.2.2 - отображает блок с последними темами форума.

Совместим только с IP.Board 3.4.x

Для 3.3.x -

  • 1 месяц спустя...
  • 4 недели спустя...
  • 4 месяца спустя...

Подскажите пожалуйста как сделать чтобы при переходе на название темы сразу переходило к последнему сообщению ?

Edited by nrj45

  • 2 недели спустя...

у меня хук не хочет устанавливаться... 

Системная ошибка

[#1110] XML файл не загружен. Пожалуйста, попробуйте снова.

 

 

версия IPB 3.4.5

Edited by Vladlen4uk

  • 1 месяц спустя...
  • 8 месяцев спустя...

Я хук установил,но он не работает!

Заходил в настройки,все нормально!И при установке все нормально!

Но хук не отображается((

Может потому что у меня портал стоит?

Странно отрисовывается 

 

Старичёк Opera 12

post-10061-0-66447100-1402502874_thumb.p

Opera Next

post-10061-0-87973500-1402502889_thumb.p

 

И теперь пишет не "свернуть Последние сообщения", а ...

 

post-10061-0-93299000-1402503163.png


Код hookRecentTopics

<if test="recenttopics:|:is_array( $topics ) && count( $topics )">
<div class='ipsSideBlock clearfix'>
	<h3>{$this->lang->words['recently_added_topics']}</h3>
	<div class='_sbcollapsable'>
		<ul class='ipsList_withminiphoto'>
		<foreach loop="topics_hook:$topics as $r">
		<li class='clearfix'>
			{parse template="userSmallPhoto" group="global" params="$r"}
			<div class='list_content'>
				<strong><a href="{parse url="showtopic={$r['tid']}" base="public" template="showtopic" seotitle="{$r['title_seo']}"}" rel='bookmark' class='ipsType_small' title='{parse expression="strip_tags($r['topic_title'])"} {$this->lang->words['topic_started_on']} {parse date="$r['start_date']" format="LONG"}'>{$r['topic_title']}</a></strong>
				<p class='desc ipsType_smaller'>
					<if test="$r['members_display_name']">{parse template="userHoverCard" group="global" params="$r"}<else />{$this->settings['guest_name_pre']}{$r['starter_name']}{$this->settings['guest_name_suf']}</if>
					- {parse date="$r['start_date']" format="short"}
				</p>
			</div>
		</li>
		</foreach>
		</ul>
	</div>
</div>
</if>

Стиль 

h3.maintitle{ font-weight: bold; }

	.maintitle a {	color: #222; }
	
	.collapsed .maintitle {
		opacity: 0.2;
		-moz-border-radius: 4px;
		-webkit-border-radius: 4px;
		border-radius: 4px;
	}
	
	.collapsed .maintitle:hover { opacity: 0.4; }
	
	.maintitle .toggle { 
		visibility: hidden;
		background: url('{style_images_url}/cat_minimize.png') no-repeat;
		text-indent: -3000em;
		width: 32px; height: 22px;
		margin: -5px -5px -10px 0px;
		display: block;
		outline: 0;
	}
	
	.maintitle:hover .toggle { visibility: visible; }
	
	.collapsed .toggle {
		background-image: url('{style_images_url}/cat_maximize.png');
	}

hooksos_topicosrecentes_tema1

<script src="{$this->settings['public_dir']}js/ips.recentTopicsHook.js" type="text/javascript"></script>
<script src="{$this->settings['public_dir']}js/ips.forums.js" type="text/javascript"></script>
   <script type="text/javascript">
ipb.recentTopics.updateInterval = parseInt( {$this->settings['topicosrecentes_updateInterval']} );
<php>
  if ( $this->memberData['member_id'] AND $this->memberData['topicosrecentes_showdqtd'] )
  {
   $nr = $this->memberData['recenttopics_qtd'];
  }
  else
  {
   $nr = $this->settings['topicosrecentes_nr'];
  }
</php>
ipb.recentTopics.maxElements = parseInt( {$nr} );
ipb.recentTopics.img_disable    = parseInt({$this->settings['topicosrecentes_img_disable']});
</script>
<div id='recentTopicsWrapper' class='category_block block_wrap'>
<h3 class='maintitle'>
<span class="right"><ul class="ipsFilterbar ipsList_inline ipsType_small">
<if test="$this->memberData['member_id']"><li><a href="{parse url="app=core&amp;module=usercp&amp;tab=core&amp;area=recenttopics" base="public"}" rel="nofollow"><img src='{style_image_url}/cog.png' title='{$this->lang->words['recenttopics_settings']}' alt='+' /></a></li></if>
                 <a class='toggle right' href='#' title="{$this->lang->words['toggle_cat']}">
         {$this->lang->words['toggle_cat']}</a></ul>
                         </span>
{$this->settings['topicosrecentes_title']}</h3>
<div class='ipsBox table_wrap'>
  <div class='ipsBox_container'>
   <table class='ipb_table topic_list hover_rows'>
    <tr class='header hide'>
     <th scope='col' class='col_f_icon'>&nbsp;</th>
     <th scope='col' class='col_f_topic'>{$this->lang->words['forum_topic']}</th>
     <th scope='col' class='col_f_starter short'>{$this->lang->words['forum_started_by']}</th>
     <th scope='col' class='col_f_views stats'>{$this->lang->words['forum_stats']}</th>
     <th scope='col' class='col_f_post'>{$this->lang->words['forum_last_post_info']}</th>
    </tr>
   </table>
   <!-- BEGIN TOPICS -->
   <ul id='recentTopics_table'>
    <foreach loop="topicosrecentes_hook:$topics as $r">
     {parse template="hooksos_topicosrecentes_parseTopic" group="boards" params="$r"}
    </foreach>
   </ul>
  </div>
</div>
</div>
<br />

Я хук установил,но он не работает!

Заходил в настройки,все нормально!И при установке все нормально!

Но хук не отображается((

Может потому что у меня портал стоит?

:D вот я идиот!!!

В настройках не выставил группы,которым доступен хук!

Так что извиняюсь за 2 тупых сообщения :D

  • 2 недели спустя...

Подскажите пожалуйста, где надо исправить код, чтоб в авторе темы (Имя) отображались не только зарегистрированные пользователи, но и гости (если им разрешено создавать темы)? И имя гостя последнего сообщения тоже не отображается, только зарегистрированные пользователи.

 

Где-то здесь надо исправить:

<span class='desc lighter blend_links'>
					<php>$author = IPSMember::makeProfileLink(IPSMember::makeNameFormatted( $r['topic_data']['nome1'], $r['topic_data']['grupo1']), $r['topic_data']['starter_id']);</php>
					{parse expression="sprintf( $this->lang->words['topic_started_by'], $author )"} {parse date="$r['topic_data']['start_date']" format="DATE"}
					{$this->lang->words['in_last_topic']}
					<foreach loop="topicsForumTrail:$r['topic_data']['forumBreadcrumb'] as $i => $f">
						<a href='{parse url="{$f[1]}" template="showforum" seotitle="{$f[2]}" base="public"}'>{$f[0]}</a>&nbsp;<if test="notLastFt:|:$i+1 != count( $r['topic_data']['forumBreadcrumb'] )">{parse replacement="f_nav_sep"}</if>
					</foreach>
					<if test="hasTags:|:isset($r['topic_data']['tags']) AND $r['topic_data']['tags']">
						&nbsp; <img src='{$this->settings['img_url']}/icon_tag.png' /> {$r['topic_data']['tags']['formatted']['truncatedWithLinks']}
					</if>
				</span>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.