PHP-Nuke Services - Addons, Modules, Blocks Vizitati www.westdesign.ro Select Interface Language:EnglishRomanian
  Login or Register HomeForumsDownloadsYour AccountWeb LinksContact   
SectionsShow\Hide
MultiheadlinesShow\Hide
LoginShow\Hide
~ Welcome, alien
Nickname Password
(Register)

~ Membership:

Greetings to the newest member Quattro25
~ New Today: 2
~ New Yesterday: 1
~ Overall: 3710

~ People Online:
~ Visitors: 3
~ Members: 0
~ Total: 3
~Aikon is offline
on Yahoo Msg.
Link to meShow\Hide

aikons.net
Search in FeedsShow\Hide
Search in feeds
HistoryShow\Hide
On 7 January


Speed Up   Pause   Speed Down
DictionaryShow\Hide
Enter the word

Romanian users only

Situl personal NICU RANCOV Forum Index


Reply to topic Page 1 of 1
Colouring the tables of rss posts
Message Author
Reply with quote
Post Posted: Monday 31 March, 2008 22:57

Hy Aikon I would like to color the table of each rss post same like you did here on aikons.net with the rectangle around each post. Could you expalin which file I need to modify and how. Many Thanks

View user's profile Send private message
Reply with quote
Post Posted: Monday 31 March, 2008 23:22

All the feeds are in a table cell.
The table can be edited on constrtable function within index.php file of the MH module.
Play a little bit with that table until you get what you want.

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Monday 31 March, 2008 23:29

I have added the codes for bg color but there is no difference in the module. bgcolor5 is defined inside theme.php inside my template :

Code:
function constrtable($showindex, $showlogo, $k, $link, $title, $description, $news_id, $news_date, $image, $urlname, $siteurl, $news_status){
global $module_name, $admin, $conf;
$cols=5;
$w='100%';
$table = '<table bgcolor=\"$bgcolor5\" width="'.$w.'" border="0" cellspacing="0">
               <tr>';
if ($conf["fullview"]=="full")  {
$table .= '<td colspan="5">_______________</td></tr>';
}
//------------------------------------------------


if ($showindex=="1") {
$table .=   '      <td align="center" bgcolor=\"$bgcolor5\" valign="middle" width="2%">';
$table .=   $k;
$table .='         </td>';
 } else {
$cols=$cols-1;
 }
//------------------------------------------------

if ($showlogo=="1") {
$table .=   '      <td align="center"bgcolor=\"$bgcolor5\"  valign="middle" width="2%">';   
$table .=   '<a href="'.$siteurl.'" target="_blank"><img src="modules/'.$module_name.'/images/logos/'.$image.'" width="85" height="27" alt="'.$urlname.'"></a>';
$table .='         </td>';
 } else {
$cols=$cols-1;
 }
//------------------------------------------------
$table .=   '      <td valign="middle"   width="90%">';
$table .=   '      <a href="'.$link.'" bgcolor=\"$bgcolor5\" target="_blank"><b>'.$title.'</b></a>';
$table .= '      </td>';
//------------------------------------------------

$cols=$cols-1;
if (is_admin($admin))   {
$table .=   '      <td align="center" bgcolor=\"$bgcolor5\" valign="middle" width="2%">';
   if ($news_status==0){
$table .= '      <img src="modules/'.$module_name.'/images/menus/issticky.png" border="0" title="Sticky">';
     } elseif ($news_status==1) {
$table .= '      <a href="modules.php?name='.$module_name.'&rss=Makesticky&id='.$news_id.'"><img src="modules/'.$module_name.'/images/menus/sticky.png" border="0" title="Sticky"></a>';              
     }   
$table .= '      </td>';
$cols=$cols+1;
}
//------------------------------------------------

$cols=$cols-1;
if (is_admin($admin))   {
$table .=   '      <td align="center" bgcolor=\"$bgcolor5\"  valign="middle" width="2%">';
$table .= '      <a href="modules.php?name='.$module_name.'&rss=Del&id='.$news_id.'"><img src="modules/'.$module_name.'/images/menus/delete.png" border="0" title="Delete"></a>';
$table .= '      </td>';
$cols=$cols+1;
}
$table .= '   </tr>';
//------------------------------------------------
//------------------------------------------------
$table .= '   <tr><td colspan="'.$cols.'" width="100%">';
if ($conf["fullview"]=="full")  {
$table .= $description;
} else {
$table .= '';
}
$table .= '</td></tr>';
//------------------------------------------------
//------------------------------------------------
if ($conf["showtime"]=="1")  {
$table .= '   <tr><td colspan="'.$cols.'" align="right">';
$table .= showing_time($news_date);
$table .= '</td></tr>';
}
//------------------------------------------------
$table .= '</table>';

return $table;
}


View user's profile Send private message
Reply with quote
Post Posted: Monday 31 March, 2008 23:45

thanks I got it now

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Page Generation: 0.43 Seconds