Posted on: 03/23/04 01:44am
By: wertjangt
I'm using yahoo layout theme, is there a way i can put all the news that i want to show at the main page in one block instead of multiple ones.
1 block for all news in front page
Posted on: 03/23/04 05:53pm
By: samstone
I haven't tried that but it sounds like a good idea.
There is a newspage plugin at squatty's site - squatty.com. Have you checked that out?
Sam
1 block for all news in front page
Posted on: 03/23/04 07:49pm
By: wertjangt
I'm not just talking about rdf/rss news feed, but also for displaying stories as well
1 block for all news in front page
Posted on: 03/24/04 02:37am
By: Robin
Have you tried Geeknews? (
look here[*1] )
Maybe this is what you need.
PS
Gotta read replies more carefully. Sam already suggested that ;-)
1 block for all news in front page
Posted on: 03/24/04 04:24am
By: geKow
wertjangt: I would try to do some CSS magic to simulate a single block for multiple articles .
geKow
1 block for all news in front page
Posted on: 03/24/04 08:03pm
By: wertjangt
geKow: I wanted to try that, but i'm pretty confident that I'll screw the layout. So your help is much appreciated.
1 block for all news in front page
Posted on: 03/25/04 09:22pm
By: wertjangt
and another thing can the feature article be set to more than 1 article, let say maybe five. If it can where & which code that need to be change
1 block for all news in front page
Posted on: 03/25/04 09:47pm
By: samstone
Here it is.
Create an RDF block of your own site's RDF, and don't display it. Note the block id number (BID) in the address line.
Creat a static page with the following codes:
$return = static_rdf('#'); return $return;
The # sign should be replace with the BID. And check the PHP box.
Set that static page to be at the top of the front page and you get what you want, if I understand you well.
You can then customize your rdf they way you want it to show on that static center block.
Hope this help!
Sam
1 block for all news in front page
Posted on: 03/26/04 04:21am
By: geKow
I tried that but all I get where "eval code" errors. Did you tried it with the new content syndication?
geKow
1 block for all news in front page
Posted on: 03/26/04 11:09am
By: samstone
I tried that but all I get where "eval code" errors. Did you tried it with the new content syndication?
I forgot, you need these codes in the lib-custom.php also
// Custom RDF / RSS feed on static page
function static_rdf($blockid = false) {
$error = array();
if ($blockid != false && is_numeric($blockid) && $blockid != "") {
global $_TABLES;
if (DB_getItem( $_TABLES['blocks'], 'type', "bid = '{$blockid}'" ) == 'portal') {
$sql = "SELECT UNIX_TIMESTAMP(rdfupdated) as date, content, rdfurl FROM {$_TABLES['blocks']} WHERE bid = '" . $blockid . "'";
$result = DB_query( $sql );
$A = DB_fetchArray( $result );
if ( COM_rdfCheck($blockid, $A['rdfurl'], $A['date'] ))
{
$A['content'] = DB_getItem( $_TABLES['blocks'], 'content',
"bid = '{$blockid}'" );
}
$return = $A['content'];
} else {
$error[] = 'Block is not of Portal Type';
}
} else {
$error[] = 'Is not a valid BlockID';
}
if (count($error) > 0) {
$return = "Something is wrong with the blockid that you entered. Fix this. Otherwise there could be issues";
$return .= '<ul>';
for ( $x = 0; count($error) > $x; $x++ ) {
$return .= '<li>' . $error[$x] . '</li>';
}
$return .= "</ul>";
}
return $return;
}
Hope this help!
Sam
1 block for all news in front page
Posted on: 03/29/04 08:17pm
By: Anonymous (wertjangt)
I have never tried to create rdf feed on my geeklog site. can you tell me how it is done, and what url should i put on the rdf block you mention earlier.
1 block for all news in front page
Posted on: 03/29/04 08:38pm
By: Anonymous (wertjangt)
sorry for that stupid question, found it.