Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Prisijungimas Banneryje

Parašė Mkz· 2008 Rugs. 2 21:09:25
#1

Sveiki. Norėčiau jūsų visų paprašyti man padėti. Kuriu svetainę ir noriu padaryti prisijungimą ir reklama ant bannerio. Bandžiau naudotis Paieška, radau kelis kodus, bet man niekaip nesisekė juos įdėti. Taigi gal atsiras žmonių kurie galės man padėti tai padaryti. Nes pats nemoku įdėti... :|

Manau prireiks Theme.php:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// Theme settings
$body_text = "#ffffff";
$body_bg = "#bbbbbb";
$theme_width = "100%";
$theme_width_l = "180";
$theme_width_r = "180";

// Right Panels off in Forum Mode - Custom coded
$theme_panels_exclude = array("/forum/");

function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink;

echo "<div style='position: absolute; top: 1px; left: 80px;'>
</div><table class='wrapper' align='center' cellpadding='0' cellspacing='0'><tr>
<td class='border_left' rowspan='6'></td>
<td colspan='2'></td>
<td class='border_right' rowspan='6'></td></tr>
<tr><td colspan='2' class='header' align='center' style='vertical-align:top;'>
</td></tr>
<tr><td colspan='2' id='navigation' class='sub_nav'>


<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>
<td style='padding-left:8px; padding-top: 2px; text-align: center;' width='70%'><img style='vertical-align: middle;' alt='' src='".THEME."images/divider.gif'>".showsublinks("<img style='vertical-align: middle;' alt='' src='".THEME."images/divider.gif'>","navigation")."<img style='vertical-align: middle;' alt='' src='".THEME."images/divider.gif'></td>
</tr>
</table>
</td>
</tr>
<tr><td class='filler_nav' colspan='3'></td>
</tr>
<tr><td valign='top'>
<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'><tr>";
}

function render_footer($license=false) {

global $theme_width,$settings;

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>";
include_once "foot.php";
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}

function render_news($subject, $news, $info) {
$subject = strip_tags($subject);
   
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='panel-main'>$subject</td>
</tr>
<tr>
<td class='side-body'>$news</td>
</tr>
<tr>
<td align='center' class='news_block'>";
echo openform("N",$info['news_id']).newsposter($info," &middot;").newsopts($info," &middot;").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='panel-main'>$subject</td>
</tr>
<tr>
<td class='side-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
<tr>
<td align='center' class='news_block'>";
echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info," &middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}

function opentable($title) {

echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='center-main'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}

function closetable() {

echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}

function openside($title) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='panel-main'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}

function closeside() {

echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}

function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);

echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td width='90%' class='panel-main'>$title</td>
<td width='10%' class='panel-main'>".panelbutton($state,$boxname)."</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}

function closesidex() {

echo "</div></td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}

function tablebreak() {
   echo "<table width='100%' cellspacing='0' cellpadding='0'><tr>
<td height='8'>
</td>
</tr>
</table>\n";
}
?>




Redagavo Mkz· 2008 Spa. 28 23:10:16