Status: offline

squatty

Forum User
Full Member
Registered: 01/21/02
Posts: 269
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 I created some time ago.

If you want to see the block in action check out http://www.squatty.com. The source code is available here

Enjoy!

Squatty


In a world without walls and fences, who needs Windows and Gates?

Status: offline

squatty

Forum User
Full Member
Registered: 01/21/02
Posts: 269
I found two bugs last night. I'll try to fix them today.
In a world without walls and fences, who needs Windows and Gates?

Status: offline

squatty

Forum User
Full Member
Registered: 01/21/02
Posts: 269
Fixed the two bugs. You can download the updated source code from the link above.
In a world without walls and fences, who needs Windows and Gates?

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

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.

Status: offline

squatty

Forum User
Full Member
Registered: 01/21/02
Posts: 269
The new source code is located here.
In a world without walls and fences, who needs Windows and Gates?

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

Status: offline

squatty

Forum User
Full Member
Registered: 01/21/02
Posts: 269
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.
In a world without walls and fences, who needs Windows and Gates?

Anonymous

Anonymous
doesn't work for me ...