Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: 2 baneriai?

Parašė Lordcraft· 2007 Bal. 22 16:04:57
#1

kaip reikia pasidaryti 2 banerius virsuj? va kaip sitam puslapyje yra vienas beneris defau kur buna instaliavus fusion o kitas? kaip padaryti kita baneri?

Parašė DarK-SouL· 2007 Bal. 22 21:04:38
#2

siame puslapyje yra 1 banneris, tik sujungtas per PS...

Parašė Lordcraft· 2007 Bal. 23 06:04:22
#3

ziu rimtai, net nepastebejau kad cia vienas :D
o tai ar imanoma kaip nors padaryti 2 banerius, vienas typo kairej pulapio baneris, desinej reklaminis baneris?

Parašė ___· 2007 Bal. 23 09:04:44
#4

Paprastas HTML kodas reikiamoj vietoj, ten kur themes.php tiesiog iterpk paveiksliuku soiurce, ir align padaryk "left" ir "right"

Parašė DarK-SouL· 2007 Bal. 23 18:04:41
#5

elementariasias HTML ;)

Parašė Lordcraft· 2007 Bal. 23 21:04:39
#6

as zinau kad html koda rasyti bet kurioj tikslei vietoj nzn...

Parašė mrZilvi· 2007 Bal. 24 10:04:09
#7

theme.php (themes/tavothemepavadinimas/theme.php)

Bus ten kur function render_header($header_content)

Parašė mafioso· 2007 Bir. 20 21:06:41
#8

DarK-SouL parašė:
siame puslapyje yra 1 banneris, tik sujungtas per PS...


Kas ta PS...? Programa ar kas nes man irgi reiktų sujunkti kelis banerius.

Parašė MAnjack· 2007 Bir. 20 21:06:25
#9

PS=PhotoShop;)

Parašė Demonas· 2007 Bir. 20 21:06:17
#10

sujungti ir per paint galimac|

Parašė DarK-SouL· 2007 Bir. 20 21:06:06
#11

ir per worda net!

Parašė gandonas· 2007 Bir. 20 22:06:25
#12

neimanoma 2ju sujungt :(

Parašė Demonas· 2007 Bir. 20 23:06:05
#13

ira dar vienas budas, subheader.php redaguot, kaip banner_panel

Parašė MAnjack· 2007 Bir. 21 09:06:18
#14

TAi yra tų budų, bet sujungimas paprasčiausias;)

Parašė Žilvis· 2007 Bir. 21 09:06:55
#15

gandonas parašė:
neimanoma 2ju sujungt :(


Imanoma tik reikia moketi :)

Parašė Qrmiz· 2007 Bir. 21 13:06:24
#16

gandonas, nebuk c|
Atsidarai su PS norima paveiksliuką, spaudi ctrl+alt+c. paspaudi rodyklę <-, tada kur width spaudi pixels ir parašai kiek nori, kad pratemptų į šoną (kad tilptų antras paveiksliukas). Ʋiūrėk, kad varnelė nuo RELATIVE būtų nuimta.

Parašė Lordcraft· 2007 Bir. 22 00:06:31
#17

cia ne apie 2 paveiksliuku sujungima tema buvo sukurta o kaip patalpinti ads 468x60 sale puslapio adreso

Parašė zilvinass· 2007 Bir. 22 09:06:05
#18

Yra paprasciause reklamos panele pasieskok aš arba ce paieskoje:s

Parašė Qrmiz· 2007 Bir. 25 21:06:26
#19

Lordcraft parašė:
cia ne apie 2 paveiksliuku sujungima tema buvo sukurta o kaip patalpinti ads 468x60 sale puslapio adreso


va paprasčiausias kodas:

<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td>vieno paveiksliuko adresas</td>
<td>kito paveiksliuko adresas</td>
</tr>
</table>

Parašė Lordcraft· 2007 Bir. 25 21:06:09
#20

ir kur tas kodas rasos? i themes.php ar kur?

Parašė Qrmiz· 2007 Bir. 25 21:06:18
#21

jo, į theme.php, jei atkopijuotum man savo theme.php, tai parašyčiau kaip turi būt ;)

Parašė Lordcraft· 2007 Bir. 25 21:06:16
#22

<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System   |
|--------------------------------------------|
| author: Lordcraft                                  |
| web: http://mu-online.lt  |
| email: info@mu-online.lt                |
|--------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/
/************************/
/* Theme Settings      */
/************************/

$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "100%";
$theme_width_l = "180";
$theme_width_r = "180";

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

   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td class='header' width='100%'>";
   // Start banner code
   echo "<table width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td>$header_content</td>";
   echo "</tr></table></td></tr></table>\n";
   // End banner code
   echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>";
   echo "<td class='sub-header'>\n";

$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
   $i = 0;
   while($data = dbarray($result)) {
      if (checkgroup($data['link_visibility'])) {
         if ($data['link_url']!="---") {
            if ($i != 0) { echo " <img src='".THEME."images/killad.gif' alt=''> \n"; } else { echo "\n"; }
            $link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
            if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
               echo "<a href='".$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
            } else {
               echo "<a href='".BASEDIR.$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
            }
         }
         $i++;
      }
   }
}
   echo ($i == 0 ? " " : "")."</td>";
   echo "<td align='right' class='sub-header'>".ucwords(showdate($settings['subheaderdate'], time()))."";
   echo "</td></tr></table>\n";
   echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
}

function render_footer($license=false) {
global $theme_width,$locale,$settings;

   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
   echo "<td>".stripslashes($settings['footer'])."</td>";
   echo "</tr></table></td></tr></table><br>";
   echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0'>";
   echo "<tr><td width='4%' class='footer' align='left'><div align='center'>";
   echo "<a href='#top'><img src='".THEME."images/pageup.gif' alt='h1; Virlm6;' title='h1; Virlm6;'></a></div></td>";
   echo "<td width='20%' class='footer' align='left'>";
      if ($license == false) {
   echo "Varikliukas <a href='http://www.php-fusion.co.uk' target='_blank'>PHP-Fusion</a>";
   }
   echo "</td>";
   echo "<td width='40%' class='footer' align='center'>";
   echo "Copyright © MU-ONLINE.LT</a></td>";
   echo "<td width='26%' class='footer' align='right'>";
   echo "<span class='footerstat'>".$settings['counter']." </span>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
   echo "</td><td width='4%' class='footer' align='right'>";
   echo "<div align='center'><a href='#top'><img src='".THEME."images/pageup.gif' alt='Scroll Up' title='Scroll Up'></a></td></tr></table></td></tr></table></div>";
}

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

global $locale;

   echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
   echo "<td height='23' class='table-cellpic'>$subject</td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
   echo "<td height='24' align='right' class='news-footer'>";
   echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> Ā·\n" : "")."";
   if ($info['news_allow_comments'])
   echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> Ā· ";
   echo "".$info['news_reads'].$locale['044']." ";
   echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
   echo "</td></tr></table></td></tr></table>\n";
}

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

global $locale;

   echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
   echo "<td height='23' class='table-cellpic'>$subject</td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
   echo "<td height='24' align='right' class='news-footer'>";
   if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." Ā· ";
   echo "".$info['article_reads'].$locale['044']." ";
   echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
   echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='table-cellpic' align='left'>$title</td></tr>";
   echo "<tr><td class='main-body' width='100%' bgColor='#FFFFFF'>";
}

// Close table end
function closetable() {

   echo "</td></tr></table></td></tr></table>";
}

function openside($title) {

   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'>$title</td></tr>";
   echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
}

function closeside() {

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

function opensidex($title,$open="on") {

   $boxname = str_replace(" ", "", $title);
   $box_img = $open == "on" ? "off" : "on";
   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</td></tr>";
   echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
   echo "<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}

function closesidex() {

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

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



Parašė Qrmiz· 2007 Bir. 25 21:06:24
#23

bandyk taip:

<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|--------------------------------------------|
| author: Lordcraft |
| web: http://mu-online.lt |
| email: info@mu-online.lt |
|--------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/************************/
/* Theme Settings */
/************************/

$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "100%";
$theme_width_l = "180";
$theme_width_r = "180";

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

echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='header' width='100%'>";
// Start banner code
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td>vieno paveiksliuko adresas</td>
<td>kito paveiksliuko adresas</td>
</tr>
</table>\n";
// End banner code
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>";
echo "<td class='sub-header'>\n";

$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img src='".THEME."images/killad.gif' alt=''> \n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>";
echo "<td align='right' class='sub-header'>".ucwords(showdate($settings['subheaderdate'], time()))."";
echo "</td></tr></table>\n";
echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
}

function render_footer($license=false) {
global $theme_width,$locale,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td>".stripslashes($settings['footer'])."</td>";
echo "</tr></table></td></tr></table><br>";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0'>";
echo "<tr><td width='4%' class='footer' align='left'><div align='center'>";
echo "<a href='#top'><img src='".THEME."images/pageup.gif' alt='h1; Virlm6;' title='h1; Virlm6;'></a></div></td>";
echo "<td width='20%' class='footer' align='left'>";
if ($license == false) {
echo "Varikliukas <a href='http://www.php-fusion.co.uk' target='_blank'>PHP-Fusion</a>";
}
echo "</td>";
echo "<td width='40%' class='footer' align='center'>";
echo "Copyright Ā© MU-ONLINE.LT</a></td>";
echo "<td width='26%' class='footer' align='right'>";
echo "<span class='footerstat'>".$settings['counter']." </span>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td><td width='4%' class='footer' align='right'>";
echo "<div align='center'><a href='#top'><img src='".THEME."images/pageup.gif' alt='Scroll Up' title='Scroll Up'></a></td></tr></table></td></tr></table></div>";
}

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

global $locale;

echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
echo "<td height='23' class='table-cellpic'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> Ā·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> Ā· ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}

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

global $locale;

echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
echo "<td height='23' class='table-cellpic'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." Ā· ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
echo "<tr><td width='100%' height='23' class='table-cellpic' align='left'>$title</td></tr>";
echo "<tr><td class='main-body' width='100%' bgColor='#FFFFFF'>";
}

// Close table end
function closetable() {

echo "</td></tr></table></td></tr></table>";
}

function openside($title) {

echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'>$title</td></tr>";
echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
}

function closeside() {

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

function opensidex($title,$open="on") {

$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</td></tr>";
echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
echo "<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}

function closesidex() {

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

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

Parašė mafioso· 2007 Bir. 25 23:06:45
#24

O kaip stumdyti savo banerį? Nes man reikia jį pastumti šiek tiek į viršų.

Parašė Qrmiz· 2007 Bir. 25 23:06:01
#25

mafioso parašė:
O kaip stumdyti savo banerį? Nes man reikia jį pastumti šiek tiek į viršų.


ten kur:
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td valign='top'>vieno paveiksliuko adresas</td>
<td align='right'>kito paveiksliuko adresas</td>
</tr>
</table>\n";

valign reiškia vertikalus lygiavimas (aukštyn žemyn), gali pasirinkti:
top (viršuj), middle (vidury) ir bottom (apačioj), bet jei neveikia šitas lygiavimas, tada prieš banerio paveiksliuko kodą (arba po juo) gali įrašyti <br> - tada atsiras tarpas.

dar: jei nori, kad banerį lygiuotu dešinėj, rašai: align='right' (arba left - kairėj)

paryškinau koduose kaip ten kas ten ;)

taip pat gali rašyti: <td valign='top' align='center'>vieno paveiksliuko adresas</td> - tada tau paveiksliuką lygiuos viduryje ir jis bus prilipęs prie table viršaus :)

Redagavo Qrmiz· 2007 Bir. 25 23:06:46

Parašė Lordcraft· 2007 Bir. 26 11:06:01
#26

Aciu. pagaliau po poros metu laukimo sulaukiau atsakymo i savo norima klausima ;)