Forum. MyNuke.ru

Forum. MyNuke.ru (http://forum.mynuke.ru/index.php)
-   Темы оформления phpNuke (http://forum.mynuke.ru/forumdisplay.php?f=12)
-   -   отображение правых блоков. (http://forum.mynuke.ru/showthread.php?t=2415)

B0P0H 28.11.2006 10:51

отображение правых блоков.
 
скачал тему, на скрине выглядела как стандартная широкая, т.е. с левым и правым блоком, а в итоге получил узкую с одним левым :( помогите сделать так что б она начала видеть и правый блок, при возможности объясните как расширить, всем ответившим заранее спасибо.

зы если это поможет - theme.php:
PHP код:
 /**************************************************  **********/ 
/* Theme Colors Definition */
/* */
/* Define colors for your web site. $bgcolor2 is generaly */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the */
/* other two bgcolor variables follows the same criteria. */
/* $texcolor1 and 2 are for tables internal texts */
/**************************************************  **********/
 
global $loonr$prefix$db$kokku;
$kokku $db->sql_numrows($db->sql_query("select * from ".$prefix."_stories LIMIT 0, 30 "));
 
$bgcolor1 "#FFFFFF";
$bgcolor2 "#00BBCC";
$bgcolor3 "#ffffff";
$bgcolor4 "#ffffff";
$textcolor1 "#000000";
$textcolor2 "#000000";
 
if (
$loonr == "") {
$loonr "0";
}
 
include(
"themes/HomeDecor/tables.php");
 
/**************************************************  **********/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/**************************************************  **********/
 
function themeheader() {
global 
$user$banners$sitename$slogan$cookie$prefix$db;
echo 
"<body bgcolor=\"#004080\" text=\"#000000\" link=\"#004080\" vlink=\"#004080\" alink=\"#004080\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
$public_msg public_message();
$tmpl_file "themes/HomeDecor/header.html";
$thefile implode(""file($tmpl_file));
$thefile addslashes($thefile);
$thefile "\$r_file=\"".$thefile."\";";
eval(
$thefile);
print 
$r_file;
blocks(left);
$tmpl_file "themes/HomeDecor/left_center.html";
$thefile implode(""file($tmpl_file));
$thefile addslashes($thefile);
$thefile "\$r_file=\"".$thefile."\";";
eval(
$thefile);
print 
$r_file;
}
 
/**************************************************  **********/
/* Function themefooter() */
/* */
/* Control the footer for your site. You don't need to */
/* close BODY and HTML tags at the end. In some part call */
/* the function for right blocks with: blocks(right); */
/* Also, $index variable need to be global and is used to */
/* determine if the page your're viewing is the Homepage or */
/* and internal one. */
/**************************************************  **********/
 
function themefooter() {
global 
$index$foot1$foot2$foot3$foot4;
if (
$index == 1) {
$tmpl_file "themes/HomeDecor/center_right.html";
$thefile implode(""file($tmpl_file));
$thefile addslashes($thefile);
$thefile "\$r_file=\"".$thefile."\";";
eval(
$thefile);
print 
$r_file;
blocks(right);
}
$footer_message "$foot1<br>$foot2<br>$foot3<br>$foot4";
$tmpl_file "themes/HomeDecor/footer.html";
$thefile implode(""file($tmpl_file));
$thefile addslashes($thefile);
$thefile "\$r_file=\"".$thefile."\";";
eval(
$thefile);
print 
$r_file;
}
 
/**************************************************  **********/
/* Function themeindex() */
/* */
/* This function format the stories on the Homepage */
/**************************************************  **********/
 
function themeindex ($aid$informant$time$title$counter$topic$thetext$notes$morelink$topicname$topicimage$topictext) {
global 
$anonymous$tipath$cookie$loonr$vasak$parem$kokku$storyhome$storynum;
$ThemeSel get_theme();
if (
file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image "$tipath$topicimage";
}
if (isset(
$cookie[3])) {
$storynum $cookie[3];
} else {
$storynum $storyhome;
}
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/HomeDecor/story_home.html";
$thefile implode(""file($tmpl_file));
$thefile addslashes($thefile);
$thefile "\$r_file=\"".$thefile."\";";
eval(
$thefile);
print 
"$r_file";
}
 
/**************************************************  **********/
/* Function themeindex() */
/* */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home */
/**************************************************  **********/
 
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/HomeDecor/story_page.html";
$thefile implode(""file($tmpl_file));
$thefile addslashes($thefile);
$thefile "\$r_file=\"".$thefile."\";";
eval(
$thefile);
print 
$r_file;
}
 
/**************************************************  **********/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/**************************************************  **********/
 
function themesidebox($title$content) {
$tmpl_file "themes/HomeDecor/blocks.html";
$thefile implode(""file($tmpl_file));
$thefile addslashes($thefile);
$thefile "\$r_file=\"".$thefile."\";";
eval(
$thefile);
print 
$r_file;


Alexander-V-Sh 28.11.2006 14:45

пользуемся поиском.

P.s. такой большой код прикрепляйте файлом.

B0P0H 28.11.2006 20:04

ну и что поиск? ничего на данную тему на сайте не нашел, может поможешь?

Alie 29.11.2006 00:10

-------------------------------------------------------------------------------------
Найти:
Код:
function themefooter() { global $index, $foot1, $foot2, $foot3, $foot4; if ($index == 1) { $tmpl_file = "themes/HomeDecor/center_right.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; blocks(right); }

-------------------------------------------------------------------------------------
Изменить на:
Код:
function themefooter() { global $index, $foot1, $foot2, $foot3, $foot4; if (defined('INDEX_FILE')) { $tmpl_file = "themes/HomeDecor/center_right.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; blocks(right); }

-------------------------------------------------------------------------------------
Пробуйте... Напишите результат.
Ждём.
:pirate:

B0P0H 29.11.2006 07:32

преогромнейшая благодарность
 
спасибо большое, заработало. приятно сознавать что есть еще в нашей стране люди не чуждые чужой проблеме... еще раз благодарб от всей души :)

Alie 29.11.2006 17:41

B0P0H: Alexander-V-Sh вам ведь посоветовал поиском пользоватся. А ведь ответ на ваш вопрос только я одна давала уже в темах трёх на этом форуме не считая этой...

raw1 27.02.2008 16:11

Вложений: 1
здравствуйте.
у меня другая проблема:
центральный блок сузился влево. на форуме нигде не нашел такой проблемы.
скрин прикрепляю.

Soniks 29.02.2008 13:53

видимо у вас в коде гдето стоит жестко заданная ширина, если тема на html файлах то смотрите файл left_center.htm последние строки иначе в файле theme.php последние строки в функции themeheader()

raw1 29.02.2008 14:11

Не подскажите в каком файле описывается public_message(); Проблема в нем оказывается.

Soniks 06.03.2008 08:13

mainfile.php


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

Copyright © 2005 by Soniks