Forum. MyNuke.ru
Forum. MyNuke.ruСообщения за сегодняПерсональные сообщения

Навигация  
Вернуться   Forum. MyNuke.ru > PHP-NUKE > Установка Блоков
Ник
Пароль
Ответ
 
Опции темы Поиск в этой теме Опции просмотра
Nikita вне форума      Старый помогоите пож с правыми блоками #1  
Nikita
Новенький
Регистрация: 25.10.2008
Сообщения: 7


Пожаловаться на это сообщениеОтветить с цитированием

Посмотреть профиль Отправить персональное сообщение для Nikita Найти все сообщения от Nikita Добавить Nikita в список друзей  
25.10.2008, 20:56

Здравствуйте, прочитал все касающееся этой темы но не решил её, помогите пож чтоб правые блоки были видны. вот тема:

<?php

global $loonr, $prefix, $db, $kokku;


$bgcolor1 = "#FCFCFC";
$bgcolor2 = "#808080";
$bgcolor3 = "#333333";
$bgcolor4 = "#333333";
$textcolor1 = "#000000";
$textcolor2 = "#000000";

if ($loonr == "") {
$loonr = "0";
}

include("themes/Thank_to_Holod/tables.php");

/************************************************** **********/
/* Function themeheader() */
/************************************************** **********/

function themeheader() {
global $user, $banners,$homeurl, $sitename, $slogan, $cookie, $prefix, $db;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
$topics_list = "<select name=\"topic\" onChange='submit()'>\n";
$topics_list .= "<option value=\"\">All Topics</option>\n";
$toplist = $db->sql_query("select topicid, topictext from ".$prefix."_topics order by topictext");
while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) {
$topicid = intval($topicid);
if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
if ($username == "Anonymous") {
$theuser = "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account\">Create an account";
} else {
$theuser = "&nbsp;&nbsp;Welcome $username!";
}
$public_msg = public_message();
$tmpl_file = "themes/Thank_to_Holod/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks('left');
$tmpl_file = "themes/Thank_to_Holod/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

/************************************************** **********/
/* Function themefooter() */
/************************************************** **********/


function themefooter() {
global $index, $foot1, $foot2, $foot3, $foot4;
if ($index == 1 OR defined('INDEX_FILE')) {
$tmpl_file = "themes/Thank_to_Holod/center_right.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks('left');
}
$footer_message = "$foot1<br>$foot2<br>$foot3<br>$foot4";
$tmpl_file = "themes/Thank_to_Holod/footer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
print "<table cellpadding=0 cellspacing=0 width=100% border=0><tr><td bgcolor=\"D0D0D0\"><div align=center>Тема оформления создана IFrin<br>";
footmsg();
print "<br></div></td></tr></table>";
}

/************************************************** **********/
/* Function themeindex() */
/************************************************** **********/

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username =$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
}
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time $timezone ($counter "._READS.")";
$tmpl_file = "themes/Thank_to_Holod/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

/************************************************** **********/
/* Function themeindex() */
/************************************************** **********/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
$posted = ""._POSTEDON." $datetime "._BY." ";
$posted .= get_author($aid);
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username =$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
}
$tmpl_file = "themes/Thank_to_Holod/story_page.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

/************************************************** **********/
/* Function themesidebox() */
/************************************************** **********/

function themesidebox($title, $content) {
$tmpl_file = "themes/Thank_to_Holod/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

?>

Последний раз редактировалось Nikita, 25.10.2008 в 20:59.

Soniks вне форума      Старый #2  
Soniks
Администратор
Регистрация: 16.01.2005
Сообщения: 4,814


Пожаловаться на это сообщениеОтветить с цитированием

Посмотреть профиль Отправить персональное сообщение для Soniks Посетить домашнюю страницу Soniks Найти все сообщения от Soniks Добавить Soniks в список друзей  
25.10.2008, 21:38

открываете index.php нужного вам модуля (где необходим правый блок) и в начале файла после <?php
пишите:
PHP код:
 define('INDEX_FILE'true); 

И так же у вас в коде допущена ошибка в функции themefooter()
вместо:
PHP код:
 blocks('left'); 

нужно:
PHP код:
 blocks('right'); 
 
"Если бы вам удалось надавать под зад человеку, виноватому в большинстве ваших неприятностей - вы бы неделю не смогли сидеть".


Nikita вне форума      Старый #3  
Nikita
Новенький
Регистрация: 25.10.2008
Сообщения: 7


Пожаловаться на это сообщениеОтветить с цитированием

Посмотреть профиль Отправить персональное сообщение для Nikita Найти все сообщения от Nikita Добавить Nikita в список друзей  
25.10.2008, 22:02

Soniks, Спасибо большое, все получилось))) но еще пришлось писать define('INDEX_FILE', true); на тех блоках(я на одном(навигации) написал, что должны быть слева, иначе получается что те блоки которые должны быть справа появляются слева

Ответ


Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать темы
Вы не можете отвечать на сообщения
Вы не можете прикреплять файлы
Вы не можете редактировать сообщения

BB-коды Вкл.
Смайлы Вкл.
[IMG] код Выкл.
HTML код Выкл.
Быстрый переход

Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
проблема с блоками. (поменялся шрифт и фон внутри 3 блоков) raw1 Установка Блоков 1 05.03.2008 08:14
проблема с блоками Doctor4War Установка Блоков 1 25.11.2007 22:13
проблема с правыми блоками Digital Установка Блоков 3 03.11.2007 00:12
изминение растояние между блоками isic Блоки 6 13.03.2007 13:56
Asers shop - проблема с правыми блоками. DzEDan Установка Модулей 2 05.09.2006 13:16


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


На Верх
Рейтинг@Mail.ru