Магазин
Правила Ответы на вопросы Конфиденциальность
Магазин
Правила Ответы на вопросы Конфиденциальность
  • Быстрые действия Ярлыки
    Общие действия
    Связаться с администрацией
    • Бот

       

Вопросы, ответы и примеры решений

  • Список форумов
  • Форумы по phpBB 3.0
  • Мод трекера ppkBB3cker
  • Вопросы, ответы и примеры решений

Ротатор постеров на Flash

16 сообщений
  • Пред.
  • 1
  • 2
Просмотры: 3110 • 
  • shooter Сообщение 14.02.2010

    Код: Выделить всё

    [phpBB Debug] PHP Notice: in file /portal/block/images.php on line 32: fopen(./images.xml) [function.fopen]: failed to open stream: Permission denied
    [phpBB Debug] PHP Notice: in file /portal/block/images.php on line 34: flock() expects parameter 1 to be resource, boolean given
    [phpBB Debug] PHP Notice: in file /portal/block/images.php on line 36: fputs(): supplied argument is not a valid stream resource
    [phpBB Debug] PHP Notice: in file /portal/block/images.php on line 38: flock() expects parameter 1 to be resource, boolean given
    [phpBB Debug] PHP Notice: in file /portal/block/images.php on line 39: fclose(): supplied argument is not a valid stream resource
    [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4548: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3828)
    [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4550: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3828)
    [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4551: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3828)
    [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4552: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3828)
    
    На файле images.xml стоит CHMOD 666......
shooter
  • azurastar Сообщение 14.02.2010
    Что то не получается. Ошибка в portal.php пишет. У меня не было в нем if ($load_center). Дописывал ее и вставлял ваш код. И что за финальный код?
    Вот мой первоначальный portal.php
    <?php
    /*
    *
    * @package phpBB3 Portal a.k.a canverPortal ( http://www.phpbb3portal.com )
    * @version $Id: portal.php,v 1.11 2008/02/09 08:18:13 angelside Exp $
    * @copyright (c) Canver Software - http://www.canversoft.net
    * @license http://opensource.org/licenses/gpl-license.php GNU Public License
    *
    */

    // Note: If you would like to have the portal in a different location than in the main phpBB3 directory
    // You must change the following variable, and change the 'U_PORTAL' template variable in functions.php
    define('IN_PHPBB', true);
    define('IN_PORTAL', true);
    define('PHPBB_ROOT_PATH', './');
    define('PORTAL_ROOT_PATH','./portal/');

    $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
    $portal_root_path = (defined('PORTAL_ROOT_PATH')) ? PORTAL_ROOT_PATH : './portal/';

    $phpEx = substr(strrchr(__FILE__, '.'), 1);
    include($phpbb_root_path . 'common.' . $phpEx);
    include($portal_root_path . '/includes/functions.'.$phpEx);

    if($config['ppkbb_portal_disabled'])
    {
    header('Location: index.'.$phpEx);
    exit();
    }

    // Start session management
    $user->session_begin();
    $auth->acl($user->data);
    $user->setup('portal');
    //-- [+] MOD: phpBB3 Portal ---------------------------------------------
    //-- add
    //
    $user->add_lang('portal');
    //
    //-- [-] MOD: phpBB3 Portal ---------------------------------------------
    // show login box and user menu

    // acp de aпїЅ/kapa yok, dil dosyasпїЅna ek: hiпїЅ doпїЅumgпїЅnпїЅ yoksa evet seпїЅili olsa bile blok gпїЅrпїЅnmez.
    // SQL bilgisi yok - - SQL eklenirse dil deпїЅiпїЅkeni de eklenmeli
    //if ($config['portal_user_menu'])
    //{
    // only registered user see user menu
    if ($user->data['is_registered'])
    {
    include($portal_root_path . '/block/user_menu.'.$phpEx);
    }
    else
    {
    include($portal_root_path . '/block/login_box.'.$phpEx);
    }
    //}

    // --- Forum Tree Block
    if ($config['portal_forum_tree'])
    {
    include($portal_root_path . '/block/forum_tree.'.$phpEx);
    }
    // --- End Of Forum Tree Block

    if ($config['portal_attachments'])
    {
    include($portal_root_path . '/block/attachments.'.$phpEx);
    }

    if ($config['portal_recent'])
    {
    include($portal_root_path . '/block/recent.'.$phpEx);
    }

    if ($config['portal_advanced_stat'])
    {
    include($portal_root_path . '/block/statistics.'.$phpEx);
    }

    if ($config['portal_minicalendar'])
    {
    include($portal_root_path . '/block/mini_cal.'.$phpEx);
    }

    if ($config['portal_link_us'])
    {
    include($portal_root_path . '/block/link_us.'.$phpEx);
    }

    if ($config['ppkbb_portal_last_torrents'])
    {
    include($portal_root_path . '/block/ppkBB3cker.'.$phpEx);
    $template->assign_vars(array(
    'S_TRACKER_CENTER' => true,
    ));
    }

    if ($config['portal_leaders'])
    {
    include($portal_root_path . '/block/leaders.'.$phpEx);
    }

    if ($config['portal_wordgraph'])
    {
    include($portal_root_path . '/block/wordgraph.'.$phpEx);
    }

    if ( $config['portal_poll_topic'] && $config['portal_poll_topic'] != "" )
    {
    include($portal_root_path . '/block/poll.'.$phpEx);
    }

    if ($config['portal_load_last_visited_bots'])
    {
    include($portal_root_path . '/block/latest_bots.'.$phpEx);
    }

    if ($config['portal_top_posters'])
    {
    include($portal_root_path . '/block/top_posters.'.$phpEx);
    }

    if ($config['portal_latest_members'])
    {
    include($portal_root_path . '/block/latest_members.'.$phpEx);
    }

    if ($config['portal_random_member'])
    {
    include($portal_root_path . '/block/random_member.'.$phpEx);
    }

    if ($config['portal_main_menu'])
    {
    $template->assign_vars(array(
    'S_PORTAL_MAIN_MENU' => true,
    ));
    }

    if ($config['portal_clock'])
    {
    $template->assign_vars(array(
    'S_DISPLAY_CLOCK' => true,
    ));
    }

    if ($config['portal_links'])
    {
    // include($portal_root_path . '/block/links.'.$phpEx);
    $template->assign_vars(array(
    'S_DISPLAY_LINKS' => true,
    ));
    }

    if ($config['portal_welcome'])
    {
    $template->assign_vars(array(
    'S_DISPLAY_WELCOME' => true,
    'PORTAL_WELCOME_INTRO' => html_entity_decode($config['portal_welcome_intro']),
    ));
    }

    if ($config['portal_announcements'])
    {
    include($portal_root_path . '/block/announcements.'.$phpEx);
    $template->assign_vars(array(
    'S_ANNOUNCE_COMPACT' => ($config['portal_announcements_style']) ? true : false,
    ));
    }

    if ($config['portal_news'])
    {
    include($portal_root_path . '/block/news.'.$phpEx);
    $template->assign_vars(array(
    'S_NEWS_COMPACT' => ($config['portal_news_style']) ? true : false,
    ));
    }

    if ($config['portal_pay_s_block'] or $config['portal_pay_c_block'])
    {
    include($portal_root_path . '/block/donate.'.$phpEx);
    }


    if ($config['portal_ads_small'])
    {
    $template->assign_vars(array(
    'S_ADS_SMALL' => ($config['portal_ads_small_box']) ? true : false,
    'ADS_SMALL_BOX' => html_entity_decode($config['portal_ads_small_box']),
    ));
    }

    if ($config['portal_ads_center'])
    {
    $template->assign_vars(array(
    'S_ADS_CENTER' => ($config['portal_ads_center_box']) ? true : false,
    'ADS_CENTER_BOX' => html_entity_decode($config['portal_ads_center_box']),
    ));
    }


    // acp de aпїЅ/kapa yok - SQL bilgisi yok - SQL eklenirse dil deпїЅiпїЅkeni de eklenmeli
    if ($user->data['is_registered']/* and $config['portal_friends']*/)
    {
    include($portal_root_path . '/block/friends.'.$phpEx);
    }

    // acp de aпїЅ/kapa yok - SQL bilgisi yok - SQL eklenirse dil deпїЅiпїЅkeni de eklenmeli
    // dil dosyasпїЅna ek: hiпїЅ doпїЅumgпїЅnпїЅ yoksa evet seпїЅili olsa bile blok gпїЅrпїЅnmez.
    //if ($config['show_birthdays'])
    //{
    include($portal_root_path . '/block/birthday_list.'.$phpEx);
    //}

    // acp de aпїЅ/kapa yok - SQL bilgisi yok - SQL eklenirse dil deпїЅiпїЅkeni de eklenmeli
    //if ($config['show_whois_online'])
    //{
    include($portal_root_path . '/block/whois_online.'.$phpEx);
    //}

    // acp de aпїЅ/kapa yok - SQL bilgisi yok - SQL eklenirse dil deпїЅiпїЅkeni de eklenmeli
    if ($config['portal_search'])
    {
    include($portal_root_path . '/block/search.'.$phpEx);
    }

    // acp de aпїЅ/kapa yok - SQL bilgisi yok - SQL eklenirse dil deпїЅiпїЅkeni de eklenmeli
    //if ($config['change_style'])
    //{
    // include($portal_root_path . '/block/change_style.'.$phpEx); // stil seпїЅince hata veriyor
    //}

    $template->assign_vars(array(
    'S_DISPLAY_JUMPBOX' => true, // SQL + ACP eklenecek
    'S_PORTAL_COPY' => $user->lang['PORTAL_COPY'],
    'PORTAL_LEFT_COLLUMN' => $config['portal_left_collumn_width'],
    'PORTAL_RIGHT_COLLUMN' => $config['portal_right_collumn_width'],
    ));

    // output page
    /* ============= mChat Start ============= */
    if(!defined('MCHAT_INCLUDE'))
    {
    define('MCHAT_INCLUDE', true);
    $mchat_include_index = true;
    include($phpbb_root_path.'mchat.'.$phpEx);
    }
    /* ============== mChat End ============== */
    page_header($user->lang['PORTAL']);
    //page_header($config['sitename']);

    $template->set_filenames(array(
    'body' => 'portal/portal_body.html'
    ));

    // SQL + ACP eklenecek
    make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));

    page_footer();

    ?>
azurastar
  • wados Сообщение 18.02.2010
    У кого нибудь получилось ? поставить флеш
wados
  • manual Сообщение 08.03.2010
    shooter писал(а):

    Код: Выделить всё

    [phpBB Debug] PHP Notice: in file /portal/block/images.php on line 32: fopen(./images.xml) [function.fopen]: failed to open stream: Permission denied
    [phpBB Debug] PHP Notice: in file /portal/block/images.php on line 34: flock() expects parameter 1 to be resource, boolean given
    [phpBB Debug] PHP Notice: in file /portal/block/images.php on line 36: fputs(): supplied argument is not a valid stream resource
    [phpBB Debug] PHP Notice: in file /portal/block/images.php on line 38: flock() expects parameter 1 to be resource, boolean given
    [phpBB Debug] PHP Notice: in file /portal/block/images.php on line 39: fclose(): supplied argument is not a valid stream resource
    [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4548: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3828)
    [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4550: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3828)
    [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4551: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3828)
    [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4552: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3828)
    
    На файле images.xml стоит CHMOD 666......
    а где реально лежит файл images.xml? судя по всему у вас его система пытается найти в корне сайта. А его скорее всего там нету. Исходя из моих инструкций этот файл должен находиться в другом месте. Проверьте все еще раз. Система работает однозначно
manual
  • manual Сообщение 08.03.2010
    azurastar писал(а):Что то не получается. Ошибка в portal.php пишет. У меня не было в нем if ($load_center). Дописывал ее и вставлял ваш код. И что за финальный код?
    Вот мой первоначальный portal.php
    <?php
    /*
    *
    * @package phpBB3 Portal a.k.a canverPortal ( http://www.phpbb3portal.com" target="_blank )
    * @version $Id: portal.php,v 1.11 2008/02/09 08:18:13 angelside Exp $
    * @copyright (c) Canver Software - http://www.canversoft.net" target="_blank
    * @license http://opensource.org/licenses/gpl-license.php" target="_blank GNU Public License
    *
    */

    // Note: If you would like to have the portal in a different location than in the main phpBB3 directory
    // You must change the following variable, and change the 'U_PORTAL' template variable in functions.php
    define('IN_PHPBB', true);
    define('IN_PORTAL', true);
    define('PHPBB_ROOT_PATH', './');
    define('PORTAL_ROOT_PATH','./portal/');

    $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
    $portal_root_path = (defined('PORTAL_ROOT_PATH')) ? PORTAL_ROOT_PATH : './portal/';

    $phpEx = substr(strrchr(__FILE__, '.'), 1);
    include($phpbb_root_path . 'common.' . $phpEx);
    include($portal_root_path . '/includes/functions.'.$phpEx);

    if($config['ppkbb_portal_disabled'])
    {
    header('Location: index.'.$phpEx);
    exit();
    }

    // Start session management
    $user->session_begin();
    $auth->acl($user->data);
    $user->setup('portal');
    //-- [+] MOD: phpBB3 Portal ---------------------------------------------
    //-- add
    //
    $user->add_lang('portal');
    //
    //-- [-] MOD: phpBB3 Portal ---------------------------------------------
    // show login box and user menu

    // acp de aпїЅ/kapa yok, dil dosyasпїЅna ek: hiпїЅ doпїЅumgпїЅnпїЅ yoksa evet seпїЅili olsa bile blok gпїЅrпїЅnmez.
    // SQL bilgisi yok - - SQL eklenirse dil deпїЅiпїЅkeni de eklenmeli
    //if ($config['portal_user_menu'])
    //{
    // only registered user see user menu
    if ($user->data['is_registered'])
    {
    include($portal_root_path . '/block/user_menu.'.$phpEx);
    }
    else
    {
    include($portal_root_path . '/block/login_box.'.$phpEx);
    }
    //}

    // --- Forum Tree Block
    if ($config['portal_forum_tree'])
    {
    include($portal_root_path . '/block/forum_tree.'.$phpEx);
    }
    // --- End Of Forum Tree Block

    if ($config['portal_attachments'])
    {
    include($portal_root_path . '/block/attachments.'.$phpEx);
    }

    if ($config['portal_recent'])
    {
    include($portal_root_path . '/block/recent.'.$phpEx);
    }

    if ($config['portal_advanced_stat'])
    {
    include($portal_root_path . '/block/statistics.'.$phpEx);
    }

    if ($config['portal_minicalendar'])
    {
    include($portal_root_path . '/block/mini_cal.'.$phpEx);
    }

    if ($config['portal_link_us'])
    {
    include($portal_root_path . '/block/link_us.'.$phpEx);
    }

    if ($config['ppkbb_portal_last_torrents'])
    {
    include($portal_root_path . '/block/ppkBB3cker.'.$phpEx);
    $template->assign_vars(array(
    'S_TRACKER_CENTER' => true,
    ));
    }

    if ($config['portal_leaders'])
    {
    include($portal_root_path . '/block/leaders.'.$phpEx);
    }

    if ($config['portal_wordgraph'])
    {
    include($portal_root_path . '/block/wordgraph.'.$phpEx);
    }

    if ( $config['portal_poll_topic'] && $config['portal_poll_topic'] != "" )
    {
    include($portal_root_path . '/block/poll.'.$phpEx);
    }

    if ($config['portal_load_last_visited_bots'])
    {
    include($portal_root_path . '/block/latest_bots.'.$phpEx);
    }

    if ($config['portal_top_posters'])
    {
    include($portal_root_path . '/block/top_posters.'.$phpEx);
    }

    if ($config['portal_latest_members'])
    {
    include($portal_root_path . '/block/latest_members.'.$phpEx);
    }

    if ($config['portal_random_member'])
    {
    include($portal_root_path . '/block/random_member.'.$phpEx);
    }

    if ($config['portal_main_menu'])
    {
    $template->assign_vars(array(
    'S_PORTAL_MAIN_MENU' => true,
    ));
    }

    if ($config['portal_clock'])
    {
    $template->assign_vars(array(
    'S_DISPLAY_CLOCK' => true,
    ));
    }

    if ($config['portal_links'])
    {
    // include($portal_root_path . '/block/links.'.$phpEx);
    $template->assign_vars(array(
    'S_DISPLAY_LINKS' => true,
    ));
    }

    if ($config['portal_welcome'])
    {
    $template->assign_vars(array(
    'S_DISPLAY_WELCOME' => true,
    'PORTAL_WELCOME_INTRO' => html_entity_decode($config['portal_welcome_intro']),
    ));
    }

    if ($config['portal_announcements'])
    {
    include($portal_root_path . '/block/announcements.'.$phpEx);
    $template->assign_vars(array(
    'S_ANNOUNCE_COMPACT' => ($config['portal_announcements_style']) ? true : false,
    ));
    }

    if ($config['portal_news'])
    {
    include($portal_root_path . '/block/news.'.$phpEx);
    $template->assign_vars(array(
    'S_NEWS_COMPACT' => ($config['portal_news_style']) ? true : false,
    ));
    }

    if ($config['portal_pay_s_block'] or $config['portal_pay_c_block'])
    {
    include($portal_root_path . '/block/donate.'.$phpEx);
    }


    if ($config['portal_ads_small'])
    {
    $template->assign_vars(array(
    'S_ADS_SMALL' => ($config['portal_ads_small_box']) ? true : false,
    'ADS_SMALL_BOX' => html_entity_decode($config['portal_ads_small_box']),
    ));
    }

    if ($config['portal_ads_center'])
    {
    $template->assign_vars(array(
    'S_ADS_CENTER' => ($config['portal_ads_center_box']) ? true : false,
    'ADS_CENTER_BOX' => html_entity_decode($config['portal_ads_center_box']),
    ));
    }


    // acp de aпїЅ/kapa yok - SQL bilgisi yok - SQL eklenirse dil deпїЅiпїЅkeni de eklenmeli
    if ($user->data['is_registered']/* and $config['portal_friends']*/)
    {
    include($portal_root_path . '/block/friends.'.$phpEx);
    }

    // acp de aпїЅ/kapa yok - SQL bilgisi yok - SQL eklenirse dil deпїЅiпїЅkeni de eklenmeli
    // dil dosyasпїЅna ek: hiпїЅ doпїЅumgпїЅnпїЅ yoksa evet seпїЅili olsa bile blok gпїЅrпїЅnmez.
    //if ($config['show_birthdays'])
    //{
    include($portal_root_path . '/block/birthday_list.'.$phpEx);
    //}

    // acp de aпїЅ/kapa yok - SQL bilgisi yok - SQL eklenirse dil deпїЅiпїЅkeni de eklenmeli
    //if ($config['show_whois_online'])
    //{
    include($portal_root_path . '/block/whois_online.'.$phpEx);
    //}

    // acp de aпїЅ/kapa yok - SQL bilgisi yok - SQL eklenirse dil deпїЅiпїЅkeni de eklenmeli
    if ($config['portal_search'])
    {
    include($portal_root_path . '/block/search.'.$phpEx);
    }

    // acp de aпїЅ/kapa yok - SQL bilgisi yok - SQL eklenirse dil deпїЅiпїЅkeni de eklenmeli
    //if ($config['change_style'])
    //{
    // include($portal_root_path . '/block/change_style.'.$phpEx); // stil seпїЅince hata veriyor
    //}

    $template->assign_vars(array(
    'S_DISPLAY_JUMPBOX' => true, // SQL + ACP eklenecek
    'S_PORTAL_COPY' => $user->lang['PORTAL_COPY'],
    'PORTAL_LEFT_COLLUMN' => $config['portal_left_collumn_width'],
    'PORTAL_RIGHT_COLLUMN' => $config['portal_right_collumn_width'],
    ));

    // output page
    /* ============= mChat Start ============= */
    if(!defined('MCHAT_INCLUDE'))
    {
    define('MCHAT_INCLUDE', true);
    $mchat_include_index = true;
    include($phpbb_root_path.'mchat.'.$phpEx);
    }
    /* ============== mChat End ============== */
    page_header($user->lang['PORTAL']);
    //page_header($config['sitename']);

    $template->set_filenames(array(
    'body' => 'portal/portal_body.html'
    ));

    // SQL + ACP eklenecek
    make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));

    page_footer();

    ?>
    Если у вас нет в скрипте портала if ($load_center) то и добавлять его не нужно. Я писал что добавить нужно

    Код: Выделить всё

    include($phpbb_root_path . 'portal/block/images.' . $phpEx);
    А вот куда? В моем примере я предложил добавить его в секцию отрабатывающую центральные блоки.
    Вы можете добавить этот код перед фразой

    Код: Выделить всё

    
    // --- Forum Tree Block
    
manual
  • Tetrix Сообщение 26.06.2010
    manual
    Выложи плиз файл banner.zip

    Возможно у кого-то остался, если не сложно дайте рабочую ссылку.
Tetrix
16 сообщений
  • Пред.
  • 1
  • 2

Вернуться в «Вопросы, ответы и примеры решений»

Time: 0.000s | Queries: 0 | Peak Memory Usage: 0.00 МБ | GZIP: Unknown | SQL Explain
  • Список форумов
2018, made with by ThemeKita Создано на основе phpBB® Forum Software © phpBB Limited Русская поддержка phpBB (C) 2009-2026 @ PPK
  • Часовой пояс: UTC+04:00
Участники темы
Список форумов Участники темы
Перейти
Сайт ↳   Новости по сайту ↳   Новости обновлений ↳   Вопросы по сайту ↳   Non-russian speakers forum Форумы по phpBB 3.1-3.3 ↳   Расширения для phpBB 3.1-3.3 ↳   Бета-версии и расширения в разработке ↳   База расширений ↳   Поиск и запросы расширений ↳   Расширения для phpBB 3.1-3.3 для донаторов ↳   Условно-бесплатные расширения ↳   Платные расширения ↳   Расширения для подписчиков ↳   Запросы расширений, функционала и переводов для подписчиков ↳   Переводы расширений для phpBB3.1-3.3 ↳   Стили для phpBB 3.1-3.3 ↳   Вопросы по phpBB 3.1-3.3 Форумы по phpBB 3.0 ↳   Мод трекера ppkBB3cker ↳   Новости по трекеру и обновлениям ↳   Ошибки, проблемы, недочёты ↳   Предложения по новым функциям и возможностям ↳   Вопросы, ответы и примеры решений ↳   Моды и стили для трекера ↳   Готовые стили для трекера ↳   Запросы стилей для трекера ↳   Стили в разработке ↳   Готовые моды для трекера ↳   Запросы модов для трекера ↳   Моды в разработке ↳   Остальное ↳   Часто задаваемые вопросы ↳   Ваши трекеры ↳   Мод трекера xbtBB3cker ↳   Новости по трекеру и обновлениям ↳   Вопросы, ответы, ошибки и обсуждение ↳   Другие моды для phpBB 3.0 ↳   Минимоды и хаки для phpBB3 ↳   phpBB 3.0 ppkBB3cker Edition ↳   Платные услуги, моды, стили для phpBB 3.0 ↳   BB2Spoiler/BB3Spoiler ↳   BB3Topics ↳   BB3Sape ↳   BB3UserAgentInfo ↳   Вопросы по phpBB 3.0 ↳   Вне тематики форума