Witam!
Zacząłem sam przerabiać thema, bo chciałbym uzyskać taki efekt: http://images20.f...
Część zrobiłem (www.chomiczki2006.yoyo.pl theme Comstock), ale z resztą nie potrafię sobie poradzić bo nie znam kompletnie php... walczę z tym już od 3 tygodni i efekty są jakie są... A ja już wątpię w powodzenie tego co zrobiłem...
Miałbym prośbę:
Czy mógłby ktoś zerknąć na kod, który "stworzyłem" i pomóc mi zrobić tak aby działało i wyglądało tak jak założyłem? Byłbym bardzo wdzięczny :)
Oto ten kod:
<?
//************************************************************************************************************************//
// Theme Name: Comstock Theme for PHP-Fusion 6.00
// Theme Design: by: PHP-Fusion Themes (http://phpfusion.org)
// version 2.0
//
// PHP-Fusion Themes and/or Lorkan is a Registered Organization and holds a copyright with CIPO
// Original Author of file: PHP-Fusion Themes [Shedrock]
// Developed by: PHP-Fusion Themes - Bringing Your Portal To Life
// Copyright © 2005 by PHP-Fusion Themes - All Rights Reserved
// ----------------------------------------------------------------------
// THEME MODIFICATION
// Users may alter or modify this theme at their own risk,
// but only for their own use. They may also hire PHP-Fusion Themes to modify their own copy of the theme.
// Although users may modify the code for their use,
// modified code may not be resold or distributed,
// without express written permission from PHP-Fusion Themes.
//
// DISPLAY OF COPYRIGHT NOTICES REQUIRED
// All copyright notices used within the scripts that the scripts generate,
// MUST remain intact. Furthermore, these notices must remain visible.
//
// SUPPORT
// PHP-Fusion Themes provides free support on all their theme designs.
// (includes consulting, troubleshooting and fixing problems).
// For Support, please visit us at: http://www.phpfus...forum_id=2
//
// PHP-Fusion Themes is not liable for any products or services offered by means of the theme.
// The user must assume the entire risk of using the program.
//************************************************************************************************************************//
/************************/
/* Theme Settings */
/************************/
$body_text = "#000000";
$body_bg = "#899DA4";
$theme_width = "980";
$theme_width_l = "175";
$theme_width_r = "175";
$theme_align = "left";
function render_header($header_content) {
global $theme_width,$settings,$userdata;
echo "<table width='$theme_width' class='bodyline' cellSpacing='0' cellPadding='0' align='$theme_align' border='0'>";
echo "<table align='$theme_align' cellpadding='10' background='".THEME."images/Untitled-2_03.gif' width='$theme_width' height='313' border='0'>";
echo "<tr height='45'>";
echo "<td width='320'>
</td>";
echo "<td colspan='2'>
<font size='2'><b>
Witaj ".(iMEMBER ? "<a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'" ."<font size='2'><b><span style='color:#".$userdata['user_color']."'>".$userdata['user_prefix'].$userdata['user_name'] : "Go¶ciu! <a href='login.php'><font size='2'><b>Zaloguj</b></font></a> się lub <a href='register.php'><font size='2'><b>Zarejestruj</b></font></a> je¶li nie jeste¶ naszym użytkownikiem...")."</font>
</b></font>
</td>";
echo "</tr>";
echo "<tr height='250'>";
echo "<td>";
echo "<table border='0' cellpadding=0 cellspacing='0'>";
echo "<tr>";
echo "<td width='100' height=100>";
genshadow($userdata['user_avatar']);
echo "</td>";
echo "<td width='180'>";
echo "<img src='".INFUSIONS."user_info_panel/images/icon_docs.gif'> <font color='white'><b> Twoje statystki</b></font><br>";
if (iMEMBER && EPS) {
echo "<img src='".THEME."images/bullet.gif' border='0'> <font color='white'>Ranga: ".check_rang($userdata['user_id'])."</font><br>
<img src='".THEME."images/bullet.gif' border='0'> <font color='white'>Punktów: ".show_points($userdata['user_id'])."</font><br>\n";
}
echo"</td>";
echo "</tr>";
echo "<tr>";
echo "<td height='85' colspan='2'>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan='2'>";
echo "<center><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."setuser.php?logout=yes' class='side'> <font color='white'>Wyloguj</font> </span></a> <img src='".THEME."images/bullet.gif'></center>\n";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</td>";
echo "<td colspan='2'></td>";
echo "</tr>";
echo "</table>";
echo "<td align='$theme_align'></td>";
echo "<td><a href='".BASEDIR."index.php'>";
echo "</td></tr></table>";
echo "<table align='$theme_align' width='$theme_width' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' height='30' border='0' cellpadding='4' cellspacing='0' background='".THEME."images/cellpic_nav.gif'>";
echo "<td class='topnav' align='left' nowrap>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " r6;\n"; } 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." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>\n";
echo "<td class='topnav' width='195' nowrap><div align='right'><font class='date'><strong>".ucwords(showdate($settings['subheaderdate'], time()))." </font>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='$theme_width' cellpadding='0' cellspacing='0' border='0' align='$theme_align'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='4' bgcolor='#F9F9F9' cellspacing='0' border='0'>";
}
/*******************************************************************/
/* PLEASE RESPECT THE AUTHORS AND THEIR LINKS. */
/* DO NOT REMOVE THE CREDITS OR LINKS IN THE FOOTER OF THIS THEME. */
/*******************************************************************/
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</td></tr></table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='$theme_width' border='0'><tr>";
echo "<td background='".THEME."images/cellpic_nav.gif' align='center'>".stripslashes($settings['footer'])."</td>";
echo "<table cellSpacing='0' cellPadding='2' width='$theme_width' border='0'>";
echo "<tr><td width='35%' class='topnav' align='center'><div align='left'> ";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'>PHP-Fusion</a> v".$settings['version']." © 2003-2005";
}
echo "</div></td>";
echo "<td width='20%' class='topnav' align='left'>";
echo "ModedComstock by: Andrzej Marszałek</td>";
echo "<td width='35%' class='topnav' align='middle'><div align='right'>";
echo "<b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo " </div></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td class='cat'><table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td align='left'>";
echo "<img border='0' src='".THEME."images/icon_read.gif'> <font class='news-title'>$subject</b></font></td>";
echo "<td align='right'><a href='submit.php?stype=n'><img border='0' src='".THEME."images/icon_submit.gif' alt='Submit News'></a> ";
echo "<img border='0' src='".THEME."images/div.gif'> ";
echo "<a href='submit.php?stype=a'><img border='0' src='".THEME."images/icon_articles.gif' alt='Submit Article'></a> ";
echo "<img border='0' src='".THEME."images/div.gif'> ";
echo "<a href='forum/index.php'><img border='0' src='".THEME."images/icon_forums.gif' alt='Visit our Forum'></a> </td>";
echo "</td></tr></table>";
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'>$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']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td class='cat'><table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td align='left'>";
echo "<img border='0' src='".THEME."images/icon_read.gif'> <font class='news-title'>$subject</b></font></td>";
echo "<td align='right'><a href='submit.php?stype=n'><img border='0' src='".THEME."images/icon_submit.gif' alt='Submit News'></a> ";
echo "<img border='0' src='".THEME."images/div.gif'> ";
echo "<a href='submit.php?stype=a'><img border='0' src='".THEME."images/icon_articles.gif' alt='Submit Article'></a> ";
echo "<img border='0' src='".THEME."images/div.gif'> ";
echo "<a href='forum/index.php'><img border='0' src='".THEME."images/icon_forums.gif' alt='Visit our Forum'></a> </td>";
echo "</td></tr></table>";
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']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' cellpadding='2' cellspacing='1' style='border: 1px solid #333333'>";
echo "<tr><td bgcolor='#D8D8D8' background='".THEME."images/cellpic1.gif' height='20'><font class='head-title'> $title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table border='0' style='border: 1px solid #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='27' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#EFEFEF' class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table border='0' style='border: 1px solid #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='27' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<img align='left' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#EFEFEF' class='side-body' width='100%'>";
echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Za wszelką pomoc z góry dziękuję!
Pozdrawiam x_AnDrZeJ_x |