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," ·").newsopts($info," ·").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," ·").articleopts($info," ·").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
Parašė Saul3r2· 2008 Rugs. 2 21:09:14
#2
Iš pardžiu smile išjunk;)
Parašė Mkz· 2008 Rugs. 3 21:09:47
#3
Atsiprašau labai :| Nes norėjau peržiūrėti ir ne tą paspaudžiau nespėjau sutvarkyti, net temos pavadinimo parašyti. Dabar jau viskas tvarkoje laukiu Jūsų pagalbos. :)
Parašė bruzgis· 2008 Rugs. 3 21:09:42
#4
is
pardziu :D
fusione, parodyk pirma tema
Parašė Mkz· 2008 Spa. 28 23:10:48
#5
Gal galite į mano Theme.php failą į dėti štai šį kodą ? Nes aš kaip bandau įdėti man iškraipo visą svetainę, visaip bandžiau dėti bet nieko nesigauna :(
Kodas:
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink;
echo "<table align=center class='mainsite-border' align='left' width='910' cellspacing='0' cellpadding='0'>
<tr><td class='outer-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr><td class='inner-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr align=left><td>";
include_once "header.php";
echo "</td></tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
Parašė Fucikijoooou· 2008 Spa. 30 11:10:55
#6
Stai redagavau jei dar bus neaisku parasyk padesim
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 "<table align=center class='mainsite-border' align='left' width='910' cellspacing='0' cellpadding='0'>
<tr><td class='outer-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr><td class='inner-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr align=left><td>";
include_once "header.php";
echo "</td></tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
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," ·").newsopts($info," ·").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," ·").articleopts($info," ·").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";
}
?>
HEADER.PHP
<?php
global $theme_width,$settings,$aidlink,$locale,$userdata;
echo "<table width='$theme_width' border='0' align='center' cellpadding='0' cellspacing='0' background='".THEME."images/header_01.jpg' height='299' style='background-repeat: no-repeat;'>
<tr>
<td width='235' style='padding-right: 0px; padding-left: 700px; padding-bottom: 50px; padding-top:10px;' valign='middle'>";
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='235' border='0' cellspacing='2' cellpadding='2'>
<tr>
<td>\n";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' height='100' style='border:1px solid #999999'></center>\n";
} else {
echo "<center><img src='".THEME."images/noavatar.gif' width='100' height='100' border='0'></center>\n";
}
echo "</td>
<td valign='top'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti profilá</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Þinutës [naujø: <b><span style='color:#990000'>".sprintf($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br><br>
<b><span class='ip'>IP: </span></b>";
$userip = $_SERVER['REMOTE_ADDR'];
$host = gethostbyaddr($userip);
echo "<span class='ip'>".$userip."</span><br /></td></tr></table>\n";
} else {
echo "<table width='170' border='0' cellspacing='0' cellpadding='0' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<td align='right' class='ip'>Vardas: </td>
<td> <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right' class='ip'>".$locale['062'].": </td>
<td> <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right'><input type='checkbox' name='remember_me' value='y'></td>
<td> <input type='submit' name='login' value='Prisijungti' class='button'></td>
</tr>
</form>\n";
if ($settings['enable_registration']) {
echo "<a href=".BASEDIR."register.php>Registracija</a> / <a href=".BASEDIR."lostpassword.php>Slaptaþodis</a>\n";
}
echo"</table>\n";
}
echo "</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' class='sub-header' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>\n<tr>";
echo "<td>\n";
echo ($i == 0 ? " " : "")."</td>";
echo "</td></tr></table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>
<tr>
<td width='5'></td>
<td width='69' valign='top'><a href='".BASEDIR."index.php'><img src='".THEME."images/namai.png' border=0' alt='Pradinis'></a></td>
<td width='69' valign='top'><a href='".FORUM."index.php'><img src='".THEME."images/forumas.png' border=0' alt='Diskusijos'></td>
<td width='564' class='dark'><marquee>".parseubb(parsesmileys("<span style='color: green'><b>Laukiant Pavasario su LightTen</b></span>"))."</marquee></td>
<td width='69' valign='top'><a href='".BASEDIR."photogallery.php'><img src='".THEME."images/galerija.png' border=0' alt='Galerija'></td>
<td width='69' valign='top'><a href='".BASEDIR."downloads.php'><img src='".THEME."images/siuntimai.png' border=0' alt='Siuntiniai'></td>
<td width='69' valign='top'><a href='".BASEDIR."viewpage.php?page_id=19'><img src='".THEME."images/reklama.png' border=0' alt='Reklama'></td>
<td width='5'></td>
</tr>
</table>\n";
echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
?>
Tada i themes/(themos pavadinimas)/ Folderi imesk header.php failiuka :)
Parašė Mkz· 2008 Lap. 1 01:11:40
#7
Efficy - Labai dėkoju tau. Tik dabar norėčiau paprašyti gal galėtumėt į
HEADER.PHP prirašyti kodą, jog rodytų Vartotojo vardą ? Štai kaip šioje nuotraukoje:
Parašė WantedBoy· 2008 Lap. 1 01:11:21
#8
iterpk user_name ;)
Parašė Mkz· 2008 Lap. 2 00:11:36
#9
Šiaip ne taip jau įsidėjau B) .Na tai dėkoju visiems kas padėjote :) Jau viską susitvarkiau ir ką reikėjo pasidariau su Jūsų pagalba. Dėkingas Jums.;)