Zmniejszenie Portalu


(m@teo) #1

Chciałbym abyście mi pomogli otóż mam portal na phpfusion tu: http://www.portal.cgsm.info i chciałbym aby nie wyśiwetlał się na całej stronie tylko na 760px podam wam kod theme.php moze mi pomożecie:

<?

/*--------------------------------------------+

| PHP-Fusion v6 - Content Management System |

|---------------------------------------------|

| author: Nick Jones (Digitanium) © 2002-2005 |

| web: http://www.php-fusion.co.uk |

| email: nick@php-fusion.co.uk |

|---------------------------------------------|

| 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: webmaster@phpfusion.org |

|---------------------------------------------|

| Released under the terms and conditions of |

| the GNU General Public License (Version 2) |

+--------------------------------------------*/



/ ************************ /

/* Theme Settings */

/ ************************ /


$body_text = "#000000";

$body_bg = "#EDEDED";

$theme_width = "100%";

$theme_width_l = "165";

$theme_width_r = "165";


function render_header($header_content) {

global $theme_width,$settings;


	echo "

|

|

| "; // Start banner code echo "

| $header_content |

|

\n"; // End banner code echo "

| \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 " | ".ucwords(showdate($settings['subheaderdate'], time())).""; echo " |
\n"; echo "\n"; echo "

| ".stripslashes($settings['footer'])." |

|
"; echo "

|
"; if ($license == false) { echo "Powered by []() v".$settings['version']." © 2003-2005"; } echo "
| "; echo "The PFT Red Theme by: []()| "; echo "".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n"); echo " |"; } function render_news($subject, $news, $info) { global $locale; echo "

| $subject |

"; echo "

|

| $news |

"; echo "

| "; echo "".$locale['040']."[".$info['user_name']."](profile.php?lookup=) "; echo "".$locale['041'].showdate("longdate", $info['news_date'])." | "; echo "".($info['news_ext'] == "y" ? "".$locale['042']." ·\n" : "").""; if ($info['news_allow_comments']) echo "[".$info['news_comments'].$locale['043']."](news.php?readmore=) · "; echo "".$info['news_reads'].$locale['044']." "; echo ""; echo " |

|
\n"; } function render_article($subject, $article, $info) { global $locale; echo "

| $subject |

"; echo "

|

| ".($info['article_breaks'] == "y" ? nl2br($article) : $article).""; echo " |

"; echo "

| "; echo "".$locale['040']."[".$info['user_name']."](profile.php?lookup=) "; echo "".$locale['041'].showdate("longdate", $info['article_date'])." | "; if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · "; echo "".$info['article_reads'].$locale['044']." "; echo ""; echo " |

|
\n"; } // Open table begins function opentable($title) { echo "

|

|
$title
|
| --- |
| "; } // Close table end function closetable() { echo " |

|

"; } function openside($title) { echo "

|

|
$title
|
| --- |
| "; } function closeside() { echo " |

|

"; tablebreak(); } function opensidex($title,$open="on") { $boxname = str_replace(" ", "", $title); $box_img = $open == "on" ? "off" : "on"; echo "

|

| "; echo "
"; echo "
|
| --- |
| "; echo "
\n"; } function closesidex() { echo "
|

|
"; tablebreak(); } // Table functions function tablebreak() { echo "

| |

\n"; } ?

|


(lazikar) #2
$theme_width = "100%";

Zmieniałeś na 80%???


(system) #3

dlaczego na 80%? A czasem nie powinno być zmienione na 760px??


(m@teo) #4

tak zmieniałem ale nic nie dało ;/

Trzeba te wszystkie width pozmieniać chyba ;/


(lazikar) #5

No trzeba. :slight_smile:


(Monczkin) #6

Nie rób zamieszania w temacie. Nie zadawaj pytań nie związanych z problemem


(m@teo) #7

pozmieniałęm ale kapa porozwalało mi całekim może jakiś pro wymiatacz mi pomóc?