Panel logowania i użytkownika wbudowany w logo
|
Sosna |
Dodany dnia 12.12.2007 19:32:49
|
Przedszkolak
Postów: 24
Data rejestracji: 15.11.2006 21:45
|
Udało się! Ten screen przedstawia wyniki pracy. Dzięki, Pieka! |
|
|
|
Wścibski Gość |
Dodany dnia 23.11.2024 08:06:55
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
Elvis92 |
Dodany dnia 29.03.2008 18:25:49
|
Przedszkolak
Postów: 74 Pomógł: 2
Data rejestracji: 27.02.2008 18:09
|
Ja mam styl bemine, i chciałbym żeby logowanie było po prawej stronie, poniżej wklejam kod mojego theme.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#7E9731";
$body_bg = "#000000";
$theme_width = "1100";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$settings;
echo "<script type='text/javascript' src='".THEME."/grade.js'></script>";
echo "<div style='position:absolute; top:1em; left:8%;'>".stripslashes($settings['siteintro'])."</div>";
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'></td>
</tr>
</table>\n";
echo "<center><img src='".THEME."images/header.jpg' alt=''></center>\n";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' align='center'>\n";
echo "<tr><td class='sub-header'>";
echo "</td></tr></table>";
echo "<table width='100%' border='0' cellpadding='4' cellspacing='0'><tr>";
echo "<td height='28' class='sub-header' align='center'>".showsublinks("<img src='".THEME."images/divider.gif' alt=''>")."</td>\n";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
}
echo "<center><td height='25' class='sub-header' align='center'>".stripslashes($settings['footer'])."</td></center>\n";
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td height='100' align='center' class='footer'>
<b><font size=1>
Powered by <a href='http://www.php-fusion.co.uk'>PHP-Fusion</a> v6.01.6 || EP IV by <a href='http://extreme-fusion.pl'>eXtreme Crew</a>
</b>
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td height='26' class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<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<tr>\n<td height='25'></td>\n</tr>\n</table>\n";
}
?>
|
|
|
|
bartek124 |
Dodany dnia 29.03.2008 18:36:28
|
Weteran
Postów: 3264 Pomógł: 236
v7.02.06 Data rejestracji: 26.05.2007 12:25
|
Ja mam styl bemine, i chciałbym żeby logowanie było po prawej stronie, poniżej wklejam kod mojego theme.php
Słuchaj kolego, to nie jest koncert życzeń. Masz 3 strony o tym, poczytaj, poszukaj o budowie tabel i dojdziesz do rozwiązania .
Nie pomagam na komunikatorach oraz PW!
|
|
|
|
Xaros |
Dodany dnia 18.04.2008 16:32:02
|
Przedszkolak
Postów: 29 Ostrzeżeń: 1
Data rejestracji: 13.03.2006 17:57
|
Witam, ja również bym chciał mieć ekran logowania po prawej stronie lecz te info podane powyżej nie satysfakcjonują mnie i nie pomagają. Ja od niedawna bawię się PHP Fusion'em więc jestem jako tako laikiem :) Więc proszę o pomoc ludzi znających się na rzeczy co mam zmienić w tym kodzie (theme.php)
Chodzi mi by to było tak jak na:
http://www.hostin...
Tyle, że pod moją stronę.
<?php
// theme settings
$body_text = "#000000";
$body_bg = "#000000";
$theme_width = "1000";
$theme_width_l = "200";
$theme_width_r = "200";
function render_header($header_content) {
global $theme_width,$settings;
echo "<center><table width=\"1000\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td height=\"269\" align=\"center\" valign=\"bottom\"
background=\"".THEME."header/head.jpg\">
<div align='right'>".ucwords(showdate($settings['subheaderdate'],
time()))." </div>
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE
link_visibility<='".iUSER."' AND link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 1;
while($data = dbarray($result)) {
if ($data['link_url']!="---") {
$link_target = ($data['link_window'] == "1" ? " target='_blank'" :
"");
if (strstr($data['link_url'], "http://") ||
strstr($data['link_url'], "https://")) {
echo "<td width=\"100\" height=\"32\" align=\"center\"
background=\"".THEME."images/button.jpg\"><a
href='".$data['link_url']."'".$link_target."><h3>".$data['link_name']."</h3></a></td>";
} else {
echo "<td width=\"100\" height=\"32\" align=\"center\"
background=\"".THEME."images/button.jpg\"><a
href='".BASEDIR.$data['link_url']."'".$link_target."><h3>".$data['link_name']."</h3></a></
td>";
}
}
if ($i != dbrows($result)) { echo "<td width=\"17\" height=\"32\"
align=\"center\" background=\"".THEME."images/buttonb.gif\"></td>"; } else { echo "\n"; }
$i++;
}
}
echo "</td>
</tr>
</table>
</td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"16\" background=\"".THEME."panels/leftborder.jpg\"> </td>
<td>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</td>
<td width=\"16\" background=\"".THEME."panels/rightborder.jpg\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"16\" background=\"".THEME."panels/leftborder.gif\"> </td>
<td align='center'>".stripslashes($settings['footer'])."</td>
<td width=\"16\" background=\"".THEME."panels/rightborder.gif\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td>
<img name=\"wow_foot1\" src=\"".THEME."footer/wow_foot.jpg\" width=\"1000\" height=\"150\"
border=\"0\" usemap=\"#m_wow_foot1\" alt=\"\">
<map name=\"m_wow_foot1\">
<area shape=\"rect\" coords=\"94,76,345,90\" href=\"http://www.nhngames.com/\"
target=\"_blank\" title=\"NHN Games\" alt=\"NHN Games\" >
</map>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"57\" height=\"47\"
background=\"".THEME."panels/ctl.jpg\"> </td>
<td background=\"".THEME."panels/ctm.jpg\"> </td>
<td width=\"116\" height=\"47\"
background=\"".THEME."panels/ctr.jpg\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"15\"
background=\"".THEME."panels/cborderl.gif\"> </td>
<td bgcolor=\"#212723\">
<table width=\"100%\" border=\"0\" cellspacing=\"0\"
cellpadding=\"0\">
<tr>
<td align=\"center\" class='center-caption'>$subject</td>
</tr>
<tr>
<td class='main-body'><hr>$news</td>
<tr>
<td align='center'><hr>".$locale['040']." <a
href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])." --- ";
echo "".($info['news_ext'] == "y" ? "<a
href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> <b>·</b>\n" : "")."";
if ($info['news_allow_comments'])
echo "<a
href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a
> <b>·</b> ";
echo "".$info['news_reads'].$locale['044']." <b>-</b> ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img
src='".THEME."images/printer.gif' alt='".$locale['045']."'
style='vertical-align:middle;border:0px;'></a>";
echo "</td>";
echo "</tr>
</tr>
</table>
</td>
<td width=\"35\"
background=\"".THEME."panels/cborderr.gif\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"57\" height=\"97\"
background=\"".THEME."panels/cbl.jpg\"> </td>
<td height=\"97\" background=\"".THEME."panels/cbm.gif\"> </td>
<td width=\"116\" height=\"97\"
background=\"".THEME."panels/cbr.jpg\"> </td>
</tr>
</table>
</td>
</tr>
</table><br>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"57\" height=\"47\"
background=\"".THEME."panels/ctl.jpg\"> </td>
<td background=\"".THEME."panels/ctm.jpg\"> </td>
<td width=\"116\" height=\"47\"
background=\"".THEME."panels/ctr.jpg\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"15\"
background=\"".THEME."panels/cborderl.gif\"> </td>
<td bgcolor=\"#212723\">
<table width=\"100%\" border=\"0\" cellspacing=\"0\"
cellpadding=\"0\">
<tr>
<td align=\"center\" class='center-caption'>$subject</td>
</tr>
<tr>
<td class='main-body'><hr><div
style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article)
: $article)."</div><hr>
<div align='center'>".$locale['040']."<a
href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."";
if ($info['article_allow_comments'])
echo $info['article_comments'].$locale['043']." <b>·</b> ";
echo "".$info['article_reads'].$locale['044']." <b>-</b> ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img
src='".THEME."images/printer.gif' alt='".$locale['045']."'
style='vertical-align:middle;border:0px;'></a>";
echo "</div></td>";
echo " </tr>
</table></td>
<td width=\"35\"
background=\"".THEME."panels/cborderr.gif\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"57\" height=\"97\"
background=\"".THEME."panels/cbl.jpg\"> </td>
<td height=\"97\" background=\"".THEME."panels/cbm.gif\"> </td>
<td width=\"116\" height=\"97\"
background=\"".THEME."panels/cbr.jpg\"> </td>
</tr>
</table>
</td>
</tr>
</table><br>\n";
}
function opentable($title) {
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"57\" height=\"47\"
background=\"".THEME."panels/ctl.jpg\"> </td>
<td background=\"".THEME."panels/ctm.jpg\"> </td>
<td width=\"116\" height=\"47\"
background=\"".THEME."panels/ctr.jpg\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"15\"
background=\"".THEME."panels/cborderl.gif\"> </td>
<td bgcolor=\"#212723\">
<table width=\"100%\" border=\"0\" cellspacing=\"0\"
cellpadding=\"0\">
<tr>
<td align=\"center\" class='center-caption'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table></td>
<td width=\"35\"
background=\"".THEME."panels/cborderr.gif\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"57\" height=\"97\"
background=\"".THEME."panels/cbl.jpg\"> </td>
<td height=\"97\" background=\"".THEME."panels/cbm.gif\"> </td>
<td width=\"116\" height=\"97\"
background=\"".THEME."panels/cbr.jpg\"> </td>
</tr>
</table>
</td>
</tr>
</table><br>\n";
}
function opentablex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"57\" height=\"47\"
background=\"".THEME."panels/ctl.jpg\"> </td>
<td background=\"".THEME."panels/ctm.jpg\"> </td>
<td width=\"116\" height=\"47\"
background=\"".THEME."panels/ctr.jpg\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"15\"
background=\"".THEME."panels/cborderl.gif\"> </td>
<td bgcolor=\"#212723\">
<table width=\"100%\" border=\"0\" cellspacing=\"0\"
cellpadding=\"0\">
<tr>
<td align=\"center\" class='center-caption'>$title</td>
<td align='right' width='17' class='panel-main'><img
src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt=''
onclick=\"javascript:flipBox('$boxname')\"></td>
</tr>
<tr>
<td class='main-body'>
<div id='box_$boxname'".($open=="off" ? "style='display:none'" :
"").">\n";
}
function closetablex() {
echo "</div></td>
</tr>
</table></td>
<td width=\"35\"
background=\"".THEME."panels/cborderr.gif\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"57\" height=\"97\"
background=\"".THEME."panels/cbl.jpg\"> </td>
<td height=\"97\" background=\"".THEME."panels/cbm.gif\"> </td>
<td width=\"116\" height=\"97\"
background=\"".THEME."panels/cbr.jpg\"> </td>
</tr>
</table>
</td>
</tr>
</table><br>\n";
}
function openside($title) {
echo "<table width=\"200\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td height=\"47\" align=\"right\" valign=\"bottom\"
background=\"".THEME."panels/pt.jpg\">
<table width=\"73%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td class='side-caption'>$title</td>
</tr>
<tr>
<td height=\"20\"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td background=\"".THEME."panels/pm.jpg\">
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"36\"> </td>
<td width=\"142\" class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height=\"8\" background=\"".THEME."panels/pb.jpg\"></td>
</tr>
</table>
</td>
</tr>
</table><br>\n";
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table width=\"200\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td height=\"47\" align=\"right\" valign=\"bottom\"
background=\"".THEME."panels/pt.gif\">
<table width=\"73%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td class='side-caption'>$title</td>
<td align='center' class='panel-main'><img
src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt=''
onclick=\"javascript:flipBox('$boxname')\"></td>
</tr>
<tr>
<td height=\"20\"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td background=\"".THEME."panels/pm.gif\">
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"36\"> </td>
<td width=\"142\" class='side-body'>
<div id='box_$boxname'".($open=="off" ? "style='display:none'" :
"").">\n";
}
function closesidex() {
echo "</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height=\"8\" background=\"".THEME."panels/pb.gif\"></td>
</tr>
</table>
</td>
</tr>
</table><br>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='5'>";
echo "</td></tr></table>\n";
}
?>
Będę dozgonnie wdzięczny :)
Pozdrawiam Serdecznie
Xaros
Edytowane przez Xaros dnia 18.04.2008 18:24:38
|
|
|
|
kefirek |
Dodany dnia 18.04.2008 20:07:49
|
Zaawansowany
Postów: 1191 Pomógł: 418 Ostrzeżeń: 1
v6.00.xxx Data rejestracji: 06.04.2008 21:59
|
Xaros dodaj to co znaczyłem na Czerwono i napisz czy działa
<?php
// theme settings
$body_text = "#000000";
$body_bg = "#000000";
$theme_width = "1000";
$theme_width_l = "200";
$theme_width_r = "200";
function render_header($header_content) {
global $theme_width,$settings;
echo "<center><table width=\"1000\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td height=\"269\" align=\"center\" valign=\"bottom\"
background=\"".THEME."header/head.jpg\">
<div align='right'>".ucwords(showdate($settings['subheaderdate'],
time()))." </div>
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE
link_visibility<='".iUSER."' AND link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 1;
while($data = dbarray($result)) {
if ($data['link_url']!="---") {
$link_target = ($data['link_window'] == "1" ? " target='_blank'" :
"");
if (strstr($data['link_url'], "http://") ||
strstr($data['link_url'], "https://")) {
echo "<td width=\"100\" height=\"32\" align=\"center\"
background=\"".THEME."images/button.jpg\"><a
href='".$data['link_url']."'".$link_target."><h3>".$data['link_name']."</h3></a></td>";
} else {
echo "<td width=\"100\" height=\"32\" align=\"center\"
background=\"".THEME."images/button.jpg\"><a
href='".BASEDIR.$data['link_url']."'".$link_target."><h3>".$data['link_name']."
[b][color=red]
<td width='310'>";
if (iMEMBER) {
echo "<b> Witam, <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'><b>".$userdata['user_name']."</b></a>.</b><br>";
if ($view == 1) {
echo " Dzisiaj Jest: ".($lastvisited != 0 ? showdate("%d.%m.%Y godz %H:%M", $lastvisited) : $locale['u049'])."<br>"; }
echo " <a href='".BASEDIR."messages.php'><u>Prywatne Wiadomości</u></a>: Nie Czytane: $msg_count, Wszystkie: $msg_all.";
} else {
echo "<table cellpadding='0' cellspacing='0' width='310'>
".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
<tr><td> ".$locale['061']."</td>
<td><input type='text' name='user_name' class='textbox' style='width:100px'></td>
<td><input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>Zapamiętaj</td></tr>
<tr><td> ".$locale['062']."</td>
<td><input type='password' name='user_pass' class='textbox' style='width:100px'></td>
<td> <input type='submit' name='login' value='Zaloguj' class='button'></td></tr>
</form></table>\n";
}
echo "</td></tr></table>
[/color][/b]
</h3></a></
td>";
}
}
if ($i != dbrows($result)) { echo "<td width=\"17\" height=\"32\"
align=\"center\" background=\"".THEME."images/buttonb.gif\"></td>"; } else { echo "\n"; }
$i++;
}
}
echo "</td>
</tr>
</table>
</td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"16\" background=\"".THEME."panels/leftborder.jpg\"> </td>
<td>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</td>
<td width=\"16\" background=\"".THEME."panels/rightborder.jpg\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"16\" background=\"".THEME."panels/leftborder.gif\"> </td>
<td align='center'>".stripslashes($settings['footer'])."</td>
<td width=\"16\" background=\"".THEME."panels/rightborder.gif\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td>
<img name=\"wow_foot1\" src=\"".THEME."footer/wow_foot.jpg\" width=\"1000\" height=\"150\"
border=\"0\" usemap=\"#m_wow_foot1\" alt=\"\">
<map name=\"m_wow_foot1\">
<area shape=\"rect\" coords=\"94,76,345,90\" href=\"http://www.nhngames.com/\"
target=\"_blank\" title=\"NHN Games\" alt=\"NHN Games\" >
</map>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"57\" height=\"47\"
background=\"".THEME."panels/ctl.jpg\"> </td>
<td background=\"".THEME."panels/ctm.jpg\"> </td>
<td width=\"116\" height=\"47\"
background=\"".THEME."panels/ctr.jpg\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"15\"
background=\"".THEME."panels/cborderl.gif\"> </td>
<td bgcolor=\"#212723\">
<table width=\"100%\" border=\"0\" cellspacing=\"0\"
cellpadding=\"0\">
<tr>
<td align=\"center\" class='center-caption'>$subject</td>
</tr>
<tr>
<td class='main-body'><hr>$news</td>
<tr>
<td align='center'><hr>".$locale['040']." <a
href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])." --- ";
echo "".($info['news_ext'] == "y" ? "<a
href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> <b>·</b>\n" : "")."";
if ($info['news_allow_comments'])
echo "<a
href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a
> <b>·</b> ";
echo "".$info['news_reads'].$locale['044']." <b>-</b> ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img
src='".THEME."images/printer.gif' alt='".$locale['045']."'
style='vertical-align:middle;border:0px;'></a>";
echo "</td>";
echo "</tr>
</tr>
</table>
</td>
<td width=\"35\"
background=\"".THEME."panels/cborderr.gif\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"57\" height=\"97\"
background=\"".THEME."panels/cbl.jpg\"> </td>
<td height=\"97\" background=\"".THEME."panels/cbm.gif\"> </td>
<td width=\"116\" height=\"97\"
background=\"".THEME."panels/cbr.jpg\"> </td>
</tr>
</table>
</td>
</tr>
</table><br>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"57\" height=\"47\"
background=\"".THEME."panels/ctl.jpg\"> </td>
<td background=\"".THEME."panels/ctm.jpg\"> </td>
<td width=\"116\" height=\"47\"
background=\"".THEME."panels/ctr.jpg\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"15\"
background=\"".THEME."panels/cborderl.gif\"> </td>
<td bgcolor=\"#212723\">
<table width=\"100%\" border=\"0\" cellspacing=\"0\"
cellpadding=\"0\">
<tr>
<td align=\"center\" class='center-caption'>$subject</td>
</tr>
<tr>
<td class='main-body'><hr><div
style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article)
: $article)."</div><hr>
<div align='center'>".$locale['040']."<a
href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."";
if ($info['article_allow_comments'])
echo $info['article_comments'].$locale['043']." <b>·</b> ";
echo "".$info['article_reads'].$locale['044']." <b>-</b> ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img
src='".THEME."images/printer.gif' alt='".$locale['045']."'
style='vertical-align:middle;border:0px;'></a>";
echo "</div></td>";
echo " </tr>
</table></td>
<td width=\"35\"
background=\"".THEME."panels/cborderr.gif\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"57\" height=\"97\"
background=\"".THEME."panels/cbl.jpg\"> </td>
<td height=\"97\" background=\"".THEME."panels/cbm.gif\"> </td>
<td width=\"116\" height=\"97\"
background=\"".THEME."panels/cbr.jpg\"> </td>
</tr>
</table>
</td>
</tr>
</table><br>\n";
}
function opentable($title) {
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"57\" height=\"47\"
background=\"".THEME."panels/ctl.jpg\"> </td>
<td background=\"".THEME."panels/ctm.jpg\"> </td>
<td width=\"116\" height=\"47\"
background=\"".THEME."panels/ctr.jpg\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"15\"
background=\"".THEME."panels/cborderl.gif\"> </td>
<td bgcolor=\"#212723\">
<table width=\"100%\" border=\"0\" cellspacing=\"0\"
cellpadding=\"0\">
<tr>
<td align=\"center\" class='center-caption'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table></td>
<td width=\"35\"
background=\"".THEME."panels/cborderr.gif\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"57\" height=\"97\"
background=\"".THEME."panels/cbl.jpg\"> </td>
<td height=\"97\" background=\"".THEME."panels/cbm.gif\"> </td>
<td width=\"116\" height=\"97\"
background=\"".THEME."panels/cbr.jpg\"> </td>
</tr>
</table>
</td>
</tr>
</table><br>\n";
}
function opentablex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"57\" height=\"47\"
background=\"".THEME."panels/ctl.jpg\"> </td>
<td background=\"".THEME."panels/ctm.jpg\"> </td>
<td width=\"116\" height=\"47\"
background=\"".THEME."panels/ctr.jpg\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"15\"
background=\"".THEME."panels/cborderl.gif\"> </td>
<td bgcolor=\"#212723\">
<table width=\"100%\" border=\"0\" cellspacing=\"0\"
cellpadding=\"0\">
<tr>
<td align=\"center\" class='center-caption'>$title</td>
<td align='right' width='17' class='panel-main'><img
src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt=''
onclick=\"javascript:flipBox('$boxname')\"></td>
</tr>
<tr>
<td class='main-body'>
<div id='box_$boxname'".($open=="off" ? "style='display:none'" :
"").">\n";
}
function closetablex() {
echo "</div></td>
</tr>
</table></td>
<td width=\"35\"
background=\"".THEME."panels/cborderr.gif\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"57\" height=\"97\"
background=\"".THEME."panels/cbl.jpg\"> </td>
<td height=\"97\" background=\"".THEME."panels/cbm.gif\"> </td>
<td width=\"116\" height=\"97\"
background=\"".THEME."panels/cbr.jpg\"> </td>
</tr>
</table>
</td>
</tr>
</table><br>\n";
}
function openside($title) {
echo "<table width=\"200\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td height=\"47\" align=\"right\" valign=\"bottom\"
background=\"".THEME."panels/pt.jpg\">
<table width=\"73%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td class='side-caption'>$title</td>
</tr>
<tr>
<td height=\"20\"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td background=\"".THEME."panels/pm.jpg\">
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"36\"> </td>
<td width=\"142\" class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height=\"8\" background=\"".THEME."panels/pb.jpg\"></td>
</tr>
</table>
</td>
</tr>
</table><br>\n";
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table width=\"200\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td height=\"47\" align=\"right\" valign=\"bottom\"
background=\"".THEME."panels/pt.gif\">
<table width=\"73%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td class='side-caption'>$title</td>
<td align='center' class='panel-main'><img
src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt=''
onclick=\"javascript:flipBox('$boxname')\"></td>
</tr>
<tr>
<td height=\"20\"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td background=\"".THEME."panels/pm.gif\">
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"36\"> </td>
<td width=\"142\" class='side-body'>
<div id='box_$boxname'".($open=="off" ? "style='display:none'" :
"").">\n";
}
function closesidex() {
echo "</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height=\"8\" background=\"".THEME."panels/pb.gif\"></td>
</tr>
</table>
</td>
</tr>
</table><br>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='5'>";
echo "</td></tr></table>\n";
}
?>
Edytowane przez kefirek dnia 18.04.2008 21:06:53
|
|
|
|
Xaros |
Dodany dnia 18.04.2008 21:06:05
|
Przedszkolak
Postów: 29 Ostrzeżeń: 1
Data rejestracji: 13.03.2006 17:57
|
Pojawia mi się:
Parse error: parse error, unexpected '<' in xxx\theme.php on line 106
Nawet po skopiowaniu całości, tak an wszelki wypadek jak bym ja coś źle przepisał, ale po skopiowaniu całości dalej to samo.
Edytowane przez Xaros dnia 18.04.2008 21:08:52
|
|
|
|
wlodekp |
Dodany dnia 18.04.2008 21:28:11
|
Weteran
Postów: 3101 Pomógł: 29
Data rejestracji: 21.05.2005 22:27
|
W tym kodzie powyże to widzę taki melanż, że w edytorze nie mogę dojść co jest co?
ale wydaje mi się, że:
echo"<td width='310'>"; brak tego czerwonego, dodatkowo nie widzę w global dopisanych dodatkowych wartości, gdzie błąd zniknie, ale i tak to nie będzie działać
|
|
|
|
Xaros |
Dodany dnia 18.04.2008 21:31:53
|
Przedszkolak
Postów: 29 Ostrzeżeń: 1
Data rejestracji: 13.03.2006 17:57
|
Z Twoja zmianą mam:
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in xxx\theme.php on line 58
Nie mam pojęcia co zrobić z tym fantem...:( |
|
|
|
wlodekp |
Dodany dnia 18.04.2008 21:41:02
|
Weteran
Postów: 3101 Pomógł: 29
Data rejestracji: 21.05.2005 22:27
|
A Ty uważasz, ze ja jestem jasnowidzem nie mając Twojego kodu Theme nie wiem jak tam jest w oryginale echo' czy może echo" i późniejsze zamknięcie wstawki '; "; błąd na to wskazuje,
Nazwę theme proszę!
|
|
|
|
Pieka |
Dodany dnia 18.04.2008 22:19:24
|
Postów: 19882 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
@kefirek - Moze pierwsze sprawdzisz, a dopiero jak bedziesz mial 100% pewnosci, ze dziala, to podasz?
@Xaros - Adres strony prosze.
Edytowane przez Pieka dnia 18.04.2008 22:21:53
Jestem jaki jestem
|
|
|
|
kefirek |
Dodany dnia 18.04.2008 22:25:35
|
Zaawansowany
Postów: 1191 Pomógł: 418 Ostrzeżeń: 1
v6.00.xxx Data rejestracji: 06.04.2008 21:59
|
Podaj theme jaki używasz to zrobię najlepiej dodaj go w załączniku |
|
|
|
Pieka |
Dodany dnia 18.04.2008 22:51:20
|
Postów: 19882 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Xaros napisał/a:
..Bo jak patrze po galerii to nie ma tego thema tutaj
To dokladnie theme DX-WoW, ktore jest dostepne do sciagniecia w Laboratorium, a do obejrzenia na Themes4 oraz galerii Lab.
Edytowane przez Pieka dnia 19.04.2008 00:31:40
Jestem jaki jestem
|
|
|
|
Xaros |
Dodany dnia 19.04.2008 00:46:44
|
Przedszkolak
Postów: 29 Ostrzeżeń: 1
Data rejestracji: 13.03.2006 17:57
|
To co pomoże ktoś? I takie pytanie czemu ktoś kasuję moje posty?
PW od moderatora:
- Ogólna Uwaga - Pieka 19.04 - 00:54
|
|
|
|
wlodekp |
Dodany dnia 19.04.2008 00:54:50
|
Weteran
Postów: 3101 Pomógł: 29
Data rejestracji: 21.05.2005 22:27
|
Wiesz co to jest tak rozbudowane theme, a Ty nawet nie byłeś łaskaw podać do tej pory adresu, że ja się wycofuję.
p.s.off top
Z laba te 18M theme z hakiem idzie fajnie mam 1.2M transferu/s czyli serwer gicio.
|
|
|
|
Pieka |
Dodany dnia 19.04.2008 00:57:40
|
Postów: 19882 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Pobawilem sie chwile i zrobilem dla wlasnej satysfakcji. Plik w zalaczniku.
Byc moze jeszcze sa tam jakies miny, ale to juz sam sobie sprawdz.
I zacznij cos robic, bo rejestracja 2006, a Ty nawet regulaminu nie znasz... To jest forum, a nie chat.
Dzialanie: http://pieka.ugu....
Edit: Poprawilem w dwoch miejscach oraz odblokowalem date.
@wlodekp - To sie nazywa serwer
Pieka dodał/a następującą plik:
Edytowane przez Pieka dnia 19.04.2008 01:30:24
Jestem jaki jestem
|
|
|
|
kamkos |
Dodany dnia 25.04.2008 14:29:18
|
Przedszkolak
Postów: 37
Data rejestracji: 24.02.2007 13:15
|
Hmmm... Tak czytam ten temat i sobie myśle. Czy dało by się zrobic logowanie w stylu http://voot.pl/ , żeby pod panelem logowania był obrazek ?
Co mam wkleic ???
To jest mój theme.php:
<?
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "846";
$theme_width_l = "160";
$theme_width_r = "160";
function render_header($header_content) {
global $theme_width;
echo "<table align=center class='mainsite-border' align='left' width='846' cellspacing='0' cellpadding='0'>
<tr><td class='outer-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr><td class='inner-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr align=left><td>";
include_once "header.php";
echo "</td></tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>";
include_once "foot.php";
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
$news
</td>
</tr>
<tr>
<td align='right' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
<tr>
<td align='right' class='news-footer'>\n";
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table cellspacing=0 celpadding=0 border=0>
<tr>
<td height=28 width=160 class='scapmain' align=center>$title</td>
</tr>
</table>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='10'></td></tr>
</table>\n";
}
?>
Edytowane przez Pieka dnia 25.04.2008 15:01:25
|
|
|
|
bartek124 |
Dodany dnia 25.04.2008 17:48:50
|
Weteran
Postów: 3264 Pomógł: 236
v7.02.06 Data rejestracji: 26.05.2007 12:25
|
Najlepiej zajrzyj w źródło tamtej strony i kombinuj.
Nie pomagam na komunikatorach oraz PW!
|
|
|
|
kamkos |
Dodany dnia 27.04.2008 21:21:30
|
Przedszkolak
Postów: 37
Data rejestracji: 24.02.2007 13:15
|
Tylko, że zabardzo nie wiem co mam zrobic ...
|
|
|
|
Anea |
Dodany dnia 02.05.2008 18:33:33
|
Przedszkolak
Postów: 36
Data rejestracji: 02.05.2008 18:27
|
Witam wszystkich
Patrząc na forum zajrzałam na ten temat i mnie bardzo zaciekawił.
Poniżej jest mój theme, pokażecie co i gdzie mam wkleić ?
$body_text = "#cccccc";
$body_bg = "#373737";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td align='center' width='60%' background='".THEME."images/logo_bg.gif' height='128'><img src='".THEME."images/logo.jpg'></td>";
echo "</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td><table width='100%' height='28' border='0' cellpadding='4' cellspacing='0'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td class='cellpic'>\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img src='".THEME."images/divider.gif' alt=''> "; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>\n";
echo "<td align='right' class='cellpic' nowrap><strong>";
echo "<div align='right' class='date' id='Clock'></div>";
echo "<script type='text/javascript'>
<!--
var DayNam = new Array(
'Niedziela','Poniedzia³ek','Wtorek','¦roda','Czwartek','Pi±tek','Sobota');
var MnthNam = new Array(
'Stycznia','Lutego','Marca','Kwietnia','Maja','Czerwca','Lipca','Sierpnia','Wrze¶nia','Pa¼dziernika','Listopada','Grudnia');
//-->
</script>";
echo "<div align='right' class='date'><script type='text/javascript' src='".THEME."/js/clock.js'></script></div>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='4' bgcolor='#373737' cellspacing='0' border='0'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<tr><td><table border='0' cellpadding='0' cellspacing='0' width='100%' height='30'>";
echo "<tr><td class='footer' valign='middle' width='35%'>";
if ($license == false) {
echo "Powered by <a href='http://www.php-fusion.co.uk' target='blank'><b>PHP-Fusion</b></a> © 2003-2006 ";
}
echo "</td>";
echo "<td class='footer' align='center' width='22%'>";
echo "Powered by <a href='http://www.php-fusion.co.uk' target='blank'><b>PHP-Fusion</b></a> © 2003-2006 ' target='blank'></b></a> ";
echo "</td>";
echo "<td class='footer' align='right' width='33%'><span class='stats'><b>".$settings['counter']."</b></span> ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></center></table></table></table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table style='border: 1px solid #202020' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cellpic.gif' height='23'><img src='".THEME."images/arrow.gif' alt='' hspace='3'><font class='block-title'>$subject</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='news'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' alt='' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table style='border: 1px solid #202020' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cellpic.gif' height='24'><img src='".THEME."images/arrow.gif' alt='' hspace='3'><font class='block-title'>$subject</font></td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' alt='' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='2' cellspacing='1' style='border: 1px solid #202020'>";
echo "<tr><td background='".THEME."images/cellpic.gif' bgcolor='#373737' height='23'><font class='head-title'> $title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table style='border: 1px solid #202020' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".THEME."images/cellpic.gif'>";
echo "<center><img src='".THEME."images/arrow.gif' alt='' hspace='3'><font class='block-title'>$title</font><img src='".THEME."images/arrowb.gif' alt='' hspace='3'></center>";
echo "</td></tr>";
echo "<tr><td bgcolor='#191928' class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table><table border='0' cellpadding='0' cellspacing='0' width='100%'>";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table border='0' style='border: 1px solid #202020' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".THEME."images/cellpic.gif'>";
echo "<img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\"><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#191928' class='side-body'width='100%' '".THEME."images/back1.gif'>";
echo "<div id='box_$boxname'".($open=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div></td></tr></table>";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Bardzo proszę o pomoc. :|
Edytowane przez Anea dnia 02.05.2008 18:41:17
|
|
|
|
kefirek |
Dodany dnia 02.05.2008 20:43:03
|
Zaawansowany
Postów: 1191 Pomógł: 418 Ostrzeżeń: 1
v6.00.xxx Data rejestracji: 06.04.2008 21:59
|
$body_text = "#cccccc";
$body_bg = "#373737";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td align='center' width='60%' background='".THEME."images/logo_bg.gif' height='128'><img src='".THEME."images/logo.jpg'>
[color=red][b]
<table width='95%' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td align='right'>";
if($userdata['user_avatar']){
echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' height='50' style='padding-right: 10px; padding-top: 10px'>";
}else{
echo "<img src='".FORUM."images/brak.gif' width='50' height='50' style='padding-right: 10px; padding-top: 10px'>";
}
echo"</td>
<td valign='top'>".(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') === false ? "<br>" : " ")."<font color='".$userdata['user_color']."' style='font-size: 10px'>Witaj: ".$userdata['user_prefix'].$userdata['user_name']."</font>".(iADMIN ? " <a href='".ADMIN."index.php".$aidlink."'>[PA]</a>": "")."<br>";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0' AND message_folder='0'");
if($msg_count > "0") $msg_view = "<span class='small'>[<font color='red'><b>".$msg_count."</b></font>]</span>";
echo (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') === false ? "" : " ")."<img src='".THEME."images/bullet.gif' class='bullet'> <a href='".BASEDIR."edit_profile.php'>Edytuj Profil</a><br>".(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') === false ? "" : " ")."<img src='".THEME."images/bullet.gif' class='bullet'> <a href='".BASEDIR."messages.php'>Wiadomości ".$msg_view."</a><br>".(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') === false ? "" : " ")."<img src='".THEME."images/bullet.gif' class='bullet'> <a href='".BASEDIR."members.php'>Użytkownicy</a></td>
</tr>
<tr>
<td colspan='2' style='padding-left: 25px;'><br>";
$caution_r = dbquery("SELECT * from ".$db_prefix."cautions WHERE user_id=".$userdata['user_id']);
$caution = dbarray($caution_r);
$c_count = dbrows($caution_r);
echo"<img src='".THEME."images/bullet.gif' class='bullet'> Ranga: ".check_rang($userdata['user_id'])."<br><img src='".THEME."images/bullet.gif' class='bullet'> Punkty: ".show_points($userdata['user_id'])."<br><img src='".THEME."images/bullet.gif' class='bullet'> Ostrzeżeń: ".$c_count."<span style='padding-left: 70px'><a href='".BASEDIR."setuser.php?logout=yes'>[Wyjdź]</a></span>
</td>
</tr>
</table>
[/b][/color]
</td>";
echo "</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td><table width='100%' height='28' border='0' cellpadding='4' cellspacing='0'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td class='cellpic'>\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img src='".THEME."images/divider.gif' alt=''> "; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
}
}
$i++;
Edytowane przez kefirek dnia 02.05.2008 20:43:30
|
|
|