This is a hack for the altern8news module--I'm not
certain this is the place to send it, but the module's
copyright is assigned to xoops.org and I can't locate
any other contact info.
The issue:
I have a site with general categories and specific
subcategories for news stories, e.g.
Science & Technology
- Health & Medicine
- Nanotech
- Space
- ...
As the module currently functions, selecting the
stories in "Science & Technology" returns 0 results
(all the stories are stored in subcats), which seems wrong.
I created a quick hack to address this issue, by
fetching stories for the requested topic_id as well as
those from immediate children of the topic.
The function as it now stands does not recurse down to
grandchildren, great-grandchildren, etc. -- this wasn't
required in my case and could lead to problems (e.g.
the database somehow ends up with circular references).
I have attached the patch file that includes this change.
Regards,
Pat Deegan
Psychogenic.com
Patch file for class.newsstory.php changes
Logged In: YES
user_id=841117
Please post the patch on the xoops.org forums.
This is for the XOOPS core, not individual modules. I am
afraid that I don't know, who authored this module.