Welcome to Geeklog, Anonymous Friday, July 11 2025 @ 04:52 pm EDT
Geeklog Forums
NEW - Headline News block/module
Status: offline
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
17
14
Quote
Status: offline
Forum User
Full Member
Registered: 01/21/02
Posts: 269
I found two bugs last night. I'll try to fix them today.
11
14
Quote
Status: offline
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.
18
14
Quote
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
11
15
Quote
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.
15
11
Quote
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
15
16
Quote
Status: offline
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.
14
11
Quote
doesn't work for me ...
12
15
Quote
All times are EDT. The time is now 04:52 pm.
- 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