Posted on: 02/19/02 11:08am
By: squatty
The news block allows users to customize their default view with one of the following feeds:
World News US News Political News Business News Science News ESPN Sports Entertainment News Health and Living News
You can view my news block in action at http://www.squatty.com[*1] . The source code is located at http://www.squatty.com/news.zip[*2] .
The one major issue with the block that needs some attention is the lack of a caching mechanism. It would be nice to cache both the display and detailed views. If anyone out their has some ideas please let me know?
Thanks,
Danny
Posted on: 02/19/02 11:56am
By: Anonymous (Anonymous)
Posted on: 02/19/02 02:02pm
By: squatty
admin.php detailed_news.php display_news.php
Where display_news.php is the block view and detailed_news.php is the secondary detailed view. I also neglected to add the sql updates for the Geeklog groups and userprefs tables! Download the zip file again.
Sorry, it was late when I made the zip archive!
Posted on: 02/19/02 02:45pm
By: squatty
Posted on: 02/20/02 02:47am
By: chmouel
chmou@giants|e/news| grep -ri weather *
public_html/news/admin.php: if (SEC_inGroup('Weather')) {
chmou@giants|e/news| file public_html/images/news/Thumbs.db
public_html/images/news/Thumbs.db: Microsoft Office Document
Chmou
Posted on: 02/20/02 05:56am
By: squatty
Posted on: 02/27/02 12:29am
By: Anonymous (Anonymous)
Posted on: 02/27/02 06:08am
By: squatty
In summary, here's the steps for installing the ABCNews block:
1) Extract the code to /public_html
A new directory named news will be created for you.
2) Run the SQL script: news-sql.sql
The script will create one new table named abcnews and make updates to userprefs and groups tables. The details are as follows:
All news feeds are stored in the abcnews table. This look-up table stores the available news feeds.
The updates to the group table are required to set permissions for the site administrator. Once the group table is updated be sure add your admin id the News group. The site admin will not be able to set the default news feeds until the id is a member of the News group. userprefs update creates a news column in the userprefs table. The news column is where user personalization is stored.
3) Add the phpblock: news.phpblock
The first step is to add the contents of newss.phpblock to lib-custom.php. The second step is to simply create the phpblock and reference the
phpblock_getnews function.
NOTES
Have fun!
Posted on: 03/01/02 06:05am
By: squatty
Thanks.
Posted on: 03/02/02 09:33am
By: Anonymous (erics)
Posted on: 03/02/02 01:44pm
By: squatty