[Prośba] Podmienienie linijek
|
c-milionaire |
Dodany dnia 22.10.2006 11:57:11
|
Początkujący
Postów: 185
Data rejestracji: 23.06.2006 11:36
|
bardzo bym prosiłl kogoś żeby podmienił mi odpowiednie linijki w pliku theme według tego bo mmi nie wychodzi z góry wielkie dzięki
http://www.php-fu...ad_id=8025
kod panelu we flashu
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0'
id='menu' width="802" height="60">
<param name='movie' value='http://tbws.yoyo.pl/menu.swf'>
<param name='quality' value='high'>
<param name='bgcolor' value='#FFFFFF'>
<embed name='header' src='http://tbws.yoyo.pl/menu.swf'>
quality='high' bgcolor='#FFFFFF'
width='100%' height='802'
type='application/x-shockwave-flash'
pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>
</object>
plik theme
$body_text = "#ffffff";
$body_bg = "#383838";
$theme_width = "802";
$theme_width_l = "159";
$theme_width_r = "159";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td width='8' nowrap='nowrap' class='lefttd'></td><td>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='60%'><center>$header_content</center></td>";
echo "</tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td><table width='100%' height='49' 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='sub-header2'> \n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " | \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='sub-header2' width='300' nowrap><div align='right'><font class='date'><b>".ucwords(showdate($settings['subheaderdate'], time()))."";
echo "  </b></font></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='#383838' cellspacing='0' border='0'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0'border='0' cellspacing='0' width='100%'><tr>";
echo "<td>".stripslashes($settings['footer'])."<br>";
echo "<table height='22' bgcolor='#721507' style='border: 1px solid #721507' cellSpacing='0' cellPadding='2' width='100%' border='0'>";
echo "<tr><td width='38%' class='footer' align='left'><div align='left'>";
if ($license == false) {
echo "Powered by <a href='http://www.php-fusion.co.uk' target='_blank'><img src='".THEME."images/fusion.gif' alt='PHP-Fusion' title='PHP-Fusion' border='0' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005";
}
echo "</div></td>";
echo "<td class='footer' width='' align='left'></td>";
echo "<td class='footer' width='82'><a href='http://szabloniki.com' title='szablony na bloga, szablony za sms'><img src='".THEME."images/butt.jpg'></a></td>";
echo "<td class='footer' width='18%' align='right'>";
echo "<font class='visits'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></td>";
echo "</tr></table></td></tr></table>";
echo "<td width='8' nowrap='nowrap' class='righttd'></td></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table class='border2' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panell'><div class='title'>$subject</div></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' 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><td height='1' bgcolor='#721507'></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 class='border2' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panell'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' 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";
}
function opentable($title) {
echo "<table width='100%' cellpadding='2' cellspacing='0' class='border2'>";
echo "<tr><td class='panell'>";
echo "<div class='title'>$title</div></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table bgcolor='#383838' border='0' style='border: 1px solid #721507' cellspacing='0' width='159' cellpadding='2'><tr>";
echo "<td width='159' class='panel'>";
echo "<div class='title'>$title</div></td></tr>";
echo "<tr><td bgcolor='#383838' class='side-body' width='159'>";
}
function closeside() {
echo "<tr><td class='panel2' width='100%'>";
echo "</td></tr></td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table bgcolor='#383838' border='0' style='border: 1px solid #464F54' cellspacing='0' width='159' cellpadding='0'><tr>";
echo "<td width='159' class='panel'>";
echo "<img align='right' onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'>$title";
echo "</td></tr>";
echo "<tr><td bgcolor='#383838' class='side-body'width='159'>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "<tr><td class='panel2' width='100%'>";
echo "</td></tr></td></tr></table>";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
|
|
|
|
Wścibski Gość |
Dodany dnia 23.12.2024 05:21:13
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
spinax |
Dodany dnia 22.10.2006 13:26:13
|
Przedszkolak
Postów: 80
Data rejestracji: 15.03.2005 18:01
|
$body_text = "#ffffff";
$body_bg = "#383838";
$theme_width = "802";
$theme_width_l = "159";
$theme_width_r = "159";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td width='8' nowrap='nowrap' class='lefttd'></td><td>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='60%'><center>$header_content</center></td>";
echo "</tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td><table width='100%' height='49' border='0' cellpadding='4' cellspacing='0'>";
echo "<object classid='clsid:d27CDB6E-AE6D-11cf-96B8-444553540000'
codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0'
id='menu' width="802" height="60">
<param name='movie' value='http://tbws.yoyo.pl/menu.swf'>
<param name='quality' value='high'>
<param name='bgcolor' value='#FFFFFF'>
<embed name='header' src='http://tbws.yoyo.pl/menu.swf'>
quality='high' bgcolor='#FFFFFF'
width='100%' height='802'
type='application/x-shockwave-flash'
pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>
</object>
</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='#383838' cellspacing='0' border='0'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0'border='0' cellspacing='0' width='100%'><tr>";
echo "<td>".stripslashes($settings['footer'])."<br>";
echo "<table height='22' bgcolor='#721507' style='border: 1px solid #721507' cellSpacing='0' cellPadding='2' width='100%' border='0'>";
echo "<tr><td width='38%' class='footer' align='left'><div align='left'>";
if ($license == false) {
echo "Powered by <a href='http://www.php-fusion.co.uk' target='_blank'><img src='".THEME."images/fusion.gif' alt='PHP-Fusion' title='PHP-Fusion' border='0' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005";
}
echo "</div></td>";
echo "<td class='footer' width='' align='left'></td>";
echo "<td class='footer' width='82'><a href='http://szabloniki.com' title='szablony na bloga, szablony za sms'><img src='".THEME."images/butt.jpg'></a></td>";
echo "<td class='footer' width='18%' align='right'>";
echo "<font class='visits'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></td>";
echo "</tr></table></td></tr></table>";
echo "<td width='8' nowrap='nowrap' class='righttd'></td></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table class='border2' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panell'><div class='title'>$subject</div></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' 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><td height='1' bgcolor='#721507'></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 class='border2' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panell'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' 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";
}
function opentable($title) {
echo "<table width='100%' cellpadding='2' cellspacing='0' class='border2'>";
echo "<tr><td class='panell'>";
echo "<div class='title'>$title</div></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table bgcolor='#383838' border='0' style='border: 1px solid #721507' cellspacing='0' width='159' cellpadding='2'><tr>";
echo "<td width='159' class='panel'>";
echo "<div class='title'>$title</div></td></tr>";
echo "<tr><td bgcolor='#383838' class='side-body' width='159'>";
}
function closeside() {
echo "<tr><td class='panel2' width='100%'>";
echo "</td></tr></td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table bgcolor='#383838' border='0' style='border: 1px solid #464F54' cellspacing='0' width='159' cellpadding='0'><tr>";
echo "<td width='159' class='panel'>";
echo "<img align='right' onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'>$title";
echo "</td></tr>";
echo "<tr><td bgcolor='#383838' class='side-body'width='159'>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "<tr><td class='panel2' width='100%'>";
echo "</td></tr></td></tr></table>";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Powinno dzialac ale nie obiecuje nie sprawdzalem:)
|
|
|
|
c-milionaire |
Dodany dnia 22.10.2006 15:01:07
|
Początkujący
Postów: 185
Data rejestracji: 23.06.2006 11:36
|
błąd
Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /var/www/sites/yoyo.pl/t/b/tbws/themes/kv845nvf/theme.php on line 26
|
|
|
|
as |
Dodany dnia 22.10.2006 15:15:34
|
Zaawansowany
Postów: 1509
Data rejestracji: 25.01.2005 21:55
|
Bo ~spinax Ci te linijki podmienił ale nie wszystkie " zamienił na '
as
|
|
|
|
c-milionaire |
Dodany dnia 22.10.2006 15:16:48
|
Początkujący
Postów: 185
Data rejestracji: 23.06.2006 11:36
|
ok wielke dzięki
Edytowane przez c-milionaire dnia 22.10.2006 15:19:37
|
|
|
|
Pieka |
Dodany dnia 22.10.2006 15:19:40
|
Postów: 19885 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Znajdz:
width="802" height="60"
i zamien na:
width='802' height='60'
Jestem jaki jestem
|
|
|
|
as |
Dodany dnia 22.10.2006 15:21:49
|
Zaawansowany
Postów: 1509
Data rejestracji: 25.01.2005 21:55
|
80 postów na Forum a Ty ciągle pytasz się o takie pierdy ?... skoro błąd pojawił się po podmianie, to chyba logiczne jest, że winien temu jest ten kod podmieniony. Zmień w tym kodzie podmienionym... myśl
as
|
|
|
|
c-milionaire |
Dodany dnia 22.10.2006 15:27:18
|
Początkujący
Postów: 185
Data rejestracji: 23.06.2006 11:36
|
mam jeszcze jeden problem po wstawieniu ale to już następnym temacie jak sam tego nie zrobie |
|
|