Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Kaip padaryti

Parašė ChecK· 2008 Rugs. 5 21:09:40
#1

kaip padaryti kad šonuose būtu vienas cellpic'as o viduryje border'is prašau padėkite

theme.php
<?php

/************************/
/* Settings/Nustatymai   */
/************************/

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

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

   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
   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 / Banerio kodas
   echo "<table width='100%' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
   echo "<tr><td height='300' background='".THEME."images/baner.jpg' align='right' valign='middle'>
   <table width='988' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td>&nbsp;</td>
    <td width='220' align='center'>";
   // Jei narys, prisijungimas atrodo taip
   if (iMEMBER) {
   openside($userdata['user_name']);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' background='".THEME."images/userinfo.gif'>
  <tr>
    <td>\n";
   if ($userdata['user_avatar'] != "") {
   echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' height='50' style='border:1px solid #999999'></center>\n";
   } else {
   echo "<center><img src='".THEME."images/noavatar.jpg' width='50' height='50' style='border:1px solid #999999'></center>\n";
   }
   echo "</td>
    <td><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Aprašymas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Žinutės [naujų: <b><span style='color:#ff0000'>".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>\n";"
   <td><img src='".THEME."images/blank.gif'></td>
  </tr>
</table>

\n";
   // Jei ne narys
} else {
   openside("Prisijungimas");
   echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' background='".THEME."images/userlogin.gif' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
  <tr>
    <td align='right'>Vardas: </td>
    <td>&nbsp;<input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
  </tr>
  <tr>
    <td align='right'>".$locale['062'].": </td>
    <td>&nbsp;<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>&nbsp;<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"</div>\n";
}
closeside();
   echo "</td>
   <td><img src='".THEME."images/blank.gif'></td>
  </tr>
</table>
   </td>";
   echo "</tr></table></td></tr></table>\n";
   // End banner code / Banerio kodo pabaiga
   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 "&nbsp;<a href='".BASEDIR."members.php'><span class='white'>Vartotojų: ".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."</span></a>\n";
   if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."\n";
   echo ($i == 0 ? "&nbsp;" : "")."</td>";
   echo "<td align='right'>".ucwords(showdate($settings['subheaderdate'], time()))."";
   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/home.gif' border=0' alt='Pradinis'></a></td>
    <td width='69' valign='top'><a href='".FORUM."index.php'><img src='".THEME."images/forum.gif' border=0' alt='Diskusijos'></td>
 

    <td width='564' class='dark'><marquee>".parseubb(parsesmileys("Sveiki atvykę į www.programos.xz.lt portalą ;)"))."</marquee></td>
   <td width='69' valign='top'><a href='".BASEDIR."downloads.php'><img src='".THEME."images/siuntimai.gif' border=0' alt='Siuntiniai'></td>
   <td width='5'></td>
<td width='69' valign='top'><a href='".BASEDIR."viewpage.php?page_id=2'><img src='".THEME."images/contact.gif' border=0' alt='Siuntiniai'></td>
   <td width='5'></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 cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.gif' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
   echo "<td width='20%' height='20' class='white' align='left'>";
      if ($license == false) {
      echo "<b>Powered by <a href='http://php-fusion.co.uk' target='_blank'>PHP-Fusion</a></b>";
   }
   echo "</td>";
   echo "<td width='40%' class='white' align='center'>";
   echo "<b>".stripslashes($settings['footer'])."</b></td>";
   echo "<td width='26%' class='white' align='right'>";
   echo "<b>Design by <a href='mailto:Qrmiz@mail.lt'>Qrmiz</a></b>";
   echo "</td>";
   echo "<div align='center'></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'><center>$subject</center></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&amp;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&amp;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";
}
?>







style.css

 body {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
    background-image: url(images/bg.gif);
    color:#333;
   padding:0px 0px 0px 0px;
   margin-top: 0px;
   margin-left: 0px;
   margin-right: 0px;
   margin-bottom: 0px;
}

.forumline {
    border: bold 1px #CACACA;
   background-color: #CACACA;
}


.header {
   background-color: #F2F2F2;
   padding:0px;
}

.white {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   color:#FFFFFF;
}

.dark {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   color:#666;
}


/* Page style/Puslapio stilius */
a {
   color:#604000;
   text-decoration:none;
   font-size:10px;
}


a:hover {
   color:#604000;
   text-decoration:none;
}


a.side {
   color:#604000;
   text-decoration:none;
   font-size:10px;
}


a:hover.side {
   color:#402020;
   text-decoration:none;
}


a.white {
   color:#402000;
   text-decoration:none;
   font-size:11px;
}


a:hover.white {
   color:#0C0C0C;
   text-decoration:none;
}


form {
   margin:0px 0px 0px 0px;
}


hr {
   border-top:1px #E2E2E2 solid;
   border-bottom:1px #F9F9F9 solid;
}


hr.side-hr {
   border:1px #E2E2E2 solid;
   border-bottom:1px #F9F9F9 solid;
}


td {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
}


pre {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:9px;
}


.alt {
   color: #666666;
}


.sub-header {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   color:#FFFFFF;
   background-color:#990000;
    background-image: url(images/subheader.gif);
   border-top:0px #FFFFFF solid;
   border-bottom:1px #FFFFFF solid;
   padding:5px;
}


.button {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   color:#000020;
   border:1px solid; border-color:#B7B7B7 #B7B7B7 #B7B7B7 #B7B7B7;
   background: #FFFFFF;
   background-image:url(images/pusher.gif);
   margin-top:2px;
}

   
.textbox {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   color:#000020    ;
   background-color:#FAFAFA;
   border:1px #CACACA solid;
}


.main-body {
   background-color:#FFFFFF;
   color: #3B3B3B;
   font-weight: normal;
   padding:4px 4px 6px 6px;
}


.table-cellpic {
   font-size: 11px;
   font-weight: bold;
   text-align:center;
   color: #333;
   background-color: #FFFFFF;
   background-image: url(images/cellpic.gif);
   padding:1px 6px 0px 22px;
   text-transform:uppercase;
   
}


.panel-border {
   border: 1px dashed #CACACA;
}


.news-border {
   border-top: dashed #CACACA;
   border-top-width: 1px;
   border-left: dashed #CACACA;
   border-left-width: 1px;
   border-right: dashed #CACACA;
   border-right-width:1px;
   border-bottom: dashed #ff6000;
   border-bottom-width:0px;
}


.panel-cellpic {
   font-size: 11px;
   font-weight: bold;
   text-transform:uppercase;
   color: #333;
   background-color: #cccccc;
   background-image: url(images/cellpic.gif);
   padding:0px 4px 0px 17px;

}


.side-body {
   color: #738495;
   font-weight: normal;
   padding:4px 4px 6px 4px;
}


.main-bg {
   background-color:#F8F8F8;
}


.border {
   border-width:0px 1px 1px 1px;
   border-color:#CACACA;
   border-style:solid;
}


.news-footer {
   background: #eaebe4;
    background-image: url(images/nfooter.gif);
    font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:9px;
   font-weight:normal;
   color:#002020;
   height:16px;
   padding:4px 4px 4px 4px;
}


.capmain {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   font-weight:bold;
   border-width:1px 1px 1px 1px;
   border-color:#CACACA;
   border-style:solid;
   color:#B78E00;
   height:24px;
   padding:2px 2px 2px 2px;
}


.footer {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   color:#FFFFFF;
   background-color:#FFFFFF;
    background-image: url(images/footer.gif);
   border-top:1px #CACACA dashed; border-bottom:1px #CACACA dashed;
   padding:4px 3px 4px 4px;
}


.footerstat {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   font-weight:bold;
   color:#604000;
}


img {
   border: 0px;
}


.scapmain {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   font-weight:bold;
   color:#000;
   height:19px;
   padding:0px 2px 0px 2px;
   border-width:1px 0px 1px 0px;
   border-color:#CACACA #CACACA #CACACA #CACACA;
   border-style:solid;
}


.tbl-border {
   background-color:#CACACA;
}


.tbl {
   font-size:11px;
   padding:4px;
}


.tbl1 {
   font-size:11px;
   color:#091609;
   background-color:#FFFFFF;
   padding:4px;
}


.tbl2 {
   font-size:11px;
   color:#091609;
   background-color:#FEFEFE;
   padding:4px;
}


/* Forum header/Forumo headeris*/
.forum-caption {
   font-size:10px;
   font-weight:bold;
   color:#2A7ED8;
   background-color:#F1F1F1;
   height:24px;
   padding:0px 4px 2px 4px;

}


/* Quote blocks/Citatos blokas */
.quote {
   color:#2E4D80;
   background-color:#F8F8F8;
    background-image: url(images/code.gif);
   padding:2px;
   margin:0px 19px 0px 20px;
   border:1px #CACACA solid;
}


/* Poll/Balsavimas */
.poll {
   height:8px;
   border:1px #929AA2 solid;
}


.comment-name {
   font-weight:bold;
   color:#DDCC88;
}


/* Shoutbox/Saukykla */
.shoutboxname {
   font-weight:light;
   color:#FFDDAA;
}


.shoutbox {
   color:#06070A;
}


.shoutboxdate {
   font-size:9px;
   color:#1C1C1C;
}


.small {
   color: #666666;
   font-size:10px;
   font-weight:normal;
}


.small2 {
   font-size:9px;
   font-weight:normal;
   color:#1C1C1C;
}


.side-small   {
   font-size:10px;
   font-weight:normal;
   color:#000000;
}


.side-label {
   background-color:#E3E3E3;
   font-weight:normal;
   color:#888;
   padding:2px;
}


/* Photo Gallery/Foto Galerija */
.gallery {
   padding: 16px 0px 8px 0px;
}


.gallery img {
   border: 1px solid #CACACA;
   filter: gray;
}


.gallery:hover img {
   border: 1px solid #4E79F3;
   filter: none;
}


img.activegallery   {
   border: 1px solid #CACACA;
   filter: none;
}



Redagavo ChecK· 2008 Rugs. 5 21:09:56

Parašė Haked· 2008 Rugs. 5 22:09:33
#2

O man irgi reiktu galite padėti pas mane irgi tokia pati theme :)

Parašė Žmogus· 2008 Rugs. 5 23:09:05
#3

Nesupratau nieko

Parašė Haked· 2008 Rugs. 5 23:09:33
#4

Nu reikia kaip antro cellpic supranti ant šoniniu ir ant vidurinių panelių yra vienas cellpic tai va, o reikia, kad atskirai būtu pvz: cellpic.gif cellpic2.gif :)

Parašė Niger· 2008 Rugs. 5 23:09:08
#5

celpikas butu borderyje :s

Parašė ChecK· 2008 Rugs. 5 23:09:35
#6

kad pvz borderis būtu image folderyje borderis būtu per vidurį o cellpic šuonose

Parašė ChecK· 2008 Rugs. 6 10:09:43
#7

:(sorry uz flooda. net niekas nemoka

Parašė Žmogus· 2008 Rugs. 6 10:09:37
#8

Šoninė panelė:
.scapmain {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   font-weight:bold;
   color:#000;
   height:19px;
   padding:0px 2px 0px 2px;
   border-width:1px 0px 1px 0px;
   border-color:#CACACA #CACACA #CACACA #CACACA;
   border-style:solid;
}




Centrinė:
.capmain {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   font-weight:bold;
   border-width:1px 1px 1px 1px;
   border-color:#CACACA;
   border-style:solid;
   color:#B78E00;
   height:24px;
   padding:2px 2px 2px 2px;
}



Parašė Haked· 2008 Rugs. 6 11:09:28
#9

ShadoVw parašė:
Šoninė panelė:
.scapmain {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   font-weight:bold;
   color:#000;
   height:19px;
   padding:0px 2px 0px 2px;
   border-width:1px 0px 1px 0px;
   border-color:#CACACA #CACACA #CACACA #CACACA;
   border-style:solid;
}




Centrinė:
.capmain {
   font-family:Verdana,Tahoma,Helvetica,Arial,Sans-Serif;
   font-size:10px;
   font-weight:bold;
   border-width:1px 1px 1px 1px;
   border-color:#CACACA;
   border-style:solid;
   color:#B78E00;
   height:24px;
   padding:2px 2px 2px 2px;
}




Išsijungiau smailus

Parašė ChecK· 2008 Rugs. 6 11:09:34
#10

o aciu tuoj pameginsiu :)

Redagavo ChecK· 2008 Rugs. 6 11:09:15

Parašė ChecK· 2008 Rugs. 6 11:09:02
#11

bet ar nereikejo redaguot theme.php are nereikejo i image folderi ideti border.gif arba cellpic2.gif nes nieko nepasikeite

Parašė ChecK· 2008 Rugs. 6 11:09:10
#12

nes tas kur daviai nieko nepakeitė :|

Parašė ch0k3· 2008 Rugs. 6 11:09:34
#13

O būtina floodint negali editint??

Parašė Žmogus· 2008 Rugs. 6 11:09:33
#14

weeraS nieko nesupratau

Parašė ChecK· 2008 Rugs. 6 11:09:07
#15

nu kad būtu atskiri borderiai, pas mane themoj yra tik cellpicai o noriu kad būtu ir cellpicai tik kad jie būtu per naujienas ir būtu ilgensni

Parašė ch0k3· 2008 Rugs. 6 12:09:59
#16

Jis nori kad butų dvigubi cellpicai

Parašė ChecK· 2008 Rugs. 6 14:09:41
#17

aha

Parašė ChecK· 2008 Rugs. 6 21:09:11
#18

pasidariau ačiū tiems kas bandė padėti ;)