namo
VIP narys
Kapitonas
Pranešimai: 564
Įstojęs: 2008 Bir. 10 13:06:43
Sveiki, bandau ideti JW Image Rotator 3.17 i savo tema vietoj headerio bet niekaip neiseina...
Kodas kuri reik ideti:
<embed
src="imagerotator.swf"
width="470"
height="160"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=imagerotator.xml&transition=blocks"
/>
Mano theme.php:
<?php
////
// Made by Qrmiz 2008
////
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// temos nustatymai
$body_text = "#000000";
$body_bg = "#FFFFFF";
$theme_width = "631";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
/// HEADERIS START
echo "<table width='$theme_width' border='0' cellspacing='0' cellpadding='0' align='center'><tr>";
echo "<td class='top'><img src='".THEME."images/ttranc.gif' alt=''></td></tr>";
echo "<tr><td align='center' class='main-table'><img src='".THEME."images/header.jpg' style='border:1px solid #999999' alt=''>";
echo "</td></tr></table>";
/// HEADERIS END --- START MAIN TABLE
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' border='0' class='main-table'>";
echo "<tr><td>";
/// START SUBLINKS
echo "<br><table width='614' border='0' cellpadding='0' cellspacing='0' class='sublinks' align='center'><tr><td height='41' align='center'><a href='".BASEDIR."news.php' class='sublinks'>Naujienos</a></td><td><img src='".THEME."images/dots.gif' alt=''></td>\n";
echo "<td align='center'><a href='".BASEDIR."viewpage.php?page_id=1' class='sublinks'>Apie</a></td><td><img src='".THEME."images/dots.gif' alt=''></td><td align='center'><a href='".BASEDIR."viewpage.php?page_id=3' class='sublinks'>Paslaugos</a></td><td><img src='".THEME."images/dots.gif' alt=''></td><td align='center'><a href='".BASEDIR."viewpage.php?page_id=2' class='sublinks'>Kontaktai</a></td><td><img src='".THEME."images/dots.gif' alt=''></td><td align='center'><a href='".BASEDIR."search.php' class='sublinks'>Paieška</a></td></tr></table>";
/// END SUBLINKS
echo "<table width='100%' cellspacing='5' cellpadding='0' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table></td></tr></table></td></tr></table>";
echo "<table width='$theme_width' border='0' cellspacing='0' cellpadding='0' align='center'><tr>";
echo "<td class='bot'><img src='".THEME."images/ttranc.gif' alt=''></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale, $news_info;
echo "<table width='100%' cellpadding='0' cellspacing='0' align='center'><tr>";
echo "<td width='40' align='center'><img src='".THEME."images/nicon.gif' border='0' alt=''></td><td width='100%' class='nsub'>".showdate("%Y %m %d", $news_info['news_date'])." $subject</td>";
echo "</tr><tr>";
echo "<td class='news-body' colspan='2'>$news";
echo " ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>Plačiau...\n" : "")."</td>";
echo "</tr></table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0' align='center'>";
echo "<tr><td><img src='".THEME."images/bullet.gif' border='0' alt=''></td><td width='100%' class='panel-main2'>$title</td>";
echo "</tr><tr>";
echo "<td class='table-body' colspan='2'>\n";
}
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='sidetbl'><tr>";
echo "<td width='100%' class='panel-main'>$title</td></tr><tr>";
echo "<td class='side-body'>\n";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='2' cellpadding='2'>";
echo "<tr><td></td></tr></table>\n";
}
?>
Saitas is kurio imta info: http://www.longtailvideo.com/pla...e-rotator/
Kas padės vietoj headerio uzdeti sita gaus +10 ;) Remember kids, the more posts you have the bigger your penis is!Redagavo
namo 2009 Vas. 15 14:02:28
sniuff
Narys
Antras po Dievo
Pranešimai: 4491
Įstojęs: 2007 Geg. 14 16:05:52
echo '<embed
src="imagerotator.swf"
width="470"
height="160"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=imagerotator.xml&transition=blocks"
/>';
http://androider.info/
namo
VIP narys
Kapitonas
Pranešimai: 564
Įstojęs: 2008 Bir. 10 13:06:43
Idejau viska kaip parodei, rodo normaliai tik balta fona visada , Sniuff gal gali per skype padet? skype id: radeon_as Remember kids, the more posts you have the bigger your penis is!Redagavo
namo 2009 Vas. 15 15:02:12
sniuff
Narys
Antras po Dievo
Pranešimai: 4491
Įstojęs: 2007 Geg. 14 16:05:52
Tai gal tu ne BASEDIR talpini swf faila, pakeisk jo location...http://androider.info/
namo
VIP narys
Kapitonas
Pranešimai: 564
Įstojęs: 2008 Bir. 10 13:06:43
Susitvarkaiu tik dabar visa laika rodo kad krauna, niekad neuzkrauna.... kaip sutvarkyt? Remember kids, the more posts you have the bigger your penis is!
sniuff
Narys
Antras po Dievo
Pranešimai: 4491
Įstojęs: 2007 Geg. 14 16:05:52
flashvars sutvarkyk...http://androider.info/
namo
VIP narys
Kapitonas
Pranešimai: 564
Įstojęs: 2008 Bir. 10 13:06:43
Sniuff parašė:
flashvars sutvarkyk...
Biski aiskiau jei gali... Remember kids, the more posts you have the bigger your penis is!
sniuff
Narys
Antras po Dievo
Pranešimai: 4491
Įstojęs: 2007 Geg. 14 16:05:52
flashvars="file=imagerotator.xml&transition=blocks"http://androider.info/
namo
VIP narys
Kapitonas
Pranešimai: 564
Įstojęs: 2008 Bir. 10 13:06:43
Dar tokia problema...
Pradzioje tema buvo tokia(su paprastu headeriu), aplink headeri ta balta juosta:
Dabar kai padariau su image rotator atrodo taip:
Kaip uzdeti ta balta juostele aplink headeri?
Mano theme.php:
<?php
////
// Made by Qrmiz 2008
////
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// temos nustatymai
$body_text = "#000000";
$body_bg = "#FFFFFF";
$theme_width = "631";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
/// HEADERIS START
echo "<table width='$theme_width' border='0' cellspacing='0' cellpadding='0' align='center'><tr>";
echo "<td class='top'><img src='".THEME."images/ttranc.gif' alt=''></td></tr>";
echo '<center><embed
src="imagerotator.swf"
width="612"
height="223"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=madrid.xml&transition=blocks"
/></center>';
echo "</td></tr></table>";
/// HEADERIS END --- START MAIN TABLE
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' border='0' class='main-table'>";
echo "<tr><td>";
/// START SUBLINKS
echo "<br><table width='614' border='0' cellpadding='0' cellspacing='0' class='sublinks' align='center'><tr><td height='41' align='center'><a href='".BASEDIR."news.php' class='sublinks'>Naujienos</a></td><td><img src='".THEME."images/dots.gif' alt=''></td>\n";
echo "<td align='center'><a href='".BASEDIR."viewpage.php?page_id=1' class='sublinks'>Apie </a></td><td><img src='".THEME."images/dots.gif' alt=''></td><td align='center'><a href='".BASEDIR."viewpage.php?page_id=3' class='sublinks'>Paslaugos</a></td><td><img src='".THEME."images/dots.gif' alt=''></td><td align='center'><a href='".BASEDIR."viewpage.php?page_id=2' class='sublinks'>Kontaktai</a></td><td><img src='".THEME."images/dots.gif' alt=''></td><td align='center'><a href='".BASEDIR."search.php' class='sublinks'>Paieška</a></td></tr></table>";
/// END SUBLINKS
echo "<table width='100%' cellspacing='5' cellpadding='0' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table></td></tr></table></td></tr></table>";
echo "<table width='$theme_width' border='0' cellspacing='0' cellpadding='0' align='center'><tr>";
echo "<td class='bot'><img src='".THEME."images/ttranc.gif' alt=''></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale, $news_info;
echo "<table width='100%' cellpadding='0' cellspacing='0' align='center'><tr>";
echo "<td width='40' align='center'><img src='".THEME."images/nicon.gif' border='0' alt=''></td><td width='100%' class='nsub'>".showdate("%Y %m %d", $news_info['news_date'])." $subject</td>";
echo "</tr><tr>";
echo "<td class='news-body' colspan='2'>$news";
echo " ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>Plačiau...\n" : "")."</td>";
echo "</tr></table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0' align='center'>";
echo "<tr><td><img src='".THEME."images/bullet.gif' border='0' alt=''></td><td width='100%' class='panel-main2'>$title</td>";
echo "</tr><tr>";
echo "<td class='table-body' colspan='2'>\n";
}
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='sidetbl'><tr>";
echo "<td width='100%' class='panel-main'>$title</td></tr><tr>";
echo "<td class='side-body'>\n";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='2' cellpadding='2'>";
echo "<tr><td></td></tr></table>\n";
}
?>
Remember kids, the more posts you have the bigger your penis is!
Peršokti į forumą:
Žaliems
Nebeegzistuojančios svetainės
Bendri PHP-F klausimai
WordPress
Kiti PHP, HTML, MySQL klausimai
Expert PHP, MySQL klausimai
Kitos TVS
C#, Python, Java, JS, C++ klausimai
Naujų modų pristatymai
Mods, Panels & Infusions
Themes
Jūsų saitai
Dalinuosi, dovanoju!
Klausimai apie domenus ir hostingus
VPS/DS serverių konfigūravimas ir valdymas
Viskas apie skaitliukus, top'us ir lankomumą
Dizaino konkursai
Parduodu - perku dizainą, banerį
Parduodu - perku - keičiuosi reklama
Parduodu - perku domeną, tinklapį
Siūlau - ieškau hostingo/VPS serverio
Parduodu - perku skriptą, modifikaciją, tvs
Socialiniai tinklai - Facebook ir kiti
Legalus verslas, teisiniai klausimai
Visa kita kas susiję su darbu ir pinigais
LTStartups.com - Lietuvos startuolių bendruomenė
Off-Topic diskusijos
IT naujienos
Portalo informacija
Narių pasiūlymai
Geležis ir programinė įranga
Grafika
Out Of Place
Su e-verslu nesusijęs darbas ir prekyba
Dalinuosi, dovanoju!