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

Добавление кода кнопки с упоминанием пользователя в посты

Recommended Posts

Возможно ли добавить код кнопки упоминания (от плагина Click to Mention), в нужное место в пост пользователя? 

Вот код самой кнопки:

{{if \IPS\Member::loggedIn()->canMention( $member )}}
	{{if $inList}}<li>{{endif}}
		<a href="#" data-action="mentionMember" data-member-id="{$member->member_id}" data-member-name="{$member->name}" data-member-link="{$member->url()}" data-member-hoverlink="{$member->url()->setQueryString( 'do', 'hovercard' )}">
			{{if $title}}{lang="{$title}"}{{else}}{$member->name}{{endif}}
		</a>
	{{if $inList}}</li>{{endif}}
{{endif}}

 

Вставлял в forums/front/topics/post, но получал ошибку: [[Template forums/front/topics/post is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

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...