Авторизуйтесь по паролю
Или через соцсеть
JEFF 10.08.2016 Все вопросы » Ламерские вопросы 2392
JEFF - 2016-08-1010 августа 2016 09:35 - #57655
vitnet - 2016-08-1010 августа 2016 10:39 - #57657
$metatags = create_metatags( $short_story." ".$full_story );
$metatags = create_metatags( $full_story );
$metatags = create_metatags ($short_story." ".$full_story, true);
$metatags = create_metatags ($full_story, true);
JEFF - 2016-08-1010 августа 2016 10:51 - #57659
Sander - 2016-08-1010 августа 2016 11:07 - #57663
JEFF - 2016-08-1010 августа 2016 11:15 - #57667
vitnet - 2016-08-1010 августа 2016 11:49 - #57668
UPDATE `dle_post` SET descr=''
UPDATE `dle_post` SET desc = REPLACE(desc, 'одно слово', 'на другое');
JEFF - 2016-08-1010 августа 2016 11:50 - #57670
JEFF - 2016-08-1010 августа 2016 12:00 - #57672
vitnet - 2016-08-1010 августа 2016 12:11 - #57676
if( $row['keywords'] == '' AND $row['descr'] == '' AND $config['create_metatags'] ) { create_keywords( $row['full_story'] ); } else { $metatags['keywords'] = $row['keywords']; if( $row['descr'] ) $metatags['description'] = $row['descr']; else $metatags['description'] = $row['title']; }
JEFF - 2016-08-1010 августа 2016 12:16 - #57677
vitnet - 2016-08-1010 августа 2016 12:53 - #57680
// start $fastquotes = array("\x22", "\x60", "\t", "\n", "\r", '"', "\\", '\r', '\n', "/", "{", "}", "[", "]"); $cut_story = preg_replace( "#\[hide\](.+?)\[/hide\]#is", "", $row['short_story'] ); // здесь выбираем откуда брать инфу. short_story | full_story $cut_story = preg_replace( "'\[attachment=(.*?)\]'si", "", $cut_story ); $cut_story = preg_replace( "'\[page=(.*?)\](.*?)\[/page\]'si", "", $cut_story ); $cut_story = str_replace ( "{PAGEBREAK}", "", $cut_story ); $cut_story = str_replace ( " ", " ", $cut_story ); $cut_story = str_replace ( '<br />', ' ', $cut_story ); $cut_story = strip_tags ( $cut_story ); $cut_story = preg_replace( "#&(.+?);#", "", $cut_story ); $cut_story = trim( str_replace( " ,", "", stripslashes( $cut_story ) ) ); $cut_story = str_replace( $fastquotes, '', $cut_story ); $metatags['description'] = dle_substr( $cut_story, 0, 200, $config['charset'] ); // длинна описания if( ($temp_dmax = dle_strrpos( $metatags['description'], ' ', $config['charset'] )) ) $metatags['description'] = dle_substr( $metatags['description'], 0, $temp_dmax, $config['charset'] ); // end
JEFF - 2016-08-1010 августа 2016 13:02 - #57681
vitnet - 2016-08-1010 августа 2016 15:37 - #57686
JEFF - 2016-08-1010 августа 2016 15:39 - #57688
JEFF - 2016-08-1010 августа 2016 15:57 - #57689
vitnet - 2016-08-1010 августа 2016 11:10 - #57665
JEFF - 2016-08-1010 августа 2016 10:40 - #57658
hakypuhbiu - 2016-08-1012 августа 2016 02:11 - #57738
$page = intval($_GET['cstart']);
$page = ( isset($_POST['search_start']) && intval($_POST['search_start']) != 0 ? intval($_POST['search_start']) : intval($_GET['cstart']) );
<div class="block"> <h1>Заголовок</h1> <a href="my.site.ru"></a> </div>