Mam problem z wrzuceniem nowego panelu w theme.php
-Chcę aby on był pod górną belka...
ale są jakieś komplikacje w kodzie ale ja się na tym nie znam dlatego tutaj pisze :)
Znalazłem miejsce gdzie wkleić swój panel aby był pod górną belka (szukałem tego miejsca poprzez dopisywanie jakiegoś tekstu) ale gdy go tam już wrzucę to mi się cała strona rozwala i panele się nie wyświetlają prawidłowo z błędem screen:
Pomyślałem wiec że wstawię swój panel linijkę wyżej nad "}" ale wtedy panel się wyświetla nad logiem.. lecz poprawnie screen:
Siedzę nad tym już parę dni i pupa ładnie mówiąc :P
To mój panel:
openside("");
echo '<table width="100%" cellspacing="4" cellpadding="0" border="0">';
echo '<tr><td> </td><td> </td><td> </td><td align="left" valign="top" width="25%">';
$result = dbquery("SELECT news_id, news_subject FROM ".$db_prefix."news ORDER BY news_id DESC LIMIT 5");
echo '<b>Najnowsze news`y:</b><br>';
while ($row = mysql_fetch_array($result))
{
echo '<img src="'.THEME.'images/bullet.gif" alt=""> <a href="readnews.php?news_id=';
echo($row['news_id']);
echo '">';
echo($row['news_subject']);
echo '</a><br>';
}
echo '</td>';
echo '<td align="left" valign="top" width="25%">';
$result = dbquery("SELECT article_id, article_subject FROM ".$db_prefix."articles ORDER BY article_id DESC LIMIT 5");
echo '<b>Najnowsze artykuły:</b><br>';
while ($row = mysql_fetch_array($result))
{
echo '<img src="'.THEME.'images/bullet.gif" alt=""> <a href="readarticle.php?article_id=';
echo($row['article_id']);
echo '">';
echo($row['article_subject']);
echo '</a><br>';
}
echo '</td><td align="left" valign="top" width="25%">';
$result = dbquery("SELECT download_id, download_title, download_count, download_cat FROM ".$db_prefix."downloads ORDER BY download_id DESC LIMIT 5");
echo '<b>Najnowsze pliki:</b><br>';
while ($row = mysql_fetch_array($result))
{
echo '<img src="'.THEME.'images/bullet.gif" alt=""> <a href="downloads.php?cat_id=';
echo($row['download_cat']);
echo '&download_id=';
echo($row['download_id']);
echo '">';
echo($row['download_title']);
echo '</a><br>';
}
echo '</td>';
echo '<td align="left" valign="top" width="25%">';
echo "<b>Ostatnio na forum:</b><br>";
$result = dbquery("
SELECT * FROM ".$db_prefix."threads
INNER JOIN ".$db_prefix."forums ON ".$db_prefix."threads.forum_id=".$db_prefix."forums.forum_id
WHERE ".groupaccess('forum_access')." ORDER BY thread_lastpost DESC LIMIT 5
");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
}
echo '</td></table>';
closeside();
A to kawałek theme.php :
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Speyside Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: PHP-Fusion Themes - Shedrock © 2005 |
| web: http://phpfusion.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
// theme settings
$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table class='bodyline' border='0' cellspacing='0' width='980' height='210' cellpadding='0' align='center'><tr><td>";
echo "<tr><td align='center' valign='top'>";
echo "<table border='0' cellspacing='0' width='980' height='210' cellpadding='0'><tr>";
echo "<td width='980' background='".THEME."images/logo.jpg' height='210'align='right'valign='top' style='padding: 10px'><a href='".BASEDIR."index.php'><script type=\"text/javascript\"><!--
google_ad_client = \"pub-1760532895151954\";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = \"468x60_as\";
google_ad_type = \"text_image\";
google_ad_channel =\"\";
//--></script>
<script type=\"text/javascript\"
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
</script>";
echo "</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td><table width='100%' height='24' border='0' cellpadding='4' cellspacing='0' align='center'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td class='nav-header'>\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img border='0' src='".THEME."images/divider.gif'>\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 align='right' class='nav-header'>".ucwords(showdate($settings['subheaderdate'], time()))."";
echo "</td></tr></table>";
echo "<table width='100%' cellspacing='5' cellpadding='0'>\n<tr>\n";
[b][color=blue]Gdy wklejam tu panel strona się rozwala i nie wyświetla się nawet panel dobrze. [/color][/b]
}
[color=blue][b]
A jak tutaj wszystko jest cacy ale panel jest nad logiem.[/b][/color]
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "</td></tr>\n</table>\n";
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";
echo "<td>".stripslashes($settings['footer'])."</td></tr></table><br>\n";
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='15'></td>";
echo "<td class='footer' align='left' width='38%'>";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' title='PHP-Fusion' style='vertical-align:top;'></a> v".$settings['version']." © 2006";
}
echo "</td>";
echo "<td class='footer' align='center' width='24%'> Theme : <a target='_blank' href='http://phpfusion.org'>Speyside</a> - Modified By EuGeN";
echo "</td>";
echo "<td class='footer' align='right' width='38%'>";
echo "Od 18.04.2006r. <strong>".$settings['counter']." </strong>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table>";
}
Mam nadzieję że ktoś będzie tak miły i rozwiąże mój problem... z góry thx
Kocio Kocio
|