Мета-теги (расширенная версия)

Мета-теги (расширенная версия) 1.1.0

Нет прав для скачивания

Ральф

Пользователь
помоги пожалуйста с обновлением старых тем, такой вариант не катит
PHP:
<?php
define('IN_PHPBB',   true);
if (!defined('BB_ROOT')) {
    die(basename(__FILE__));
}


$user->session_start();

$sql = DB()->fetch_rowset("SELECT t., p.
  FROM " . BB_TOPICS . " t, " . BB_POSTS_TEXT . " p
  WHERE t.topic_first_post_id = p.post_id");

//require(INC_DIR .'bbcode.php');
foreach ($sql as $row)
{
$meta = create_metatags ($post_message);
 $meta = $meta->meta();
 //get_parsed_post($row);
 DB()->sql_query('UPDATE ' . BB_TOPICS . " SET meta = '" . $meta . "' WHERE topic_id = " . (int) $row['topic_id']);
}
foreach ($sql as $row) {
get_parsed_post($row);
echo "ok";
}
 

drew

Пользователь
PHP:
<?
define('IN_PHPBB', true);
define('BB_ROOT', './');
include(BB_ROOT . 'common.php');

// Start session
$user->session_start();
echo 'Подготовка<br />';
$sql = DB()->fetch_rowset("SELECT t.topic_id, p.post_text
    FROM bb_topics t
    LEFT JOIN bb_posts_text p ON (p.post_id = t.topic_first_post_id)  WHERE descr = '' OR keywords = '' LIMIT 10000");
  
foreach($sql as $row)
{
    $meta = create_metatags($row['post_text']);
    DB()->sql_query("UPDATE bb_topics SET keywords = '".$meta['keywords']."', descr = '".$meta['description']."' WHERE topic_id = ".$row['topic_id']."");
}
echo 'Обновление готово.';
 
Последнее редактирование:

Ральф

Пользователь
Whoops\Exception\ErrorException thrown with message "Maximum execution time of 180 seconds exceeded"

Stacktrace:
#3 Whoops\Exception\ErrorException in D:\Server\OSPanel\domains\223.ks\library\includes\functions.php:2222
#2 bb_strlen in D:\Server\OSPanel\domains\223.ks\library\includes\functions.php:2272
#1 create_metatags in D:\Server\OSPanel\domains\223.ks\ok.php:15
#0 {main} in D:\Server\OSPanel\domains\223.ks\ok.php:0
 
Сверху