Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Del Brotator V2
Parašė Zidezzon· 2008 Lie. 15 13:07:22
#1
Reik i theme.php ideti toki koda kad rodytu reklama (brotator).
kodas
include(INFUSIONS."brotator/brotator.php");
Bet as nzn kur ji reik det :( Gal kas gali ideti taip, kad rodytu taip kaip extreme-fusion.lt ?
Stai theme .php failas:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#555555";
$body_bg = "#006600";
$theme_width = "100%";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='sub-header'>".showsublinks("·","white")."</td>
<td align='right' class='sub-header'>".showsubdate()."</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\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 align='center' class='footer'>".stripslashes($settings['footer'])."<br>\n";
if (!$license) { echo showcopyright()."<br><br>\n"; } echo showcounter()."<br><br>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
Redagavo Zidezzon· 2008 Lie. 15 13:07:25
Parašė Giedrunskis· 2008 Lie. 15 13:07:42
#2
Ten ne i theme.php ideta, o i panele, taip kad...c|
Parašė Zidezzon· 2008 Lie. 15 13:07:00
#3
O tasi kaip man padaryti tam brotator panele??? :(
Parašė bad_user· 2008 Lie. 15 13:07:58
#4
Taigi po galais. Čia taip paprasta :| Kur nori ten rašai tą duota koda. Tau ten ir rodys. :|
Parašė Zidezzon· 2008 Lie. 15 13:07:53
#5
Nerodo :(
imeciau sita koda i paneles:
include(INFUSIONS."brotator/brotator.php");
Ir nk nerodo :|
Parašė Žmogus· 2008 Lie. 15 13:07:45
#6
Kišk į maincore (gal veiks), o to brotator turinį kišk į panelę
Parašė Zidezzon· 2008 Lie. 15 14:07:26
#7
Va to brotator readme:
PB Banners rotator
PHP-Fusion v6.00.xxx
author: Michal Kaczor (PrimalBeast) 2005
web:
www.kaczy.be
email:
michaldck@gmail.com
----------------------------
Description
-----------
Very simple banners rotator
AUTOMATIC INSTALLATION
---------------------------------------------------------------
0. ! SORRY FOR MY ENGLISH ! :)
1. Copy directory BROTATOR from archive into INFUSION folder.
Copy directory ADMINISTRATION from archiwe into
PHP-Fusion installation folder.
2. Install new infusion in admin panel.
3. Paste this
PHP code: include(INFUSIONS."brotator/brotator.php"); into theme.php from Your
PHP-Fusion theme.
4. Add your banners - INFUSIONS/PB BANNERS ROTATOR.
MANUAL INSTALLATION
---------------------------------------------------------------
Notes
---------------------------------------------------------------
"To-Do" List
---------------------------------------------------------------
- Flash banners
- ... (mail me with Your suggestions)
Change log
---------------------------------------------------------------
v 0.9.4
+ Banners upload
v 0.9.3
+ fixed version 0.9.2
v 0.9.2
+ Advertisers - add and remove
+ stats panel for advertisers (link into main menu)
v 0.9 - First Beta
+ better expiration-by-date functionality
+ once again, more stats for every banner
+ new
MySQL table (now, there is 2 tables)
v 0.81 - Alpha version
+ buggy expiration-by-date functionality
+ more stats for every banner
v 0.46 - First release
- nothing to say :)
---------------------------------------------------------------
Parašė Žmogus· 2008 Lie. 15 14:07:38
#8
Nu tai kišk į theme į patį galą prieš ?>
ta include(INFUSIONS."brotator/brotator.
Parašė Zidezzon· 2008 Lie. 15 14:07:39
#9
Idejau, sukeliau atgal i ftp vistiek nerodo :(:(:( :@:@
IR KOKS turi buti paneles kodas?
Su openside (name); ir t.t....
Plzzz padekit greitai :(:(
Redagavo Zidezzon· 2008 Lie. 15 14:07:28
Parašė Žmogus· 2008 Lie. 15 14:07:36
#10
Ne, ten turi pasirinkti
Panelės failo pavadinimas: