Forum. MyNuke.ru

Forum. MyNuke.ru (http://forum.mynuke.ru/index.php)
-   Установка Модулей (http://forum.mynuke.ru/forumdisplay.php?f=10)
-   -   Banner Client (http://forum.mynuke.ru/showthread.php?t=24)

Steel 28.02.2005 09:31

Banner Client
 
Скачал модуль http://phpnuke.ru/modules.php?name=...ew_file&lid=142, установил и стала вылазить вот такая ошибка Fatal error: Call to undefined function: cookierecode() in /home/sasha_k/www/modules/Banner_Clients/index.php on line 12. Как её исправить?

Soniks 28.02.2005 12:16

Внимательнее прочти фаил Document.txt и выполни все изменения которые там описаны!

Steel 28.02.2005 16:37

Вот эту часть
Код:
THEMEHEADER ORIGINAL LINES if ($banners == 1) { include("banners.php"); } THEMEHEADER NEW LINES if ($banners == 1) { include("includes/banners1.php"); include("includes/banners2.php"); include("includes/banners3.php"); }

вставил перед этой
Код:
/************************************************** **********/ /* Function themeheader() */ /************************************************** **********/ function themeheader() { global $banners, $cookie, $user, $module_name;

эту
Код:
THEMEFOOTER NEW LINES (place just after the global line) if ($banners == 1) { include("includes/banners4.php"); include("includes/banners5.php"); include("includes/banners6.php"); }

перед этой
Код:
/************************************************** **********/ /* Function themefooter() */ /************************************************** **********/ function themefooter() { global $index, $module_name;


А вот что было написано в document.txt добавил в mainfile.php
И вылазиет вот теперь эта ошибка Parse error: parse error, unexpected T_STRING in /home/sasha_k/www/themes/Delfi_Gray/theme.php on line 43 хотя там стоит THEMEHEADER ORIGINAL LINES
Что сделал не так?

Вот не пойму что здесь надо делать?
You will have to add the following to your theme.php (if your theme uses
html files this is the one to edit):
1) $tbanners1 to the header display for placement 1 (header.html).
2) $tbanners2 to the left_center display for placement 2 (left_center.html).
3) $tbanners5 to the center_right display for placement 5 (certer_right.html).
4) $tbanners6 to the footer display for placement 6 (footer.html).

Soniks 28.02.2005 21:13

Цитата А вот что было написано в document.txt добавил в mainfile.php
И вылазиет вот теперь эта ошибка Parse error: parse error, unexpected T_STRING in /home/sasha_k/www/themes/Delfi_Gray/theme.php on line 43 хотя там стоит THEMEHEADER ORIGINAL LINES

Не так!
Надо в файле theme.php найти
PHP код:
 if ($banners == 1) {
    include(
"banners.php");
    } 

и заменить на:
PHP код:
 if ($banners == 1) {
        include(
"includes/banners1.php");
        include(
"includes/banners2.php");
        include(
"includes/banners3.php");
    } 

Цитата Вот не пойму что здесь надо делать?
You will have to add the following to your theme.php (if your theme uses
html files this is the one to edit):
1) $tbanners1 to the header display for placement 1 (header.html).
2) $tbanners2 to the left_center display for placement 2 (left_center.html).
3) $tbanners5 to the center_right display for placement 5 (certer_right.html).
4) $tbanners6 to the footer display for placement 6 (footer.html).

Эти переменный отвечают за вызов (показ) банера в разных частях сайта. Их добавлять надо все в том же файле theme.php (или же в фыйлах html, если у вас тема на html):
$tbanners1 в функции header() верхняя часть сайта
$tbanners2 в функции header() левой части сайта
$tbanners5 в функции footer () правой части сайта
$tbanners6 в функции footer () нижняя часть сайта

Steel 28.02.2005 21:37

1. я хочу оставить тока три банера, а остальные три удалить. как это сделать?

2. я хобу что бы эти три банера высели в разных местах, тоесть по разным точкам. как это сделать?

3. и какдобавить эти три места в меню?

Soniks 28.02.2005 21:57

для этого тебе придется разбиратся с темой, для этого в файле theme.php
есть две функции
function themeheader() -с этой начинайтся твой сайт
и
function themefooter() - с этой заканчивается
разбираясь в штмл ты находишь то место, куда ты хочешь его поставить и ставишь в желаемое место , например, в верхнюю часть сайта между нужными тегами $tbanners1.
Или же если у тебя тема на html(т.е. помимо файла theme.php) есть еще и html файлы (этот фариант для навичка оптимален), то, например для вставки банера в верх сата открываешь heder.html и уже в штмл коде ставишь в нужном месте $tbanners1.

Steel 28.02.2005 22:10

ответь на второй и третий вопрос.


Часовой пояс GMT +4, время: 08:12.

Copyright © 2005 by Soniks