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

 • Просмотры: 3006
sh
shooter
Сообщения: 119
Зарегистрирован: 18 сен 2009, 00:06
Сообщение

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

14 фев 2010, 16:30

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

[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......
az
azurastar
Поблагодарили: 1 раз
Сообщения: 17
Зарегистрирован: 10 фев 2010, 17:01
Сообщение

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

14 фев 2010, 17:52

Что то не получается. Ошибка в 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();

?>
wa
wados
Сообщения: 5
Зарегистрирован: 14 фев 2010, 17:09
Сообщение

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

18 фев 2010, 23:35

У кого нибудь получилось ? поставить флеш
ma
manual
Поблагодарили: 2 раза
Сообщения: 46
Зарегистрирован: 25 май 2009, 11:09
Сообщение

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

08 мар 2010, 02:32

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? судя по всему у вас его система пытается найти в корне сайта. А его скорее всего там нету. Исходя из моих инструкций этот файл должен находиться в другом месте. Проверьте все еще раз. Система работает однозначно
ma
manual
Поблагодарили: 2 раза
Сообщения: 46
Зарегистрирован: 25 май 2009, 11:09
Сообщение

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

08 мар 2010, 02:39

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
Te
Tetrix
Сообщения: 207
Зарегистрирован: 06 июн 2010, 23:23
Сообщение

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

26 июн 2010, 14:15

manual
Выложи плиз файл banner.zip

Возможно у кого-то остался, если не сложно дайте рабочую ссылку.

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