Лишние кнопки "добавить в друзья", "отправить сообщение"
Рекомендованные сообщения
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу.
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Приветствую, Эксперты!
Не получается убрать то, что в чёрном квадрате прямоугольнике.
Искал в этих php файлах не нашел тег "friends" (я смотрел в исходнике, по идее он так называется :unsure: )
1-ый
<?php class frq_global { public $registry; public function __construct() { $this->registry = ipsRegistry::instance(); $this->settings =& $this->registry->fetchSettings(); } public function getOutput() { if($this->settings['frq_on'] != "1") return ""; $toggle_code_uf = ($this->settings['frq_toggle'] == 'none') ? "$('frq_uf_'+id).toggle()" : "Effect.toggle('frq_uf_'+id,'{$this->settings['frq_toggle']}')"; $toggle_code_wp = ($this->settings['frq_toggle'] == 'none') ? "$('frq_wp_'+id).toggle()" : "Effect.toggle('frq_wp_'+id,'{$this->settings['frq_toggle']}')"; return <<<HTML <script type='text/javascript'> var frq_hide_warn = {$this->settings['frq_hide_warn']}; var frq_hide_fields = {$this->settings['frq_hide_fields']}; function frq_toggle(id) { if(frq_hide_fields == 1) {$toggle_code_uf}; if(frq_hide_warn == 1 && $('frq_wp_'+id)) {$toggle_code_wp}; } function frq_put_to_editor(string){ if( !in_use ) { if( $('fast-reply_toolbar_1') ){ $('fast-reply_toolbar_1').show(); } if( $('fast-reply_toolbar_2') ){ $('fast-reply_toolbar_2').show(); } $('fast-reply_textarea').removeClassName('unloaded_editor').value = ''; ipb.editors[ 'fast-reply' ] = new ipb.editor( 'fast-reply', USE_RTE ); $( ipb.editors['fast-reply'] ).resize_to( 250 ); in_use = 1; } if(USE_RTE) { var text = ipb.editors[ 'fast-reply' ].editor_get_contents(); if(text == "\\n<br\\n") ipb.editors[ 'fast-reply' ].editor_set_content(string); else ipb.editors[ 'fast-reply' ].editor_set_content(text + '<br />' + string); } else document.getElementById("fast-reply_textarea").value += string; } function frq_nick(nick) { frq_put_to_editor('[b][member="'+nick+'"][/b], '); } function frq_quote(nick, pid) { txt = ''; if (window.getSelection) txt = window.getSelection().toString(); else if (document.getSelection) txt = document.getSelection(); else if (document.selection) txt = document.selection.createRange().text; if(txt == '') { items = $$('#post_id_'+pid+' div'); for (var i = 0; i < items.size(); i++) { if(items[i].hasClassName('entry-content')) { if (window.getSelection) { var range = document.createRange(); range.selectNode(items[i]); window.getSelection().addRange(range); txt = window.getSelection().toString(); } else if (document.getSelection) { var range = document.createRange(); range.selectNode(items[i]); document.getSelection().addRange(range); txt = document.getSelection(); } else if (document.selection) { var range = document.body.createTextRange(); range.moveToElementText(items[i]); range.select(); txt = document.getSelection(); } } } } if(USE_RTE) code = "[quote name='"+nick+"' post='"+pid+"']<br />"+txt+"<br />[/quote]<br />"; else code = "[quote name='"+nick+"' post='"+pid+"']\\n"+txt+"\\n[/quote]\\n"; frq_put_to_editor(code); sel = false; if (document.selection && document.selection.empty) document.selection.empty(); if (window.getSelection) sel = window.getSelection(); if (document.getSelection) sel = document.getSelection(); if(sel && sel.removeAllRanges) sel.removeAllRanges(); } </script> HTML; } }2-ой
class frq extends pinAwardsProMiniProfileCab { function userInfoPane($author, $contentid, $options) { $code = parent::userInfoPane($author, $contentid, $options); if($this->settings['frq_on'] != "1" || ipsRegistry::$current_application != 'forums' || !$author['member_id']) return $code; $safe_name = str_replace('"', '\"', $author['members_display_name']); $quote_args = '"'.$safe_name.'","'.$contentid.'"'; $anchors = array( '1' => (intval($this->settings['frq_anchors']) > 0) ? "#editor_fast-reply" : "javascript:void(0);", '2' => (intval($this->settings['frq_anchors']) > 0) ? "#editor_fast-reply" : "javascript:void(0);", '3' => (intval($this->settings['frq_anchors']) > 1) ? "#entry{$contentid}" : "javascript:void(0);", ); $buttons = ($this->settings['frq_on_nick'] == "1") ? "<li><a href='{$anchors[1]}' title='{$this->settings['frq_alt_nick']}' class='frq_nick' onclick='frq_nick(\"{$safe_name}\")' ><img alt='{$this->settings['frq_alt_nick']}' src='{$this->settings['img_url']}/{$this->settings['frq_icon_nick']}' ></a></li>" : ""; $buttons .= ($this->settings['frq_on_quote'] == "1") ? "<li><a href='{$anchors[2]}' title='{$this->settings['frq_alt_quote']}' class='frq_quote' onclick='frq_quote({$quote_args})' ><img alt='{$this->settings['frq_alt_quote']}' src='{$this->settings['img_url']}/{$this->settings['frq_icon_quote']}'></a></li>" : ""; $buttons .= ($this->settings['frq_on_info'] == "1") ? "<li><a href='{$anchors[3]}' title='{$this->settings['frq_alt_info']}' class='frq_info' onclick='frq_toggle({$contentid})'><img alt='{$this->settings['frq_alt_info']}' src='{$this->settings['img_url']}/{$this->settings['frq_icon_info']}' ></a></li>" : ""; $has_uc = false; $parts = explode("</ul>", $code); foreach($parts as $id => $subcode) { if(strpos($subcode, "user_controls") !== false) { $has_uc = true; $parts[$id] .= $buttons; } } $code = implode("</ul>", $parts); if(!$has_uc) $code = str_replace("<ul class='user_fields", "<ul class='user_controls clear'>{$buttons}</ul><ul class='user_fields", $code); $display = ($this->settings['frq_hide_fields'] == "1") ? "style='display:none;'" : ""; $code = str_replace("class='user_fields", "id='frq_uf_{$contentid}' {$display} class='user_fields", $code); $display = ($this->settings['frq_hide_warn'] == "1") ? "style='display:none;'" : ""; $code = str_replace("class='warn_panel", "id='frq_wp_{$contentid}' {$display} class='warn_panel", $code); return $code; } }