Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 07:11 am EST
Geeklog Forums
News block/module
squatty
The news block allows users to customize their default view with one of the following feeds:
You can view my news block in action at http://www.squatty.com. The source code is located at http://www.squatty.com/news.zip.
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
In a world without walls and fences, who needs Windows and Gates?
Anonymous
squatty
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!
In a world without walls and fences, who needs Windows and Gates?
squatty
In a world without walls and fences, who needs Windows and Gates?
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
Anonymous
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.
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!
In a world without walls and fences, who needs Windows and Gates?
squatty
Thanks.
In a world without walls and fences, who needs Windows and Gates?
erics
- 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