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

Здравствуйте.

Помогите решить проблему панелью пользователя в личных сообщениях, вот код из showConversation :

 

<if test="disablelightbox:|:!$this->settings['disable_lightbox']">
{parse template="include_lightbox" group="global" params=""}
</if>
{parse template="include_highlighter" group="global" params="1"}
{parse js_module="topic"}
<script type="text/javascript">
//<![CDATA[
	ipb.topic.inSection = 'messenger';
//]]>
</script>
<div id='conversation'>
<div class='topic_controls clearfix'>
	{$topic['_pages']}
	<ul class='topic_buttons'>
		<li><a href='{parse url="module=messaging&amp;section=send&amp;do=form" base="publicWithApp"}' title='{$this->lang->words['go_to_compose']}'>{$this->lang->words['compose_new']}</a></li>
 		<li class='important'><a id='pm_delete_t_{$topic['mt_id']}' href='{parse url="module=messaging&amp;section=view&amp;do=deleteConversation&amp;topicID={$topic['mt_id']}&amp;authKey={$this->member->form_hash}" base="publicWithApp"}'>{$this->lang->words['option__delete']}</a></li>
	</ul>
	<script type='text/javascript'>
		$('pm_delete_t_{$topic['mt_id']}').observe('click', ipb.messenger.deletePM.bindAsEventListener( this, {$topic['mt_id']} ) );
	</script>
</div>
<h2 class='maintitle'>{$topic['mt_title']}</h2>
<div class='ipsBox'>

	<div class='ipsBox_container'>
		<foreach loop="replies:$replies as $msg_id => $msg">
			<a id='msg{$msg['msg_id']}'></a>
			<div class='post_block first hentry' id='post_id_{$msg['msg_id']}'>
				<div class='post_wrap'>
					<if test="hasAuthorId:|:$members[ $msg['msg_author_id'] ]['member_id']">
						<h3 class='row2'>
					<else />
						<h3 class='guest row2'>
					</if>
							<if test="authorOnline:|:$members[ $msg['msg_author_id'] ]['member_id']">
								<span class="author vcard">{parse template="userHoverCard" group="global" params="$members[ $msg['msg_author_id'] ]"}</span>
							<else />
								{$members[ $msg['msg_author_id'] ]['members_display_name']}
							</if>
							<if test="authorIpAddress:|:$msg['_ip_address'] != ''">
								<span class='ip right ipsType_small'>({$this->lang->words['ip']}:
								<if test="authorPrivateIp:|:$members[ $msg['msg_author_id'] ]['g_access_cp']">
									<em>{$this->lang->words['ip_private']}</em>
								<else />
									<if test="accessModCP:|:$this->memberData['g_is_supmod']"><a href="{parse url="app=core&amp;module=modcp&amp;fromapp=members&amp;tab=iplookup&amp;ip={$msg['_ip_address']}" base="public"}" title='{$this->lang->words['find_info_about_ip']}'>{$msg['_ip_address']}</a><else />{$msg['_ip_address']}</if>
								</if>
								)</span>
							</if>
						</h3>
<div class="ipsBox_containerss clearfix">
					<div class='author_info'>
						{parse template="userInfoPane" group="global" params="$members[ $msg['msg_author_id'] ], $msg_id, array()"}
					</div>
</div>

					<div style="margin-left: 0px !important;" class='post_block post_body'>
						<p class='posted_info'>{$this->lang->words['pc_sent']} {parse date="$msg['msg_date']" format="long"}</p>
						<div class='post entry-content'>
							{$msg['msg_post']}
							{$msg['attachmentHtml']}
						</div>
						<if test="viewSigs:|:$this->memberData['view_sigs'] AND $members[ $msg['msg_author_id'] ]['signature']">
							{parse template="signature_separator" group="global" params="$members[ $msg['msg_author_id'] ]['signature'], $msg['msg_author_id'], IPSMember::isIgnorable( $members[ $msg['msg_author_id'] ]['member_group_id'], $members[ $msg['msg_author_id'] ]['mgroup_others'] )"}
						</if>
						<ul class='post_controls clearfix clear'>
							<if test="quickReply:|:$topic['_canReply'] AND empty( $topic['_everyoneElseHasLeft'] )">
								<li>
									<a class='ipsButton_secondary' href="{parse url="module=messaging&amp;section=send&amp;do=replyForm&amp;topicID={$topic['mt_id']}&amp;msgID={$msg['msg_id']}" base="publicWithApp"}" title="{$this->lang->words['tt_reply_to_post']}">{$this->lang->words['pc_reply']}</a>
								</li>
							</if>
							<if test="reportPm:|:$topic['_canReport'] and $this->memberData['member_id']">
								<li class='report'>
									<a href='{parse url="app=core&amp;module=reports&amp;rcom=messages&amp;topicID={$this->request['topicID']}&amp;st={$this->request['st']}&amp;msg={$msg['msg_id']}" base="public"}'>{$this->lang->words['pc_report']}</a>
								</li>
							</if>
							<if test="canEdit:|:$msg['_canEdit'] === TRUE">
								<li class='post_edit' id='edit_post_{$msg['msg_id']}'>
									<a href='{parse url="module=messaging&amp;section=send&amp;do=editMessage&amp;topicID={$topic['mt_id']}&amp;msgID={$msg['msg_id']}" base="publicWithApp"}' title='{$this->lang->words['edit_this_post']}'>{$this->lang->words['pc_edit']}</a>
								</li>
							</if>
							<if test="canDelete:|:$msg['_canDelete'] === TRUE && $msg['msg_is_first_post'] != 1">
								<li class='post_del' id='del_post_{$msg['msg_id']}'>
									<a href='{parse url="module=messaging&amp;section=send&amp;do=deleteReply&amp;topicID={$topic['mt_id']}&amp;msgID={$msg['msg_id']}&amp;authKey={$this->member->form_hash}" base="publicWithApp"}' title='{$this->lang->words['delete_this_post']}' class='delete_post'>{$this->lang->words['pc_delete']}</a>
								</li>
							</if>
						</ul>
					</div>
				</div>
			</div>
		</foreach>
	</div>
</div>
<br />
<div class='topic_controls clear'>
	{$topic['_pages']}
	<ul class='topic_buttons'>
 		<li class='non_button'><a id='email_convo_{$this->request['topicID']}' data-tooltip='{parse expression="sprintf( $this->lang->words['msg_email_convo_text'], $this->memberData['email'])"}' href='#' class='email_convo'>{$this->lang->words['msg_email_convo']}</a></li>
	</ul>
</div>
<br />
<if test="allAlone:|: ! empty( $topic['_everyoneElseHasLeft'] )">
<div class='ipsBox'>

	<div class='ipsBox_container ipsPad'>
		<h1 class='ipsType_subtitle'>{$this->lang->words['msg_all_alone_title']}</h1>
		<p>{$this->lang->words['msg_all_alone_desc']}</p>
	</div>
</div>
<else />
	<if test="canReplyEditor:|:$topic['_canReply']">
	<div class='ipsBox'>

		<div class='ipsBox_container ipsPad'>
			<h1 class='ipsType_subtitle'>{$this->lang->words['pc_fast_reply']}</h1>
			<br />
			<a href="{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}" title='{$this->lang->words['your_profile']}' class='ipsUserPhotoLink left'><img src='{$this->memberData['pp_small_photo']}' alt="{parse expression="sprintf($this->lang->words['users_photo'],$this->memberData['members_display_name'])"}" class='ipsUserPhoto ipsUserPhoto_medium' /></a>
			<div class='ipsBox_withphoto clearfix'>
				<form action='{parse url="app=members&amp;module=messaging&amp;section=send&amp;do=sendReply&amp;topicID={$topic['mt_id']}" base="public"}' method='post'>
					<input type="hidden" name="authKey" value="{$this->member->form_hash}" />
					<input type="hidden" name="fast_reply_used" value="1" />
					<input type="hidden" name="enableemo" value="yes" />
					<input type="hidden" name="enablesig" value="yes" />
					{parse editor="msgContent" options="array( 'type' => 'full', 'minimize' => 1 )"}
					<br />
					<fieldset class='right'>
						<input type='submit' name="submit" class='input_submit' value='{$this->lang->words['pc_post_button']}' accesskey='s' />&nbsp;&nbsp;<input type='submit' name="previewReply" class='input_submit alt' value='{$this->lang->words['pc_use_full_reply']}' />
					</fieldset>
				</form>
			</div>
		</div>
	</div>
	</if>
</if>
</div>
{parse template="include_highlighter" group="global" params=""}

 

Скрин:

post-10582-0-85787800-1413567984_thumb.p

 

Заранее спасибо!

Edited by nrj45

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.