[EF IV] Zmiana szerokości newsów
|
Chero |
Dodany dnia 31.10.2008 14:46:58
|
Przedszkolak
Postów: 15
Data rejestracji: 31.10.2008 14:44
|
Witam, mam pytanie jak zmienić szerokość środkówych paneli czyli newsów, panel powitania ipt oto kod z theme.php
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fu... |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Insecure Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: PHP-Fusion Themes - ww.old © 2005 |
| web: http://phpfusion.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/************************/
/* Theme Settings */
/************************/
$body_text = "#f8f6f7";
$body_bg = "#6b6b6b";
$theme_width = "100%";
$theme_width_l = "162";
$theme_width_r = "162";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' height='100%'><tr><td class='table_left'><img src='".THEME."images/blank.gif' alt=''></td><td class='table_center' valign='top'><table align='center' width='100%' cellspacing='0' cellpadding='0''><tr><td><table width='100%' cellspacing='0' cellpadding='0'><tr><td class='full-header'><table width='100%' cellspacing='0' cellpadding='0'><tr><td class='top_header_left'><img src='".THEME."images/header/header_left.gif' alt=''></td><td class='top_header_center'><img src='".THEME."images/banner.gif' alt=''></td><td class='top_header_right'><img src='".THEME."images/header/header_right.gif' alt=''></td></tr></table></td></tr></table><table width='100%' cellspacing='0' cellpadding='0'><tr><td class='menu_left'><img src='".THEME."images/menu/menu_left.gif' alt=''></td><td class='menu_center' width='150'> </td><td class='menu_center'><center><img src='".THEME."' alt=''> ";
$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 src='".THEME."images/bullet.gif' alt=''>  "; } 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 ? " " : "")." <img src='".THEME."' alt=''></center></td><td class='menu_center' align='right'>".ucwords(showdate($settings['Text?'], time()))." </td><td class='menu_right'><img src='".THEME."images/menu/menu_right.gif' alt=''></td></tr></table><table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr></table><table cellpadding='0' cellspacing='0' width='100%'><tr><td class='full-footer'>".stripslashes($settings['footer'])."</td></tr></table><table cellpadding='0' cellspacing='0' width='100%'><tr><td align='center' class='full-footer'><table width='100%' cellpadding='0' cellspacing='0'><tr><td width='66%' class='full-footer'>";
if ($license == false) {
echo "Powered by <a href='http://www.php-fusion.co.uk'><img src='".THEME."images/pf_black.gif' border='0' alt=''></a> v".$settings['version']." © 2003-2005";
}
echo "</td> <td align='right' width='33%' class='full-footer'><strong>".$settings['counter']." </strong>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></td></tr></table></td></tr></table></td><td class='table_right'><img src='".THEME."images/blank.gif' alt=''></td></table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td><table width='80%' cellpadding='0' cellspacing='0'><tr><td class='header_left'></td><td class='header_center'>$subject</td><td class='header_right'></td></tr></table></td></tr><tr><td><table width='80%' cellpadding='0' cellspacing='0'><tr><td class='info_left'></td> <td class='info_center'><img src='".THEME."images/bullet.gif'> ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</td><td class='info_right'></td></tr></table></td></tr><tr><td><table width='80%' cellpadding='0' cellspacing='0'><tr><td class='side_left'></td><td class='side-body'> $news<br><br></td><td class='side_right'></td></tr></table><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='side_left'></td><td class='side-body'><table width='100%' cellpadding='0' cellspacing='0'><tr><td align='right' class='news-footer'>";
if ($info['news_ext'] == "y") echo "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n";
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·
".$info['news_reads'].$locale['044']." <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;' width='11'></a></td></tr></table></td><td class='side_right'></td></tr></table></td></tr><tr><td><table width='80%' cellpadding='0' cellspacing='0'><tr><td class='bottom_left'><img src='".THEME."images/blank.gif' alt=''></td> <td class='bottom_center'><img src='".THEME."images/blank.gif' alt=''></td><td class='bottom_right'><img src='".THEME."images/blank.gif' alt=''></td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='header_left'></td> <td class='header_center'>$subject</td><td class='header_right'></td></tr></table></td></tr><tr><td><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='info_left'></td> <td class='info_center'><img src='".THEME."images/bullet.gif'>".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."</td><td class='info_right'></td></tr></table></td></tr><tr><td><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='side_left'></td> <td class='side-body'> ".($info['article_breaks'] == "y" ? nl2br($article) : $article)."<br><br><table width='100%' cellpadding='0' cellspacing='0'><tr><td align='right' class='news-footer'>";
if ($info['news_ext'] == "y") echo "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n";
echo "<a href='readarticle.php?article_id=".$info['article_id']."'>".$info['article_comments'].$locale['043']."</a> ·
".$info['article_reads'].$locale['044']." <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;' width='11'></a></td></tr></table></td><td class='side_right'></td></tr></table></td></tr><tr><td><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='bottom_left'><img src='".THEME."images/blank.gif' alt=''></td> <td class='bottom_center'><img src='".THEME."images/blank.gif' alt=''></td><td class='bottom_right'><img src='".THEME."images/blank.gif' alt=''></td></tr></table></td></tr></table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='header_left'></td><td class='header_center'>$title</td><td class='header_right'></td></tr></table></td></tr><tr><td><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='info_left'><img src='".THEME."images/blank.gif' alt=''></td><td class='info_center'><img src='".THEME."images/blank.gif' alt=''></td><td class='info_right'><img src='".THEME."images/blank.gif' alt=''></td></tr></table></td></tr><tr><td><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='side_left'></td><td class='side-body'>\n";
}
function closetable() {
echo "</td><td class='side_right'></td></tr></table></td></tr><tr><td><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='bottom_left'><img src='".THEME."images/blank.gif' alt=''></td> <td class='bottom_center'><img src='".THEME."images/blank.gif' alt=''></td><td class='bottom_right'><img src='".THEME."images/blank.gif' alt=''></td></tr></table></td></tr></table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='header_left'></td> <td class='header_center'>$title</td><td class='header_right'></td></tr></table></td></tr><tr><td><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='info_left'><img src='".THEME."images/blank.gif' alt=''></td> <td class='info_center'><img src='".THEME."images/blank.gif' alt=''></td><td class='info_right'><img src='".THEME."images/blank.gif' alt=''></td></tr></table></td></tr><tr><td><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='side_left'></td> <td class='side-body'>\n";
}
function closeside() {
echo "</td><td class='side_right'></td></tr></table></td></tr><tr><td><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='bottom_left'><img src='".THEME."images/blank.gif' alt=''></td> <td class='bottom_center'><img src='".THEME."images/blank.gif' alt=''></td><td class='bottom_right'><img src='".THEME."images/blank.gif' alt=''></td></tr></table></td></tr></table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='header_left'></td> <td class='header_center'>$title</td><td class='header_center' align='right'><img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'></td><td class='header_right'></td></tr></table></td></tr><tr><td><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='info_left'><img src='".THEME."images/blank.gif' alt=''></td> <td class='info_center'><img src='".THEME."images/blank.gif' alt=''></td><td class='info_right'><img src='".THEME."images/blank.gif' alt=''></td></tr></table></td></tr><tr><td><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='side_left'></td> <td class='side-body'><div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div></td><td class='side_right'></td></tr></table></td></tr><tr><td><table width='100%' cellpadding='0' cellspacing='0'><tr><td class='bottom_left'><img src='".THEME."images/blank.gif' alt=''></td> <td class='bottom_center'><img src='".THEME."images/blank.gif' alt=''></td><td class='bottom_right'><img src='".THEME."images/blank.gif' alt=''></td></tr></table></td></tr></table>\n";
tablebreak();;
}
function tablebreak() {
echo "<table width='80%' cellspacing='0' cellpadding='0'><tr><td height='3'></td></tr></table>\n";
}
?> Kliknij i zaczekaj na załadowanie kodu ...
PW od moderatora:
- Przeniesienie tematu - Pieka 31.10 - 14:51
Edytowane przez Pieka dnia 31.10.2008 14:58:17
|
|
|
|
Wścibski Gość |
Dodany dnia 15.11.2024 10:32:20
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
Pieka |
Dodany dnia 31.10.2008 14:59:52
|
Postów: 19882 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
W przypadku Twojej strony chodzi bardziej o zmiane szerokosci calej, a nie samych newsow. Wszystko realizujesz w czesci poczatkowej, czyli:
$theme_width = "100%";
$theme_width_l = "162";
$theme_width_r = "162";
Kliknij i zaczekaj na załadowanie kodu ...
Jestem jaki jestem
|
|
|
|
Chero |
Dodany dnia 31.10.2008 15:03:57
|
Przedszkolak
Postów: 15
Data rejestracji: 31.10.2008 14:44
|
Próbowałem tak zmieniać lecz niestety nie działa :<
@edit
tz. nie tak że nic nie daje ale nie oto mi chodzi, to zmniejsza szerokość prawego i lewego panelu a środkowego niestety nie
$theme_width = "80%"; - nie działa
$theme_width_l = "172"; - działa, zmniejsza szerokość lewego panelu
$theme_width_r = "172"; - działa, zmniejsza szerokość prawego panelu
Edytowane przez Chero dnia 31.10.2008 15:14:03
|
|
|
|
Pieka |
Dodany dnia 31.10.2008 15:23:50
|
Postów: 19882 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Byc moze skorka wymaga poprawy lub po prostu nie odswiezyles strony, poniewaz zmiana:
$theme_width
automatycznie zmienia szerokosc srodkowej kolumny.
Jestem jaki jestem
|
|
|
|
Chero |
Dodany dnia 31.10.2008 15:27:33
|
Przedszkolak
Postów: 15
Data rejestracji: 31.10.2008 14:44
|
Dobra jakoś to przeboleje, dzięki za pomoc... |
|
|