Parašė sharampdeep· 2011 Kov. 28 21:03:00
#1
Sveiki as noriu paklausti taigi susikuriau svetaine isidejau theme cs ir vietoj reklamos reikia pakeisti i paslaugos bet as ta koda nujimu bet kodas lieka parasau vietoj reklamos pavadinima paslaugos nebe pasispaudzia uzrasas jaigu negalite isivaizduoti stai foto
bet as theme.php parasau reklama i paslaugos vistiek buna reklama bet tik uzrasas nesispaudo o dabar parodysiu visa savo theme.php
Kur pazymeti ryskiau ten bandziau pakeisti uzrasa
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "100%");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style, $theme_width, $userdata, $aidlink, $settings, $db_prefix;
//Header
echo "<table cellpadding='0' cellspacing='0' width='863' align='center'>
<tr>
<td class='full-header'>
<div id='plotas'>
<div id='serveriai'><a href='".BASEDIR."viewpage.php?page_id=1'><img src='".THEME."images/blank.gif' width='40' height='7' border='0' alt=''></a></div>
<div id='reklama'><a href='".BASEDIR."reklama.php'><img src='".THEME."images/blank.gif' width='39' height='7' border='0' alt=''></a></div>
<div id='kontaktai'><a href='".BASEDIR."contact.php'><img src='".THEME."images/blank.gif' width='42' height='7' border='0' alt=''></a></div>
<div id='nariams'>\n"; include THEME."user_info_panel.php"; echo "</div>
<div id='pamokos'><a href='".BASEDIR."articles.php'><img src='".THEME."images/blank.gif' width='41' height='7' border='0' alt=''></a></div>
<div id='naujausia'>\n"; include THEME."latest_downloads_panel.php"; echo "</div>
<div id='paieska'><form name='search' action='search.php?stype=n' method='post'><input type='text' name='stext' class='searchbox' value='Paieрkos tekstas...' onfocus=\"if(this.value=='Paieðkos tekstas...'){this.value='';}\" onblur=\"if(this.value==''){this.value='Paieðkos tekstas...';}\"> <input type='submit' value='Ieðkoti' name='option' class='button-ok'></form></div>
<div id='pagrindinis'><a href='".BASEDIR."news.php'><img src='".THEME."images/blank.gif' width='54' height='10' border='0' alt=''></a></div>
<div id='forumas'><a href='".BASEDIR."forum/index.php'><img src='".THEME."images/blank.gif' width='39' height='7' border='0' alt=''></a></div>
<div id='siuntiniai'><a href='".BASEDIR."downloads.php'><img src='".THEME."images/blank.gif' width='44' height='7' border='0' alt=''></a><div>
</div>
</td>
</tr>
</div>
</td>
</tr>
</div>
</td>
</tr>
</div>
</td>
</tr>
</table>\n";
//Content
echo "<table cellpadding='0' cellspacing='0' width='863' 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 "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='863' align='center' class='footer'>\n<tr>\n";
echo "<td align='center'><span style='color: #ffffff;'>Dizainas:</span> <a href='http://estel.huh.lt'><span style='color: #ffffff;'>estel</span></a><br>
<span style='color: #ffffff;'>Programavimas:</span> <a href='http://cs.asilas.lt'><span style='color: #ffffff;'>Dyaz</span></a> | V7 perkodavo:</span> <a href='http://42studio.eu'><span style='color: #ffffff;'>Jaunelis</span></a><br />\n";
echo "</td>\n</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table align='center' cellpadding='0' cellspacing='0' width='435'>\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," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table align='center' cellpadding='0' cellspacing='0' width='435'>\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," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table align='center' cellpadding='0' cellspacing='0' width='435'>\n<tr>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
<tr><td><img src='".THEME."images/BG_capmain_bot.png' alt='panele'></td></tr>
</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='205' class='border'>\n<tr>\n";
echo "<td class='scapmain'>".$title."</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() {
echo "</td>
</tr>
<tr><td><img src='".THEME."images/BG_scapmain_bot.png' alt='panele'></td></tr>
</table>\n";
tablebreak();
}
?>
Is anksto aciu
Justas. - Kada gi pagaliau suvoksit, kad paveikslėliai dedami į frame tagus?!