Опубликовано: 18 октября 200718 г Как то поднимал вопрос.Форумы модифицированы,одна из модификаций-круглая рамка(картинка) вокруг цитат.возможно ли её убрать?Если да,-подскажите как. Изменено 18 октября 200718 г пользователем RESULT
Опубликовано: 18 октября 200718 г Автор хочется обычные цитаты с человеческим лицом.без всяких круглых картинок.скорее всего можно перезакачать отдельные файлы.
Опубликовано: 18 октября 200718 г Если ставили мод от Викера "Круглые цитаты", следует удалить все изменения, связанные с модом.Выполните инструкцию по установке мода наоборот.
Опубликовано: 18 октября 200718 г Автор Если ставили мод от Викера "Круглые цитаты", следует удалить все изменения, связанные с модом.Выполните инструкцию по установке мода наоборот. ставил не я,не знаю ставили этот мод или другой.но очень хочу исправить.
Опубликовано: 18 октября 200718 г Ну так изучите его и исправьте.Я этот мод тоже никогда не ставила и представления не имею, какие файлы редактируются, но в Вашем случае начала бы с чтения инструкции по его установке.
Опубликовано: 18 октября 200718 г Автор Ну так изучите его и исправьте.Я этот мод тоже никогда не ставила и представления не имею, какие файлы редактируются, но в Вашем случае начала бы с чтения инструкции по его установке. буду искать.в гуглях инфо совсем малё.
Опубликовано: 19 октября 200718 г Автор поищите в шаблоне renderrow(skin_topic) может там это все открыл,знаете что убрать? <!--Begin Msg Number {$post['pid']}--><table class='ipbtable' cellspacing="1"> <tr> <td valign="middle" class="row2" width="1%"><a name="entry{$post['pid']}"></a><span class="{$post['name_css']}">{$author['members_display_name']}</span></td> <td class="row2" valign="top" width="99%"> <!-- POSTED DATE DIV --> <div style="float: left;"> <span class="postdetails">{$post['post_icon']} <img src='{ipb.vars['img_url']}/to_post_off.gif' alt='{ipb.lang['to_post_alt']}' border='0' style='padding-bottom:2px' /> {$post['post_date']}</span> </div> <!-- REPORT / DELETE / EDIT / QUOTE DIV --> <div align="right"> <span class="postdetails">{$post['ip_address']} {ipb.lang['posted_on']} <a title="{ipb.lang['tt_link']}" href="#" onclick="link_to_post({$post['pid']}); return false;">#{$post['post_count']}</a><if="ipb.member['is_mod']">| <a href="#" title="{ipb.lang['click_for_mod']}" onclick="topic_toggle_pid('{$post['pid']}'); return false;">{$post['pid_start_image']}</a></if> </span> </div> </td> </tr> <tr> <td valign="top" class="{$post['post_css']}"> <span class="postdetails"> {$author['avatar']}<br /><br /> {$author['title']}<br /> {$author['member_rank_img']}<br /><br /> {$author['member_group']}<br /> {$author['member_posts']}<br /> {$author['member_joined']}<br /> {$author['member_location']} {$author['member_number']}<br /><if="author['custom_fields'] != """>{$author['custom_fields']}</if> <br /> {$author['warn_text']} {$author['warn_minus']}{$author['warn_img']}{$author['warn_add']} </span><br /> <img src="{ipb.vars['img_url']}/spacer.gif" alt="" width="160" height="1" /><br /> </td> <td width="100%" valign="top" class="{$post['post_css']}" id='post-main-{$post['pid']}'> <!-- THE POST {$post['pid']} --> <div class="postcolor" id='post-{$post['pid']}'>{$post['post']}</div> <!--IBF.ATTACHMENT_{$post['pid']}--> {$post['signature']} <!-- THE POST --> </td> </tr> <tr> <td class="formbuttonrow" nowrap="nowrap"> <div style='text-align:left'>{$author['online_status_indicator']}{$author['addresscard']}{$author['message_icon']}<!--{$author['email_icon']}--></div> </td> <td class="formbuttonrow" nowrap="nowrap"> <!-- PM / EMAIL / WWW / MSGR --> <div style="float: left;"> {$post['report_link']}<a href="java script:scroll(0,0);"><{P_UP}></a> </div> <!-- REPORT / UP --> <div align="right"> {$post['delete_button']}{$post['edit_button']}<a href="#" onclick="multiquote_add({$post['pid']}); return false;" title="{ipb.lang['mq_title']}">{$post['mq_start_image']}</a><a href="{ipb.script_url}act=Post&CODE=02&f={ipb.input[f]}&t={ipb.input[t]}&qpid={$post['pid']}" title="{ipb.lang['tt_reply_to_post']}"><{P_QUOTE}></a> </div> </td> </tr><tr> <td class="catend" colspan="2"> <!-- no content --> </td></tr></table><script type='text/javascript'>//<![CDATA[if ( ajax_loaded && use_enhanced_js ){menu_build_menu( 'edit-but-{$post['pid']}', new Array( img_item + " <a title='{ipb.lang['edit_full_desc']}' href='{ipb.script_url}act=post&do=edit_post&f={$post['forum_id']}&t={$post['topic_id']}&p={$post['pid']}&st={ipb.input['st']}'>{ipb.lang['edit_full_title']}</a>", img_item + " <a href='#' title='{ipb.lang['edit_quick_desc']}' onclick='return ajax_prep_for_edit({$post['pid']}, event);'>{ipb.lang['edit_quick_title']}</a>" ) );}//]]></script>
Опубликовано: 19 октября 200718 г тогда ошибся. В css классы quotetop и qoutemainи еще вроде цитаты могут прописываться в файле /sources/classes/cbbcode/class_bbcode_core.php
Опубликовано: 19 октября 200718 г Насколько мне известно, при установке мода в скине добавляются классы только в css, а так за отображение цитат отвечают какие-то файлы форума.Знаю потому, что у одного клиента мод был установлен, так в скин добавили только параметры уголков в css и никаких renderrow не правили.На айбиресурсе нужно скачать мод и посмотреть, какие файлы форума задействованы.
Опубликовано: 19 октября 200718 г Автор тогда ошибся. В css классы quotetop и qoutemainи еще вроде цитаты могут прописываться в файле /sources/classes/cbbcode/class_bbcode_core.php сходил,нашёл файл /sources/classes/cbbcode/class_bbcode_core.php если знаете что удалить напишите. * BBCode Parsing: Core class** This child class contains all methods* specific to the new parsing methods** @package InvisionPowerBoard* @subpackage BBCodeParser* @author Matt Mecham* @version 2.1* @since 2.1.0*//****//*** BBCode Parsing: Core class** This child class contains all methods* specific to the new parsing methods** @package InvisionPowerBoard* @subpackage BBCodeParser* @author Matt Mecham* @version 2.1* @since 2.1.0*/class class_bbcode extends class_bbcode_core{ /*-------------------------------------------------------------------------*/ // CONSTRUCTOR /*-------------------------------------------------------------------------*/ function class_bbcode( ) { } /*-------------------------------------------------------------------------*/ // Manage the raw text before inserting into the DB /*-------------------------------------------------------------------------*/ /** * Manage the raw text before inserting into the DB * * @param string Raw text * @return string Converted text */ function pre_db_parse( $txt="" ) { //----------------------------------------- // Reset //----------------------------------------- $this->quote_open = 0; $this->quote_closed = 0; $this->quote_error = 0; $this->error = ''; $this->image_count = 0; $this->emoticon_count = 0; //----------------------------------------- // Remove session id's from any post //----------------------------------------- $txt = preg_replace( "#(\?|&|;|&)s=([0-9a-zA-Z]){32}(&|;|&|$)?#e", "\$this->regex_bash_session('\\1', '\\3')", $txt ); //----------------------------------------- // convert <br> to \n //----------------------------------------- if( ! $this->parse_nl2br ) { $txt = str_replace( "\n", "", $txt ); } $txt = preg_replace( "/<br>|<br \/>/", "\n", $txt ); # XSS Clean /*if( $this->strip_hex_entity ) { while( preg_match( "/[&|&\;]#x(\w+?);/i", $txt ) ) { $txt = preg_replace( "/[&|&\;]#x(\w+?);/ies" , "\$this->regex_bash_hex( '\\1' )" , $txt ); } $txt = preg_replace( "#&(?!\:unsure:#", "", $txt ); }*/ $txt = preg_replace( "#javascript\:#is" , "java script:", $txt ); $txt = preg_replace( "#vb script:", $txt ); $txt = str_replace( "`" , "`" , $txt ); $txt = preg_replace( "#moz-binding:#is" , "moz binding:", $txt ); $txt = str_replace( "<script" , "<script" , $txt ); //----------------------------------------- // Are we parsing bbcode? //----------------------------------------- if ( $this->parse_bbcode ) { /*------------>Hidden text starts<---->©Vic'er<------------*/ $txt = preg_replace( "#\[hide\](.+?)\[/hide\]#ies", "\$this->regex_hide_tag('\\1')", $txt ); /*------------>Hidden text ends<------>©Vic'er<------------*/ //----------------------------------------- // Do [code] tag //----------------------------------------- $txt = preg_replace( "#\[code\](.+?)\[/code\]#ies", "\$this->regex_code_tag( '\\1' )", $txt ); //----------------------------------------- // Do [QUOTE(name,date)] tags //----------------------------------------- $txt = preg_replace( "#(\[quote(.+?)?\].*\[/quote\])#ies" , "\$this->regex_parse_quotes('\\1')" , $txt ); // Quote changes \n to br $txt = preg_replace( "/<br>|<br \/>/", "\n", $txt ); //----------------------------------------- // Auto parse URLs //----------------------------------------- $txt = preg_replace( "#(^|\s|>)((http|https|news|ftp)://\w+[^\s\[\]\<]+)#ie" , "\$this->regex_build_url(array('html' => '\\2', 'show' => '\\2', 'st' => '\\1'))", $txt ); /*-------------------------------------------------------------------------*/ // If we are not parsing a siggie, lets have a bash // at the [PHP] [SQL] and [HTML] tags. /*-------------------------------------------------------------------------*/ $txt = preg_replace( "#\[sql\](.+?)\[/sql\]#ies" , "\$this->regex_sql_tag('\\1')" , $txt ); $txt = preg_replace( "#\[html\](.+?)\[/html\]#ies" , "\$this->regex_html_tag('\\1')" , $txt ); //----------------------------------------- // left, right, center //----------------------------------------- $txt = preg_replace( "#\[(left|right|center)\](.+?)\[/\\1\]#is" , "<div align=\"\\1\">\\2</div>", $txt ); //----------------------------------------- // Indent => Block quote //----------------------------------------- while( preg_match( "#\[indent\](.+?)\[/indent\]#is" , $txt ) ) { $txt = preg_replace( "#\[indent\](.+?)\[/indent\]#is" , "<blockquote>\\1</blockquote>", $txt ); } //----------------------------------------- // [LIST] [*] [/LIST] //----------------------------------------- while( preg_match( "#\n?\[list\](.+?)\[/list\]\n?#ies" , $txt ) ) { $txt = preg_replace( "#\n?\[list\](.+?)\[/list\]\n?#ies", "\$this->regex_list('\\1')" , $txt ); } while( preg_match( "#\n?\[list=(a|A|i|I|1)\](.+?)\[/list\]\n?#ies" , $txt ) ) { $txt = preg_replace( "#\n?\[list=(a|A|i|I|1)\](.+?)\[/list\]\n?#ies", "\$this->regex_list('\\2','\\1')" , $txt ); } //----------------------------------------- // Do [IMG] [FLASH] tags //----------------------------------------- if ( $this->ipsclass->vars['allow_images'] ) { //image aling="left" or right, [IMG=left] $txt = preg_replace( "#\[img=(right|left)\](.+?)\[/img\]#ie" , "\$this->regex_check_image('\\2','\\1')" , $txt ); //end mod $txt = preg_replace( "#\[img\](.+?)\[/img\]#ie" , "\$this->regex_check_image('\\1')" , $txt ); $txt = preg_replace( "#(\[flash=)(\S+?)(\,)(\S+?)(\])(\S+?)(\[\/flash\])#ie", "\$this->regex_check_flash('\\2','\\4','\\6')", $txt ); } //----------------------------------------- // Start off with the easy stuff //----------------------------------------- $txt = preg_replace( "#\[b\](.+?)\[/b\]#is", "<b>\\1</b>", $txt ); $txt = preg_replace( "#\[i\](.+?)\[/i\]#is", "<i>\\1</i>", $txt ); $txt = preg_replace( "#\[u\](.+?)\[/u\]#is", "<u>\\1</u>", $txt ); $txt = preg_replace( "#\[s\](.+?)\[/s\]#is", "<strike>\\1</strike>", $txt ); //----------------------------------------- // (c) (r) and (tm) //----------------------------------------- $txt = preg_replace( "#\(c\)#i" , "©" , $txt ); $txt = preg_replace( "#\(tm\)#i" , "™" , $txt ); $txt = preg_replace( "#\(r\)#i" , "®" , $txt ); //----------------------------------------- // [email]matt@index.com[/email] // [email=matt@index.com]Email me[/email] //----------------------------------------- $txt = preg_replace( "#\[email\](\S+?)\[/email\]#i" , "<a href=\"mailto:\\1\">\\1</a>", $txt ); $txt = preg_replace( "#\[email\s*=\s*\"\;([\.\w\-]+\@[\.\w\-]+\.[\.\w\-]+)\s*\"\;\s*\](.*?)\[\/email\]#i" , "<a href=\"mailto:\\1\">\\2</a>", $txt ); $txt = preg_replace( "#\[email\s*=\s*([\.\w\-]+\@[\.\w\-]+\.[\w\-]+)\s*\](.*?)\[\/email\]#i" , "<a href=\"mailto:\\1\">\\2</a>", $txt ); //----------------------------------------- // [url]http://www.index.com[/url] // [url=http://www.index.com]ibforums![/url] //----------------------------------------- $txt = preg_replace( "#\[url\](\S+?)\[/url\]#ie" , "\$this->regex_build_url(array('html' => '\\1', 'show' => '\\1'))", $txt ); $txt = preg_replace( "#\[url\s*=\s*\"\;\s*(\S+?)\s*\"\;\s*\](.*?)\[\/url\]#ie" , "\$this->regex_build_url(array('html' => '\\1', 'show' => '\\2'))", $txt ); $txt = preg_replace( "#\[url\s*=\s*(\S+?)\s*\](.*?)\[\/url\]#ie" , "\$this->regex_build_url(array('html' => '\\1', 'show' => '\\2'))", $txt ); //----------------------------------------- // font size, colour and font style // [font=courier]Text here[/font] // [size=6]Text here[/size] // [color=red]Text here[/color] // [background=color]Text here[/background] //----------------------------------------- while ( preg_match( "#\[background=([^\]]+)\](.+?)\[/background\]#ies", $txt ) ) { $txt = preg_replace( "#\[background=([^\]]+)\](.+?)\[/background\]#ies", "\$this->regex_font_attr(array('s'=>'background','1'=>'\\1','2'=>'\\2'))", $txt ); } while ( preg_match( "#\[size=([^\]]+)\](.+?)\[/size\]#ies", $txt ) ) { $txt = preg_replace( "#\[size=([^\]]+)\](.+?)\[/size\]#ies" , "\$this->regex_font_attr(array('s'=>'size','1'=>'\\1','2'=>'\\2'))", $txt ); } while ( preg_match( "#\[font=([^\]]+)\](.+?)\[/font\]#ies", $txt ) ) { $txt = preg_replace( "#\[font=([^\]]+)\](.+?)\[/font\]#ies" , "\$this->regex_font_attr(array('s'=>'font','1'=>'\\1','2'=>'\\2'))", $txt ); } while( preg_match( "#\[color=([^\]]+)\](.+?)\[/color\]#ies", $txt ) ) { $txt = preg_replace( "#\[color=([^\]]+)\](.+?)\[/color\]#ies" , "\$this->regex_font_attr(array('s'=>'col' ,'1'=>'\\1','2'=>'\\2'))", $txt ); } } //----------------------------------------- // Swap \n back to <br> //----------------------------------------- $txt = preg_replace( "/\n/", "<br />", $txt ); //----------------------------------------- // Unicode? //----------------------------------------- if ( $this->allow_unicode ) { $txt = preg_replace("/([0-9]+);/s", "\\1;", $txt ); } //----------------------------------------- // Parse smilies (disallow smilies in siggies, or we'll have to query the DB for each post // and each signature when viewing a topic, not something that we really want to do. //----------------------------------------- if ( $this->parse_smilies ) { $txt = ' '.$txt.' '; usort( $this->ipsclass->cache['emoticons'] , array( 'class_bbcode_core', 'smilie_length_sort' ) ); if ( count( $this->ipsclass->cache['emoticons'] ) > 0 ) { foreach( $this->ipsclass->cache['emoticons'] as $a_id => $row) { if ( $row['emo_set'] != $this->ipsclass->skin['_emodir'] ) { continue; } $code = $row['typed']; $image = $row['image']; //----------------------------------------- // Make safe for regex //----------------------------------------- $code = preg_quote($code, "/"); $txt = preg_replace( "!(?<=[^\w&;/\"])$code(?=.\W|\"|\W.|\W$)!ei", "\$this->convert_emoticon('$code', '$image')", $txt ); } } $txt = trim($txt); if ( $this->ipsclass->vars['max_emos'] ) { if ($this->emoticon_count > $this->ipsclass->vars['max_emos']) { $this->error = 'too_many_emoticons'; } } } //----------------------------------------- // Badwords //----------------------------------------- $txt = $this->bad_words($txt); //----------------------------------------- // Check BBcode //----------------------------------------- $txt = $this->bbcode_check($txt); return $txt; } /*-------------------------------------------------------------------------*/ // This function processes the DB post before printing as output /*-------------------------------------------------------------------------*/ /** * This function processes the DB post before printing as output * * @param string Raw text * @return string Converted text */ function pre_display_parse($t="") { if ( $this->parse_html ) { $t = $this->post_db_parse_html( $t ); } else { //$t = $this->my_strip_tags( $t ); } if ( $this->parse_wordwrap > 0 ) { $t = $this->my_wordwrap( $t, $this->parse_wordwrap ); } //----------------------------------------- // Fix up <br /> in URLs //----------------------------------------- $t = preg_replace( "#(<a href=[\"'])(.+?)([\"'])#ise", "\$this->_clean_long_url('\\1', '\\2', '\\3')", $t ); //----------------------------------------- // Custom BB code //----------------------------------------- if ( strstr( $t, '[/' ) ) { $t = $this->post_db_parse_bbcode($t); } return $t; } /*-------------------------------------------------------------------------*/ // This function processes the text before showing for editing, etc /*-------------------------------------------------------------------------*/ /** * This function processes the text before showing for editing, etc * * @param string Raw text * @return string Converted text */ function pre_edit_parse($txt="") { //----------------------------------------- // Clean up BR tags //----------------------------------------- $txt = str_replace( "<br>" , "\n", $txt ); $txt = str_replace( "<br />", "\n", $txt ); # Make EMO_DIR safe so the ^> regex works $txt = str_replace( "<#EMO_DIR#>", "<#EMO_DIR>", $txt ); # New emo $txt = preg_replace( "#<([^>]+?)emoid=\"(.+?)\"([^>]+?)".">#is", "\\2", $txt ); # And convert it back again... $txt = str_replace( "<#EMO_DIR>", "<#EMO_DIR#>", $txt ); # Legacy $txt = preg_replace( "#<!--emo&(.+?)-->.+?<!--endemo-->#", "\\1" , $txt ); //----------------------------------------- // Clean up nbsp //----------------------------------------- $txt = str_replace( ' ', "\t", $txt ); $txt = str_replace( ' ' , " ", $txt ); if ( $this->parse_bbcode ) { //----------------------------------------- // SQL //----------------------------------------- $txt = preg_replace( "#<!--sql-->(.+?)<!--sql1-->(.+?)<!--sql2-->(.+?)<!--sql3-->#eis", "\$this->unconvert_sql(\"\\2\")", $txt); //----------------------------------------- // HTML //----------------------------------------- $txt = preg_replace( "#<!--html-->(.+?)<!--html1-->(.+?)<!--html2-->(.+?)<!--html3-->#ise", "\$this->unconvert_htm(\"\\2\")", $txt); //----------------------------------------- // Images / Flash //----------------------------------------- $txt = preg_replace( "#<!--Flash (.+?)-->.+?<!--End Flash-->#e", "\$this->unconvert_flash('\\1')", $txt ); //[IMG=left] $txt = preg_replace( "#<img style=[\"']float:(left|right)[\"'] .+? src=[\"'](\S+?)['\"].+?".">#" , "\[IMG=\\1\]\\2\[/IMG\]" , $txt ); //Image resize mod(add after "#<img" this simbols ".+?") $txt = preg_replace( "#<img .+? src=[\"'](\S+?)['\"].+?".">#" , "\[img\]\\1\[/img\]" , $txt ); //----------------------------------------- // Email, URLs //----------------------------------------- $txt = preg_replace( "#<a href=[\"']mailto:(.+?)['\"]>(.+?)</a>#" , "\[email=\\1\]\\2\[/email\]" , $txt ); $txt = preg_replace( "#<a href=[\"'](http://|https://|ftp://|news://)?(\S+?)['\"].+?".">(.+?)</a>#" , "\[url=\\1\\2\]\\3\[/url\]" , $txt ); /*------------>Hidden text starts<---->(c)Vic'er<------------*/ $txt = preg_replace("#<!--HideBegin-->(.+?)<!--HideEBegin-->#", '[HIDE]', $txt); $txt = preg_replace("#<!--HideEnd-->(.+?)<!--HideEEnd-->#", '[/HIDE]', $txt); $txt = preg_replace( "#(\[/HIDE\])\s*?<br>\s*#si", "\\1\n", $txt); /*------------>Hidden text ends<------>(c)Vic'er<------------*/ //----------------------------------------- // Quote //----------------------------------------- $txt = preg_replace( "#<!--QuoteBegin-->(.+?)<!--QuoteEBegin-->#is" , '[quote]' , $txt ); $txt = preg_replace( "#<!--QuoteBegin-{1,2}([^>]+?)\+([^>]+?)-->(.+?)<!--QuoteEBegin-->#is", "[quote=\\1,\\2]" , $txt ); $txt = preg_replace( "#<!--QuoteBegin-{1,2}([^>]+?)\+-->(.+?)<!--QuoteEBegin-->#is" , "[quote=\\1]" , $txt ); $txt = preg_replace( "#<!--QuoteEnd-->(.+?)<!--QuoteEEnd-->#is" , '[/quote]' , $txt ); //----------------------------------------- // New quote //----------------------------------------- $txt = preg_replace( "#<!--quoteo([^>]+?)?-->(.+?)<!--quotec-->#sie", "\$this->_parse_new_quote('\\1', '\\2' )" , $txt ); //----------------------------------------- // left, right, center //----------------------------------------- $txt = preg_replace( "#<div align=\"(left|right|center)\">(.+?)</div>#is" , "[\\1]\\2[/\\1]", $txt ); //----------------------------------------- // Ident => Block quote //----------------------------------------- while( preg_match( "#<blockquote>(.+?)</blockquote>#is" , $txt ) ) { $txt = preg_replace( "#<blockquote>(.+?)</blockquote>#is" , "[indent]\\1[/indent]", $txt ); } //----------------------------------------- // CODE //----------------------------------------- $txt = preg_replace( "#<!--c1-->(.+?)<!--ec1-->#", '[code]' , $txt ); $txt = preg_replace( "#<!--c2-->(.+?)<!--ec2-->#", '[/code]', $txt ); //----------------------------------------- // Easy peasy //----------------------------------------- $txt = preg_replace( "#<i>(.+?)</i>#is" , "\[i\]\\1\[/i\]" , $txt ); $txt = preg_replace( "#<b>(.+?)</b>#is" , "\[b\]\\1\[/b\]" , $txt ); $txt = preg_replace( "#<strike>(.+?)</strike>#is" , "\[s\]\\1\[/s\]" , $txt ); $txt = preg_replace( "#<u>(.+?)</u>#is" , "\[u\]\\1\[/u\]" , $txt ); //----------------------------------------- // List headache //----------------------------------------- $txt = preg_replace( "#(\n){0,}<ul>#" , "\\1\[list\]" , $txt ); $txt = preg_replace( "#(\n){0,}<ol type='(a|A|i|I|1)'>#" , "\\1\[list=\\2\]\n" , $txt ); $txt = preg_replace( "#(\n){0,}<li>#" , "\n\[*\]" , $txt ); $txt = preg_replace( "#(\n){0,}</ul>(\n){0,}#", "\n\[/list\]\\2" , $txt ); $txt = preg_replace( "#(\n){0,}</ol>(\n){0,}#", "\n\[/list\]\\2" , $txt ); //----------------------------------------- // Opening style attributes //----------------------------------------- $txt = preg_replace( "#<!--sizeo:(.+?)-->(.+?)<!--/sizeo-->#" , "[size=0]" , $txt ); $txt = preg_replace( "#<!--coloro:(.+?)-->(.+?)<!--/coloro-->#" , "[color=#092#0921]", $txt ); $txt = preg_replace( "#<!--fonto:(.+?)-->(.+?)<!--/fonto-->#" , "[font=#092#0921]" , $txt ); $txt = preg_replace( "#<!--backgroundo:(.+?)-->(.+?)<!--/backgroundo-->#" , "[background=#092#0921]" , $txt ); //----------------------------------------- // Closing style attributes //----------------------------------------- $txt = preg_replace( "#<!--sizec-->(.+?)<!--/sizec-->#" , "[/size]" , $txt ); $txt = preg_replace( "#<!--colorc-->(.+?)<!--/colorc-->#" , "[/color]", $txt ); $txt = preg_replace( "#<!--fontc-->(.+?)<!--/fontc-->#" , "[/font]" , $txt ); $txt = preg_replace( "#<!--backgroundc-->(.+?)<!--/backgroundc-->#", "[/background]" , $txt ); //----------------------------------------- // LEGACY SPAN TAGS //----------------------------------------- while ( preg_match( "#<span style=['\"]font-size:(.+?)pt;line-height:100%['\"]>(.+?)</span>#is", $txt ) ) { $txt = preg_replace( "#<span style=['\"]font-size:(.+?)pt;line-height:100%['\"]>(.+?)</span>#ise" , "\$this->unconvert_size('\\1', '\\2')", $txt ); } while ( preg_match( "#<span style=['\"]color:(.+?)['\"]>(.+?)</span>#is", $txt ) ) { $txt = preg_replace( "#<span style=['\"]color:(.+?)['\"]>(.+?)</span>#is" , "\[color=\\1\]\\2\[/color\]", $txt ); } while ( preg_match( "#<span style=['\"]font-family:(.+?)['\"]>(.+?)</span>#is", $txt ) ) { $txt = preg_replace( "#<span style=['\"]font-family:(.+?)['\"]>(.+?)</span>#is", "\[font=\\1\]\\2\[/font\]", $txt ); } while ( preg_match( "#<span style=['\"]background-color:(.+?)['\"]>(.+?)</span>#is", $txt ) ) { $txt = preg_replace( "#<span style=['\"]background-color:(.+?)['\"]>(.+?)</span>#is", "\[background=\\1\]\\2\[/font\]", $txt ); } # Legacy <strike> $txt = preg_replace( "#<s>(.+?)</s>#is" , "\[s\]\\1\[/s\]" , $txt ); //----------------------------------------- // Tidy up the end quote stuff //----------------------------------------- $txt = preg_replace( "#(\[/quote\])\s*?<br />\s*#si", "\\1\n", $txt ); $txt = preg_replace( "#(\[/quote\])\s*?<br>\s*#si" , "\\1\n", $txt ); $txt = preg_replace( "#<!--EDIT\|.+?\|.+?-->#" , "" , $txt ); $txt = str_replace( "</li>", "", $txt ); $txt = str_replace( "™", "", $txt ); } //----------------------------------------- // Parse html //----------------------------------------- if ( $this->parse_html ) { $txt = str_replace( "'", "'", $txt); } return trim(stripslashes($txt)); } /*-------------------------------------------------------------------------*/ // OVERWRITE DEFAULT: convert_emoticon: /*-------------------------------------------------------------------------*/ /** * Convert emoticons: New method * * @param string Emo code :) * @param string Emo Image URL * @return string Converted text */ function convert_emoticon($code="", $image="") { if ( ! $code or ! $image ) { return; } //----------------------------------------- // Remove slashes added by preg_quote //----------------------------------------- $code = stripslashes($code); $this->emoticon_count++; return "<img src=\"{$this->ipsclass->vars['EMOTICONS_URL']}/$image\" style=\"vertical-align:middle\" emoid=\"".trim($code)."\" border=\"0\" alt=\"$image\" />"; } /*-------------------------------------------------------------------------*/ // OVERWRITE DEFAULT: regex_font_attr: /*-------------------------------------------------------------------------*/ /** * Convert FONT / SIZE / COLOR tags: New method * * @param array Input vars * @return string Converted text */ function regex_font_attr( $IN ) { if ( ! is_array($IN) ) { return; } //----------------------------------------- // INIT (It is!) //----------------------------------------- $style = $IN['1']; $text = stripslashes($IN['2']); $type = $IN['s']; //----------------------------------------- // Remove " //----------------------------------------- $style = str_replace( '"', '', $style ); //----------------------------------------- // Make safe //----------------------------------------- $style = preg_replace( "/[&\(\)\.\%\[\]<>\'\"]/", "", preg_replace( "#^(.+?)(?:;|$)#", "\\1", $style ) ); //----------------------------------------- // Size //----------------------------------------- if ($type == 'size') { $style = intval($style); $real = $this->convert_bbsize_to_realsize( $style ); return "<!--sizeo:{$style}--><span style=\"font-size:".$real."pt;line-height:100%\"><!--/sizeo-->".$text."<!--sizec--></span><!--/sizec-->"; } //----------------------------------------- // BACKGROUND //----------------------------------------- else if ($type == 'background') { $style = preg_replace( "/[^\d\w\#\s]/s", "", $style ); return "<!--backgroundo:{$style}--><span style=\"background-color:".$style."\"><!--/backgroundo-->".$text."<!--backgroundc--></span><!--/backgroundc-->"; } //----------------------------------------- // COLOR //----------------------------------------- else if ($type == 'col') { $style = preg_replace( "/[^\d\w\#\s]/s", "", $style ); return "<!--coloro:{$style}--><span style=\"color:".$style."\"><!--/coloro-->".$text."<!--colorc--></span><!--/colorc-->"; } //----------------------------------------- // FONT //----------------------------------------- else if ($type == 'font') { $style = preg_replace( "/[^\d\w\#\-\_\s]/s", "", $style ); return "<!--fonto:{$style}--><span style=\"font-family:".$style."\"><!--/fonto-->".$text."<!--fontc--></span><!--/fontc-->"; } } /*-------------------------------------------------------------------------*/ // Clean up URL /*-------------------------------------------------------------------------*/ /** * Clean up long URLs * * @param string BEFORE URL * @param string URL * @param string SANS URL * @return string Converted text */ function _clean_long_url( $before, $url, $after ) { $before = stripslashes( $before ); $url = stripslashes( $url ); $after = stripslashes( $after ); return $before . str_replace( '<br />', '', str_replace( "? ", "?", $url ) ) . $after; }} ?>
Опубликовано: 19 октября 200718 г мдемс. не проще файл выложить было?Тем более это кажется не весь файл. У вас версия 1.х чтоли?
Опубликовано: 19 октября 200718 г Автор мдемс. не проще файл выложить было?Тем более это кажется не весь файл. У вас версия 1.х чтоли? это весь,только без шапки,где написано какая версия.она 2.1.6
Опубликовано: 19 октября 200718 г версия вашего форума указывается в личных данных.Дело в том, что там нету половины функций. Может из-за того, что у меня 2.1.7Ищите поиском в файлах слово wrap_vb_quote_styleи файлы тут скиньте вообще, кто форум то модифицировал
Опубликовано: 19 октября 200718 г Автор версия вашего форума указывается в личных данных.Дело в том, что там нету половины функций. Может из-за того, что у меня 2.1.7Ищите поиском в файлах слово wrap_vb_quote_styleи файлы тут скиньте вообще, кто форум то модифицировал поиск не дал результатов.искал в админке "простой поиск и поиск и замена в стилях".-правильно? модифицировал sarkis,точнее ставил модиф-ую версию.единственный плюс которой антивирус встроенный-остальное в минус.
Опубликовано: 19 октября 200718 г поиск не дал результатов.искал в админке "простой поиск и поиск и замена в стилях".-правильно?Сказали же по-русски: "В файлах". Скачиваем всю папку sources себе на комп, берём продвинутый редактор и ищем эту строчку.
Как то поднимал вопрос.Форумы модифицированы,одна из модификаций-круглая рамка(картинка) вокруг цитат.возможно ли её убрать?
Если да,-подскажите как.
Изменено пользователем RESULT