Zmiana szerokości php-fusion na skórze fusion3
|
Lexus |
Dodany dnia 21.09.2005 15:16:31
|
Przedszkolak
Postów: 14
Data rejestracji: 19.09.2005 10:22
|
Witam używam skórki fusion3, w jaki sposób zmienic jej szerokość tak aby nie przekraczała 1000pikseli. Próbowałem szukac w szukajce wpisując słowa szerokość oraz rozmiar i nic mi nie znalkazło, a przeszukiwac ręcznie całego forum nie zamierzam, czy ktoś powiedziałby mi jak to zrobić? |
|
|
|
Wścibski Gość |
Dodany dnia 22.12.2024 19:26:37
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
Shaolin |
Dodany dnia 21.09.2005 15:28:39
|
Bywalec
Postów: 888
Data rejestracji: 23.10.2004 14:59
|
themes/fusion3/theme.php - zmieniasz paramert $theme_width na początku pliku oraz potem w niektórych tabelach (to zależy, czy w tabelach głównych masz podane width='$theme_width' czy width='1000px' (lub inna liczba) - zależy to od budowy theme. Jeśli przypadek pierwszy, to nie musisz nic więcej zmieniać, natomiast w przypadku drugim musisz jeszcze ręcznie pozmieniać rozmiary tabelek na konkretną ilość pixeli/procent ekranu...
working
|
|
|
|
Lexus |
Dodany dnia 21.09.2005 15:54:53
|
Przedszkolak
Postów: 14
Data rejestracji: 19.09.2005 10:22
|
Kurcze nie moge albo złe paramtetry z zmieniam. Zmieniałem ten pogrubiony zaraz na początku
<?php
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Fusion3 Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: PHP-Fusion Themes - Shedrock © 2005 |
| web: http://phpfusion.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/* Theme Settings */
$body_text = "#000000";
$body_bg = "#577BAB";
[b]$theme_width = "100%";[/b]
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td width='29' nowrap='nowrap' class='lefttd'></td><td>";
// Start banner code
echo "<table width='100%' border='0' cellspacing='0' cellpadding='4'><tr>";
echo "<td width='60%' background='".THEME."images/logo_bg.gif' height='80'>$header_content</td>";
echo "</tr></table>";
// End banner code
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td class='sub-header'><table width='100%' height='22' border='0' cellpadding='4' cellspacing='0' style='background-color: #6387B7; border-top: solid #3F5A7F; border-top-width: 1px; border-left: solid #3F5A7F; border-left-width: 1px; border-right: solid #CACACA; border-right-width:1px; border-bottom: solid #CACACA; border-bottom-width:1px;'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td class='sub-header'> \n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img border='0' src='".THEME."images/divider.gif'>\n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>\n";
echo "<td class='sub-header' width='250' nowrap><img align='right' border='0' src='".THEME."images/bevel.gif'><div align='right'><font class='date'><b>".ucwords(showdate($settings['subheaderdate'], time()))."";
echo " </b></font></div>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='4' bgcolor='#577BAB' cellspacing='0' border='0'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='2' cellspacing='0' width='$theme_width'><tr>";
echo "<td>".stripslashes($settings['footer'])."<br>";
echo "<table height='22' background='".THEME."images/cellpic.gif' style='border: 1px solid #3F5A7F' cellSpacing='0' cellPadding='2' width='100%' border='0'>";
echo "<tr><td width='35%' class='footer' align='left'><div align='left'>";
if ($license == false) {
echo "Powered by <a href='http://www.php-fusion.co.uk' target='_blank'><img src='".THEME."images/fusion.gif' alt='PHP-Fusion' title='PHP-Fusion' border='0' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005";
}
echo "</div></td>";
echo "<td class='footer' width='30%'align='center'>Fusion 3 by: ";
echo "<a target='_blank' href='http://phpfusion.org/'><img src='".THEME."images/fthemes.gif' style='vertical-align:middle;'></a></td>";
echo "<td class='footer' width='35%' align='right'>";
echo "<font class='visits'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></td>";
echo "</tr></table></td></tr></table>";
echo "<td width='29' nowrap='nowrap' class='righttd'></td></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table class='border2' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panel'><img align='right' border='0' src='".THEME."images/bevel.gif'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments']) echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table class='border2' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panel'><img align='right' border='0' src='".THEME."images/bevel.gif'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' cellpadding='2' cellspacing='0' class='border2'>";
echo "<tr><td class='panel'>";
echo "<img align='right' border='0' src='".THEME."images/bevel.gif'>$title</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table bgcolor='#8D8D8D' border='0' style='border: 1px solid #3F5A7F' cellspacing='0' width='100%' cellpadding='2'><tr>";
echo "<td width='100%' class='panel'>";
echo "<img align='right' border='0' src='".THEME."images/bevel.gif'>$title</td></tr>";
echo "<tr><td bgcolor='#AAAAAA' class='side-body' width='100%'>";
}
function closeside() {
echo "<tr><td class='panel2' width='100%'>";
echo "</td></tr></td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table bgcolor='#8D8D8D' border='0' style='border: 1px solid #3F5A7F' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td width='100%' class='panel'>";
echo "<img align='right' onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'>$title";
echo "</td></tr>";
echo "<tr><td bgcolor='#AAAAAA' class='side-body'width='100%'>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "<tr><td class='panel2' width='100%'>";
echo "</td></tr></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Pomoże ktoś?
//Shaolin - wyłączyłam emotki
Edytowane przez Shaolin dnia 21.09.2005 16:27:21
|
|
|
|
Shaolin |
Dodany dnia 21.09.2005 16:37:45
|
Bywalec
Postów: 888
Data rejestracji: 23.10.2004 14:59
|
Zmieniasz, ale co z tego? Coś się pojawia, nie pojawia się nic, szerokość się nie zmienia czy jak? :/
Spróbuj zmienić wyróżnione na czerwono fragmenty na wybraną wielkość (np. 90% lub 700px)
<?php
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Fusion3 Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: PHP-Fusion Themes - Shedrock © 2005 |
| web: http://phpfusion.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/* Theme Settings */
$body_text = "#000000";
$body_bg = "#577BAB";
$theme_width = "[color=red][b]100%[/b][/color]";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td width='29' nowrap='nowrap' class='lefttd'></td><td>";
// Start banner code
echo "<table width='[color=red][b]100%[/b][/color]' border='0' cellspacing='0' cellpadding='4'><tr>";
echo "<td width='60%' background='".THEME."images/logo_bg.gif' height='80'>$header_content</td>";
echo "</tr></table>";
// End banner code
echo "<table width='[b][color=red]100%[/color][/b]' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td class='sub-header'><table width='[color=red][b]100%[/b][/color]' height='22' border='0' cellpadding='4' cellspacing='0' style='background-color: #6387B7; border-top: solid #3F5A7F; border-top-width: 1px; border-left: solid #3F5A7F; border-left-width: 1px; border-right: solid #CACACA; border-right-width:1px; border-bottom: solid #CACACA; border-bottom-width:1px;'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td class='sub-header'> \n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img border='0' src='".THEME."images/divider.gif'>\n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>\n";
echo "<td class='sub-header' width='250' nowrap><img align='right' border='0' src='".THEME."images/bevel.gif'><div align='right'><font class='date'><b>".ucwords(showdate($settings['subheaderdate'], time()))."";
echo " </b></font></div>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='[color=red][b]100%[/b][/color]' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</tr></table>";
echo "<table width='[color=red][b]100%[/b][/color]' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='[color=red][b]100%[/b][/color]' cellpadding='4' bgcolor='#577BAB' cellspacing='0' border='0'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='2' cellspacing='0' width='$theme_width'><tr>";
echo "<td>".stripslashes($settings['footer'])."<br>";
echo "<table height='22' background='".THEME."images/cellpic.gif' style='border: 1px solid #3F5A7F' cellSpacing='0' cellPadding='2' width='[color=red][b]100%[/b][/color]' border='0'>";
echo "<tr><td width='[color=red]35%[/color]' class='footer' align='left'><div align='left'>";
if ($license == false) {
echo "Powered by <a href='http://www.php-fusion.co.uk' target='_blank'><img src='".THEME."images/fusion.gif' alt='PHP-Fusion' title='PHP-Fusion' border='0' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005";
}
echo "</div></td>";
echo "<td class='footer' width='[color=red]30%[/color]'align='center'>Fusion 3 by: ";
echo "<a target='_blank' href='http://phpfusion.org/'><img src='".THEME."images/fthemes.gif' style='vertical-align:middle;'></a></td>";
echo "<td class='footer' width='[color=red]35%[/color]' align='right'>";
[color=red]//w przypadku tych 35, 30 i 35% musisz edytować wartości tak, aby razem dawały szerokość, którą chcesz uzyskać[/color]
echo "<font class='visits'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></td>";
echo "</tr></table></td></tr></table>";
echo "<td width='29' nowrap='nowrap' class='righttd'></td></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table class='border2' cellspacing='0' width='[color=red][b]100%[/b][/color]' cellpadding='3'><tr>";
echo "<td class='panel'><img align='right' border='0' src='".THEME."images/bevel.gif'>$subject</td>";
echo "</tr></table>";
echo "<table width='[color=red][b]100%[/b][/color]' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='[color=red][b]100%[/b][/color]' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='[color=red][b]100%[/b][/color]' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments']) echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table class='border2' cellspacing='0' width='[color=red][b]100%[/b][/color]' cellpadding='3'><tr>";
echo "<td class='panel'><img align='right' border='0' src='".THEME."images/bevel.gif'>$subject</td>";
echo "</tr></table>";
echo "<table width='[color=red][b]100%[/b][/color]' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='[color=red][b]100%[/b][/color]' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='[color=red][b]100%[/b][/color]' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table width='[color=red][b]100%[/b][/color]' cellpadding='2' cellspacing='0' class='border2'>";
echo "<tr><td class='panel'>";
echo "<img align='right' border='0' src='".THEME."images/bevel.gif'>$title</td></tr></table>";
echo "<table width='[color=red][b]100%[/b][/color]' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table bgcolor='#8D8D8D' border='0' style='border: 1px solid #3F5A7F' cellspacing='0' width='100%' cellpadding='2'><tr>";
echo "<td width='100%' class='panel'>";
echo "<img align='right' border='0' src='".THEME."images/bevel.gif'>$title</td></tr>";
echo "<tr><td bgcolor='#AAAAAA' class='side-body' width='100%'>";
}
function closeside() {
echo "<tr><td class='panel2' width='100%'>";
echo "</td></tr></td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table bgcolor='#8D8D8D' border='0' style='border: 1px solid #3F5A7F' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td width='100%' class='panel'>";
echo "<img align='right' onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'>$title";
echo "</td></tr>";
echo "<tr><td bgcolor='#AAAAAA' class='side-body'width='100%'>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "<tr><td class='panel2' width='100%'>";
echo "</td></tr></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='[color=red][b]100%[/b][/color]' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
working
|
|
|
|
Lexus |
Dodany dnia 21.09.2005 16:55:09
|
Przedszkolak
Postów: 14
Data rejestracji: 19.09.2005 10:22
|
Coś nie idze jak to poustawiam to sie jeszcze bardziej rozjeżdża |
|
|
|
Shaolin |
Dodany dnia 21.09.2005 23:33:56
|
Bywalec
Postów: 888
Data rejestracji: 23.10.2004 14:59
|
IMHO powinno działać. Możliwe jednak, że coś przeoczyłam - musisz popróbować. Nawet themes od Digiego zwykle nie mają jako szerokość tabelki podanego $theme_width, natomiast te od Lorkan Themes są jeszcze gorsze (np. w Evergreen Theme więcej definicji stylów znajduje się w theme.php niż w style.css... ). Niby nic, ale np. przy zmienia kolorów jest masakra .
Spróbuj jakoś to sam poustawiać - na razie mogę pomóc tylko teoretycznie bo chwilowo nie mam PHP-Fusion ;]
working
|
|
|
|
Szczawik |
Dodany dnia 27.12.2005 14:55:08
|
Przedszkolak
Postów: 6
Data rejestracji: 10.12.2005 10:22
|
ja troszke odkopie ten temat
to w koncu które liczby mam zmieniac bo mam ten sam problem mam php fusion 6.2 i skórke z-red
Edytowane przez Szczawik dnia 27.12.2005 15:55:24
|
|
|