Status
Not open for further replies.

satimis

New Member
Hi ghost,


Could you please shed me some light on;


1)
RSS_1col

I need to increase the blank space between each RSS feed website, not looking as one being stacked on another.


2)
RSS_2col

The RSS feed news are running in 2 columns. The news urls on left colums are too close to the news urls on the right column. I need to keep them a little bid apart.


I have been trying a whole day. CSS can't help me out. TIA


B.R.
satimis
 

ghost

New Member
The generated news is displayed in a table so you could play around with that
example on this line
echo '<table class="rss_section" cellpadding="5" border="0">
could add cellspacing="5" then increase them to 10
echo '<table class="rss_section" cellpadding="10" cellspacing="10" border="0">
You are limited on that as it will increase all round .
or you could stick in an other cell , space it , or plant something in it

Code:
echo '<table class="rss_section" cellpadding="5" cellspacing="5" border="0"><tr><td width="40%" valign="top">';
foreach ($rss_left as $url) ShowOneRSS($url);
echo '</td>

<td width="20%" valign="top">&nbsp;</td>

<td width="40%" valign="top">';
foreach ($rss_right as $url) ShowOneRSS($url);
echo '</td></tr></table>';
?>
Mick
 

satimis

New Member
The generated news is displayed in a table so you could play around with that
example on this line
echo '<table class="rss_section" cellpadding="5" border="0">
could add cellspacing="5" then increase them to 10
echo '<table class="rss_section" cellpadding="10" cellspacing="10" border="0">
You are limited on that as it will increase all round .
or you could stick in an other cell , space it , or plant something in it

Code:
echo '<table class="rss_section" cellpadding="5" cellspacing="5" border="0"><tr><td width="40%" valign="top">';
foreach ($rss_left as $url) ShowOneRSS($url);
echo '</td>

<td width="20%" valign="top">&nbsp;</td>

<td width="40%" valign="top">';
foreach ($rss_right as $url) ShowOneRSS($url);
echo '</td></tr></table>';
?>
Mick
Hi Mick,


I tried both versions on rss_1col only, but failed

Version_1
Code:
echo '<table class="rss_section" cellpadding="10" cellspacing="10" border="0"><tr><td width="50%" valign="top">'; 
foreach ($rss_left as $url) ShowOneRSS($url);
echo '</td></tr></table>';
No difference after changing. The separating space remains the same.


Version_2
Code:
echo '<table class="rss_section" cellpadding="5" cellspacing="5" border="0"><tr><td width="40%" valign="top">';
foreach ($rss_left as $url) ShowOneRSS($url);
echo '</td>

<td width="20%" valign="top">&nbsp;</td>

<td width="40%" valign="top">';
foreach ($rss_right as $url) ShowOneRSS($url);
echo '</td></tr></table>';
On the marquee container all URLs were pushed to the left. Following warning took up the right
Code:
Warning
Invalid argument supplied for foreach() in /var/www/index.php on line 118.
line 118
Code:
foreach ($rss_right as $url) ShowOneRSS($url);


After trying 2 days, it comes to my notice that the website takes prolonged time to refresh. Also takes prolonged time to start. I'm testing it on the server via domain.com. I don't know why? After clicking domain.com on browser (firefox) it just hangs there for a while before popup the webpage. Would it be connecting all news URLs taking some times?


B.R.
satimis
 

satimis

New Member
a cell padding and spacing of 10 wont give you much try 25
No effect, space remains the same. Increasing both padding and spacing to 50 the width of each URL is reduced leaving large space on both sides but the space between RSS feed sites is still the same. It seems increasing spacing having no effect.


also look at styling th ul
No style of ul defined;
Code:
echo "<ul>\n"; 
foreach ($rs['items'] as $item) { 
echo '<li><a href="'.$item['link'].'" title="'.$item['description'].'">'.$item['title'].'</a></li>'; 
} 
if ($rs['items_count'] <= 0) { echo "<li>Sorry, no items found in the RSS file :-(</li>"; } 
echo "</ul>\n";
I think the error is caused by one of the feeds could be down or gone.
I know these two are OK
RTÉ Sport - GAA News
Independent.ie - Hurling RSS Feed
try replacing the others with feeds you know are reliable.

Multiple feeds on a page will slow it down
http://www.freshfolder.com/rss.php

got problem, removing it the problem gone.


Thanks


B.R.
satimis
 
Status
Not open for further replies.
Top