Jump to content

ID темы в шаблоне postContainer

Featured Replies

comment_111995

Вот вам информация из плагина MTM_Post_Counter:

/* !Hook Data - DO NOT REMOVE */
public static function hookData() {
 return array_merge_recursive( array (
  'post' => 
  array (
    0 => 
    array (
      'selector' => 'div.ipsComment_meta p.ipsType_reset:nth-child(2)',
      'type' => 'add_inside_start',
      'content' => '<span class="ipsPos_right">
	ID: {{$_REQUEST[ $item->tid . \'_counter\' ] = ( isset( $_REQUEST[ $item->tid . \'_counter\' ] ) ? $_REQUEST[ $item->tid . \'_counter\' ] : ( isset( \IPS\Request::i()->page ) ? ( \IPS\Request::i()->page - 1) * $item::getCommentsPerPage() : 0));}}<a href="{$comment->url()}">{expression="++$_REQUEST[ $item->tid . \'_counter\' ]"}</a>   
</span>',
    ),
  ),
), parent::hookData() );
}
/* End Hook Data */

 

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.