Przedszkolak
Postów: 11 Ostrzeżeń: 3
Data rejestracji: 04.02.2010 19:28
|
Witam. Na swojej stronie mam skórkę DarkZik, dziś znalazłem coś przydatnego dla mnie. Chodzi o dolny panel w skórce GlossyPink[ten element z Logowanie|Aktualnie online|Ostatnio na forum]. Czy ktoś mógłby mi wskazać co skopiować z glossypink i gdzie wkleić w darkzik.
Domyślam się, że kluczowa treść znajduje się w plikach theme.php
darkzik<?php
if (!defined("IN_FUSION")) { header("/index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "935");
define("THEME_BULLET", "<strong>·</strong>");
function render_page($license=false) {
global $aidlink, $locale, $settings, $main_style;
//Header Start
echo '<table id="Table_01" align="center" width="935" height="208" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="4">
<img src="'.THEME.'images/header_01.jpg" width="684" height="208" alt="" /></td>
<td>
<img src="'.THEME.'images/header_02.jpg" width="204" height="33" alt="" /></td>
<td rowspan="4">
<img src="'.THEME.'images/header_03.jpg" width="47" height="208" alt="" /></td>
</tr>';
//Member Header Start
echo '<tr>';
if (iMEMBER) {
echo '<td class="MemberForm" background="'.THEME.'images/header_04.jpg" width="204" height="115" style="padding-left:40px">';
echo THEME_BULLET." <a href='".BASEDIR."edit_profile.php' class='side'><b>Edycja Profilu</b></a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."messages.php' class='side'><b>Wiadomoci</b></a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."members.php' class='side'><b>List Kont</b></a><br />\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo THEME_BULLET." <a href='".ADMIN."index.php".$aidlink."' class='side'><b>Panel Administratora</b></a><br />\n";
}
echo THEME_BULLET." <a href='".BASEDIR."setuser.php?logout=yes' class='side'><b>Wyloguj</b></a>\n";
//Quest Header Start
} else {
if (isset($_POST['Regh'])) {
redirect('register.php');
}
echo '<td class="LoginForm" background="'.THEME.'images/header_04.jpg" width="204" height="115" style="paddin-top:8px">';
include LOCALE.LOCALESET."global.php";
echo "<div style='text-align:center'>\n";
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
echo $locale['global_101']." <input type='text' name='user_name' class='textbox' style='width:100px' /><br />\n";
echo $locale['global_102']." <input type='password' name='user_pass' class='textbox' style='width:100px;margin-left:4px;margin-top:2px' /><br />\n";
echo "<input type='submit' name='login' value='".$locale['global_104']."' class='buttonHeader' style='margin-top:4px;margin-right:4px;width:45px' /><input type='submit' name='Regh' value='Click Here to Register!' class='buttonReg' style='margin-top:4px;width:118px' /><br />\n";
echo "<small>Remember?</small><input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' style='vertical-align:middle;margin-top:3px' />\n";
echo "</form>\n";
if ($settings['enable_registration']) {
echo '<a href="'.BASEDIR.'/racef1.plregister.php" title="Rejestracja" class="side">Kliknij</a> aby się zarejestrować.<br />';
}
echo '<a href="'.BASEDIR.'/racef1.pllostpassword.php" title="Przypomnienie hasła" class="side">Zapomniane Hasło?</a></div>';
}
echo '</td></tr>
<tr>
<td>
<img src="'.THEME.'images/header_05.jpg" width="204" height="30" alt="" /></td>
</tr>
<tr>
<td background="'.THEME.'images/header_06.jpg" width="204" height="30" align="center">';
// Search script //
echo "<form name='search' method='post' action='".BASEDIR."search.php?stype=d'><b><font color='white'><small>Szukaj: </small></font></b>";
echo "<input value='wpisz szukane słowa' name='stext' class='textbox' style='width:100px' onBlur=\"if(this.value=='') this.value='wpisz szukane słowa';\" onFocus=\"if(this.value=='wpisz szukane słowa') this.value='';\" /> ";
echo "<input type='submit' name='search' value='Wyszukaj' class='buttonReg' style='width:30px' /></form></td>";
echo '</tr></table>';
// Menus Starts
echo '<table align="center" id="Table_02" width="993" height="30" border="0" cellpadding="00" cellspacing="0">
<center><tr>
<td><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content=" css, dropdowns, dropdown menu, drop-down, menu, navigation, nav, horizontal, vertical left-to-right, vertical right-to-left, horizontal linear, horizontal upwards, cross browser, internet explorer, ie, firefox, safari, opera, browser, lwis" />
<meta name="description" content="Clean, standards-friendly, modular framework for dropdown menus" />
<link rel="shortcut icon" type="image/x-icon" href="'.BASEDIR.'themes/DarkZik/ico.jpg" />
<link href="styles.css" media="screen" rel="stylesheet" type="text/css" />
<!-- Beginning of compulsory code below -->
<link href="'.BASEDIR.'css/dropdown/dropdown.css" media="screen" rel="stylesheet" type="text/css" />
<link href="'.BASEDIR.'css/dropdown/themes/mtv.com/default.ultimate.css" media="screen" rel="stylesheet" type="text/css" />
<!--[if lt IE 7]>
<script type="text/javascript" src="'.BASEDIR.'js/jquery/jquery.js"></script>
<script type="text/javascript" src="'.BASEDIR.'js/jquery/jquery.dropdown.js"></script>
<![endif]-->
<!-- / END -->
<!-- Beginning of compulsory code below -->
<ul id="nav" class="dropdown dropdown-horizontal">
<li><a href="'.BASEDIR.'news.php">Home</a></li>
<li><a href="" class="dir">Sezon </a>
<ul>
<li><a href="'.BASEDIR.'viewpage.php?page_id=47">Kalendarz wyscigów</a></li>
<li><a href="'.BASEDIR.'viewpage.php?page_id=93">Klasyfikacja kierowców</a></li>
<li><a href="'.BASEDIR.'viewpage.php?page_id=95">Klasyfikacja konstruktorów</a></li>
<li><a href="'.BASEDIR.'viewpage.php?page_id=90">W pigułce</a></li>
<li><a href="'.BASEDIR.'viewpage.php?page_id=106">Kalendarz wyscigów IV sezon</a></li>
<li><a href="'.BASEDIR.'viewpage.php?page_id=58">Klasyfikacja kierowców IV sezon</a></li>
<li><a href="'.BASEDIR.'infusions/aw_ecal_panel/calendar.php?cal=month&">Wydarzenia</a></li>
<li><a href="'.BASEDIR.'viewpage.php?page_id=100">Lista startowa</a></li>
<li><a href="'.BASEDIR.'viewpage.php?page_id=2">Regulamin</a></li>
</ul>
</li>
<li><a href="'.BASEDIR.'forum/index.php" class="dir">Forum</a>
<ul>
<li><a href="'.BASEDIR.'forum/viewthread.php?thread_id=1&pid=486#post_486">Zapisy F1</a></li>
<li><a href="'.BASEDIR.'forum/viewforum.php?forum_id=8">Sprawy aktualne</a></li>
<li><a href="'.BASEDIR.'forum/viewforum.php?forum_id=13">Serwer dedykowany</a></li>
</ul>
</li>
<li><a href="'.BASEDIR.'downloads.php" class="dir">Download</a>
<ul>
<li class="empty">Pliki</li>
<li><a href="'.BASEDIR.'downloads.php?cat_id=5">Gra</a></li>
<li><a href="'.BASEDIR.'downloads.php?cat_id=3">Mody</a></li>
<li><a href="'.BASEDIR.'downloads.php?cat_id=4">Dodatki do rFactor</a></li>
<li class="empty">Pozostałe</li>
<li><a href="'.BASEDIR.'downloads.php?cat_id=6">Malowania</a></li>
<li><a href="'.BASEDIR.'downloads.php?cat_id=7">Tapety</a></li>
</ul></li>
<li><a href="'.BASEDIR.'photogallery.php" class="dir">Multimedia</a>
<ul>
<li><a href="'.BASEDIR.'photogallery.php">Galeria</a></li>
<li><a href="http://www.youtube.com/user/racef1pl">Kanał YouTube</a></li>
</li>
</ul>
<li><a href="./">Przydatne !</a>
<ul>
<li><a href="'.BASEDIR.'viewpage.php?page_id=91">FAQ</a></li>
<li><a href="'.BASEDIR.'articles.php">Artykuły</a></li>
<li><a href="'.BASEDIR.'contact.php">Kontakt</a></li>
<li><a href="./">Współpraca</a></li>
<li><a href="http://racef1.cupsell.pl/">Sklep</a></li>
</ul>
</li>
<li><a href="./">Archiwum</a><ul>
<li><a href="'.BASEDIR.'viewpage.php?page_id=76">F1 Sezon II 2009/2010</a></li>
<li><a href="'.BASEDIR.'viewpage.php?page_id=79">F1 Sezon III 2010</a></li>
</li>
</ul><li><a href="'.BASEDIR.'viewpage.php?page_id=88" class="dir">Wspomóż Nas !</a>
<ul>
</ul>
<!-- / END -->
</tr>
</table>
<table high="14" border="0" background="'.BASEDIR.'images/tlobelka.jpg" style="height: 25px; width: 800px" align="center">
<tr class="style2">
<td class="style4" style="width: 55px; height: 25px;" align="center">
<a href="'.BASEDIR.'viewpage.php?page_id=21">
<img alt="14.03.2010" src="'.BASEDIR.'images/world.png" width="23" height="14" border="0" /></a></td>
<td class="style3" style="width: 55px; height: 25px;" align="center">
<a href="'.BASEDIR.'viewpage.php?page_id=#">
<img alt="28.03.2010" src="'.BASEDIR.'images/Austria.gif" width="23" height="14" border="0" /></a></td>
<td class="style3" style="width: 55px; height: 25px;" align="center">
<a href="'.BASEDIR.'viewpage.php?page_id=#">
<img alt="4.04.2010" src="'.BASEDIR.'images/europ.gif" width="23" height="14" border="0"/></a></td>
<td class="style3" style="width: 55px; height: 25px;" align="center">
<a href="'.BASEDIR.'viewpage.php?page_id=#">
<img alt="18.04.2010" src="'.BASEDIR.'images/belgia.gif" width="23" height="14" border="0" /></a></td>
<td class="style3" style="width: 55px; height: 25px;" align="center">
<a href="'.BASEDIR.'viewpage.php?page_id=#">
<img alt="9.05.2010" src="'.BASEDIR.'images/France.gif" width="23" height="14" border="0" /></a></td>
<td class="style3" style="width: 55px; height: 25px;" align="center">
<a href="'.BASEDIR.'viewpage.php?page_id=#">
<img alt="16.05.2010" src="'.BASEDIR.'images/Portugal.gif" width="23" height="14" border="0" /></a></td>
<td class="style3" style="width: 55px; height: 25px;" align="center">
<a href="'.BASEDIR.'viewpage.php?page_id=#">
<img alt="30.05.2010" src="'.BASEDIR.'images/niemcy.gif" width="21" height="14" border="0"/></a></td>
<td class="style3" style="width: 55px; height: 25px;" align="center">
<a href="'.BASEDIR.'viewpage.php?page_id=#">
<img alt="13.06.2010" src="'.BASEDIR.'images/monako.gif" width="23" height="14" border="0" /></a></td>
<td class="style3" style="width: 55px; height: 25px;" align="center">
<a href="'.BASEDIR.'viewpage.php?page_id=#">
<img alt="27.06.2010" src="'.BASEDIR.'images/netherlands.gif" width="21" height="14" border="0"/></a></td>
<td class="style3" style="width: 55px; height: 25px;" align="center">
<a href="'.BASEDIR.'viewpage.php?page_id=#">
<img alt="11.07.2010" src="'.BASEDIR.'images/niderlandy1.gif" width="23" height="14" border="0" /></a></td>
<td class="style3" style="width: 55px; height: 25px;" align="center">
<a href="'.BASEDIR.'viewpage.php?page_id=#">
<img alt="25.07.2010" src="'.BASEDIR.'images/plwiber.gif" width="23" height="14" border="0" /></a></td>
<td class="style3" style="width: 55px; height: 25px;" align="center">
<a href="'.BASEDIR.'viewpage.php?page_id=#">
<img alt="29.08.2010" src="'.BASEDIR.'images/wielkabrytania.gif" width="23" height="14" border="0" /></a></td>
<td class="style3" style="width: 55px; height: 25px;" align="center">
<a href="'.BASEDIR.'viewpage.php?page_id=#">
<img alt="1.08.2010" src="'.BASEDIR.'images/argentina.gif" width="23" height="14" border="0" /></a></td>
<td class="style3" style="width: 55px; height: 25px;" align="center">
<a href="'.BASEDIR.'viewpage.php?page_id=#">
<img alt="12.09.2010" src="'.BASEDIR.'images/sanmarino.png" width="23" height="14" border="0" /></a></td>
<td class="style3" style="width: 55px; height: 25px;" align="center">
<a href="'.BASEDIR.'viewpage.php?page_id=#">
<img alt="26.09.2010" src="'.BASEDIR.'images/usa.gif" width="23" height="14" border="0" /></a></td>
<td class="style3" style="width: 55px; height: 25px;" align="center">
<a href="'.BASEDIR.'viewpage.php?page_id=#">
<img alt="26.09.2010" src="'.BASEDIR.'images/australia.gif" width="23" height="14" border="0" /></a></td>
</tr>
</table>
</center>';
// Menu Ends
echo "<table bgcolor='#070707' align='center' cellspacing='0' cellpadding='0' width='935' >
<tr>
<td>\n";
// Content
echo "<br /><table cellpadding='0' cellspacing='0' width='915' class='$main_style' align='center'>\n<tr>\n
<td class='side-border-left' valign='top'>".LEFT."</td>
<td class='main-bg' align='center' valign='top' style='margin:5px'>".U_CENTER.CONTENT.L_CENTER."</td>
<td class='side-border-right' valign='top'>".RIGHT."</td>
</tr>\n</table>\n";
//Footer
echo "</td></tr></table>";
echo "<center><table cellpadding='0' cellspacing='0' width='935' background='".THEME."images/footer_bg.jpg'>\n<tr>\n";
echo "<td align='center' class='main-footer' style='color:#fff;'>".stripslashes($settings['footer']);
echo "DarkZik Theme Designed By <a href='http://www.iranzik.com/music_film/index.html' target='_blank'>| IranZik.com |</a>";
if (!$license) { echo "<br />\n".showcopyright(); }
echo "</td>\n";
echo "</tr>\n</table>\n</center>";
}
function render_news($subject, $news, $info) {
echo "<div class='capmain'> $subject</div>\n";
echo "<div class='main-body floatfix'>".$news."</div>\n";
echo "<div class='news-footer'>\n";
echo newsposter($info,"·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</div>\n";
echo "<br />";
}
function render_article($subject, $article, $info) {
echo "<div class='capmain'> $subject</div>\n";
echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "<div class='news-footer'>\n";
echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</div>\n";
echo "<br />";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='540px'>
<tr>
<td class='capmain'> $title</td>
</tr>
<tr>
<td class='main'>\n";
}
function closetable() {
echo "</td>
</tr>
</table><br />\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='178px'>
<tr><td height='29' class='scapmain'>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div style='float:right;'>".panelbutton($state,$boxname)."</div>";
}
echo $title."</td></tr>\n<tr><td class='side-body' background='#10161D'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>
</tr>
</table><br />";
}
?>
glossypink<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
// require_once "menu.php";
/* Theme Settings */
$body_text = "#000000";
$body_bg = "#828282";
$theme_width = "100%";
// $theme_width_l = "200";
// $theme_width_r = "200";
function render_page($license=false) {
global $theme_width,$settings,$locale,$db_prefix,$userdata,$aidlink;
echo "
<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='full-header'>
<tr>
<td width='10%' height='135px'> </td>
<td width='80%' height='135px'>".showbanners()."</td>
<td width='10%' height='135px'></td>
</tr>
</table>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='full-header'>
<tr>
<td width='10%' valign='bottom'>
<div class='menuline'> </div>
</td>
<td width='80%'>
<div id='menu' class='menu'>".showsublinks("", "white")."</div>
<div class='menuline'> </div>
</td>
<td width='10%' valign='bottom'>
<div class='menuline'> </div>
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>
<tr valign='top'>
<td valign='middle' align='right'>
<table width='100%' cellpadding='2' bgcolor='#ffffff' cellspacing='0' border='0'>
<tr>
<td width='10%'> </td>";
if (LEFT) { echo "<td class='side-border-left' valign='top' align='left'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top' align='left'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top' align='left'>".RIGHT."</td>"; }
echo" <td width='10%'> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding='2' cellspacing='0' width='$theme_width' class='bottom'>
<tr>
<td width='10%'></td>
<td width='80%'>
<table cellspacing='0' cellpadding='2' width='100%' border='0'>
<tr>
<td width='28%' align='left'>
<table width='100%'>
<tr>
<td class='bottom-header' width='100%'>";
if (iMEMBER)
{
echo "".$locale['global_035']." ".$userdata['user_name']."</td></tr><tr valign='top'><td class='bottom2'><br />";
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo THEME_BULLET." <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['global_120']."</a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."messages.php' class='side'>".$locale['global_121']."</a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."members.php' class='side'>".$locale['global_122']."</a><br />\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo THEME_BULLET." <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['global_123']."</a><br />\n";
}
echo THEME_BULLET." <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['global_124']."</a>\n";
if ($msg_count)
{
echo "<br /><br /><div style='text-align:center'><strong><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['global_125'], $msg_count).($msg_count == 1 ? $locale['global_126'] : $locale['global_127'])."</a></strong></div>\n";
}
} else {
echo "".$locale['global_100']."</td></tr><tr valign='top'><td class='bottom2'><br />";
echo "<div style='text-align:center'>\n";
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
echo $locale['global_101']."<br />\n<input type='text' name='user_name' class='textbox' style='width:100px' /><br />\n";
echo $locale['global_102']."<br />\n<input type='password' name='user_pass' class='textbox' style='width:100px' /><br />\n";
echo "<input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' style='vertical-align:middle;' />\n";
echo "<input type='submit' name='login' value='".$locale['global_104']."' class='button' /><br />\n";
echo "</form>\n<br />\n";
if ($settings['enable_registration']) {
echo "".$locale['global_105']."<br /><br />\n";
}
echo $locale['global_106']."\n</div>\n";
}
echo " </td>
</tr>
</table>
</td>
<td width='3%'></td>
<td width='28%' align='center'>
<table width='100%'>
<tr>
<td class='bottom-header' width='100%'>";
echo "".$locale['global_010']."</td></tr><tr valign='top'><td class='bottom2'><br /><center>";
$result = dbquery("SELECT * FROM ".DB_ONLINE." WHERE online_user=".($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'"));
if (dbrows($result)) {
$result = dbquery("UPDATE ".DB_ONLINE." SET online_lastactive='".time()."' WHERE online_user=".($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'")."");
} else {
$result = dbquery("INSERT INTO ".DB_ONLINE." (online_user, online_ip, online_lastactive) VALUES ('".($userdata['user_level'] != 0 ? $userdata['user_id'] : "0")."', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".DB_ONLINE." WHERE online_lastactive<".(time()-60)."");
$result = dbquery(
"SELECT ton.*, tu.user_id,user_name FROM ".DB_ONLINE." ton
LEFT JOIN ".DB_USERS." tu ON ton.online_user=tu.user_id"
);
$guests = 0; $members = array();
while ($data = dbarray($result)) {
if ($data['online_user'] == "0") {
$guests++;
} else {
array_push($members, array($data['user_id'], $data['user_name']));
}
}
echo "<font size='4px'>".$locale['global_011'].$guests."</font><br />\n";
echo $locale['global_012'];
if (count($members)) {
$i = 1;
while (list($key, $member) = each($members)) {
echo "<a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."</a>";
if ($i != count($members)) { echo ",\n"; } else { echo "<br />\n"; }
$i++;
}
}
echo "<br /><font size='4px'>\n".$locale['global_014'].number_format(dbcount("(user_id)", DB_USERS, "user_status<='1'"))."</font><br />\n";
if (iADMIN && checkrights("M") && $settings['admin_activation'] == "1") {
echo "<a href='".ADMIN."members.php".$aidlink."&status=2' class='side'>".$locale['global_015']."</a>";
echo dbcount("(user_id)", DB_USERS, "user_status='2'")."<br />\n";
}
$data = dbarray(dbquery("SELECT user_id,user_name FROM ".DB_USERS." WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
echo $locale['global_016'].": <a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a>\n";
echo "</center>";
echo" </td>
</tr>
</table>
</td>
<td width='3%'></td>
<td width='28%' align='left'>
<table width='100%'>
<tr>
<td class='bottom-header' width='100%'>";
echo "".$locale['global_020']."</td></tr><tr valign='top'><td class='bottom2'><br />";
echo "<font size='4px'>".$locale['global_021']."</font><br />\n";
$result = dbquery("
SELECT tt.forum_id, tt.thread_id, tt.thread_subject, tt.thread_lastpost FROM ".DB_THREADS." tt
INNER JOIN ".DB_FORUMS." tf ON tt.forum_id=tf.forum_id
WHERE ".groupaccess('forum_access')." ORDER BY thread_lastpost DESC LIMIT 5
");
if (dbrows($result)) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 23);
echo "· <a href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='side'>$itemsubject</a><br />\n";
}
} else {
echo "<div style='text-align:center'>".$locale['global_023']."</div>\n";
}
echo "<font size='4px'>".$locale['global_022']."</font>\n";
list($min_posts) = dbarraynum(dbquery("SELECT thread_postcount FROM ".DB_THREADS." ORDER BY thread_postcount DESC LIMIT 4,5"));
$result = dbquery("
SELECT tf.forum_id, tt.thread_id, tt.thread_subject, tt.thread_postcount
FROM ".DB_FORUMS." tf
INNER JOIN ".DB_THREADS." tt USING(forum_id)
WHERE ".groupaccess('forum_access')." AND tt.thread_postcount >= '$min_posts'
ORDER BY thread_postcount DESC, thread_lastpost DESC LIMIT 5
");
if (dbrows($result) != 0) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 20);
echo "<tr>\n<td class='side-small'>·<a href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='side'>$itemsubject</a></td>\n";
echo "<td align='right' class='side-small'>[".($data['thread_postcount'] - 1)."]</td>\n</tr>\n";
}
echo "</table>\n";
} else {
echo "<div style='text-align:center'>".$locale['global_023']."</div>\n";
}
echo " </td>
</tr>
</table>
</td>
<td width='10%'></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding='2' cellspacing='0' width='$theme_width' class='footer'>
<tr>
<td width='90%' align='center'>
<table cellspacing='0' cellpadding='2' width='100%' border='0'>
<tr>
<td align='center' class='footer'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
<table cellspacing='0' cellpadding='2' width='100%' border='0'>
<tr>
<td width='80%' align='left' class='footer'>
Glossy Pink theme originally by <a href='mailto:'>Fusionate Themes</a>. Converted to PHP-Fusion 7 by <a href='http://www.php-fusion.nu/' target='_blank'>Kenneth</a>.<br />
".showcopyright()."
</td>
<td width='20%' align='right' class='footer'>
<font class='visits'><strong>".showcounter()."</strong></font>
</td>
</tr>
</table>
</td>
</tr>
</table>";
// echo "</table>";
//Footer end
}
function render_news($subject, $news, $info) {
global $locale;
echo "
<table bgcolor='#ffffff' cellspacing='0' width='100%' cellpadding='3'>
<tr>
<td class='panel'>$subject</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>$news</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td height='24' align='center' class='news-footer'>
".newsposter($info,"·").newsopts($info,"·").itemoptions("N",$info['news_id'])."
</td>
</tr>
</table>
</td>
</tr>
</table>";
}
function render_article($subject, $article, $info) {
global $locale;
echo "
<table bgcolor='#ABA8A0' class='border2' cellspacing='0' width='100%' cellpadding='3'>
<tr>
<td class='panel'>$subject</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td height='24' align='right' class='news-footer'>
".articleposter($info, THEME_BULLET).articleopts($info, THEME_BULLET).itemoptions("A",$info['article_id'])."
</td>
</tr>
</table>
</td>
</tr>
</table>";
}
function opentable($title) {
echo "
<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td height='3px'></td>
</tr>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "
</td>
</tr>
</table>";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
$boxname = str_replace(" ", "", $title);
echo "
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-tleft' valign='top'><img src='".THEME."images/blank.gif' width='25px' height='25px' alt='' style='display:block' /></td>
<td class='border-tmain' valign='middle'>$title</td>".
($collapse ? "<td align='right' class='border-tmain' valign='top'>".panelbutton($state, $boxname)."</td>" : "")."
<td class='border-tright' valign='top'><img src='".THEME."images/blank.gif' width='25px' height='25px' 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='25px' height='1px' alt='' style='display:block' /></td>
<td class='side-body'>";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>
<td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block' /></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block' /></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block' /></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block' /></td>
</tr>
<tr>
<td height='11px'></td>
</tr>
</table>";
}
?>
Bardzo proszę o pomoc.
Edytowane przez Pieka dnia 08.10.2010 20:28:28
|
Bywalec
Postów: 671 Pomógł: 80
Data rejestracji: 13.07.2009 19:20
|
gdzie wkleić w darkzik.
A skąd wiedzieć mi/nam, gdzie chcesz żeby to był wklejone ??
Ten fragment to masz ten panel użytkownika z logowaniem:
echo "<table width='100%'>
<tr>
<td class='bottom-header' width='100%'>";
if (iMEMBER)
{
echo "".$locale['global_035']." ".$userdata['user_name']."</td></tr><tr valign='top'><td class='bottom2'><br />";
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo THEME_BULLET." <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['global_120']."</a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."messages.php' class='side'>".$locale['global_121']."</a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."members.php' class='side'>".$locale['global_122']."</a><br />\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo THEME_BULLET." <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['global_123']."</a><br />\n";
}
echo THEME_BULLET." <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['global_124']."</a>\n";
if ($msg_count)
{
echo "<br /><br /><div style='text-align:center'><strong><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['global_125'], $msg_count).($msg_count == 1 ? $locale['global_126'] : $locale['global_127'])."</a></strong></div>\n";
}
} else {
echo "".$locale['global_100']."</td></tr><tr valign='top'><td class='bottom2'><br />";
echo "<div style='text-align:center'>\n";
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
echo $locale['global_101']."<br />\n<input type='text' name='user_name' class='textbox' style='width:100px' /><br />\n";
echo $locale['global_102']."<br />\n<input type='password' name='user_pass' class='textbox' style='width:100px' /><br />\n";
echo "<input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' style='vertical-align:middle;' />\n";
echo "<input type='submit' name='login' value='".$locale['global_104']."' class='button' /><br />\n";
echo "</form>\n<br />\n";
if ($settings['enable_registration']) {
echo "".$locale['global_105']."<br /><br />\n";
}
echo $locale['global_106']."\n</div>\n";
}
echo " </td>
</tr>
</table>";
Aktualnie online:
echo "<table width='100%'>
<tr>
<td class='bottom-header' width='100%'>";
echo "".$locale['global_010']."</td></tr><tr valign='top'><td class='bottom2'><br /><center>";
$result = dbquery("SELECT * FROM ".DB_ONLINE." WHERE online_user=".($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'"));
if (dbrows($result)) {
$result = dbquery("UPDATE ".DB_ONLINE." SET online_lastactive='".time()."' WHERE online_user=".($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'")."");
} else {
$result = dbquery("INSERT INTO ".DB_ONLINE." (online_user, online_ip, online_lastactive) VALUES ('".($userdata['user_level'] != 0 ? $userdata['user_id'] : "0")."', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".DB_ONLINE." WHERE online_lastactive<".(time()-60)."");
$result = dbquery(
"SELECT ton.*, tu.user_id,user_name FROM ".DB_ONLINE." ton
LEFT JOIN ".DB_USERS." tu ON ton.online_user=tu.user_id"
);
$guests = 0; $members = array();
while ($data = dbarray($result)) {
if ($data['online_user'] == "0") {
$guests++;
} else {
array_push($members, array($data['user_id'], $data['user_name']));
}
}
echo "<font size='4px'>".$locale['global_011'].$guests."</font><br />\n";
echo $locale['global_012'];
if (count($members)) {
$i = 1;
while (list($key, $member) = each($members)) {
echo "<a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."</a>";
if ($i != count($members)) { echo ",\n"; } else { echo "<br />\n"; }
$i++;
}
}
echo "<br /><font size='4px'>\n".$locale['global_014'].number_format(dbcount("(user_id)", DB_USERS, "user_status<='1'"))."</font><br />\n";
if (iADMIN && checkrights("M") && $settings['admin_activation'] == "1") {
echo "<a href='".ADMIN."members.php".$aidlink."&status=2' class='side'>".$locale['global_015']."</a>";
echo dbcount("(user_id)", DB_USERS, "user_status='2'")."<br />\n";
}
$data = dbarray(dbquery("SELECT user_id,user_name FROM ".DB_USERS." WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
echo $locale['global_016'].": <a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a>\n";
echo "</center>";
echo" </td>
</tr>
</table>";
I forum:
echo "<table width='100%'>
<tr>
<td class='bottom-header' width='100%'>";
echo "".$locale['global_020']."</td></tr><tr valign='top'><td class='bottom2'><br />";
echo "<font size='4px'>".$locale['global_021']."</font><br />\n";
$result = dbquery("
SELECT tt.forum_id, tt.thread_id, tt.thread_subject, tt.thread_lastpost FROM ".DB_THREADS." tt
INNER JOIN ".DB_FORUMS." tf ON tt.forum_id=tf.forum_id
WHERE ".groupaccess('forum_access')." ORDER BY thread_lastpost DESC LIMIT 5
");
if (dbrows($result)) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 23);
echo "· <a href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='side'>$itemsubject</a><br />\n";
}
} else {
echo "<div style='text-align:center'>".$locale['global_023']."</div>\n";
}
echo "<font size='4px'>".$locale['global_022']."</font>\n";
list($min_posts) = dbarraynum(dbquery("SELECT thread_postcount FROM ".DB_THREADS." ORDER BY thread_postcount DESC LIMIT 4,5"));
$result = dbquery("
SELECT tf.forum_id, tt.thread_id, tt.thread_subject, tt.thread_postcount
FROM ".DB_FORUMS." tf
INNER JOIN ".DB_THREADS." tt USING(forum_id)
WHERE ".groupaccess('forum_access')." AND tt.thread_postcount >= '$min_posts'
ORDER BY thread_postcount DESC, thread_lastpost DESC LIMIT 5
");
if (dbrows($result) != 0) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 20);
echo "<tr>\n<td class='side-small'>·<a href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='side'>$itemsubject</a></td>\n";
echo "<td align='right' class='side-small'>[".($data['thread_postcount'] - 1)."]</td>\n</tr>\n";
}
echo "</table>\n";
} else {
echo "<div style='text-align:center'>".$locale['global_023']."</div>\n";
}
echo " </td>
</tr>
</table>";
Mówiąc dokładnie to są to "default" panele fusiona, może ciut zmienione. Masz podane fragmenty kodu, wystarczy że sobie wkleisz tam gdzie chcesz B)
Edytowane przez eldiablo dnia 08.10.2010 20:40:37
|
Bywalec
Postów: 671 Pomógł: 80
Data rejestracji: 13.07.2009 19:20
|
Zakończenie pisze się tak: </tr></table> a nie </table></tr> jak to napisałeś.
Oto fragment "photo_panel", który Cię interesuje:
$result = dbquery(
"SELECT tp.photo_id, tp.photo_title, tp.photo_thumb1, ta.album_id, ta.album_title FROM ".DB_PHOTOS." tp
LEFT JOIN ".DB_PHOTO_ALBUMS." ta USING(album_id)
WHERE ".groupaccess('album_access')." ORDER BY RAND() LIMIT 1"
);
if (dbrows($result)) {
$data = dbarray($result);
define("R_SAFEMODE", @ini_get("safe_mode") ? true : false);
define("R_PHOTODIR", PHOTOS.(!R_SAFEMODE ? "album_".$data['album_id']."/" : ""));
echo "<div align='center'>\n";
echo "<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='photogallery_album_photo_link'>\n";
if ($data['photo_thumb1'] && file_exists(R_PHOTODIR.$data['photo_thumb1'])) {
echo "<img src='".R_PHOTODIR.$data['photo_thumb1']."' alt='".$data['photo_title']."' style='border:0px' class='photogallery_album_photo' />\n";
} else {
echo "<img src='".IMAGES."imagenotfound.jpg' alt='".$data['photo_title']."' style='border:0px' class='photogallery_album_photo' />\n";
}
echo "</a>\n";
echo "<br />\n";
echo "<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='side'><strong>".$data['photo_title']."</strong></a>\n";
echo "<br />\n";
echo "<a href='".BASEDIR."photogallery.php?album_id=".$data['album_id']."' class='side'>".$data['album_title']."</a>\n";
echo "</div>\n";
Zawartość panelu czy innego pliku PHP, nie może sobie od tak być wklejana, gdzie Ci pasuje, są pewne zasady.
Problem, dla którego temat założyłeś został rozwiązany w drugim poście. Chciałeś fragmenty kodu, dostałeś. Poprzeglądaj forum, szczególnie tematy działu przedszkole, poczytaj trochę o fusionie, wklejanie paneli, include paneli, podstawy etc. Naprawdę, wierz mi przyda Ci się to na przyszłość, a i może następne Twoje pytania, zostaną rozwiane. :D Wysil się :P
Edytowane przez eldiablo dnia 09.10.2010 19:21:12
|