Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 11:12 pm EST
Geeklog Forums
NEW - Headline News block/module
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....
In a world without walls and fences, who needs Windows and Gates?
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?
11
9
Quote
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
8
9
Quote
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.
11
9
Quote
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
12
10
Quote
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?
In a world without walls and fences, who needs Windows and Gates?
10
7
Quote
Anonymous
Anonymous
doesn't work for me ...
9
10
Quote
All times are EST. The time is now 11:12 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