Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 09:50 pm EST
Geeklog Forums
RDf block not truncated according to config.php settings
sphopkins
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
r_f_o_t
I know this doesn't fix your problem, but that part is beyond my skill.
HTH,
Chuck
Too many hands on my time.
squatty
I"ve also had some success with the following hack.
Edit COM_rdfImport in lib-common.php.
You need to change the following....
if( !$rdferror )
{
$blockcontent = COM_makeList( $RDFheadlines );
Change to....
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?
sphopkins
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.
Thanks again.
Sean
sphopkins
Edit COM_rdfImport in lib-common.php.
You need to change the following....
if( !$rdferror )
{
$blockcontent = COM_makeList( $RDFheadlines );
Change to....
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.
- 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