Forum. MyNuke.ru

Forum. MyNuke.ru (http://forum.mynuke.ru/index.php)
-   Темы оформления phpNuke (http://forum.mynuke.ru/forumdisplay.php?f=12)
-   -   Изменение оформления News (http://forum.mynuke.ru/showthread.php?t=148)

Graund 18.04.2005 14:08

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

Soniks 18.04.2005 14:42

Graund у вас видимо в теме стоит вывод новостей в две колонки
за это отвечает фунуция themeindex в файле themes/Ваша_Тема/theme.php
или у вас может быть установлены не стандартный модуль новостей?

Graund 18.04.2005 15:26

есть там такая функция, но что там надо поменять?

Soniks 18.04.2005 15:29

Graund Покажи ее здесь, только не весь код файла!

Graund 18.04.2005 22:59

PHP код:
 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";
}
$loonr = ($loonr+1);
if (isset(
$cookie[3])) {
    
$storynum $cookie[3];
} else {
    
$storynum $storyhome;
}
$ridaaa1 round($loonr/2);
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;uname=$i  nformant\">$informant</a> ";
    } else {
     
$content "$anonymous ";
    }
    
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
}
$posted ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON.$time $timezone ($counter "._READS.")";
if ((
$ridaaa1*2) != $loonr) {
    
$tmpl_file "themes/blueweb_v3/story_home.html";
    
$thefile implode(""file($tmpl_file));
    
$thefile addslashes($thefile);
    
$thefile "\$r_file=\"".$thefile."\";";
    eval(
$thefile);
    
$vasak .= "$r_file";
} else {
    
$tmpl_file "themes/blueweb_v3/story_home.html";
    
$thefile implode(""file($tmpl_file));
    
$thefile addslashes($thefile);
    
$thefile "\$r_file=\"".$thefile."\";";
    eval(
$thefile);
    
$parem .= "$r_file";
}
if (
$loonr == $storynum OR $loonr == $kokku) {
    echo 
"<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
    echo 
"<tr>";
    echo 
"<td width=\"49%\" valign=\"top\">";
    print 
$vasak;
    echo 
"</td>";
    echo 
"<td width=\"5\" cellpadding=\"0\" cellspacing=\"0\" valign=\"top\"></td>";
    echo 
"<td width=\"49%\" valign=\"top\">";
    print 
$parem;
    echo 
"</td>";
    echo 
"</tr>";
    echo 
"</table>";


Soniks 18.04.2005 23:06

Вот как будет:
PHP код:
 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";
}
$loonr = ($loonr+1);
if (isset(
$cookie[3])) {
    
$storynum $cookie[3];
} else {
    
$storynum $storyhome;
}
$ridaaa1 round($loonr/2);
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;uname=$i  nformant\">$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/blueweb_v3/story_home.html";
    
$thefile implode(""file($tmpl_file));
    
$thefile addslashes($thefile);
    
$thefile "\$r_file=\"".$thefile."\";";
    eval(
$thefile);
    print 
"$r_file";


Graund 19.04.2005 00:48

результат: вообще страница не открывается!

пробовал по всякому, результат прежний.

Soniks 19.04.2005 00:49

Graund скобку } не забыл добавить в конце функции?

Graund 19.04.2005 01:00

нет не забыл

теперь я приношу свои извинения, по невнимательности оставил еще одну скобку. исправлено. заработало. большое спасибо.
тему можно закрыть.

Graund 24.04.2005 22:20

Изменение оформления News
 
Вложений: 1
Подскажите пожалуйста как изменить оформление новостей под себя. Предположительные изменения указаны на скриншоте. Облазил всю theme.php, что только не менял, так и не нашел. Остается надеятся на вашу помощь.


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

Copyright © 2005 by Soniks