Parašė JaWa· 2011 Geg. 25 11:05:40
#1
Sveiki. bandžiau idiegti į puslapį slideshow, kad headeris keistusi. Kaip nebandžiau man vis nesigauna, tai headerį rodė už tinklapio ribu, arba prapuldavo panelės ir news likdavo tik headeris ir nevyko slideshow. Aš manau kad tai dėl tu <div> ... Gal kas suprantate daugiau už mane kaip galima butu įdėti slideshow i paryškintą vietą. Prisegiau ir visa skriptą.
theme.php
<?php
/*------------------------------------------------------------------
Atmosphere Theme
by Joe Allen (http://www.JoeAllenPro.com)
You Can Use And Share the theme as much as you want
but please don't remove copyright of theme
-------------------------------------------------------------------*/
$enable_colour_switcher = true;
if (!defined("IN_FUSION")) { die("Access Denied"); }
require_once INCLUDES."theme_functions_include.php";
require_once THEMES."templates/switcher.php";
define("THEME_WIDTH", "920");
define("THEME_BULLET", "·");
$colour_switcher = new Switcher("select", "colour", "gif", "green", "switcherbutton");
if(!$enable_colour_switcher){
$colour_switcher->disable();
}
//v7 sublinks function is a bit more for this, so taken from v6 and tweaked
function thesublinks($sep="·",$class="") {
$i = 0; $res = "";
$sres = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' AND ".groupaccess('link_visibility')." AND link_url!='---' ORDER BY link_order ASC");
if (dbrows($sres)) {
while($sdata = dbarray($sres)) {
if ($i != 0) { $res .= " ".$sep."\n"; } else { $res .= "\n"; }
$link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
$link_class = $class ? " class='$class'" : "";
if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
$res .= "<a href='".$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
} else {
$res .= "<a href='".BASEDIR.$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
}
$i++;
}
}
if ($i != 0) { return $res; } else { return " "; }
}
function get_head_tags(){
global $colour_switcher;
echo $colour_switcher->makeHeadTag();
}
function render_page($license=false) {
global $aidlink, $locale, $settings, $colour_switcher, $fontsize_switcher, $main_style;
echo "<div id='space'><table>";
//sensation-white logo
echo "<center><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td>";
echo "<table cellpadding='0' cellspacing='0' align='center'><tr>
<td>
<br><img src='".THEME."images/logo.png' align='center' width='180' height='50' alt='".$settings['sitename']."'/></td></tr>";
echo "</table></table></center><br>";
//sublinks css
echo "<center><table width='920' border='0' cellspacing='0' cellpadding='0'><tr>
<td><a href='".BASEDIR."index.php'><img src='".THEME."images/navigacija/1.gif' alt='' border='0' onmouseover='javascript:this.src=\"".THEME."images/navigacija/1-1.gif\"' onmouseout='javascript:this.src=\"".THEME."images/navigacija/1.gif\"' /></a></td>
<td><img src='".THEME."images/navigacija/2.gif' border='0'></td>
<td><img src='".THEME."images/navigacija/3.gif' border='0'></td>
<td><a href='".BASEDIR."index.php'><img src='".THEME."images/navigacija/4.gif' border='0' onmouseover='javascript:this.src=\"".THEME."images/navigacija/4-4.gif\"' onmouseout='javascript:this.src=\"".THEME."images/navigacija/4.gif\"' /></a></td>
<td><a href='".BASEDIR."photogallery.php'><img src='".THEME."images/navigacija/5.gif' border='0' onmouseover='javascript:this.src=\"".THEME."images/navigacija/5-5.gif\"' onmouseout='javascript:this.src=\"".THEME."images/navigacija/5.gif\"' /></a></td>
<td><a href='".BASEDIR."index.php'><img src='".THEME."images/navigacija/6.gif' border='0' onmouseover='javascript:this.src=\"".THEME."images/navigacija/6-6.gif\"' onmouseout='javascript:this.src=\"".THEME."images/navigacija/6.gif\"' /></a></td>
<td><a href='".BASEDIR."downloads.php'><img src='".THEME."images/navigacija/7.gif' border='0' onmouseover='javascript:this.src=\"".THEME."images/navigacija/7-7.gif\"' onmouseout='javascript:this.src=\"".THEME."images/navigacija/7.gif\"' /></a></td>
<td><a href='".BASEDIR."index.php'><img src='".THEME."images/navigacija/8.gif' border='0' onmouseover='javascript:this.src=\"".THEME."images/navigacija/8-8.gif\"' onmouseout='javascript:this.src=\"".THEME."images/navigacija/8.gif\"' /></a></td>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<td><a href='".ADMIN."index.php".$aidlink."' class='side'><img src='".THEME."images/navigacija/9.gif' border='0'></a></td>";
} else {
echo "<td><img src='".THEME."images/navigacija/9.gif' border='0'></td>";
}
if (iMEMBER) {
echo "<td><img src='".THEME."images/navigacija/10-0.gif' border='0'></td>";
} else {
echo "<td><a href='".BASEDIR."login.php'><img src='".THEME."images/navigacija/10.gif' border='0' onmouseover='javascript:this.src=\"".THEME."images/navigacija/10-10.gif\"' onmouseout='javascript:this.src=\"".THEME."images/navigacija/10.gif\"' /></a></td>";
}
if (iMEMBER) {
echo "<td><a href='".BASEDIR."index.php?logout=yes' class='side'><img src='".THEME."images/navigacija/11-0.gif' border='0' onmouseover='javascript:this.src=\"".THEME."images/navigacija/11-0-11.gif\"' onmouseout='javascript:this.src=\"".THEME."images/navigacija/11-0.gif\"' /></a></td>";
} else {
echo "<td><a href='".BASEDIR."register.php'><img src='".THEME."images/navigacija/11.gif' border='0' onmouseover='javascript:this.src=\"".THEME."images/navigacija/11-11.gif\"' onmouseout='javascript:this.src=\"".THEME."images/navigacija/11.gif\"' /></a></td>";
}
echo "</tr>
</table><br></center>";
echo "
<table align='center' width='920' cellspacing='0' cellpadding='0'>
<tr>
<td width='10' height='10'><img src='".THEME."images/with_l_z.png' width='10' height='10'></td>
<td class='with_zgoraj'></td>
<td width='10' height='10'><img src='".THEME."images/with_d_z.png' width='10' height='10'></td>
</tr>
<tr>
<td class='with_levo'></td>
<td class='white'>
<table class='forumline' align='center' width='920' cellspacing='0' cellpadding='0'>
<tr>
<td>
";
echo "<table width='920' border='0' cellpadding='0' cellspacing='0'>";
// headeris
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%' align='center' class='earth'><tr>
<td align='right'>".$colour_switcher->makeForm("flright")."</td>
<table cellpadding='0' cellspacing='0' width='920' align='center'>
</tr></table>";
//headerio pabaiga
//Content
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
echo "<table width='920' height='25' cellpadding='0' cellspacing='0' border='0'>
<td width='450' height='120'>";
echo "<br><br><br><br><br>
<a href='http://www.hey.lt/details.php?id=sensationwhite' target='_blank'>
<img src='http://www.hey.lt/count.php?id=sensationwhite' width='88' height='31' border='0' alt='Hey.lt'></a>
<a href='http://www.top30.lt/jawa-statistika/' target='_blank'>
<img src='http://www.top30.lt/jawa.png' width='88' height='31' border='0' alt='Hey.lt'></a><br>
<a href='http://poptop.lt/' target='_blank'>
<img src='http://poptop.lt/button.php?u=jawa' width='88' height='31' border='0' alt='Hey.lt'></a>
<a href='http://jawa.visits.lt/' target='_blank'>
<img src='http://www.visits.lt/count.php?u=jawa' width='88' height='31' border='0' alt='Hey.lt'></a> ";
// echo "<td align='right' background='".THEME."img/kietekas6.png' width='450' height='120'>";
echo "<td align='right'>
kazkas
</td></table>";
echo"
</td>
</tr>
</table>";
echo "</td>
<td class='with_desno'></td>
</tr>
<tr>
<td width='10' height='10'><img src='".THEME."images/with_l_s.png' width='10' height='10'></td>
<td class='with_spodaj'></td>
<td width='10' height='10'><img src='".THEME."images/with_d_s.png' width='10' height='10'></td>
</tr>
</table>";
// <td class='viena_spodaj' align='right'>".showcounter()."</td>
// ".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panele_kaire'><img src='".THEME."images/blank.gif' width='12' height='12' alt='' style='display:block'></td>";
echo "<td width='100%' class='panele'></td>";
echo "<td class='panele_desine'><img src='".THEME."images/blank.gif' width='12' height='12' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='sonas_kaire'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
echo "<td class='puslapis'>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td width='400'>$subject<br>$news<br><br>".newsopts($info,"·")."</td><td align='right'>".$info['cat_image']."</td></tr>";
// ".$image."
//<a href='".BASEDIR."news.php?readmore=".$info['news_id']."'><img src='".THEME."images/daugiau.gif' width='65' height='13' alt='' style='display:block'></a>
echo "</table>";
echo "</td>";
echo "<td class='sonas_desine'><img src='".THEME."images/blank.gif' width='12' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='kampas_kaire'><img src='".THEME."images/blank.gif' width='12' height='12' alt='' style='display:block'></td>";
echo "<td class='panele_apacia'><img src='".THEME."images/blank.gif' width='1' height='12' alt='' style='display:block'></td>";
echo "<td class='kampas_desine'><img src='".THEME."images/blank.gif' width='12' height='12' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
function render_article($subject, $article, $info) {
echo "<div class='border tablebreak'>";
echo "<div class='capmain'>$subject</div>\n";
echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "<div class='news-footer'>\n";
echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</div>\n";
echo "</div>";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border tablebreak'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
//////////////// Dizaino paneles 2 ////////////////
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panele_kaire'><img src='".THEME."images/blank.gif' width='12' height='12' alt='' style='display:block'></td>";
echo "<td width='100%' class='panele'></td>";
echo "<td class='panele_desine'><img src='".THEME."images/blank.gif' width='12' height='12' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='sonas_kaire'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
echo "<td class='puslapis'>$title<br>\n";
}
function closeside() {
echo "</td>";
echo "<td class='sonas_desine'><img src='".THEME."images/blank.gif' width='12' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='kampas_kaire'><img src='".THEME."images/blank.gif' width='12' height='12' alt='' style='display:block'></td>";
echo "<td class='panele_apacia'><img src='".THEME."images/blank.gif' width='1' height='12' alt='' style='display:block'></td>";
echo "<td class='kampas_desine'><img src='".THEME."images/blank.gif' width='12' height='12' alt='' style='display:block'></td>";
echo "</tr></table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td></td></tr></table>\n";
}
//////////////// Dizaino paneles 2 ////////////////
?>
skriptas:
<link rel="stylesheet" href="../nivo-slider.css" type="text/css" media="screen" />
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
<a href="http://dev7studios.com" id="dev7link" title="Go to dev7studios">dev7studios</a>
<div id="slider-wrapper">
<div id="slider" class="nivoSlider">
<img src="images/toystory.jpg" alt="" />
<a href="http://dev7studios.com"><img src="images/up.jpg" alt="" title="This is an example of a caption" /></a>
<img src="images/walle.jpg" alt="" />
<img src="images/nemo.jpg" alt="" title="#htmlcaption" />
</div>
<div id="htmlcaption" class="nivo-html-caption">
<strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>.
</div>
</div>
</div>
<script type="text/javascript" src="scripts/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="../jquery.nivo.slider.pack.js"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
Parašė JaWa· 2011 Geg. 25 17:05:39
#5
no problem, jeigu veiks, paaukosiu projektui tavo pora lituku ...
Parašė JaWa· 2011 Bir. 3 16:06:36
#7
Štai jeigu kam reikia veikiantis sladeshow headeris. koda kuris yra slide.php kelti i jums reikiama vieta themes.php faile . o slide aplanka deti i root/themes/-jusu tema-/