Zmiana rozdzielczości strony
|
lukaszo |
Dodany dnia 22.05.2006 17:10:46
|
Przedszkolak
Postów: 10
Data rejestracji: 11.05.2006 20:35
|
Nie wiem jak mogę, dostosować stronę do rozdzielczości np. 800x600. Theme który mi się podoba dostosowuje rozmiar strony do rozdzielczości, jak to zmienić by strona była wyświetlana w rozdzielczości 800x600? Proszę o pomoc. Dzięki! |
|
|
|
Wścibski Gość |
Dodany dnia 22.11.2024 19:39:29
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
slawekneo |
Dodany dnia 22.05.2006 17:13:13
|
Bywalec
Postów: 915 Pomógł: 41
Data rejestracji: 12.03.2006 07:28
|
Witam
http://php-fusion...post_28554
ale nastepnym razem polecam zabrac sie za szukanie na forum!!!
Pozdr!!!
|
|
|
|
lukaszo |
Dodany dnia 22.05.2006 17:25:11
|
Przedszkolak
Postów: 10
Data rejestracji: 11.05.2006 20:35
|
ok, sory. Przeoczenie, ale po tych wszystkich zmianach wszystko jest tak samo jak było wcześniej. Dlaczego tak się dzieje??? |
|
|
|
Pawson91 |
Dodany dnia 22.05.2006 17:40:52
|
Bywalec
Postów: 738 Ostrzeżeń: 2
Data rejestracji: 13.12.2005 16:20
|
no to zapodaj nazwe i tresc pliku theme.php z tego thema co to Ci sie podoba
|
|
|
|
slawekneo |
Dodany dnia 22.05.2006 18:07:03
|
Bywalec
Postów: 915 Pomógł: 41
Data rejestracji: 12.03.2006 07:28
|
logo/baner moze jeszcze rozszerzac caloc |
|
|
|
lukaszo |
Dodany dnia 22.05.2006 18:09:29
|
Przedszkolak
Postów: 10
Data rejestracji: 11.05.2006 20:35
|
Tutaj był kod, ale zły popatrzcie niżej
Edytowane przez lukaszo dnia 22.05.2006 18:21:13
|
|
|
|
lukaszo |
Dodany dnia 22.05.2006 18:12:46
|
Przedszkolak
Postów: 10
Data rejestracji: 11.05.2006 20:35
|
slawekneo - z bannerem jest wszystko ok, jego szerokość to 700 pikseli, ale dzięki. Wrzuciłem kod pliku theme.php, niektóre znaczniki się nieco odmieniły... |
|
|
|
lukaszo |
Dodany dnia 22.05.2006 18:16:52
|
Przedszkolak
Postów: 10
Data rejestracji: 11.05.2006 20:35
|
<?
/*--------------------------------------------+
| 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| The PFT Red 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 = "#EDEDED";
$theme_width = "800";
$theme_width_l = "165";
$theme_width_r = "165";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table class='forumline' align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='1' cellpadding='0'>";
echo "<tr><td class='header' style='background-color:#E7E7E7;padding:5px;'>";
// Start banner code
echo "<table width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td>$header_content</td>";
echo "</tr></table></tr></td></table>\n";
// End banner code
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>";
echo "<td class='sub-header'>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img alt='' src='".THEME."images/bullet.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 class='white' href='".$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
} else {
echo "<a class='white' href='".BASEDIR.$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>";
echo "<td align='right' class='sub-header'>".ucwords(showdate($settings['subheaderdate'], time()))."";
echo "</td></tr></table>\n";
echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'>";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td>".stripslashes($settings['footer'])."</td>";
echo "</tr></table></td></tr></table><br>";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0'>";
echo "<tr><td width='32%' class='footer' align='left'><div align='left'>";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img alt='' src='".THEME."images/fusion.gif' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005";
}
echo "</div></td>";
echo "<td width='35%' class='footer' align='center'>";
echo "The PFT Red Theme by: <a target='_blank' href='http://phpfusion.org/'><img alt='' src='".THEME."images/fthemes.gif' style='vertical-align:middle;'></a></td>";
echo "<td width='33%' class='footer' align='right'>";
echo "<font class='clock'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table class='news-border' border='0' cellspacing='1' width='100%' cellpadding='1'><tr>";
echo "<td class='table-cellpic'>$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 alt='' src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table class='news-border' border='0' cellspacing='1' width='100%' cellpadding='1'><tr>";
echo "<td class='table-cellpic'>$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 alt='' src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='0' cellPadding='1' width='100%' border='0'>";
echo "<tr><th width='100%'><div class='table-cellpic' align='left'>$title</div></th></tr>";
echo "<tr><td class='main-body' width='100%' bgColor='#EDEDED'>";
}
// Close table end
function closetable() {
echo "</td></tr></table></td></tr></table>";
}
function openside($title) {
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='0' cellPadding='1' width='100%' border='0'>";
echo "<tr><th width='100%'><div class='panel-cellpic' align='left'>$title</div></th></tr>";
echo "<tr><td class='side-body' width='100%' bgColor='#EDEDED'>";
}
function closeside() {
echo "</td></tr></table></td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='0' cellPadding='1' width='100%' border='0'>";
echo "<tr><th width='100%'>";
echo "<div class='panel-cellpic' align='center'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</div>";
echo "</th></tr>";
echo "<tr><td class='side-body' width='100%' bgColor='#EDEDED'>";
echo "<div id='box_$boxname'".($open=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</td></tr></table></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
|
|
|
|
LeBron 23 |
Dodany dnia 23.05.2006 12:11:18
|
Przedszkolak
Postów: 39
Data rejestracji: 19.09.2005 21:23
|
no i ja mam identyczny problem
jak zmieniam
$theme_width = "900";
$theme_width_l = "165";
$theme_width_r = "165";
to jest tak samo
tylko ze ja bym chciał aby strona była dostosowana do rozdzilczości 1024x768
a oto plik theme.php:
<?
//************************************************************************************************************************//
// Theme Name: Chalet Theme for PHP-Fusion 6.00
// Theme Design: by: PHP-Fusion Themes (http://phpfusion.org)
// version 2.0
//
// PHP-Fusion Themes and/or Lorkan is a Registered Organization and holds a copyright with CIPO
// Original Author of file: PHP-Fusion Themes [Shedrock]
// Developed by: PHP-Fusion Themes - Bringing Your Portal To Life
// Copyright © 2005 by PHP-Fusion Themes - All Rights Reserved
// ----------------------------------------------------------------------
// THEME MODIFICATION
// Users may alter or modify this theme at their own risk,
// but only for their own use. They may also hire PHP-Fusion Themes to modify their own copy of the theme.
// Although users may modify the code for their use,
// modified code may not be resold or distributed,
// without express written permission from PHP-Fusion Themes.
//
// DISPLAY OF COPYRIGHT NOTICES REQUIRED
// All copyright notices used within the scripts that the scripts generate,
// MUST remain intact. Furthermore, these notices must remain visible.
//
// SUPPORT
// PHP-Fusion Themes provides free support on all their theme designs.
// (includes consulting, troubleshooting and fixing problems).
// For Support, please visit us at: http://www.phpfusion.org/forum/viewforum.php?forum_id=2
//
// PHP-Fusion Themes is not liable for any products or services offered by means of the theme.
// The user must assume the entire risk of using the program.
//************************************************************************************************************************//
/************************/
/* Theme Settings */
/************************/
$body_text = "#9e9e9e";
$body_bg = "#191919";
$theme_width = "75%";
$theme_width_l = "160";
$theme_width_r = "160";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' border='0' align='center' width='$theme_width' cellspacing='1' cellpadding='0' bgcolor='#605758'>";
echo "<tr><td width='100%' height='87' bgcolor='#262626'><table border='0' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr height='20'><td valign='middle' align='left' background='".THEME."images/top_bar_back.gif'></td>";
echo "<td valign='middle' align='right' background='".THEME."images/top_bar_back.gif'><strong>";
echo "</td></tr></table>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr><td width='100%'>\n";
echo "<table width='100%' background='".THEME."images/topback.jpg' height='87' border='0' cellspacing='3' cellpadding='0'>";
echo "<tr><td heignt='87'>$header_content</td>";
echo "</td></table>";
echo "<tr><td width='100%' bgcolor='#B2AC9F' height='11' valign='top'>";
echo "<table border='0' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr height='30'><td valign='middle' align='left' background='".THEME."images/menu_bar_back.gif'>";
echo "<table border='0' width='100%' cellspacing='0' cellpadding='0'><tr>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td class='content'> \n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img src='".THEME."images/menu_bar_div.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 "</tr></table>";
echo "<td background='".THEME."images/menu_bar_back.gif' valign='middle' align='right'>";
echo "<font class='date'><strong>".ucwords(showdate($settings['subheaderdate'], time()))."</strong>";
echo " </td></tr></table>";
echo "<table width='100%' cellpadding='4' bgcolor='#0e0e0e' cellspacing='0' border='0'>";
echo "<img border='0' src='".THEME."images/mid_bar_back.gif' width='100%' height='10'>";
echo "<img border='0' src='".THEME."images/pixel.gif' width='100%' height='3'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%' background='".THEME."images/bot_bar_back.gif' height='30'>";
echo "<tr><td valign='middle' width='24%'><a href='javascript:scroll(0,0);'><img border='0' src='".THEME."images/top_of_page.gif' width='107' height='8'></a></td>";
echo "<td width='50%'><div align='center'>";
echo "<div align='center'><font class='tiny'>";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' title='PHP-Fusion' style='vertical-align:top;'></a> v".$settings['version']." © 2003-2005";
}
echo "</font></div>";
echo "<font color='#C0C0C0'><font color='#FFC600'>Chalet by: <a target='_blank' href='http://phpfusion.org'><img title='PHP-Fusion Themes' src='".THEME."images/fthemes.gif' style='vertical-align:top;'></a></font></b></td></div>";
echo "<td width='50%'><div align='right'><font class='tiny'><b>".$settings['counter']." </b>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."</font>\n");
echo " </td></div></tr></table></center></table></table></table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='4' cellspacing='0'><tr>";
echo "<td class='capmain'><img border='0' src='".THEME."images/bullet_l.gif' width='9' height='9' hspace='3'><font class='block-title'>$subject</font></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'><img src='".THEME."images/bullet.gif'> ";
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 width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='capmain'><img border='0' src='".THEME."images/bullet_l.gif' width='9' height='9' hspace='3'><font class='block-title'>$subject</font>";
echo "</td></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'><img src='".THEME."images/bullet.gif'> ";
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' style='border: 1px solid #605758'>";
echo "<tr><td bgcolor='#968D81' height='24'><font class='head-title'> $title</font></td>";
echo "</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 border='0' style='border: 1px solid #605758' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".THEME."images/menu_bar_back.gif'>";
echo "<img border='0' src='".THEME."images/bullet_l.gif' width='9' height='9' hspace='3'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td class='side-body'width='100%' '".THEME."images/back1.gif'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table border='0' style='border: 1px solid #605758' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".THEME."images/menu_bar_back.gif'>";
echo "<img align='left' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td class='side-body'width='100%' '".THEME."images/back1.gif'>";
echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
|
|
|
|
lukaszo |
Dodany dnia 23.05.2006 15:27:58
|
Przedszkolak
Postów: 10
Data rejestracji: 11.05.2006 20:35
|
Mógłby ktoś nam powiedzieć co jest nie tak? |
|
|