Here's a port of News Page to Drupal 6. It is in beta but for all practical purpose, fully functional.
I've actually added a few features, including the ability to link the title of each item to the news feed, as well as the ability to remove the XML link button and to remove the feed-source link (the [About] link).
Note that everything has been renamed "newspage" instead of "news_page", as the underscore was giving me trouble under D6.
TO DO: clean up the code, add a block feature and allow a dynamic page with filters based on the taxonomy terms of a given node.
The source is in ZIP format so rename the file accordingly (just remove the .txt).
Let me know if you have any problems. Have fun.
Cheers.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | newspage.zip.txt | 13.26 KB | efolia |
| newspage.zip.txt | 13.25 KB | efolia |
Comments
Comment #1
efolia commentedOoops... add the following line in newspage.info :
core = 6.x
... or else download this new package.
Cheers :-)
Comment #2
Fayna commentedCool, will have to test this out! I'd love the block feature. :)
Comment #3
robert castelo commentedThanks efolia.
Can we get some folks to test this out?
I'll review it when I get time.
Comment #4
efolia commentedHi,
It's working for me (on a live site). However, there's some work to be done still to polish the code. For one thing, the outgoing RSS feed was not implemented. I's also not sure if the additional options are really useful or necessary (I guess it depends on the particular usage). I'll work on it soon if no one else does... I was just busy lately working on other unrelated projects, but I should have time in a week or two (hopefully).
Cheers
Comment #5
hooperman commentedgetting the following error in Drupal 6.3
On creating a news page i get
Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/newspage/node.pages.inc' (include_path='.:/usr/share/pear:/usr/share/php') in /websites/LinuxPackage04/be/ek/er/public_html/includes/menu.inc on line 344
and drupal admin the error is
warning: require_once(sites/all/modules/newspage/node.pages.inc) [function.require-once]: failed to open stream: No such file or directory in /websites/LinuxPackage04/be/ek/er/public_html/includes/menu.inc on line 344.
Sorry
I did not read the readme file and put newspage in sites/all/modules/ folder when it should have been in the modules folder
It appears to be working well now
Comment #6
mrandy commentedNice job, I had been searching around for a way to publish external feeds on a site whilst automatically blocking articles which might contain certain negative keywords (eg: competitors names, offensive words, etc..)
I tried using views (seemed complex), then tried using the spam module, and various other methods but most only work for drupal 5 not 6.
This did the job perfectly worked like a dream from the start (ok I had to change some permissions on the module folder before I could enable the module, but even I can handle that) and is now doing exactly what I need.
Thanks a lot for porting this and for resolving a mornings frustration. :-)
Much appreciated.
Andy
Comment #7
kbahey commented1. The module name and the database table name have been changed from news_page to newspage (without the underscore). This will cause issues with the database schema. It should be renamed back to news_page. Renaming it is neither necessary nor recommended. Not sure what errors you were facing, but many other modules are named with underscore. Perhaps you have 2 modules in different directories named news_page. That would confuse Drupal. Move the old one out of the Drupal directories and try again.
2. You should use the new schema API for D6, and not CREATE TABLE statements. You can use the schema module http://drupal.org/project/schema to automatically convert the tables from the old DDL to schema API. The same goes for ALTER TABLE statements.
3. It is best to submit this as a patch, so it is easier to review (less code). See http://drupal.org/patch on how to create a properly formatted patch.
4. It is better to do the conversion without adding features or adding columns to the database table, then once that is done, you can add the features. This makes it easier to review and test in bite sizes.
Comment #8
sukanya.sarkar commentedI am having Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/newspage/node.pages.inc' .Please help.
Comment #9
sean69 commentedDoes not work in Drupal 6.9 ... the message is:
This version is incompatible with the 6.9 version of Drupal core
right int he modules install pages ...
are there plans to update this module?
Comment #10
eusebius commented@sean69
Odd, because it's working for me under 6.9. I was running 6.7 and did a full upgrade to 6.9. The module had to be re-enabled, but once it was, there were no issues.
Comment #11
FlemmingLeer commentedCan somebody create an automatic transfer of tables from Drupal 5.x news_page to Drupal 6 ?
I have 88 news pages in the Drupal 5 and news page is the only reason for me still using Drupal 5.x.
Comment #12
robert castelo commentedI've been going through the issue queue and tackling each item for the Drupal 5 version, once that's done I can move on to the Drupal 6 port.
Comment #13
FlemmingLeer commentedSounds Great, Robert. :)
I'm not a programmer but I have an additional test site on Drupal 6, so give me a notice and I'll be more than happy to help testing a port to Drupal 6.
I will also test an upgrade from an existing Drupal 5 of my current site to Drupal 6 on a test site with a conversion of existing news pages.
Comment #14
oliverwolfson commentedJust got newspage working. Thanks
For some reason the linked titles are being appended with the characters >/ just after the url, so that the page cannot be found. Is there a way to fix?
Oliver
Comment #15
summit commentedSubscribing, greetings, Martijn
Comment #16
robert castelo commentedOK, got most of the reported issues fixed and also closed a security vulnerability (everyone update ASAP), will now press on with updating News Page to Drupal 6.
May take a weekend or two.
Comment #17
FlemmingLeer commentedGreat, I can't wait :)
Comment #18
robert castelo commentedOfficial beta of News Page for Drupal 6 now available.
Sorry efolia, didn't have time to pick your new features out of the version you submitted. If you'd like to submit them as one issue and patch per feature I'd be happy to evaluate them. (see kbahey's very helpful post above).
Any bugs you find in the beta please create a new issue for each bug.
Enjoy!