Welcome to Geeklog Saturday, March 28 2020 @ 11:52 pm EDT

Geeklog Forums

RDf block not truncated according to config.php settings


Status: offline

sphopkins

Forum User
Newbie
Registered: 09/12/03
Posts: 11
Hello. I have set up a site that has some medscape news headlines included in a portal block (Medscape XML) and the block is not truncating the number of news items that I have set in the config.php file.


The config.php settings relevant to my problem (I think) is:


// RSS/RDF feed settings
$_CONF['backend'] = 0;


$_CONF['rdf_limit'] = 5;


$_CONF['rdf_storytext'] = 0;


I am getting all of the feeds since I created the blcok. Do I have to delete the block completely and remove something from teh database ? or am I missing something ?

Thanks

Sean

 Quote

Status: offline

r_f_o_t

Forum User
Full Member
Registered: 30/07/03
Posts: 241
Location:Illinois
The rdf settings in config.php are for your site's outgoing feed, not incoming feeds from other sites. That's why it doesn't change the block when you change the settings.

I know this doesn't fix your problem, but that part is beyond my skill.

HTH,

Chuck
Too many hands on my time.
 Quote

Status: offline

squatty

Forum User
Full Member
Registered: 21/01/02
Posts: 269
The news plugin allows you to configure the number of links to display in an RDF block (portal block). You can download it here.

I"ve also had some success with the following hack.

Edit COM_rdfImport in lib-common.php.

You need to change the following....
PHP Formatted Code

if( !$rdferror )
{
$blockcontent = COM_makeList( $RDFheadlines );

 


Change to....
PHP Formatted Code

if( !$rdferror )
{
$RDFHeadlines = array_splice($RDFheadlines,5);
$blockcontent = COM_makeList( $RDFheadlines );

 


Where 5 in array_splice($RDFheadlines,5) is the number of links to display in the block.
In a world without walls and fences, who needs Windows and Gates?
 Quote

Status: offline

sphopkins

Forum User
Newbie
Registered: 09/12/03
Posts: 11
Thanks to both replies.


I will look into the changes that squatty has suggested and the pugin if required. I hope that it works as I have removed those blocks from my front page since they were gobbling wayyyy too much space up. Neutral


Thanks again.


Sean

 Quote

Status: offline

sphopkins

Forum User
Newbie
Registered: 09/12/03
Posts: 11
Quote by squatty:
Edit COM_rdfImport in lib-common.php.

You need to change the following....
PHP Formatted Code

if( !$rdferror )
{
$blockcontent = COM_makeList( $RDFheadlines );


 


Change to....
PHP Formatted Code

if( !$rdferror )
{
$RDFHeadlines = array_splice($RDFheadlines,5);
$blockcontent = COM_makeList( $RDFheadlines );


 


Where 5 in array_splice($RDFheadlines,5) is the number of links to display in the block.

Worked like a charm - thanks for the help.

 Quote

All times are EDT. The time is now 11:52 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content