Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Nerodo pilnos naujienos.

Parašė Žilvinas41· 2011 Rugs. 5 19:09:01
#1

Sveiki visi ;) taigi susidūriau su tokia problema,turiu tokį dizainiuką kuriame nerodo pilnos naujienos, nors viskas tikrai būna surašyta, pakeičiu dazainą viskas veikia viską rodo, bet man tas dizainas patinka ir norėčiau sužinoti kaip sutvarkyti kad ir jame viską rodytų ;) Laukiu pagalbos :) kas padės duosiu +11 ;)

Redagavo Žilvinas41· 2011 Rugs. 5 19:09:19

Parašė timas126· 2011 Rugs. 5 20:09:35
#2

themes.php imesk to dizaino.

Parašė Žilvinas41· 2011 Rugs. 6 12:09:09
#3


<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
 
define("THEME_WIDTH", "1034");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
 
require_once INCLUDES."theme_functions_include.php";
 
require_once THEME."kodas/script.php";
 
function render_page($license=false) {
 
	global $settings, $main_style, $db_prefix ,$data, $userdata, $aidlink, $user_data, $locale;
 
	//Header
	echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
	echo "<td>\n";
 
echo"<div id='header'>";
 
	echo"<div id='logo'><a href='".BASEDIR."index.php'><img src='".THEME."images/logo.png' /></a></div>";
 
	include THEME."kodas/user.php";
 
	include THEME."kodas/paieska.php";
 
	echo"<div id='nav' class='sub-header'>".showsublinks("", "white")."</div>";
 
	include THEME."kodas/slide.php";
 
	include THEME."kodas/kat.php";
 
	//facebook grupe
		echo"<div id='fb'>";?>
		<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2Fgerifilmainet%2F146627248727577&amp;width=329&amp;colorscheme=light&amp;show_faces=true&amp;stream=false&amp;header=false&amp;height=272" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:329px; height:272px;" allowTransparency="true"></iframe>
 
		<?php echo"</div>";
 
echo"</div>";
 
	echo "</td>\n</tr>\n</table>\n";
 
 
	//Content
	echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center' class='$main_style'>\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";
 
	//Footer
	echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
	echo "<td align='center' class='footer'>";
	//Backlinkai
	echo "<a target='_blank' href='http://nusirasyk.net/'>Pratybu atsakymai, referatai ir rasiniai NEMOKAMAI!</a> | <a href='http://www.kietekas.com' title='SLRR ˛aidimo fanu bendruomene' target='_blank'>..: SLR:R Bendruomene LT :..</a> | <a href='http://tobako.lt' title='ToBaKo.LT - CS pro!' target='_blank'>ToBaKo.LT - CS pro</a> | <a href='http://www.scream.lt'>Internetine radijo stotis!</a>";
	echo "</td>";
	echo "</tr>\n</table>\n";
 
}
 
function render_news($subject, $news, $info) {
/*
	echo "<table cellpadding='0' cellspacing='0' width='100%'  class='borde'>\n<tr>\n";
	echo "<td class='capmain'><div class='text'>".$subject."</div></td>\n";
	echo "</tr>\n<tr>\n";
	echo "<td class='main-body'>".$news."</td>\n";
	echo "</tr>\n<tr>\n";
	echo "<td align='center' class='news-footer'>\n";
	//echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
	echo "</td>\n</tr>\n</table>\n";
*/
}
 
function render_article($subject, $article, $info) {
 
	echo "<table cellpadding='0' cellspacing='0' width='100%'  class='borde'>\n<tr>\n";
	echo "<td class='capmain'><div class='text'>".$subject."</div></td>\n";
	echo "</tr>\n<tr>\n";
	echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
	echo "</tr>\n<tr>\n";
	echo "<td align='center' class='news-footer'>\n";
	echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
	echo "</td>\n</tr>\n</table>\n";
 
}
 
function opentable($title) {
 
	echo "<table cellpadding='0' cellspacing='0' width='100%'  class='borde'>\n<tr>\n";
	echo "<td class='capmain'><div class='text'>".$title."</div></td>\n";
	echo "</tr>\n<tr>\n";
	echo "<td class='main-body'>\n";
 
}
 
function closetable() {
 
	echo "</td>\n</tr>\n</table>\n";
 
}
 
function openside($title, $collapse = false, $state = "on") {
 
	global $panel_collapse; $panel_collapse = $collapse;
 
	echo "<table cellpadding='0' cellspacing='0' width='100%' class='borde'>\n<tr>\n";
	echo "<td class='scapmain'><div class='text'>".$title."</div></td>\n";
	if ($collapse == true) {
		$boxname = str_replace(" ", "", $title);
		echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
	}
	echo "</tr>\n<tr>\n";
	echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";	
	if ($collapse == true) { echo panelstate($state, $boxname); }
 
}
 
function closeside($collapse = false) {
 
	global $panel_collapse;
 
	if ($panel_collapse == true) { echo "</div>\n"; }	
	echo "</td>\n</tr>\n</table>\n";
 
}
?>


Štai theme.php

Parašė timas126· 2011 Rugs. 6 13:09:37
#4

<?php

if (!defined("IN_FUSION")) { die("Access Denied"); }



define("THEME_WIDTH", "1034");

define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");



require_once INCLUDES."theme_functions_include.php";



require_once THEME."kodas/script.php";



function render_page($license=false) {



global $settings, $main_style, $db_prefix ,$data, $userdata, $aidlink, $user_data, $locale;



//Header

echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";

echo "<td>\n";



echo"<div id='header'>";



echo"<div id='logo'><a href='".BASEDIR."index.php'><img src='".THEME."images/logo.png' /></a></div>";



include THEME."kodas/user.php";



include THEME."kodas/paieska.php";



echo"<div id='nav' class='sub-header'>".showsublinks("", "white")."</div>";



include THEME."kodas/slide.php";



include THEME."kodas/kat.php";



//facebook grupe

echo"<div id='fb'>";?>

<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2Fgerifilmainet%2F146627248727577&amp;width=329&amp;colorscheme=light&amp;show_faces=true&amp;stream=false&amp;header=false&amp;height=272" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:329px; height:272px;" allowTransparency="true"></iframe>



<?php echo"</div>";



echo"</div>";



echo "</td>\n</tr>\n</table>\n";





//Content

echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center' class='$main_style'>\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";



//Footer

echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";

echo "<td align='center' class='footer'>";

//Backlinkai

echo "<a target='_blank' href='http://nusirasyk.net/'>Pratybu atsakymai, referatai ir rasiniai NEMOKAMAI!</a> | <a href='http://www.kietekas.com' title='SLRR ˛aidimo fanu bendruomene' target='_blank'>..: SLR:R Bendruomene LT :..</a> | <a href='http://tobako.lt' title='ToBaKo.LT - CS pro!' target='_blank'>ToBaKo.LT - CS pro</a> | <a href='http://www.scream.lt'>Internetine radijo stotis!</a>";

echo "</td>";

echo "</tr>\n</table>\n";



}



function render_news($subject, $news, $info) {



echo "<table cellpadding='0' cellspacing='0' width='100%' class='borde'>\n<tr>\n";

echo "<td class='capmain'>".$subject."</td>\n";

echo "</tr>\n<tr>\n";

echo "<td class='main-body'>".$news."</td>\n";

echo "</tr>\n<tr>\n";

echo "<td align='center' class='news-footer'>\n";

echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);

echo "</td>";

echo "</td>\n</tr>\n</table>\n";



}



function render_article($subject, $article, $info) {



echo "<table cellpadding='0' cellspacing='0' width='100%' class='borde'>\n<tr>\n";

echo "<td class='capmain'>".$subject."</td>\n";

echo "</tr>\n<tr>\n";

echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";

echo "</tr>\n<tr>\n";

echo "<td align='center' class='news-footer'>\n";

echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);

echo "</td>\n</tr>\n</table>\n";



}



function opentable($title) {



echo "<table cellpadding='0' cellspacing='0' width='100%' class='borde'>\n<tr>\n";

echo "<td class='capmain'><div class='text'>".$title."</div></td>\n";

echo "</tr>\n<tr>\n";

echo "<td class='main-body'>\n";



}



function closetable() {



echo "</td>\n</tr>\n</table>\n";



}



function openside($title, $collapse = false, $state = "on") {



global $panel_collapse; $panel_collapse = $collapse;



echo "<table cellpadding='0' cellspacing='0' width='100%' class='borde'>\n<tr>\n";

echo "<td class='scapmain'><div class='text'>".$title."</div></td>\n";

if ($collapse == true) {

$boxname = str_replace(" ", "", $title);

echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";

}

echo "</tr>\n<tr>\n";

echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";

if ($collapse == true) { echo panelstate($state, $boxname); }



}



function closeside($collapse = false) {



global $panel_collapse;



if ($panel_collapse == true) { echo "</div>\n"; }

echo "</td>\n</tr>\n</table>\n";



}

?>

bandyk;)

Parašė Žilvinas41· 2011 Rugs. 6 13:09:52
#5

Va veikia jau ;) +11 ;)