Skocz do zawartości
ra-v

Php....

Rekomendowane odpowiedzi

Otóż mam strone internetową w jPortalu.... i pozmieniałem szerokości loga oraz stopki (ją musze doprawoać...) ale teraz nie wiem jak rozszerzyć resztę tej strony tzn. menu itd... najlepiej sami sie przyjrzyjcie

http://www.members.lycos.co.uk/ravrafcio/index.php

 

Jak ktos wie jak to zrobić to piszcie

BEde wdzięcznyyy

o i jak chcecie to moge zapodać plik functions.inc.php o ile to w nim sie zmienia...

Udostępnij tę odpowiedź


Odnośnik do odpowiedzi
Udostępnij na innych stronach

25 linia:

</table><center></center><table width="750" border="0" cellspacing="0" cellpadding="0" align="center">

daj

</table><center></center><table width="803" border="0" cellspacing="0" cellpadding="0" align="center">

i powinno dzialac

a tak pozatym to niezly syf w tym szablonie

dano nie widzialem tyle tabel ;)

Udostępnij tę odpowiedź


Odnośnik do odpowiedzi
Udostępnij na innych stronach

25 linia:

 

daj

i powinno dzialac

a tak pozatym to niezly syf w tym szablonie

dano nie widzialem tyle tabel ;)

1406266[/snapback]

Zrobiłem tak... ale nic sie nie udało...

oto jest zawartośc pliku functions.inc.php

 

<?

 

// ==================================================

// UWAGA! ta skorka jest rekomendowana do przerobek

// jako wzor przez autora systemu jPORTAL

// ==================================================

 

$color[1] = '#D1D7DC';  // kolor uzytkownika

$color[2] = '#424242';  // kolor uzytkownika

$color[3] = $theme;      // zawiera nazwe katalogu theme'a

$color[4] = '#424242';  // kolor uzytkownika

$color[5] = '#868686';  // 1 kolor listy (forum, panel admina, itp.)

$color[6] = '#d1d1d1';  // naglowek listy (opis kolumn na forum itp.)

$color[7] = '#000000';  // kolor czcionki naglowkow listy

$color[8] = '#646464';  // 2 kolor listy (forum, panel admina, itp.)

$color[9] = '#CBCBCB';  // kolor drobnych podpisow np. w katalogu stron

 

# =======================

#  poczatek strony (do bannera)

# =======================

 

 

function header_open() {

 

global $color;

 

echo '

<tr>

<center><img src="theme/'.$color[3].'/gfx/logo.jpg" width="803" height="243"></center>

</td>

</tr>

</table>';

 

}

 

# fragment za bannerem

# w przypadku braku bannera mozna

# wszystko wstawic do funkcji poprzedniej

 

function header_close() {

 

global $color, $f_author, $gnick;

 

 

}

 

#

#

#

 

function left_menu_open() {

 

global $color;

 

echo '

<table width="159" border="0" cellspacing="0" cellpadding="0">

<tr>

<td>

';

 

}

 

function left_menu_close() {

 

global $color;

 

echo '

</td>

</tr>

</table>';

 

}

 

function right_menu_open() {

 

global $color;

 

echo '

<table width="159" border="0" cellspacing="0" cellpadding="0">

<tr>

<td>

';

 

}

 

function right_menu_close() {

 

global $color;

 

echo '

</td>

</tr>

</table>';

 

}

 

#==============================

# tytul lewego okienka menu

#==============================

 

function left_menu_title_open() {

 

global $color;

 

echo '<table align="center" width="159" cellspacing="0" cellpadding="0" border="0">

<tr>

<td width="159"><img src="theme/'.$color[3].'/gfx/menu_g.gif" BORDER="0"></td>

</tr>

</table>

<table align="center" width="100%" cellspacing="0" cellpadding="0" border="0">

<tr>

<td class="title" width="100%" height="20" background="theme/'.$color[3].'/gfx/menu_tytul_tlo.gif" width="100%"><b><center>

';

 

}

 

function left_menu_title_close() {

 

global $color;

 

echo '

</td>

</tr>

</table>

<table align="center" width="100%" cellspacing="0" cellpadding="0" border="0">

<tr>

<td width="159"><img src="theme/'.$color[3].'/gfx/menu_d.gif" WIDTH="159" BORDER="0"></td>

</table>

';

 

}

 

#==============================

# end: tytul lewego okienka menu

#==============================

 

#==============================

# tresc lewego okienka menu

#==============================

 

function left_menu_text_open() {

 

global $color;

 

echo '<table align="center" width="140" cellspacing="2" cellpadding="3" border="0">

<tr>

<td class="block">';

 

}

 

function left_menu_text_close() {

 

global $color;

 

echo '

</td>

</tr>

</table><img SRC="theme/'.$color[3].'/gfx/separ.gif" width="1" height="7">';

 

}

 

#==============================

# end: tresc lewego okienka menu

#==============================

 

# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 

#==============================

# tytul prawego okienka menu

#==============================

 

function right_menu_title_open() {

 

global $color;

 

echo '<table align="center" width="159" cellspacing="0" cellpadding="0" border="0">

<tr>

<td width="159"><img src="theme/'.$color[3].'/gfx/menu_g.gif" BORDER="0"></td>

</table>

<table align="center" width="100%" cellspacing="0" cellpadding="0" border="0">

<tr>

<td class="title" width="100%" height="20" background="theme/'.$color[3].'/gfx/menu_tytul_tlo.gif" width="100%"><b><center>

';

 

}

 

function right_menu_title_close() {

 

global $color;

 

echo '

</td>

</tr>

</table>

<table align="center" width="100%" cellspacing="0" cellpadding="0" border="0">

<tr>

<td width="159"><img src="theme/'.$color[3].'/gfx/menu_d.gif" WIDTH="159" BORDER="0"></td>

</table>

';

 

}

 

#==============================

# end: tytul lewego okienka menu

#==============================

 

#==============================

# tresc lewego okienka menu

#==============================

 

function right_menu_text_open() {

 

global $color;

 

echo '<table align="center" width="140" cellspacing="2" cellpadding="3" border="0">

<tr>

<td class="block">';

 

}

 

function right_menu_text_close() {

 

global $color;

 

echo '

</td>

</tr>

</table><img SRC="theme/'.$color[3].'/gfx/separ.gif" width="1" height="7">';

 

}

 

#==============================

# end: tresc prawego okienka menu

#==============================

 

# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 

#==============================

# tytul okienka main'a

#==============================

 

function main_title_open() {

 

global $color;

 

echo '<table align="center" bgcolor="#808080" width="100%" cellspacing="1" cellpadding="0" border="0">

<tr>

<td>

<table align="center" width="100%" cellspacing="0" cellpadding="0" border="0" bgcolor="#424242">

<tr>

<td>

<table align="center" width="100%" cellspacing="0" cellpadding="0" border="0">

<tr>

<td background="theme/'.$color[3].'/gfx/tlo2.gif" width="100%" height="20" class="title"><b>';

 

}

 

function main_title_close() {

 

global $color;

 

echo '</td>

</tr>

<td><img SRC="theme/'.$color[3].'/gfx/separ.gif" width="1" height="1"></td>

</tr>

';

 

}

 

#==============================

# end: tytul okienka main'a

#==============================

 

#==============================

# tresc okienka main'a

#==============================

 

function main_text_open() {

 

global $color;

 

echo '<tr>

<td class="text">';

 

}

 

function main_text_close($poster=0, $date=0, $comment=0, $comment_num=0, $print=0) {

 

global $color;

 

 

$print = '<a href="'.$print.'"><img SRC="theme/'.$color[3].'/gfx/print.gif" border="0" align="absmiddle"></a>';

 

if($comment<>'')

$comment = '<a href="'.$comment.'">komentarz['.$comment_num.']</a> | ';

 

 

 

if($portal<>'0' AND $date<>0) {

 

 

echo '</td>

</tr>

<td><img SRC="theme/'.$color[3].'/gfx/separ.gif" width="1" height="1"></td>

</tr>

<tr>

<td background="theme/'.$color[3].'/gfx/tlo2.gif" width="100%" height="20" class="block" align="right">'.$comment.$print.' </TD>

</tr>

';

 

}

 

echo '

</td>

</tr>

</table>

</td>

</tr>

</table>

</td>

</tr>

</table>

<br>';

 

}

 

# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 

#==============================

# tytul okienka main'a NM

#==============================

 

function mn_title_open() {

 

global $color;

 

echo '<table align="center"  bgcolor="#808080" width="803" cellspacing="0" cellpadding="0" border="0">

<tr>

<td>

<table background="theme/'.$color[3].'/gfx/no_menu2.gif" align="center" width="803" cellspacing="0" cellpadding="0" border="0" bgcolor="#424242">

<tr>

<td>

<table align="center" width="100%" cellspacing="0" cellpadding="0" border="0">

<tr>

 

<td class="title">   <b>';

 

}

 

function mn_title_close() {

 

global $color;

 

echo '<HR ALIGN="CENTER" SIZE="1" WIDTH="98%" COLOR="#646464"></td>

</tr>

<td><img SRC="theme/'.$color[3].'/gfx/separ.gif" width="1" height="1"></td>

</tr>

';

 

}

 

#==============================

# end: tytul okienka main'a

#==============================

 

#==============================

# tresc okienka main'a

#==============================

 

function mn_text_open() {

 

global $color;

 

echo '<tr>

<td class="text">';

 

}

 

function mn_text_close($poster=0, $date=0, $comment=0, $comment_num=0, $print=0) {

 

global $color;

 

 

$print = '<a href="'.$print.'"><img SRC="theme/'.$color[3].'/gfx/print.gif" border="0" align="absmiddle"></a>';

 

if($comment<>'')

$comment = '<a href="'.$comment.'">komentarz['.$comment_num.']</a> | ';

 

 

 

if($portal<>'0' AND $date<>0) {

 

 

echo '</td>

</tr>

<td><img SRC="theme/'.$color[3].'/gfx/separ.gif" width="1" height="1"></td>

</tr>

<tr>

<td width="100%" class="block" align="right">'.$comment.$print.' </TD>

</tr>

';

 

}

 

echo '

</td>

</tr>

</table>

</td>

</tr>

</table>

</td>

</tr>

</table>

<br>';

 

}

 

# podpisy do newsow

 

function news_theme($mod, $title, $icon, $text, $poster, $textcd, $date, $comment, $comment_num, $print, $send) {

 

global $color;

 

if($mod=='list') {

if($textcd<>'') $textcd = '<a href="'.$textcd.'">więcej</a> | '; else $textcd = '';

} else {

if($textcd<>'') $text = '<font color="#CBCBCB">'.$text.'</font>

<br><br>

'.$textcd;

}

 

 

if($icon<>'') $text = '<img src="'.$icon.'" align="right">'.$text;

$send = '<a href="'.$send.'" title="wy¶lij znajomemu"><img SRC="theme/'.$color[3].'/gfx/mail.gif" border="0" align="absmiddle"></a> ';

$print = '<a href="'.$print.'" title="wersja do druku" target="_blank"><img SRC="theme/'.$color[3].'/gfx/print.gif" border="0" align="absmiddle"></a>';

$comment = '<a href="'.$comment.'">komentarz['.$comment_num.']</a>';

 

 

 

echo '<table align="center" bgcolor="#808080" width="100%" cellspacing="1" cellpadding="0" border="0">

<tr>

<td>

<table align="center" width="100%" cellspacing="1" cellpadding="3" border="0" bgcolor="#424242">

<tr>

<td class="title"><b>';

 

echo $title.'</b> - '.$date;

 

echo '</td>

</tr>

</table></td>

</tr>

</table>

<table align="center" width="100%" cellspacing="2" cellpadding="3" border="0">

<tr>

<td class="text">';

 

echo $text;

if($mod=='more') unset($textcd);

 

 

if($mod<>'err') {

echo '</td>

</tr>

</table>

<table align="center" bgcolor="#808080" width="100%" cellspacing="1" cellpadding="0" border="0">

<tr>

<td>

<table align="center" width="100%" cellspacing="0" cellpadding="1" border="0" bgcolor="#424242">

<tr>

<td><table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr>

<td class="title"><font SIZE="1">dodał: <b>'.$poster.'</b></td>

<td class="title" align="right">'.$textcd.$comment.' | '.$print.' '.$send.'</td>

</tr>

</table></td>

</tr>';

 

}

 

echo '

</td>

</tr>

</table>

</td>

</tr>

</table><img SRC="theme/'.$color[3].'/gfx/separ.gif" width="1" height="12">';

 

}

 

 

 

function art_theme($title, $text, $poster, $date, $comment, $comment_num, $print, $more, $opened) {

 

global $color;

 

 

$more = '<a href="'.$more.'">pokaż artykuł</a>';

 

if($icon=='') $icon = 'icon/news.png';

$print = '<a href="'.$print.'" title="wersja do druku" target="_blank"><img SRC="theme/'.$color[3].'/gfx/print.gif" border="0" align="absmiddle"></a>';

$comment = '<a href="'.$comment.'">komentarz['.$comment_num.']</a>';

 

 

 

echo '<tr>

<td>

<table width="803" border="0" cellspacing="0" cellpadding="0" bgcolor="#808080" align="center">

<tr>

<td>

<table width="803" border="0" cellspacing="1" cellpadding="0">

<tr>

<td background="theme/'.$color[3].'/gfx/tlo2.gif" width="100%" height="20" class="title" bgcolor="424242"><b>';

 

echo $title;

 

echo '</b></td>

</tr>

<tr>

<td class="title" bgcolor="'.$color[4].'">';

 

echo $text;

 

echo '

</td>

</tr>';

 

if($mod<>'err') {

echo '

<tr>

<td bgcolor="'.$color[4].'" colspan="2" style="background-image: url(theme/'.$color[3].'/gfx/menu_bg_.gif); background-repeat: repeat-x; background-position: bottom">

<table width="803" cellspacing="0" cellpadding="0" border="0">

<tr>

<td class="title">odsłon: '.$opened.'</td>

<td class="title"><div align="right">'.$more.' | '.$comment.' | '.$print.'</div></td>

</tr>

</table>

</td>

</tr>';

 

}

 

echo '

</table>

</td>

</tr>

<tr>

<td bgcolor="'.$color[2].'">

<img width="1" height="8">

</td>

</tr>

</table>

 

 

</td>

</tr>

';

 

}

 

 

#==============================

# end: tresc okienka main'a

#==============================

 

# stopka z copyright

 

function footer($footer1, $footer2) {

 

global $color;

 

echo '

<table align="center" width="803" cellspacing="0" cellpadding="0" border="0">

<tr>

<td>

<table align="center" width="803" cellspacing="0" cellpadding="0" border="0">

<tr>

<td class="title" width="100%" height="100" background="theme/'.$color[3].'/gfx/footer.gif" width="100%"><b><center>2005r.  <a href="mailer.php"><b>THEGODFATHER MAFIA by R@fcio</b></a>.<br> Wszelkie prawa zastrzeżone.<br>Powered by <b><a href="http://jportal2.com">jPORTAL 2</a></b></center>

';

 

}

 

# ===================================

# funkcje listowania (pliki downloadu, arty itp.)

# ===================================

 

function list_open() {

 

global $color;

 

echo '<table width="803%" border="0" cellspacing="0" cellpadding="1" align="center">';

 

}

 

function list_close() {

 

global $color;

 

echo '</table>';

 

}

 

# otworzenie elementu listy

 

function list_body_open($title="", $text="", $others="") {

 

global $color;

 

echo '

<tr>

<td>

<table width="803" border="0" cellspacing="0" cellpadding="0" bgcolor="#808080" align="center">

<tr>

<td>

<table width="803" border="0" cellspacing="1" cellpadding="0">

<tr>

<td background="theme/'.$color[3].'/gfx/tlo2.gif" width="100%" height="20" class="title" bgcolor="424242"><b>'.$title.'</b></td>

</tr>

<tr>

<td class="title" bgcolor="'.$color[4].'">'.$text.'</td>

</tr>';

 

if($others<>'') {

 

echo '

<tr>

<td bgcolor="'.$color[4].'" class="title" colspan="2" style="background-image: url(theme/'.$color[3].'/gfx/menu_bg_.gif); background-repeat: repeat-x; background-position: bottom"><div align="right">

'.$others.' 

</td>

</tr>';

 

}

 

echo '</table>

</td>

</tr>

<tr>

<td bgcolor="'.$color[2].'">

<img width="1" height="8">

</td>

</tr>

</table>

</td>

</tr>

';

 

}

Moglibyście mi poprawić tam gdzie trzeba i napisać tutaj... plicha...

Udostępnij tę odpowiedź


Odnośnik do odpowiedzi
Udostępnij na innych stronach

Zrobiłem tak... ale nic sie nie udało...

oto jest zawartośc pliku functions.inc.php

Moglibyście mi poprawić tam gdzie trzeba i napisać tutaj... plicha...

1407073[/snapback]

zapomnialem ze to jest dynamicznie generowane przez php ;)

musisz poszukac w plikach szablonu wartosci 750 i zamienic ja na 803

ja akurat nie wiem jak wygladaja szablony dla Jportal wiec wiecej nie moge pomoc :/

Udostępnij tę odpowiedź


Odnośnik do odpowiedzi
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Gość
Dodaj odpowiedź do tematu...

×   Wklejono zawartość z formatowaniem.   Przywróć formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

Ładowanie


×
×
  • Dodaj nową pozycję...