Przedszkolak
Postów: 2 Ostrzeżeń: 1
Data rejestracji: 12.04.2007 21:14
Złamana licencja
|
Witam serdecznie,
Zwracam się z prośbą pomocy, ponieważ po usunięciu bocznych sidebarów w panelu administracyjnym, szerokość forum nie zmienia się tylko zostaje ciągle stała, próbowałem już wszystkich kombinacji, ale ciągle szerokość pozostaje stała, może komuś kto bez problemu daje sobie radę z PHP to się uda. Próbowałem zmieniać wszędzie z px na %, ale to nic nie daje. Nazwa skórki GRPFOUR.
Dziękuje za jakąkolwiek pomoc.
Poniżej zamieszczam kod źródłowy theme.php
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "100%");
define("THEME_BULLET", "<strong>·</strong>");
function render_page($license=false) {
global $settings, $main_style;
echo "<body bgcolor='#0D0D0D' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>
<!--[if IE]>
<style type='text/css'>
.pass {
padding: 8px 0px 0px 7px;
width: 168px;
height: 23px;
}
.pass2 {
padding: 8px 0px 0px 7px;
width: 168px;
height: 23px;
}
</style>
<![endif]-->
<div align='center'>
<table width='961' height='620' border='0' cellpadding='0' cellspacing='0'>";
if (iMEMBER) {
echo "<tr>
<td width='961' height='124' background='".THEME."images/headfull2.jpg' colspan='16'>
<table border='0' width='961' height='124' cellpading='0' cellspacing='0'>
<tr>
<td width='325'></td>
<td>
<p align='center'><b>
<font face='Myriad Pro' style='font-size: 15pt' color='#bf000e'>Witaj użytkowniku!</font></b><font color='#F1EDED'><br>
<font face='Myriad Pro' style='font-size: 10pt' color='#bf000e'>Poniżej znajdują się opcje, które możesz wybrać.</font></b><font color='#F1EDED'><br><br>
<font face='Tahoma' size='2'><a href='".BASEDIR."edit_profile.php'>
<font color='#F1EDED'><span style='text-decoration: none'>Edytuj swój profil</span></font></a>
</font></font>
<font color='#F1EDED' face='Tahoma' size='2'> |
<a href='".BASEDIR."messages.php'><font color='#F1EDED'>
<span style='text-decoration: none'>Wiadomości</span></font></a> |
<a href='".BASEDIR."members.php'><font color='#F1EDED'>
<span style='text-decoration: none'>Użytkownicy</span></font></a> |  ";
echo "<a href='".BASEDIR."setuser.php?logout=yes','_self'><font color='#F1EDED'>
<span style='text-decoration: none'>Wyloguj się</span></font></a></font>
</td>
<td width='16'></td>
</tr>
</table>
</td>
</tr>";
} else {
echo "<tr>
<td width='961' height='124' background='".THEME."images/headfull.jpg' colspan='16'>
<table border='0' width='961' height='124' cellpading='0' cellspacing='0'>
<tr>
<td width='323'> </td>
<td> </td>
<td width='15'> </td>
<td width='102'> </td>
<td width='51'> </td>
</tr>
<tr>
<td height='31' width='323'> </td>
<td height='31'>";
?>
<form name='loginform' method='post' action='news.php'>
<table border="0" width="100%" height="31" cellpadding="0" cellspacing="0">
<tr>
<td width="200">
<input type='pass' name='user_name' class='pass' value=' Vartotojo vardas' onfocus="if(this.value==' Vartotojo vardas'){this.value='';}" onblur="if(this.value==''){this.value=' Vartotojo vardas';}">
</td>
<td width="200">
<input type='pass' name="user_pass" class="pass2" value=" Slaptazodis" onfocus="if(this.value==' Slaptazodis'){this.value='';}" onblur="if(this.value==''){this.value=' Slaptazodis';}">
</td>
<td>
<input type='submit' name='login' value='' class='inne'>
</td>
</tr>
</table>
</form>
<?php
echo "</td>
<td height='31' width='15'> </td>
<td height='31' width='102'>
<map name='reglostpw'>
<area href='".BASEDIR."register.php' shape='rect' coords='0, 0, 58, 13'>
<area href='".BASEDIR."lostpassword.php' shape='rect' coords='0, 11, 101, 26'>
</map>
<img border='0' src='".THEME."images/reglostpw.jpg' usemap='#reglostpw' width='102' height='27'></td>
<td height='31' width='51'> </td>
</tr>
<tr>
<td height='30' width='323'><img border='0' src='".THEME."images/spacer.gif' width='1' height='30' alt=''></td>
<td height='30'><img border='0' src='".THEME."images/spacer.gif' width='1' height='30' alt=''></td>
<td height='30' width='15'><img border='0' src='".THEME."images/spacer.gif' width='1' height='30' alt=''></td>
<td height='30' width='102'><img border='0' src='".THEME."images/spacer.gif' width='1' height='30' alt=''></td>
<td height='30' width='51'><img border='0' src='".THEME."images/spacer.gif' width='1' height='30' alt=''></td>
</tr>
</table>
</td>
</tr>";
}
echo "<!-- head end -->
<tr>
<td colspan='5' width='340' height='122'>
<img border='0' src='".THEME."images/grpfour_12.jpg' width='340' height='122' alt=''></td>
<td colspan='10' width='591' height='122' bgcolor='#FFFFFF'>
<img border='0' src='".THEME."newslide/1.jpg' width='591' height='122'></td>
<td width='30' height='122'>
<img border='0' src='".THEME."images/grpfour_14.jpg' width='30' height='122' alt=''></td>
</tr>
<tr>
<td colspan='16' width='961' height='14'>
<img border='0' src='".THEME."images/grpfour_15.jpg' width='961' height='14' alt=''></td>
</tr>
<tr>
<td colspan='16' width='961' height='46'>
<map name='meniumap'>
<area href='".BASEDIR."viewpage.php?page_id=4' shape='rect' coords='687, 0, 773, 45'>
<area href='".BASEDIR."viewpage.php?page_id=3' shape='rect' coords='556, 0, 644, 45'>
<area href='".BASEDIR."viewpage.php?page_id=1' shape='rect' coords='418, 0, 518, 45'>
<area href='".BASEDIR."forum/index.php' shape='rect' coords='292, 0, 379, 45'>
<area href='".BASEDIR."index.php' shape='rect' coords='186, 0, 255, 45'>
</map>
<img border='0' src='".THEME."images/grpfour_16.jpg' width='961' height='46' alt='' usemap='#meniumap'></td>
</tr>
<tr>
<td colspan='16' width='961' height='19'>
<img border='0' src='".THEME."images/grpfour_17.jpg' width='961' height='19' alt=''></td>
</tr>
<tr>
<td colspan='16' width='961' height='38' background='".THEME."images/grpfour_18.jpg'>
<p align='center'><b><font face='Myriad Pro' style='font-size: 9pt'>
<font color='#F1F1F1'>Witaj! </font><font color='#bf000e'>na naszym portalu. Zarejestruj się lub zaloguj! ;)</font></font></b></td>
</tr>
<tr>
<td colspan='16' width='961' background='".THEME."images/grpfour_19.jpg' style='padding-left: 22px; padding-right: 22px; padding-top: 15px'>
<table border='0' width='100%' cellpading='0' cellspacing='0'>
<tr>
<td width='213' valign='top'>";
if (LEFT) { echo "".LEFT.""; }
echo "
</td>
<td style='padding-left: 11px; padding-right: 11px' valign='top'>
".U_CENTER.CONTENT.L_CENTER."
</td>
<td width='213' valign='top'>";
if (RIGHT) { echo "".RIGHT.""; }
echo "
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan='16' width='961' height='66'>
<img border='0' src='".THEME."images/grpfour_21.jpg' width='961' height='66' alt=''></td>
</tr>
<tr>
<td width='99' height='60'>
<img border='0' src='".THEME."images/grpfour_22.jpg' width='99' height='60' alt=''></td>
<td width='120' height='60' background='".THEME."images/grpfour_23.jpg'>
<a href='#ads1'>
<img border='0' src='".THEME."ads/1.jpg' width='120' height='60'></a></td>
<td width='25' height='60'>
<img border='0' src='".THEME."images/grpfour_24.jpg' width='25' height='60' alt=''></td>
<td colspan='7' width='468' height='60' background='".THEME."images/grpfour_25.jpg'>
<a href='#ads2'>
<img border='0' src='".THEME."ads/2.jpg' width='468' height='60'></a></td>
<td width='25' height='60'>
<img border='0' src='".THEME."images/grpfour_26.jpg' width='25' height='60' alt=''></td>
<td colspan='2' width='120' height='60' background='".THEME."images/grpfour_27.jpg'>
<a href='#ads3'>
<img border='0' src='".THEME."ads/3.jpg' width='120' height='60'></a></td>
<td colspan='3' width='104' height='60'>
<img border='0' src='".THEME."images/grpfour_28.jpg' width='104' height='60' alt=''></td>
</tr>
<tr>
<td colspan='16' width='961' height='114'>
<img border='0' src='".THEME."images/grpfour_29.jpg' width='961' height='114' alt=''></td>
</tr>
<tr>
<td>
<img border='0' src='".THEME."images/spacer.gif' width='99' height='1' alt=''></td>
<td>
<img border='0' src='".THEME."images/spacer.gif' width='120' height='1' alt=''></td>
<td>
<img border='0' src='".THEME."images/spacer.gif' width='25' height='1' alt=''></td>
<td>
<img border='0' src='".THEME."images/spacer.gif' width='82' height='1' alt=''></td>
<td>
<img border='0' src='".THEME."images/spacer.gif' width='14' height='1' alt=''></td>
<td>
<img border='0' src='".THEME."images/spacer.gif' width='162' height='1' alt=''></td>
<td>
<img border='0' src='".THEME."images/spacer.gif' width='24' height='1' alt=''></td>
<td>
<img border='0' src='".THEME."images/spacer.gif' width='176' height='1' alt=''></td>
<td>
<img border='0' src='".THEME."images/spacer.gif' width='8' height='1' alt=''></td>
<td>
<img border='0' src='".THEME."images/spacer.gif' width='2' height='1' alt=''></td>
<td>
<img border='0' src='".THEME."images/spacer.gif' width='25' height='1' alt=''></td>
<td>
<img border='0' src='".THEME."images/spacer.gif' width='51' height='1' alt=''></td>
<td>
<img border='0' src='".THEME."images/spacer.gif' width='69' height='1' alt=''></td>
<td>
<img border='0' src='".THEME."images/spacer.gif' width='55' height='1' alt=''></td>
<td>
<img border='0' src='".THEME."images/spacer.gif' width='19' height='1' alt=''></td>
<td>
<img border='0' src='".THEME."images/spacer.gif' width='30' height='1' alt=''></td>
</tr>
</table>
</div>";
}
function render_comments($c_data, $c_info){
global $locale;
opentable($locale['c100']);
if (!empty($c_data)){
echo "<div class='comments floatfix'>\n";
$c_makepagenav = '';
if ($c_info['c_makepagenav'] !== FALSE) {
echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>".$c_info['c_makepagenav']."</div>\n";
}
foreach($c_data as $data) {
echo "<div class='tbl2'>\n";
if ($data['edit_dell'] !== FALSE) {
echo "<div style='float:right' class='comment_actions'>".$data['edit_dell']."\n</div>\n";
}
echo "<a href='".FUSION_REQUEST."#c".$data['comment_id']."' id='c".$data['comment_id']."' name='c".$data['comment_id']."'>#".$data['i']."</a> |\n";
echo "<span class='comment-name'>".$data['comment_name']."</span>\n";
echo "<span class='small'>".$data['comment_datestamp']."</span>\n";
echo "</div>\n<div class='tbl1 comment_message'>".$data['comment_message']."</div>\n";
}
echo $c_makepagenav;
if ($c_info['admin_link'] !== FALSE) {
echo "<div style='float:right' class='comment_admin'>".$c_info['admin_link']."</div>\n";
}
echo "</div>\n";
} else {
echo $locale['c101']."\n";
}
closetable();
}
function render_news($subject, $news, $info) {
echo "<table width='469' height='105' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2' height='35' width='469' background='".THEME."images/centerpanel_01.jpg'>
<p align='center'><b><i><font face='Myriad Pro' color='#F1EDED' size='3'>".$subject."</font></i></b></td>
</tr>
<tr>
<td colspan='2' bgcolor='#FFFFFF' background='".THEME."images/centerpanelbg.jpg' style='background-repeat: no-repeat; padding: 10px;'>
".$info['cat_image'].$news."</td>
</tr>
<tr>
<td width='331' height='31' background='".THEME."images/centerpanel_03.jpg'>
<font color='#F1EDED' face='Tahoma' style='font-size: 9pt'><table border='0' width='331' height='31' cellpadding='0' cellspacing='0'>
<tr>
<td><p align='center'>Parašė: ".$info['user_name']." Peržiūrų: ".$info['news_reads']." Komentarų: ".$info['news_comments']."</font></p></td>
</tr>
</table></td>
<td width='138' height='31'>
<a href='".BASEDIR."news.php?readmore=".$info['news_id']."'>
<img src='".THEME."images/centerpanel_04.jpg' width='138' height='31' alt='' border='0'></a></td>
</tr>
</table><br>";
}
function render_article($subject, $article, $info) {
echo "";
}
function opentable($title) {
echo "<table width='469' height='5' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td height='35' width='469' background='".THEME."images/centerpanel_01.jpg'>
<p align='center'><b><i><font face='Myriad Pro' color='#F1EDED' size='3'>".$title."</font></i></b></td>
</tr>
<tr>
<td bgcolor='#FFFFFF' background='".THEME."images/centerpanelbg.jpg' style='background-repeat: no-repeat; padding: 10px;' valign='top'>";
}
function closetable() {
echo "</td>
</tr>
</table><br>";
}
function openside($title, $collapse = false, $state = "on") {
echo "<table border='0' width='213' cellpading='0' cellspacing='0'>
<tr>
<td width='213' height='8' background='".THEME."images/panel1_01.jpg'></td>
</tr>
<tr>
<td width='213' height='22' background='".THEME."images/sidepanelbg.jpg'>
<p align='center'><i><b><font face='Myriad Pro' color='#333333' size='3'>".$title."</font></b></i></td>
</tr>
<tr>
<td valign='top' width='213' height='26' background='".THEME."images/panel1_02.jpg'><p align='left'>";
echo "<table border='0' width='100%' height='100%' cellpadding='0' cellspacing='0'>
<tr>
<td style='background-repeat: no-repeat; padding-left: 5px; padding-right: 5px; padding-top: 5px' background='".THEME."images/sidepanelbg1.jpg'>";
}
function closeside($collapse = false) {
echo "</td>
</tr>
</table>";
echo "</p></td>
</tr>
<tr>
<td width='213' height='6' background='".THEME."images/panel1_03.jpg'></td>
</tr>
</table><br>";
}
?>
PW od moderatora:
- Brak stopki! - Pieka 25.02.2012 23:47
Edytowane przez gtamix dnia 25.02.2012 23:23:39
|
Przedszkolak
Postów: 2 Ostrzeżeń: 1
Data rejestracji: 12.04.2007 21:14
Złamana licencja
|
Nie musiał Pan usuwać mojej wypowiedzi, skórka została dodana w poście i jeszcze do tematu. Stopkę? Wkleiłem cały plik theme.php :)
A więc jeszcze raz napiszę, miałeś rację to wina obrazka, że też na to nie wpadłem. Tylko, że teraz pojawia się problem, przy dodaniu rozmiaru np. 600 i poszerzeniu obrazka wyświetla się większe forum, ale również i niusy się poszerzają. Poradziłem sobie zmieniając rozmiar kolumn bocznych na 100% aby się dopasowały, ale znów nie mogę zwiększyć za bardzo, bo się rozjeżdza. Próbowałem zamienic srodkowa kolumne z px na %, ale nic to nie daje.
function opentable($title) {
echo "<table width='600' height='5' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td height='35' width='100%' background='".THEME."images/centerpanel_01.jpg' style='background-repeat: repeat;>
<p align='center'><b><i><font face='Myriad Pro' color='#F1EDED' size='3'>".$title."</font></i></b></td>
</tr>
<tr>
<td bgcolor='#FFFFFF' width='100%' background='".THEME."images/centerpanelbg.jpg' style='background-repeat: repeat; padding: 10px;' valign='top'>";
}
Edytowane przez gtamix dnia 25.02.2012 23:33:15
|