Pieka napisał/a:
Kolega ewidentnie nie szukal, w przeciwnym razie juz dawno mialby to, o co pyta, poniewaz w dziale wtyczek jest dostepny rotator buttonow.
Tak znalazłem ten rotator ale zbytnio nie wiedziałem jak go skonfigurować:) Dzięki za pomoc ElDiablo. Lecz Teraz Możecie mi jeszcze pomóc z wklejeniem do mojego thema? Chciał bym aby był on umieszczony pomiędzy reklama oraz rotatorem a panelami na cala objętość thema:) Screen http://img43.imag...lablac.jpg
Theme.php
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "1050");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $aidlink, $locale, $settings, $main_style, $userdata;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"1050\" align=\"center\">
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"1050\">
<tr>
<td style=\"background-image: url('".THEME."images/header1.gif'); color: #FFFFFF; font-family: verdana; font-size: 11px; height: 250px; width: 351px\">";
if (file_exists(INFUSIONS."user_info_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
}
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
echo "<table align='center' width='320px'><tr><td>";
echo "<table width='100%' cellspacing=0 cellpadding=1><tr><td style=\"font-weight: bolder\">
<font size='1' color='#FFFFFF'>Witaj:</font> ".$userdata['user_name']."";
echo "</td><td align='center' style=\"font-weight: bolder\"><nobr><a href='".BASEDIR."setuser.php?logout=yes'> <span><font color='#FFFFFF'>Wyloguj </font></span></a></nobr></td></tr></table>";
echo "<table><tr><td>";
echo" ".($userdata['user_avatar'] ? "<img src='".IMAGES."avatars/".$userdata['user_avatar']."' width='100' height='100'>" : "<img src='images/brak.gif' width='100' height='100'>")."<br>";
echo "</td><td>";
echo "<table width='110px'>
<tr><td><font size='1' color='#FFFFFF'>Profil:</font></td></tr>
<tr><td>
<a href='".BASEDIR."edit_profile.php'><font color='#FFFFFF'>Edytuj Profil</font></a>
</td></tr>
<tr><td>
<a href='".BASEDIR."messages.php'><font color='#FFFFFF'>Wiadomosci</font></a>
</td></tr>
<tr><td>
<a href='".FORUM."my_followed_threads.php'><font color='#FFFFFF'>Powiadomienia</font></a>
</td></tr>
<tr><td>
<a href='".BASEDIR."members.php'><font color='#FFFFFF'>Użytkownicy</font></a>
</td></tr>
</table></td><td>";
echo "<table width='110px'>
<tr><td><font size='1' color='#FFFFFF'>Dodaj:</font></td></tr>
<tr><td>
<a href='".BASEDIR."submit.php?stype=n'><font color='#FFFFFF'>Dodaj Newsa</font></a>
</td></tr>
<tr><td>
<a href='".BASEDIR."submit.php?stype=l'><font color='#FFFFFF'>Dodaj Linka</font></a>
</td></tr>
<tr><td>
<a href='".BASEDIR."submit.php?stype=p'><font color='#FFFFFF'>Dodaj Zdjęcie</font></a>
</td></tr>
<tr><td>
<a href='".BASEDIR."submit.php?stype=f'><font color='#FFFFFF'>Dodaj Plik</font></a>
</td></tr>
</table>";
echo "</td></tr></table>
<table width='100%' valign='top'>
<tr><td style=\"font-weight: bolder\" align=\"left\">";
if (iADMIN) {
echo "<a href='".ADMIN."index.php$aidlink'><font color='#FFFFFF'>Panel Adma</font></a><br></td>\n";
}
echo "</td></tr></table>
";
echo "</td></tr></table>";
} else {
echo "<table align='center'> <tr><td>";
echo "<br><div>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".BASEDIR."setuser.php'>
<input type='text' name='user_name' class='panellogowania_textbox' value='Twój login' onBlur=\"if(this.value=='') this.value='Twój login';\" onFocus=\"if(this.value=='Twój login') this.value='';\" ><br>
<input type='password' name='user_pass' class='panellogowania_textbox' value='haslo' onBlur=\"if(this.value=='') this.value='hasło';\" onFocus=\"if(this.value=='hasło') this.value='';\" ><br>
<center>
<input type='submit' name='login' class='zaloguj' value='Zaloguj'><br></center>
</form>
<br><left>\n";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php'><font color='#ffffff'>* Rejestracja</font></a><br> \n";
}
echo "<img src='".THEME."images/lostpass.png' alt=''> <a href='".BASEDIR."lostpassword.php'><font color='#ffffff'>* Zapomniane hasło...</font></a>
</left></div></td>\n";
echo " </font></td></tr></table>";
}
echo "
</td>
<td><a href=\"news.php\"><img src=\"".THEME."images/header.gif\" width=\"714\" height=\"250\" border=\"0\" alt=\"[Rozmiar: 612 bajtów]\"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td><a href='".BASEDIR."news.php'><img src='".THEME."images/Themes_a1.gif' onmouseover=\"this.src = '".THEME."images/Themes_b1.gif'\" onmouseout=\"this.src = '".THEME."images/Themes_a1.gif'\" border='0'></a><a href='".BASEDIR."news.php'><img src='".THEME."images/Themes_a2.gif' onmouseover=\"this.src = '".THEME."images/Themes_b2.gif'\" onmouseout=\"this.src = '".THEME."images/Themes_a2.gif'\" border='0'></a><a href='".BASEDIR."team.php'><img src='".THEME."images/Themes_a3.gif' onmouseover=\"this.src = '".THEME."images/Themes_b3.gif'\" onmouseout=\"this.src = '".THEME."images/Themes_a3.gif'\" border='0'></a><a href='".BASEDIR."articles.php'><img src='".THEME."images/Themes_a4.gif' onmouseover=\"this.src = '".THEME."images/Themes_b4.gif'\" onmouseout=\"this.src = '".THEME."images/Themes_a4.gif'\" border='0'></a><a href='".BASEDIR."contact.php'><img src='".THEME."images/Themes_a5.gif' onmouseover=\"this.src = '".THEME."images/Themes_b5.gif'\" onmouseout=\"this.src = '".THEME."images/Themes_a5.gif'\" border='0'></a><a href='".BASEDIR."news.php'><img src='".THEME."images/Themes_a6.gif' onmouseover=\"this.src = '".THEME."images/Themes_b6.gif'\" onmouseout=\"this.src = '".THEME."images/Themes_a6.gif'\" border='0'></a><a href='".BASEDIR."news.php'><img src='".THEME."images/Themes_a7.gif' onmouseover=\"this.src = '".THEME."images/Themes_b7.gif'\" onmouseout=\"this.src = '".THEME."images/Themes_a7.gif'\" border='0'></a><a href='".BASEDIR."download.php'><img src='".THEME."images/Themes_a8.gif' onmouseover=\"this.src = '".THEME."images/Themes_b8.gif'\" onmouseout=\"this.src = '".THEME."images/Themes_a8.gif'\" border='0'></a>
<td><img src=\"".THEME."images/Themes_a9.gif\" width=\"98\" height=\"46\"></td></tr>
</table>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td><img src=\"".THEME."images/Themes_c1.gif\" width=\"475\" height=\"32\" border=\"0\" alt=\"[Rozmiar: 4434 bajtów]\"></td>
<td><img src=\"".THEME."images/Themes_c2.gif\" width=\"580\" height=\"32\" border=\"0\" alt=\"[Rozmiar: 4370 bajtów]\"></td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/cs_16.gif'); color: #FFFFFF; font-family: verdana; font-size: 11px; height: 168px; padding-left: 10px; padding-right: 5px; width: 460px\">
<center>
<embed
src='".BASEDIR."imagerotator/imagerotator.swf'
width='460'
height='160'
allowscriptaccess='always'
allowfullscreen='true'
flashvars='file=".BASEDIR."imagerotator/madrid.xml&transition=blocks'/></center></td>
<td><img src=\"".THEME."images/reklama.gif\" width=\"580\" height=\"168\"></td>
</tr>
</tr>
</tr>
</table>
\n";
//Header
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='header'>\n";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
//Content
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
//Footer
echo "</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
echo "<tr><td><table border='0' cellpadding='0' cellspacing='0' width='1050' height='30'>";
echo "<tr><td class='footer' valign='middle' width='1050'>";
if ($license == false) {
echo "Wszelkie prawa zabronione.";
}
echo "</td>";
echo "<td class='footer' align='center' width='26'>";
echo "</td>
</tr></table></center></table></table></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='left' class='news-footer'>\n";
echo " Pridal: <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>";
echo ", <a href='news.php?readmore=".$info['news_id']."'>Komentarze (".$info['news_comments'].")</a>";
echo ", Czytane: ".$info['news_reads']." razy";
echo ", <a href='news.php?readmore=".$info['news_id']."'><b><span style='color:#c99e43'>Czytaj więcej</span></a>";
echo "</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n</tr>\n</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='scapmain'>".$title."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='side-body'>\n";
}
function closeside() {
echo "</td>\n</tr>\n</table>\n";
}
?>
Edytowane przez emanio1 dnia 10.12.2009 16:47:29
|