Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: News Cellpic

Parašė RuP3r· 2008 Kov. 24 22:03:54
#1

Aš noriu kad idetumet atskira news cellpica nes pas mane yra vienas cellpic'as kuris yra ant news ir panelese as noriu kad butu atskiri galit taip padarit?
Styles.css

body {
   font-family:Verdana,Tahoma,Arial,Sans-Serif;
   font-size:10px;
   padding:0px 0px 0px 0px;
   margin:10px;
}


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

.header {
   background-color: #FAFAFA;
   background-image: url(images/top1.gif);
   padding:5px;
}

/* General page style */
a {
   color:#0567C4;
   text-decoration:none;
   font-size:9px;
}

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

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

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

a.white {
   color:#0567C4;
   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,Arial,Sans-Serif;
   font-size:10px;
}

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

.alt {
   color:#1C1C1C;
}

.sub-header {
   font-family:Verdana,Tahoma,Arial,Sans-Serif;
   font-size:10px;
   color:#0567C4;
   background-color:#FFFFFF;
   border-top:1px #CACACA solid;
   border-bottom:1px #CACACA solid;
   padding:5px;
}

.button {
   font-family:Verdana,Tahoma,Arial,Sans-Serif;
   font-size:10px;
   color:#FFFFFF;
   border:1px solid; border-color:#B7B7B7 #B7B7B7 #B7B7B7 #B7B7B7;
   background: #FFFFFF;
   background-image:url(images/button.gif);
   margin-top:2px;
}
   
.textbox {
   font-family:Verdana,Tahoma,Arial,Sans-Serif;
   font-size:10px;
   color:
   background-color:#FAFAFA;
   background-image:url(images/shout.gif);
   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: italic;
   color: #00000;
   background-color: #FFFFFF;
   background-image: url(images/cellpic1.gif);
   padding:0px 2px 0px 4px;

}

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

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

.panel-cellpic {
   font-size: 10px;
   font-weight: normal;
   color: #FFFFFF;
   background-color: #FFFFFF;
   background-image: url(images/cellpic1.gif);
   padding:0px 0px 2px 0px;

}

.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: #E6E6E6;
   font-size:9px;
   font-weight:normal;
   color:#0C0C0C;
   height:21px;
   padding:4px 4px 4px 4px;
}

.capmain {
   font-family:Verdana,Tahoma,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,Arial,Sans-Serif;
   font-size:9px;
   color:#777;
   background-color:#FFFFFF;
   border-top:1px #CACACA solid; border-bottom:0px #CACACA solid;
   padding:4px 4px 4px 4px;
}

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

img {
   border: 0px;
}

.scapmain {
   font-family:Verdana,Tahoma,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: url(images/shout.gif);
}

.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*/
.forum-caption {
   font-size:10px;
   font-weight:bold;
   color:#2A7ED8;
   background-color:#F1F1F1;
   height:24px;
   padding:0px 4px 2px 4px;

}

/* Quote blocks */
.quote {
   color:#2E4D80;
   background-color:#F8F8F8;
   padding:2px;
   margin:0px 20px 0px 20px;
   border:1px #CACACA solid;
}

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

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

/* This is for the Shoutbox */
.shoutboxname {
   font-weight:bold;
   color:#FFDDAA;
}

.shoutbox {
   color:#06070A;
}

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

.small {
   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;
}

/* This is for the Photo Gallery */
.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;
}



Parašė NoNy· 2008 Kov. 24 22:03:19
#2

O ten ne theme.php? :?

Parašė RuP3r· 2008 Kov. 24 22:03:58
#3

nu idesiu bet man atrodo cia turejo but
<?
/*--------------------------------------------+
|  Bafra Theme for PHP-Fusion v6              |
|---------------------------------------------|
| author: Murat                               |
| web: http://www.fusiontema.com              |
| email: php@phpfusion.gen.tr                 |
|---------------------------------------------|
| 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 ? "&nbsp;" : "")."</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></div></td>";
   echo "<td width='20%' class='footer' align='left'>";
      if ($license == false) {
      echo "PHP-Fusion System";
   }
   echo "</td>";
   echo "<td width='40%' class='footer' align='center'>";
   echo "Bafra Tema | www.fusiontema.com </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 "
</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='22' 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&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";
}
?>



Parašė samsung123· 2008 Kov. 24 22:03:52
#4

.table-cellpic {
   font-size: 11px;
   font-weight: italic;
   color: #00000;
   background-color: #FFFFFF;
   background-image: url(images/cellpic1.gif);
   padding:0px 2px 0px 4px;




.panel-cellpic {
   font-size: 10px;
   font-weight: normal;
   color: #FFFFFF;
   background-color: #FFFFFF;
   background-image: url(images/cellpic1.gif);
   padding:0px 0px 2px 0px;




Keiskis baground image i savo norimą IMG

PVZ:
.panel-cellpic {
   font-size: 10px;
   font-weight: normal;
   color: #FFFFFF;
   background-color: #FFFFFF;
   background-image: url(images/panelescellpicas.gif);
   padding:0px 0px 2px 0px;




.table-cellpic {
   font-size: 11px;
   font-weight: italic;
   color: #00000;
   background-color: #FFFFFF;
   background-image: url(images/vidauscellpicas.gif);
   padding:0px 2px 0px 4px;



Redagavo samsung123· 2008 Kov. 24 22:03:43

Parašė RuP3r· 2008 Kov. 24 23:03:52
#5

thx beisas +7

Parašė samsung123· 2008 Kov. 24 23:03:20
#6

:D reikėjo +10