Posted 17 октября, 201410 yr comment_72662 Здравствуйте. Помогите решить проблему панелью пользователя в личных сообщениях, вот код из 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&section=send&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&section=view&do=deleteConversation&topicID={$topic['mt_id']}&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&module=modcp&fromapp=members&tab=iplookup&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&section=send&do=replyForm&topicID={$topic['mt_id']}&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&module=reports&rcom=messages&topicID={$this->request['topicID']}&st={$this->request['st']}&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&section=send&do=editMessage&topicID={$topic['mt_id']}&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&section=send&do=deleteReply&topicID={$topic['mt_id']}&msgID={$msg['msg_id']}&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&module=messaging&section=send&do=sendReply&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' /> <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=""} Скрин: Заранее спасибо! Edited 17 октября, 201410 yr 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.