Różnice w strukturze themów PFv7 i PFv6
|
ovan |
Dodany dnia 14.02.2009 20:47:32
|
Przedszkolak
Postów: 37
Data rejestracji: 24.12.2008 14:08
|
Witam. Kupiłem fajny theme do mojej stronki w PF6, i chciałbym dostosować ją do mojej drugiej stronki w PF7. Jakie są różnice w themach z PF6, a w PF7? Czy da się w ogóle je przerobić? Za pomoc z góry dziękuję
PW od moderatora:
- Przeniesienie tematu - chemix 14.02 - 20:57
Edytowane przez Pieka dnia 14.02.2009 21:28:05
|
|
|
|
Wścibski Gość |
Dodany dnia 23.11.2024 09:26:14
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
lomcskw |
Dodany dnia 14.02.2009 21:58:58
|
Przedszkolak
Postów: 37 Ostrzeżeń: 1
v7.01.05 Data rejestracji: 28.03.2008 09:10
|
Skórki dają się przerabiać, aczkolwiek jest z tym trochę pracy. Osobiście prawie przerobiłem skórkę Milestone, kiedy okazało się, że ktoś już to zrobił i jest dostępna w necie pod v7. Opis jest na stronie http://www.extrem... musisz poszukać, bodajże w artykułach.
Pozdrawiam i powodzenia
Edytowane przez Chemikpil dnia 14.02.2009 21:59:42
|
|
|
|
Pieka |
Dodany dnia 14.02.2009 22:10:06
|
Postów: 19882 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Prosze bardzo, w zalaczniku znajdziesz opis, co prawda po angielsku, ale lepsze to niz nic.
Pieka dodał/a następującą plik:
Jestem jaki jestem
|
|
|
|
ovan |
Dodany dnia 14.02.2009 23:57:48
|
Przedszkolak
Postów: 37
Data rejestracji: 24.12.2008 14:08
|
Heh takie życie. Słabo znam angielski, ale "twardym trzeba być, a nie miękkim". XD Dzięki za poradnik. |
|
|
|
bartek124 |
Dodany dnia 15.02.2009 09:27:44
|
Weteran
Postów: 3264 Pomógł: 236
v7.02.06 Data rejestracji: 26.05.2007 12:25
|
Szczerze? Skórki łatwiej się przerabia niż infusiony i inne rzeczy.
Jest to kwestia spięcia dwóch funkcji: render_header() i render_footer() w jedną: render_page(), a między nimi wstawiamy kod wyświetlający stronę, czyli np:
echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
Do tego usuwamy funkcje: opensidex() i closesidex() oraz dodajemy brakujące klasy w css (nie wymienię Ci teraz wszystkich bo nie pamiętam ale między innymi .bbcode, .admin_message itp).
Chyba o niczym nie zapomniałem ;).
Nie pomagam na komunikatorach oraz PW!
|
|
|
|
Artur-M |
Dodany dnia 15.02.2009 13:29:40
|
Początkujący
Postów: 225 Pomógł: 5 Ostrzeżeń: 4
Data rejestracji: 16.12.2008 17:42
|
Dzięki bartek124 za "instrukcję" po polsku. To zaczynam pracę w takim razie nad dostosowaniem skórki "Heroes" (moja ulubiona, pasuje do gry Ikariam).
Wiadomość doklejona:
bartek124 napisał/a:
(...) dodajemy brakujące klasy w css (nie wymienię Ci teraz wszystkich bo nie pamiętam ale między innymi .bbcode, .admin_message itp).
Ok, te 2 klasy dodałem, ale to nie wszystko. Poszukam jeszcze różnic i, jak coś znajdę, dam znać.
Że też nie ma programu, który by pokazywał różnice w 2 plikach tekstowych (jak w "Total Commanderze" - porównuje 2 kolumny)...
Edytowane przez Artur-M dnia 15.02.2009 13:49:29
|
|
|
|
jantom |
Dodany dnia 23.02.2009 21:05:19
|
Weteran
Postów: 3460 Pomógł: 123
Data rejestracji: 31.03.2005 20:10
|
Od dzisiaj mamy dostępny artykuł w dwóch częściach o konwersji skórek:
Pierwsza część
Druga cześć |
|
|
|
Artur-M |
Dodany dnia 23.02.2009 23:03:44
|
Początkujący
Postów: 225 Pomógł: 5 Ostrzeżeń: 4
Data rejestracji: 16.12.2008 17:42
|
Wow - no to teraz, po takim artykule, liczba nowych skórek do PF v7 drastycznie się zwiększy
Edytowane przez Artur-M dnia 23.02.2009 23:03:59
|
|
|
|
asters |
Dodany dnia 24.02.2009 08:51:32
|
Przedszkolak
Postów: 20
Data rejestracji: 17.10.2008 20:19
|
Czy to jest przetłumaczony tutorial z angielskiego?
Zabierałam się nawet do jego tłumaczenia ale zawsze nie było mi po drodze z ukończeniem...
Składam hołd wytrwałym:
Tłumaczenie: lomcskw
Korekta i skład: jantom.
Edytowane przez asters dnia 24.02.2009 08:53:49
czasem lepsze jest wrogiem dobrego
|
|
|
|
Pieka |
Dodany dnia 24.02.2009 08:56:06
|
Postów: 19882 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Tak, to jest tlumaczenie z angielskiego, ale podziekowania w pierwszym rzedzie naleza sie koledze lomcskw, poniewaz to on jest autorem tlumaczenia, a jantom przeksztalcenia i dostosowania do naszych potrzeb (artykulow). Obu Panom jestesmy wdzieczni za prace i przede wszystkim efekt koncowy. Dziekujemy
Jestem jaki jestem
|
|
|
|
asters |
Dodany dnia 17.03.2009 15:08:33
|
Przedszkolak
Postów: 20
Data rejestracji: 17.10.2008 20:19
|
Dodaję połączone artukuły o konwersji themów przerobione do PDF. Autorem jest Matonor, tłumaczone przez lomcskw, redakcja - jantom.
Pozdrawiam.
//Musiałem poprawić - jantom
PW od moderatora:
- Przeniesienie posta - jantom 17.03 - 15:08
asters dodał/a następującą plik:
Edytowane przez jantom dnia 17.03.2009 15:03:39
czasem lepsze jest wrogiem dobrego
|
|
|
|
Cross77 |
Dodany dnia 02.05.2009 17:28:16
|
Przedszkolak
Postów: 38 Ostrzeżeń: 1
Data rejestracji: 30.04.2009 15:30
|
Mam problem otóż kupiłem : http://szabloniki...s-344.html
i chce go przerobić na v7. Problem jest taki że nie mam pliku theme.php jest tylko folder images i style.css
|
|
|
|
Chemikpil |
Dodany dnia 02.05.2009 18:01:48
|
Bywalec
Postów: 999 Pomógł: 54
Data rejestracji: 04.05.2008 21:46
|
Ponieważ ten szablon nie jest przystosowany do PF, więc musisz sam go przystosować.
Edytowane przez Pieka dnia 02.05.2009 21:21:43
|
|
|
|
Kaminho |
Dodany dnia 05.09.2009 21:29:49
|
Przedszkolak
Postów: 5
Data rejestracji: 05.06.2009 22:14
|
Mam problem z funkcjami openside() i opensidex(), nie wiem jak to przerobic w theme.php:
<style type="text/css">
#dropmenudiv{
position:absolute;
border:1px solid #292929;
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:14px;
z-index:100;
}
#dropmenudiv a{
width: 100%;
display:block;
text-indent: 3px;
border-bottom: 1px solid #292929;
padding: 1px 0;
text-decoration: none;
font-weight: bold;
}
#dropmenudiv a:hover{ /*hover background color*/
background-color:#545454;
}
</style>
<script type="text/javascript">
/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var menuwidth='165px' //default menu width
var menubgcolor='#6b6b6b' //menu bgcolor
var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?
/////No further editting needed
var ie4=document.all
var ns6=document.getElementById&&!document.all
if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}
function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}
function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)
if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
return clickreturnvalue()
}
function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}
function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}
function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}
function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
if (hidemenu_onclick=="yes")
document.onclick=hidemenu
</script><?
// theme settings
$body_text = "#ffffff";
$body_bg = "#000000";
$theme_width = "846";
$theme_width_l = "220";
$theme_width_r = "220";
if (!defined("IN_FUSION")) { die("Access Denied"); }
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $theme_width,$settings, $locale, $userdata, $aidlink, $db_prefix;
if (file_exists(INFUSIONS."user_info_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."user_info_panel/locale/English.php";
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table border=\"0\" align='center' cellpadding='0' cellspacing='0' ><tr>
<td><img src=\"".THEME."images/call_v2_32.gif\" width=\"905\" height=\"41\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</tr>
</table>
<table border=\"0\" align='center' cellpadding='0' cellspacing='0' ><tr>
<td><img src=\"".THEME."images/call_v2_33.gif\" width=\"206\" height=\"219\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td background=\"".THEME."images/call_v2_34.gif\" width=\"699\" height=\"219\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\">
<center>
<img src=\"http://img219.imageshack.us/img219/8215/ga2oe5.jpg\" border=\"1\"><br><br>
<img src=\"http://img219.imageshack.us/img219/8215/ga2oe5.jpg\" border=\"1\"></center>
</td>
</tr>
</table>
<table border=\"0\" align='center' cellpadding='0' cellspacing='0' >
<tr>
<td><img src=\"".THEME."images/call_v2_35.gif\" width=\"905\" height=\"34\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</tr>
<tr>
<td background=\"".THEME."images/call_v2_36.gif\" width=\"905\" height=\"39\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\">
<div style=\"padding-left: 90px\">
Theme by @ Y4ro |
Copyright games-area.pl
Powered by EP IV by <a href='http://www.extreme-fusion.pl/'>eXtreme Crew</a>
nr:".$settings['counter']."</div>
</td>
</tr>
</table>
</td></tr></table>";
}
}
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td background=\"".THEME."images/call_v2_02.gif\" width=\"321\" height=\"136\" valign=\"top\"><div style=\"padding-left: 2px; padding-right: 2px\"><br>
<!-- logowanie -->";
if (iMEMBER) {
opensidel();
echo " <center><table cellspacing='2'> <tr>\n";
echo ("<td class='login' > Witaj <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'" ."<span style='color:#".$userdata['user_color']."'>".$userdata['user_prefix'].$userdata['user_name']);
echo "</span></a></td>\n";
echo "</tr></table></center>";
if ($userdata['user_avatar'] != "") {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_prawa.png' height='12' width='12'></td></tr><tr>\n";
echo "<td align='left'><img src='".IMAGES."avatar_mod/srodek_lewa.png' width='12' height='100%'></td>\n";
echo "<td align='center' height='1%'>";
echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' hight='50' alt='".$data['user_name']."'></td>";
echo "<td align='right'><img src='".IMAGES."avatar_mod/srodek_prawa.png' height='100%' width='12'></td></tr><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_prawa.png' height='12' width='12'></td></tr>\n";
echo "</table></center>";
} else {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_prawa.png' height='12' width='12'></td></tr><tr>\n";
echo "<td align='left'><img src='".IMAGES."avatar_mod/srodek_lewa.png' width='12' height='100%'></td>\n";
echo "<td align='center' height='1%'>";
echo "<img src='".FORUM."/images/brak.gif' width='50' hight='50'></td>";
echo "<td align='right'><img src='".IMAGES."avatar_mod/srodek_prawa.png' height='100%' width='12'></td></tr><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_prawa.png' height='12' width='12'></td></tr>\n";
echo "</table></center>";
}
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Edytuj Profil</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Wiadomo¶ci</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Użytkownicy</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''><a href='".ADMIN."index.php$aidlink' class='side'> Administracja</a>\n";
}{echo "
<div style=\"text-align: center\"> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Wyloguj (x)</a></div>\n";
if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.php' class='side2'>".sprintf('Masz %u PW' , $msg_count)."</a></b></center>\n";
}
tablebreak();
} else {
opensidel();
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
Login <input type='text' name='user_name' class='panellogowania_texbox' value='nick' onBlur=\"if(this.value=='') this.value='nick';\" onFocus=\"if(this.value=='nick') this.value='';\" style=\"padding-top: 4px; padding-left: 5px; padding-right: 29px\" ><br><br>
Hasło <input type='password' name='user_pass' class='panellogowania_texbox' value='hasło' onBlur=\"if(this.value=='') this.value='hasło';\" onFocus=\"if(this.value=='hasło') this.value='';\" style=\" padding-top: 4px; padding-left: 5px; padding-right: 29px\"><br>
<input type='submit' name='login' value='Loguj' class='button'>
</form>\n";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' class='side'>Rejestracja /</a>\n";
}
echo "<a href='".BASEDIR."lostpassword.php' class='side'>Zgubione hasło</a>
</div>\n";
}
closesidel();
echo "</div>
</td>
<td ><img src=\"".THEME."images/call_v2_03.gif\" width=\"584\" height=\"136\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<td ><img src=\"".THEME."images/call_v2_05.gif\" width=\"905\" height=\"167\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<td ><a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/call_v2_06.gif\" width=\"127\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."forum/\"><img src=\"".THEME."images/call_v2_07.gif\" width=\"72\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."articles.php\"><img src=\"".THEME."images/call_v2_08.gif\" width=\"74\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."downloads.php\"><img src=\"".THEME."images/call_v2_09.gif\" width=\"88\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."photogallery.php\"><img src=\"".THEME."images/call_v2_10.gif\" width=\"70\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."viewpage.php?page_id=27\"><img src=\"".THEME."images/call_v2_11.gif\" width=\"79\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."\"onClick=\"return clickreturnvalue()\" onMouseover=\"dropdownmenu(this, event, menu1, '150px')\" onMouseout=\"delayhidemenu()\"><img src=\"".THEME."images/call_v2_12.gif\" width=\"80\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."\"onClick=\"return clickreturnvalue()\" onMouseover=\"dropdownmenu(this, event, menu2, '150px')\" onMouseout=\"delayhidemenu()\"><img src=\"".THEME."images/call_v2_13.gif\" width=\"78\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."\"onClick=\"return clickreturnvalue()\" onMouseover=\"dropdownmenu(this, event, menu3, '150px')\" onMouseout=\"delayhidemenu()\"><img src=\"".THEME."images/call_v2_14.gif\" width=\"80\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."\"onClick=\"return clickreturnvalue()\" onMouseover=\"dropdownmenu(this, event, menu4, '150px')\" onMouseout=\"delayhidemenu()\"><img src=\"".THEME."images/call_v2_15.gif\" width=\"78\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."\"onClick=\"return clickreturnvalue()\" onMouseover=\"dropdownmenu(this, event, menu5, '150px')\" onMouseout=\"delayhidemenu()\"><img src=\"".THEME."images/call_v2_16.gif\" width=\"79\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</table>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>
<td background=\"".THEME."images/call_v2_17.gif\" width=\"222\" height=\"218\" valign=\"top\"><br><br><div style=\"padding-left: 43px; padding-right: 29px\">";
include BASEDIR."infusions/info_panel/locale/Polish.php";
include BASEDIR."includes/theme.php";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr><td>";
echo "\n";
$result=dbquery("SELECT * FROM ep_users ORDER BY user_lastvisit DESC LIMIT 0,10");
if(dbrows($result)!=0){
while($data=dbarray($result)){
$lastseen=time()-$data['user_lastvisit'];
$iW=sprintf("%2d",floor($lastseen/604800));
$iD=sprintf("%2d",floor($lastseen/(60*60*24)));
$iH=sprintf("%02d",floor((($lastseen%604800)%86400)/3600));
$iM=sprintf("%02d",floor(((($lastseen%604800)%86400)%3600)/60));
$iS=sprintf("%02d",floor((((($lastseen%604800)%86400)%3600)%60)));
if($lastseen<60){
$lastseen="<font color='#CCCCCC'><b>na stronie</b></font>";
}elseif($lastseen<360){
$lastseen="<font color='#BBBBBB'><b>odchodzi</b></font>";
}elseif($iW>0){
if($iW==1) $Text="".$locale['XXX_007']."";
elseif($iW==2 || $iW==3 || $iW==4) $Text="".$locale['XXX_011']."";
else $Text="".$locale['XXX_008']."";
$lastseen="$iW $Text";
}elseif($iD>0){
if($iD==1) $Text="".$locale['XXX_009']."";
else $Text="".$locale['XXX_010']."";
$lastseen="$iD $Text";
}else{
$lastseen="$iH:$iM:$iS";
}
if (!isset($start)) $start="";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td class='small'>
<a href='".BASEDIR."profile.php?lookup=$data[user_id]'
onmouseover=\"gpe('$start<center><b>° ".$locale['XXX_017']." °</b></center><hr><b>".$locale['XXX_003']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_004']."</b>: ".$data['user_location']."<br><b>".$locale['XXX_005']."</b>: ".$data['user_msn']."<br><b>".$locale['XXX_006']."</b>: ".$data['user_posts']."$end')\" style='color:#".$data['user_color']."' onMouseout=\"hideddrivetip()\"><b>";
echo $data['user_prefix'].$data['user_name']."</b></a></td><td align=\"right\" class='small'>".$lastseen."</td></tr></table>";
}
}
if ($settings['maintenance'] != "1") {
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip, online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td class='small'> <b><span style=\"color: #C0C0C0\">".$locale['011']."</span></td><td align=\"right\" class='small'>".dbrows($result)."</b></td></tr></table>\n";
$result = dbquery(
"SELECT ton.*, user_id,user_name,user_color,user_prefix FROM ep_online ton
LEFT JOIN ep_users tu ON ton.online_user=tu.user_id
WHERE online_user!='0'"
);
} else {
echo $locale['013']."<br>\n";
}
echo "</td></tr></table>";
;
echo "
</div></td>
<td background=\"".THEME."images/call_v2_18.gif\" width=\"219\" height=\"218\" valign=\"top\"><br><br><div style=\"padding-left: 34px; padding-right: 29px\">";
if (!isset($usr_grps)) $usr_grps="";
$result = dbquery(
"SELECT tf.*, tt.*, tu.user_id,user_name,user_color,user_prefix FROM ep_forums tf
INNER JOIN ep_threads tt USING(forum_id)
INNER JOIN ep_users tu ON tt.thread_lastuser=tu.user_id
".$usr_grps." ORDER BY thread_lastpost DESC LIMIT 0,11");
if (dbrows($result) != 0) {
$i=0;
if ($theme_width == "100%") echo "\n";
while ($data = dbarray($result)) {
if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl1"; }
$new_posts = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."' and post_datestamp>'".(isset($lastvisited) ? $lastvisited : 0)."'");
//$thread_replies = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'") - 1;
$thread_replies = $data['thread_replies'];
$forum_id = $data['forum_id'];
if ($new_posts > 0) {
$folder123 = "<img src='".THEME."forum/foldernew.gif' height='11'>";
} else if ($new_posts > 19) {
$folder123 = "<img src='".THEME."forum/folderhot.gif' height='11'>";
} else {
if ($data['thread_locked'] == 1) {
$folder123 = "<img src='".THEME."forum/folderlock.gif' height='11'>";
} else if ($data['thread_locked'] == 0) {
$folder123 = "<img src='".THEME."forum/folder.gif' height='11'>";
}
}
//$reply_count = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'");
$reply_count = $data['thread_replies']+1;
$data2 = dbarray(dbquery("SELECT post_id FROM ep_posts WHERE thread_id='".$data['thread_id']."' ORDER BY post_id DESC LIMIT 1"));
$threads_message = $data['thread_subject'];
$threads_message = str_replace("'", "", $threads_message);
$rstart = ($reply_count > 20 ? "rowstart=".((ceil($reply_count / 20)-1)*20)."&" : "");
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"left\" width='65%' class='small'>";
if ($theme_width == "100%") {
echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onmouseover=\"ddrivetip('$start<center><b>° ".$locale['XXX_017']." °</b></center><hr><b>".$locale['XXX_019']."</b>: ".$threads_message."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost'])."$end')\"' onMouseout=\"hideddrivetip()\" >".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
echo "<td align=\"right\" width='35%'>[".($reply_count - 1)." / ".$data['thread_views']."]</td>";
} else {
echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onmouseover=\"gpe('text:<center><b>° ".$locale['XXX_017']." °</b></center><hr><b>".$locale['XXX_019']."</b> ".trimlink(str_replace("'", "", $data['thread_subject']), 45)."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost']).";')\" (".$data['forum_name'].")'>".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
echo "<td align=\"right\" width='35%'>[".($reply_count - 1)." / ".$data['thread_views']."]</td>";
}
echo "</tr></table>";
$i++;
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo "</div></td>
<td background=\"".THEME."images/call_v2_19.gif\" width=\"230\" height=\"218\" valign=\"top\"><br><br><div style=\"padding-left: 34px; padding-right: 8px\">";$result = dbquery("SELECT article_id, article_subject FROM ".$db_prefix."articles ORDER BY article_id DESC LIMIT 0,9");
while ($row = mysql_fetch_array($result))
{
echo '<img src="'.THEME.'images/bullet.gif" alt=""> <a href="readarticle.php?article_id=';
echo($row['article_id']);
echo '">';
echo($row['article_subject']);
echo '</a>';
echo '<br>';
}echo "</div></td>
<td background=\"".THEME."images/call_v2_20.gif\" width=\"234\" height=\"218\" valign=\"top\"><br><br><div style=\"padding-left: 34px; padding-right: 8px\">";$result = dbquery("SELECT article_id, article_subject FROM ".$db_prefix."articles ORDER BY article_id DESC LIMIT 0,9");
while ($row = mysql_fetch_array($result))
{
echo '<img src="'.THEME.'images/bullet.gif" alt=""> <a href="readarticle.php?article_id=';
echo($row['article_id']);
echo '">';
echo($row['article_subject']);
echo '</a>';
echo '<br>';
}echo "</div></td>
</tr></table>
</td>
</tr>
<tr><td style=\"height: 1px\"></td></tr>
<tr>
<td width=\"901\">\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"901\">
<tr>\n";
function render_news($subject, $news, $info) {
global $settings;
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"495\">
<tr>
<td background=\"".THEME."images/call_v2_24.gif\" width=\"495\" height=\"44\" style=\" padding-left: 15px; padding-right: 5px border=\"0\" alt=\"\"><b>$subject</b></td></tr><tr>
<td background=\"".THEME."images/call_v2_27.gif\" width=\"495\" height=\"22\" style=\" padding-left: 15px; padding-right: 5px\">
$news<br>
</td></tr><tr>
<td background=\"".THEME."images/call_v2_27.gif\" width=\"495\" height=\"2\" style=\"padding-left: 33px; padding-right: 33px\"><br><table width=\"100%\"><tr><td class='tbl2'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."<td class='tbl2'>".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<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;'></a></td></tr>
</table>
</td></tr><tr>
<td><img src=\"".THEME."images/call_v2_29.gif\" width=\"495\" height=\"27\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</tr>
</table>
";
}
function render_article($subject, $article, $info) {
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"495\">
<tr>
<td background=\"".THEME."images/call_v2_24.gif\" width=\"495\" height=\"44\" style=\" padding-left: 15px; padding-right: 5px border=\"0\" alt=\"\"><b>$article: $subject</b></td></tr><tr>
<td background=\"".THEME."images/call_v2_27.gif\" width=\"495\" height=\"22\" style=\" padding-left: 15px; padding-right: 5px\">
<b>$subject</b><br><br>
<div style=\"padding-left: 7px; padding-right: 7px\">".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>
</td></tr><tr>
<td background=\"".THEME."images/call_v2_27.gif\" width=\"495\" height=\"2\" style=\" padding-left: 15px; padding-right: 5px\"><table width='98%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl2'><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 align='right' class='tbl2'>
<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;'></a>
</td>
</tr>
</table>
</td></tr><tr>
<td><img src=\"".THEME."images/call_v2_29.gif\" width=\"495\" height=\"27\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</tr>
</table>
\n";
}
function opentable($title) {
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"495\">
<tr>
<td background=\"".THEME."images/call_v2_24.gif\" width=\"495\" height=\"44\" style=\" padding-left: 15px; padding-right: 5px border=\"0\" alt=\"\"><b>$title<b></td></tr><tr>
<td background=\"".THEME."images/call_v2_27.gif\" width=\"495\" height=\"22\" style=\" padding-left: 15px; padding-right: 15px\">";
}
function closetable() {
echo "
</td></tr><tr>
<td><img src=\"".THEME."images/call_v2_29.gif\" width=\"495\" height=\"27\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"203\">
<tr>
<td background=\"".THEME."images/call_v2_22.gif\" width=\"203\" height=\"44\" style=\" padding-left: 15px; padding-right: 5px border=\"0\" alt=\"\"><b>$title</b></td>
</tr>
<tr>
<td background=\"".THEME."images/call_v2_26.gif\" width=\"203\" height=\"129\" style=\" padding-left: 10px; padding-right: 10px\">
\n";
}
function closeside() {
echo "
</td>
</tr>
<tr>
<td><img src=\"".THEME."images/call_v2_28.gif\" width=\"203\" height=\"27\" border=\"0\" alt=\"[Rozmiar: 551 bajtów]\"></td>
</tr>
</table>\n";
tablebreak();
}
function opensidel() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>\n";
}
function closesidel() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
<td class='sidi-top-main'>$title</td>
<td align='right' class='sidi-top-main'><img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'></td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='side-body'>
<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closeside() {
echo "</div>
<td class='border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='5'></td></tr>
</table>\n";
}
?>
Edytowane przez Pieka dnia 05.09.2009 21:51:44
|
|
|
|
Szapko |
Dodany dnia 05.09.2009 22:19:03
|
Bywalec
Postów: 888 Pomógł: 66
Data rejestracji: 19.08.2007 19:49
|
Powinno wyglądać to tak:
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"203\">
<tr>
<td background=\"".THEME."images/call_v2_22.gif\" width=\"203\" height=\"44\" style=\" padding-left: 15px; padding-right: 5px border=\"0\" alt=\"\"><b>$title</b>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div aling='right'>".panelbutton($state, $boxname)."</div>\n";
}
echo "</td>
</tr>
<tr>
<td background=\"".THEME."images/call_v2_26.gif\" width=\"203\" height=\"129\" style=\" padding-left: 10px; padding-right: 10px\">\n";
}
if ($collapse == true) { echo panelstate($state, $boxname); }
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>
</tr>
<tr>
<td><img src=\"".THEME."images/call_v2_28.gif\" width=\"203\" height=\"27\" border=\"0\" alt=\"[Rozmiar: 551 bajtów]\"></td>
</tr>
</table>\n";
}
Oczywiście może się coś rozjeżdżać, ale bez theme i testów nic na to nie poradzę. Sam powinieneś sobie dać radę, bo to wcale nie jest takie trudne.
A i pamiętaj o usunięciu opensidex, closesidex i tablebreak, bo to w PF v7 jest niepotrzebne. |
|
|
|
Kaminho |
Dodany dnia 07.09.2009 20:29:03
|
Przedszkolak
Postów: 5
Data rejestracji: 05.06.2009 22:14
|
Dziala, ale teraz mam kolejny problem
Blad:
Notice: Undefined variable: collapse in G:\Program Files\WebServ\httpd\themes\GTA4-GA\theme.php on line 258
theme.php
<style type="text/css">
#dropmenudiv{
position:absolute;
border:1px solid #292929;
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:14px;
z-index:100;
}
#dropmenudiv a{
width: 100%;
display:block;
text-indent: 3px;
border-bottom: 1px solid #292929;
padding: 1px 0;
text-decoration: none;
font-weight: bold;
}
#dropmenudiv a:hover{ /*hover background color*/
background-color:#545454;
}
</style>
<script type="text/javascript">
/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var menuwidth='165px' //default menu width
var menubgcolor='#6b6b6b' //menu bgcolor
var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?
/////No further editting needed
var ie4=document.all
var ns6=document.getElementById&&!document.all
if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}
function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}
function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)
if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
return clickreturnvalue()
}
function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}
function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}
function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}
function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
if (hidemenu_onclick=="yes")
document.onclick=hidemenu
</script><?
// theme settings
$body_text = "#ffffff";
$body_bg = "#000000";
$theme_width = "846";
$theme_width_l = "220";
$theme_width_r = "220";
define("THEME_BULLET", "<span class='bullet'>·</span>");
if (!defined("IN_FUSION")) { die("Access Denied"); }
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $theme_width,$settings, $locale, $aidlink, $db_prefix, $news, $subject, $info;
echo "
<table cellpadding='0' cellspacing='0' width='100%'>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "<table border=\"0\" align='center' cellpadding='0' cellspacing='0' ><tr>
<td><img src=\"".THEME."images/call_v2_32.gif\" width=\"905\" height=\"41\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</tr>
</table>
<table border=\"0\" align='center' cellpadding='0' cellspacing='0' ><tr>
<td><img src=\"".THEME."images/call_v2_33.gif\" width=\"206\" height=\"219\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td background=\"".THEME."images/call_v2_34.gif\" width=\"699\" height=\"219\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\">
<center>
<img src=\"http://img219.imageshack.us/img219/8215/ga2oe5.jpg\" border=\"1\"><br><br>
<img src=\"http://img219.imageshack.us/img219/8215/ga2oe5.jpg\" border=\"1\"></center>
</td>
</tr>
</table>
<table border=\"0\" align='center' cellpadding='0' cellspacing='0' >
<tr>
<td><img src=\"".THEME."images/call_v2_35.gif\" width=\"905\" height=\"34\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</tr>
<tr>
<td background=\"".THEME."images/call_v2_36.gif\" width=\"905\" height=\"39\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\">
<div style=\"padding-left: 90px\">
Theme by @ Y4ro |
Copyright games-area.pl
Powered by EP IV by <a href='http://www.extreme-fusion.pl/'>eXtreme Crew</a>
</div>
</td>
</tr>
</table>
</td></tr></table>";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"203\">
<tr>
<td background=\"".THEME."images/call_v2_22.gif\" width=\"203\" height=\"44\" style=\" padding-left: 15px; padding-right: 5px border=\"0\" alt=\"\"><b>$title</b>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div aling='right'>".panelbutton($state, $boxname)."</div>\n";
}
echo "</td>
</tr>
<tr>
<td background=\"".THEME."images/call_v2_26.gif\" width=\"203\" height=\"129\" style=\" padding-left: 10px; padding-right: 10px\">\n";
}
if ($collapse == true) { echo panelstate($state, $boxname); }
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>
</tr>
<tr>
<td><img src=\"".THEME."images/call_v2_28.gif\" width=\"203\" height=\"27\" border=\"0\" alt=\"[Rozmiar: 551 bajtów]\"></td>
</tr>
</table>\n";
}
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td background=\"".THEME."images/call_v2_02.gif\" width=\"321\" height=\"136\" valign=\"top\"><div style=\"padding-left: 2px; padding-right: 2px\"><br>
<!-- logowanie -->";
if (iMEMBER) {
echo "<center><table cellspacing='2'> <tr>\n";
echo "<td class='login' ><br><br><a href='".BASEDIR."profile.php?lookup=".$userdata['user_id'].$userdata['user_name'];
echo "</span></a></td>\n";
echo "</tr></table></center>";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Edytuj Profil</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Wiadomo¶ci</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Użytkownicy</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''><a href='".ADMIN."index.php$aidlink' class='side'> Administracja</a>\n";
}{echo "
<div style=\"text-align: center\"> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Wyloguj (x)</a></div>\n";
if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.php' class='side2'>".sprintf('Masz %u PW' , $msg_count)."</a></b></center>\n";
}
} else {
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
Login <input type='text' name='user_name' class='panellogowania_texbox' value='nick' onBlur=\"if(this.value=='') this.value='nick';\" onFocus=\"if(this.value=='nick') this.value='';\" style=\"padding-top: 4px; padding-left: 5px; padding-right: 29px\" ><br><br>
Hasło <input type='password' name='user_pass' class='panellogowania_texbox' value='hasło' onBlur=\"if(this.value=='') this.value='hasło';\" onFocus=\"if(this.value=='hasło') this.value='';\" style=\" padding-top: 4px; padding-left: 5px; padding-right: 29px\"><br>
<input type='submit' name='login' value='Loguj' class='button'>
</form>\n";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' class='side'>Rejestracja /</a>\n";
}
echo "<a href='".BASEDIR."lostpassword.php' class='side'>Zgubione hasło</a>
</div>\n";
}
echo "</div>
</td>
<td ><img src=\"".THEME."images/call_v2_03.gif\" width=\"584\" height=\"136\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<td ><img src=\"".THEME."images/call_v2_05.gif\" width=\"905\" height=\"167\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<td ><a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/call_v2_06.gif\" width=\"127\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."forum/\"><img src=\"".THEME."images/call_v2_07.gif\" width=\"72\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."articles.php\"><img src=\"".THEME."images/call_v2_08.gif\" width=\"74\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."downloads.php\"><img src=\"".THEME."images/call_v2_09.gif\" width=\"88\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."photogallery.php\"><img src=\"".THEME."images/call_v2_10.gif\" width=\"70\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."viewpage.php?page_id=27\"><img src=\"".THEME."images/call_v2_11.gif\" width=\"79\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."\"onClick=\"return clickreturnvalue()\" onMouseover=\"dropdownmenu(this, event, menu1, '150px')\" onMouseout=\"delayhidemenu()\"><img src=\"".THEME."images/call_v2_12.gif\" width=\"80\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."\"onClick=\"return clickreturnvalue()\" onMouseover=\"dropdownmenu(this, event, menu2, '150px')\" onMouseout=\"delayhidemenu()\"><img src=\"".THEME."images/call_v2_13.gif\" width=\"78\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."\"onClick=\"return clickreturnvalue()\" onMouseover=\"dropdownmenu(this, event, menu3, '150px')\" onMouseout=\"delayhidemenu()\"><img src=\"".THEME."images/call_v2_14.gif\" width=\"80\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."\"onClick=\"return clickreturnvalue()\" onMouseover=\"dropdownmenu(this, event, menu4, '150px')\" onMouseout=\"delayhidemenu()\"><img src=\"".THEME."images/call_v2_15.gif\" width=\"78\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td ><a href=\"".BASEDIR."\"onClick=\"return clickreturnvalue()\" onMouseover=\"dropdownmenu(this, event, menu5, '150px')\" onMouseout=\"delayhidemenu()\"><img src=\"".THEME."images/call_v2_16.gif\" width=\"79\" height=\"44\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</table>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>
<td background=\"".THEME."images/call_v2_17.gif\" width=\"222\" height=\"218\" valign=\"top\"><br><br><div style=\"padding-left: 43px; padding-right: 29px\">";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr><td>";
echo "Tekst Tekst Tekst";
echo "</td></tr></table>";
;
echo "
</div></td>
<td background=\"".THEME."images/call_v2_18.gif\" width=\"219\" height=\"218\" valign=\"top\"><br><br><div style=\"padding-left: 34px; padding-right: 29px\">";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr><td>";
echo "Tekst Tekst Tekst";
echo "</td></tr></table>";
;
echo "</div></td>
<td background=\"".THEME."images/call_v2_19.gif\" width=\"230\" height=\"218\" valign=\"top\"><br><br><div style=\"padding-left: 34px; padding-right: 8px\">";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr><td>";
echo "Tekst Tekst Tekst";
echo "</td></tr></table>";
;
echo "</div></td>
<td background=\"".THEME."images/call_v2_20.gif\" width=\"234\" height=\"218\" valign=\"top\"><br><br><div style=\"padding-left: 34px; padding-right: 8px\">";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr><td>";
echo "Tekst Tekst Tekst";
echo "</td></tr></table>";
;
echo "</div></td>
</tr></table>
</td>
</tr>
<tr><td style=\"height: 1px\"></td></tr>
<tr>
<td width=\"901\">\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"901\">
<tr>\n";
function render_news($subject, $news, $info) {
global $settings;
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"495\">
<tr>
<td background=\"".THEME."images/call_v2_24.gif\" width=\"495\" height=\"44\" style=\" padding-left: 15px; padding-right: 5px border=\"0\" alt=\"\"><b>$subject</b></td></tr><tr>
<td background=\"".THEME."images/call_v2_27.gif\" width=\"495\" height=\"22\" style=\" padding-left: 15px; padding-right: 5px\">$news<br>
</td></tr>
</table>
</td></tr><tr>
<td><img src=\"".THEME."images/call_v2_29.gif\" width=\"495\" height=\"27\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</tr>
</table>
";
}
function render_article($subject, $article, $info) {
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"495\">
<tr>
<td background=\"".THEME."images/call_v2_24.gif\" width=\"495\" height=\"44\" style=\" padding-left: 15px; padding-right: 5px border=\"0\" alt=\"\"><b>$article: $subject</b></td></tr><tr>
<td background=\"".THEME."images/call_v2_27.gif\" width=\"495\" height=\"22\" style=\" padding-left: 15px; padding-right: 5px\">
<b>$subject</b><br><br>
<div style=\"padding-left: 7px; padding-right: 7px\">".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>
</td></tr><tr>
<td background=\"".THEME."images/call_v2_27.gif\" width=\"495\" height=\"2\" style=\" padding-left: 15px; padding-right: 5px\"><table width='98%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl2'><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 align='right' class='tbl2'>
<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;'></a>
</td>
</tr>
</table>
</td></tr><tr>
<td><img src=\"".THEME."images/call_v2_29.gif\" width=\"495\" height=\"27\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</tr>
</table>
\n";
function opentable($title) {
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"495\">
<tr>
<td background=\"".THEME."images/call_v2_24.gif\" width=\"495\" height=\"44\" style=\" padding-left: 15px; padding-right: 5px border=\"0\" alt=\"\"><b>$title<b></td></tr><tr>
<td background=\"".THEME."images/call_v2_27.gif\" width=\"495\" height=\"22\" style=\" padding-left: 15px; padding-right: 15px\">";
}
function closetable() {}
echo "
</td></tr><tr>
<td><img src=\"".THEME."images/call_v2_29.gif\" width=\"495\" height=\"27\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"203\">
<tr>
<td background=\"".THEME."images/call_v2_22.gif\" width=\"203\" height=\"44\" style=\" padding-left: 15px; padding-right: 5px border=\"0\" >
<b>$title</b>
</td>
</tr>
<tr>
<td background=\"".THEME."images/call_v2_26.gif\" width=\"203\" height=\"129\" style=\" padding-left: 10px; padding-right: 10px\">
</td>
</tr>
";
echo " <tr>
<td><img src=\"".THEME."images/call_v2_28.gif\" width=\"203\" height=\"27\" border=\"0\" ></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>\n";
echo "</td>
</tr>
</table>\n";
}
function closetable() {}
?>
Panele nie maja okreslonej szerokosci i srodkowy ma grafike boczna zamiast swojej.Po zalogowaniu sie top rozjezdza.
Edytowane przez Kaminho dnia 12.09.2009 09:33:32
|
|
|
|
Mathev1 |
Dodany dnia 08.10.2009 22:13:59
|
Przedszkolak
Postów: 9
Data rejestracji: 18.03.2009 19:58
|
Witam, mam takie pytanko.. Mam thema składającego się z pliku php i css i tu problem.. Jak dostosować kod zeby strona nie rozjezdzała w roznych rozdzielczościach ekranu?
Kod css:
body {
margin: 0;
padding: 0;
font-size: 10px;
color: #38394B;
background:#3E7CB8 url(images/tlo.jpg) repeat-x;
}
a {
color:#000000;
text-decoration:none;
}
.color {width:15px;height:10px}
a:hover {
color:#DE8300A;
text-decoration:underline;
}
a.side {
color:#000000;
text-decoration:none;
}
a:hover.side {
color:#EC8701;
text-decoration:underline;
}
img { border: 0px;}
.kod
{ color: #1840A9;
font-family: verdana, sans-serif;
font-size: 11px;
font-weight: none;
text-align: left;
margin-top: 1em;
margin-bottom: 1em;
}
#top {background:url(images/top.jpg) no-repeat;width:800px;height:127px;}
.txttop {margin:10px 0 0 500px;text-align:justify;line-height:16px;width:330px;color:#A17415}
#menu {height:24px;background:url(images/tlonav.jpg);width:100%;border-bottom:1px solid #CFCFCF;}
#nawigacja a {float:left; font-size:10px; text-transform:uppercase; padding:10px 20px; border-right:1px solid #F7D10D;border-bottom:1px solid #F7D10D;text-decoration:none; color:#fff; font-weight:bold;}
#nawigacja a:hover {background:#EEA000;border-right:1px solid #F7D10D;border-bottom:1px solid #F7D10D}
.topnav {background:url(images/tlonav.jpg);height:6px}
.white,.white a {color:white;}
h1 {font-size:10px}
a.subheader-text { color:#fff; text-decoration:none; font-weight:bold;}
a:hover.subheader-text { color:#000; text-decoration:none;}
form {
margin:0px 0px 0px 0px;
}
.tlolinki {padding-top:5px;height:15px;background:#464F54}
.tlolinki2 {padding-top:5px;height:4px;background:#464F54}
hr {height:0px;border:solid #1D5B88 1px;border-top-width: 1px;padding:0px;margin:0px}
hr.side-hr {height:0px; border:solid #1D5B88 0px;border-top-width:1px;padding:0px;margin:0px}
td {
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size:10px;
}
pre {
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size:10px;
}
.alt {
color:#555;
}
#clockbar {
background: #3D759A url(images/bg_page_topbar.jpg) repeat-x left top;
}
.clockbarcolor {
color: #E8E8E8;
background: transparent;
font-size: 10px;
text-align: right;
padding: 17px 10px 6px 20px;
}
#pageheader {
background: #23628B url(images/bg_header.jpg) repeat-x left top;
border-bottom: 1px solid #000;
}
.subheader {
font-size:11px;
font-weight:bold;
background: #F0F0F2 url(images/bg_nav.jpg) repeat-x left top;
padding: 4px 7px 3px 7px;
border-bottom: 1px solid #ADC1CE;
}
.subheader-text {font-size:10px;}
.input {
border-top: 1px solid #A8BDCA;
border-left: 1px solid #A8BDCA;
border-bottom: 1px solid #A8BDCA;
border-right: 1px solid #A8BDCA;
color: #42435A;
background:#19376B;
font-size: 10px;
height: 1.7em;
}
.submit {
font-size: 10px;
font-weight: bold;
border-top: 1px solid #95B6CB;
border-left: 1px solid #95B6CB;
border-right: 1px solid #000;
border-bottom: 1px solid #000;
letter-spacing: .1em;
margin: 0;
padding: 1px 4px 1px 4px;
background-color: #DE8300;
color: #FFFFFF;
cursor:pointer;
cursor: hand;
}
.footer {
font-size:10px;
color:#fff;
background-color:#1D5B88;
border-bottom:4px solid #18527C;
border-top:4px solid #3086C5;
padding:0 0 0 10px
}
.footer a:link,.footer a:visited,.footer a:hover {color: #212D3A;text-decoration: none;}
.button {
font-size: 10px;
font-weight: bold;
border: 1px solid #4D7C0E;
background-color: #4B6188;
color: #FFFFFF;
margin-top:2px;
cursor:pointer;
cursor: hand;
}
.textbox {
border-top: 1px solid #A8BDCA;
border-left: 1px solid #A8BDCA;
border-bottom: 1px solid #A8BDCA;
border-right: 1px solid #A8BDCA;
color: #42435A;
background: #EDEDED url(images/bg_td_one.jpg) repeat-x left top;
font-size: 11px;
}
.main-body {
font-size:10px;
color:#555;background-color:#EDEDED;
background-image:url(images/bg_td_one.jpg);
background-repeat:repeat-x;
padding:4px 4px 5px 4px;
}
.main-bg {
background-color:#ffffff;
padding:5px;
}
.side-border-left {
padding:5px;
background:white;
}
.side-border-right {
padding:5px;
background:white;
}
.td-cell1 {
background:#184069;
color: white;
padding: 3px 6px 3px 6px;
}
.td-cell12 {
background:#326191;
color: white;
padding: 3px 6px 3px 6px;
}
.td-cell1 a,.td-cell12 a{color:white}
.td-cell1 a:hover,.td-cell12 a:hover {color:#FFDA47}
.td-cell11 {line-height:20px;padding:10px;color:#0E598D;text-align:justify;border-right:1px solid #FA9403;border-left:1px solid #FA9403}
.td-cell123 {line-height:20px;background:#DFE6F3;color:#0E598D;text-align:justify;border:1px solid #5574A9;padding:10px}
.td-cell2 {
background: #1D5B88;
font-size: 8px;
color: #fff;
padding: 2px 3px 3px 3px;
border-left:1px solid #696E6F;
border-right:1px solid #696E6F;
border-bottom:1px solid #696E6F;
}
.td-cell22 {
background: #F6C414;
font-size: 9px;
color: #fff;
padding: 4px 6px 0px 6px;
}
.td-cell22 a {color:white}
.quicktip {
background: #24638C url(images/bg_table_row_heading.jpg) repeat-x left top;
color: #ffffff;
font-weight: bold;
text-align: left;
height: 22px;
padding:0px 4px 0px 4px;
}
.dodal {text-align:left;display:block;}
.tableHeadingBG {background:#2F4F4F url(images/tlo2.jpg);color:#FFDA47;font-weight: bold; height: 41px;text-align:right;text-transform:uppercase;font-size:9px;padding:0 30px 0 0}
.dolm {background:#2F4F4F url(images/dolm.jpg);height:11px}
.doln {background:#2F4F4F url(images/doln.jpg);height:11px}
.doln2 {background:#2F4F4F url(images/doln2.jpg);height:11px}
.tableHeadingBG2 {background: url(images/topn.jpg); color:#206D89; font-weight: bold; text-align: left; height: 38px; text-align:center;text-transform:uppercase;font-size:9px}
.tableHeadingBG3 {background: url(images/topn2.jpg); color:#fff; font-weight: bold; text-align: left; height: 38px; text-align:center;text-transform:uppercase;font-size:9px}
.tableHeading {
font-size: 10px;
font-weight: bold;
color: #FFFFFF;
padding: 3px 0px 0px 5px;
margin: 0;
background-color: transparent;
white-space: nowrap;
}
.tbl-border {
background-color:#42494A;
}
.tbl {
font-size:10px;
color:#fff;
padding:0px;
}
.tbl1 {
font-size:10px;
background-color:#fff;
color: #000;
padding: 3px 6px 3px 6px;
border-top: 1px solid #FFFFFF;
border-bottom: 0px solid #ADC1CE;
border-left: 1px solid #FFFFFF;
border-right: 0px solid #ADC1CE;
}
.tbl1 a {color:173974;font-weight:bold}
.tbl2 { font-size:10px; background:#395484;color: #fff;padding: 4px 6px 5px 6px;border: 1px solid #FFFFFF;}
.tbl3 { font-size:10px; color: #000;padding: 3px 6px 3px 6px;border: 1px solid #FFFFFF;}
.tbl2 a:link,.tbl2 a:visited,.tbl2 a:active,.tbl3 a:link,.tbl3 a:visited,.tbl3 a:active {color: #000;text-decoration: none;}
.tbl2 a:hover,.tbl3 a:hover {color:black;text-decoration: underline;}
.forum-caption {
font-size: 10px; font-weight:bold;
color: #DE8300; background-color:#FEFEFE;
background-image:url(images/bg_table_row_heading.jpg);
background-repeat:repeat-x;
height: 24px;
padding: 4px 4px 4px 4px;
}
.quote {
background: #F2F5F6;
border-left: 1px solid #ADC1CE;
border-top: 1px solid #ADC1CE;
border-bottom: 1px solid #ADC1CE;
border-right: 1px solid #ADC1CE;
font-size: 11px;
color: #31607E;
margin: 8px 4px 10px 3px;
padding: 10px 10px 10px 6px;
}
.poll { height:12px;
border:1px #ADC1CE solid; }
.comment-name {
font-weight:bold;
color:#38394B;
}
.shoutboxname {
font-weight:bold;
color:#38394B;
}
.shoutbox {
color:#38394B;
}
.shoutboxdate {
font-size:9px;
color:#888;
}
.small {
font-size:10px;
color: #000000;
font-weight:normal;
}
.small2 { font-size:9px; font-weight:normal; color:#555; }
.small3 { font-size:10px; font-weight:normal; color:#fff; }
.side-small {
font-size:9px;
font-weight:normal;
color:#555;
}
.side-label {
background-color:#074C74;
padding:2px 2px 3px 2px; color:#F99C18
}
.gallery {
padding: 16px 0px 8px 0px;
}
.gallery img {
border: 1px solid #ccc;
filter: gray;
}
.gallery:hover img {
border: 1px solid #1473AD;
filter: none;
}
img.activegallery {
border: 1px solid #1473AD;
filter: none;
}
Kod php:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2007 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
// theme settings
$body_text = "#555555";
$body_bg = "#FEFEFE";
$theme_width = "965";
$theme_width_l = "200";
$theme_width_r = "200";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='body-border'>
<tr><td>
<table cellpadding='0' cellspacing='0' width='100%'><tr>
<td>";
echo '
<table cellpadding="0" cellspacing="0">
<tr>
<td id="top">
<div class="top">
</div>
</td>
</tr>
<tr>
<td id="menu">';
echo "<div id='nawigacja'> ".showsublinks("","subheader-text")."</div>
</td></tr></table>";
echo "
</td></tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td class='footer'>".stripslashes($settings['footer'])."</td><td class='footer'><img align='right' src='".THEME."images/sd.jpg'></a></td></tr><tr>";
echo "</tr></table></td></tr></table>\n";
}
function render_news($subject, $news, $info) {
$subject = strip_tags($subject);
echo "<table style='WIDTH: 100%;' cellSpacing='0' cellPadding='2' border='0'><tr>
<td class='tableHeadingBG2'> $subject </td></tr>
<tr><td class='td-cell11' style='WIDTH: 100%' vAlign='top'>$news</td></tr>
<tr><td class='td-cell22' align='center' style='WIDTH: 100%'>
<div class='dodal'>";
echo openform("N",$info['news_id']).newsposter($info," :").newsopts($info," :").closeform("N",$info['news_id']);
echo "</div>
</td></tr><tr><td class='doln2'></td></tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table style='WIDTH: 100%;' cellSpacing='0' cellPadding='2' border='0'><tr>
<td class='tableHeadingBG3'> $subject</td></tr>
<tr><td class='td-cell123' style='WIDTH: 100%' vAlign='top'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr>
<tr><td class='td-cell2' align='center' style='WIDTH: 100%'>
<table cellSpacing='0' cellPadding='0' border='0'><tr><td align='center'><div class=white>";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info," ·").closeform("A",$info['article_id']);
echo "</div></td>
</tr></table>
</td></tr></table>\n";
}
function opentable($title) {
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>
<td class='tableHeadingBG3'>$title</td></tr><tr><td class='td-cell12' vAlign='top'>";}
function closetable() {
echo "</td></tr><tr><td class='doln'></td></tr></table>\n";}
function openside($title) {
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'>
<tr><td class='tableHeadingBG'> $title</td></tr><tr><td class='td-cell1' vAlign='top'>";}
function closeside() {
echo "</td></tr><tr><td class='dolm'></td></tr></table>\n";
tablebreak();}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>
<td class='tableHeadingBG'>
<div class='tableHeading'>$title</div></td>
<td align='right' class='tableHeadingBG'>".panelbutton($state,$boxname)."</td></tr>
<tr><td class='td-cell1' vAlign='top' colspan='2'><font color=white>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div></td></tr></table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
U mnie przy rozdzielczosci 1152x864 jest ok, ale u innych przy innych rozdzielczosciach ucina logo i stopke.. Bardzo prosze o pomoc..
Wiadomość doklejona:
Znalazłem kod w javascript.. Nie próbowałem.. Postaram się coś kiedyś pokombinować odnośnie rozdzielczości strony.. Ale teraz co do tych plików u góry.. "*.css i *.php" Jeśli ktoś wie.. Prosze o pomoc.. Nie wiem czemu.. Ale ucina mi logo/top.. Próbowałem zmieniać w kodzie.. Ale nie wiem czemu się nie da.. Prosze o pomoc.. Z góry dziekuję :)
Pozdrawiam :)
Edytowane przez Mathev1 dnia 11.10.2009 14:55:36
"Z idiotą się nie duskutuje, najpierw sprowadzi Cię do swojego poziomu, po czym przewyższy doświadczeniem..."
|
|
|
|
thcteam |
Dodany dnia 22.09.2010 21:29:32
|
Przedszkolak
Postów: 2
Data rejestracji: 09.08.2008 21:20
|
Artur-M napisał/a:
Dzięki bartek124 za "instrukcję" po polsku. To zaczynam pracę w takim razie nad dostosowaniem skórki "Heroes" (moja ulubiona, pasuje do gry Ikariam).
Wiadomość doklejona:
bartek124 napisał/a:
(...) dodajemy brakujące klasy w css (nie wymienię Ci teraz wszystkich bo nie pamiętam ale między innymi .bbcode, .admin_message itp).
Ok, te 2 klasy dodałem, ale to nie wszystko. Poszukam jeszcze różnic i, jak coś znajdę, dam znać.
Że też nie ma programu, który by pokazywał różnice w 2 plikach tekstowych (jak w "Total Commanderze" - porównuje 2 kolumny)...
Jak to nie ma programu... Polecam WinMerge.
Darmowy i pozwala porownywac pliki tak jak
potrzeba i jak to wymieniles...
Pozdrawiam |
|
|
|
Pieka |
Dodany dnia 22.09.2010 22:08:24
|
Postów: 19882 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Alez ten kolega o tym wie od dawna: http://www.php-fu...d_id=23233
Jestem jaki jestem
|
|
|