Posted on: 05/08/02 04:58pm
By: squatty
Well, it's been some time since I actually posted a new PHP block but, here I go....
I've been playing around with RDF/RSS lately and have created a "modified portal block" that allows users to customize/switch between multiple RDF/RSS feeds. The block has the same features as the ABC News Block[*1] I created some time ago.
If you want to see the block in action check out http://www.squatty.com[*2] . The source code is available here[*3]
Enjoy!
Squatty
Bugs
Posted on: 05/09/02 05:50am
By: squatty
I found two bugs last night. I'll try to fix them today.
Bugs
Posted on: 05/09/02 05:38pm
By: squatty
Fixed the two bugs. You can download the updated source code from the link above.
Bugs
Posted on: 05/10/02 08:04am
By: Anonymous (Anonymous)
I get the following error message after I add the block through the admin interface. When I refresh the page, the right hand side blocks(where I told the news block to be) are missing and I see:
1064: You have an error in your SQL syntax near 'SET rdfupdated = '2002-05-10 11:00:38'' at line 1
Bugs
Posted on: 05/10/02 09:03am
By: Anonymous (Anonymous)
Got me on that one? That seems a bit odd since the code in the display_news.php is copied straight from lib-common.php (see COM_rdfImport).
Can you hit the /news/admin.php page? Be sure that your admin account is part of the "News" group. If you can hit the admin.php page, try to set the global default or the default for your admin account. Then try to refresh the page.
Let me know if any of this works. If not, I'll have to revisit the code.
source code move
Posted on: 05/16/02 05:29pm
By: squatty
The new source code is located
here[*4] .
Code better...
Posted on: 05/22/02 09:39am
By: Anonymous (Anonymous)
Hi,
you should not hardcode table names... also your code does not respect the existence of $_DB_table_prefix, which is set to "gl_" by default. just my .02
screne
Code better...
Posted on: 05/24/02 07:43am
By: squatty
I agree....
However, keep in mind that many PHP blocks were not originally designed for Geeklog.
This particular block (and all my blocks) are more of an "integration" rather than an out of the box GL feature.
Bugs
Posted on: 05/28/02 06:15am
By: Anonymous (Anonymous)
doesn't work for me ...