RSS Newsfeed into a Group

Joey Champion Posted in General Discussion 6 months ago

Is it possible to add and RSS Feed into a Group?
I downloaded and edited the RSS Feed component and changed the hook from "newsfeed" to the "Group/Group ID number" (Group/1462).
Well, that didn't work.
Anyone know if this is possible?
Thanks,
Joey

Replies
in Melanie Duffy Replied 6 months ago

good information over here, Thanks for sharing the info.

us Joey Champion Replied 6 months ago

Thank you @Barbara Martinez, you were correct. However, Michael's explaination helped me to achieve the desired results of adding an RSS feed in the Group. It is working as I had hoped it would.
You can see it in action here...
https://odd.news/group/1462/

Dutch Barbara Martinez Replied 6 months ago

It is not possible to directly add an RSS feed into a group by
modifying the hook in the RSS feed component. The hook newsfeed is a
generic identifier for the news feed component and changing it to
Group/Group ID number will not achieve the desired result.

Is this information useful for you or not.?

us Joey Champion Replied 6 months ago

(Big smile on my face 🙂)...
Thank you Michael, as usual you came to the rescue. I implemented the changes you so eloquently described. (Your an excellent educator).
Bravo! It works just as you said.
Thank you my friend!

German Michael Z├╝lsdorff Replied 6 months ago

Well, to understand the way Ossn hooks are working, let's picture a real world example:
I know a gifted video producer, and aside from his daily routine he agreed to check his incoming mails continously for new jobs.
Thus, I would set up a hook like

ossn_add_hook('joey', 'champion', 'create_a_movie_from_script_33');

I think it's obvious that this can only work if
1. joey exists
2. joey checks his mails as agreed
Or to put it this way: Simply addressing the same job into the blue to someone else like

ossn_add_hook('anyother', 'champion', 'create_a_movie_from_script_33');

will fail - even if script_33 comes included with all necessary details.

In fact, every ossn_add_hook needs a matching counterpart ossn_call_hook to look into new tasks and execute them (here it's joey checking his mails :) )

Okay, so before trying to channel something into a Group, we have to grep for a usable call_hook inside of the Groups component, and in fact there is one:

ossn_call_hook('group', 'widgets', $params);

responsible for adding widgets to the right column. So, using it for your RSS-Feed, means changing your line to:

ossn_add_hook('group', 'widgets', 'com_rss_widget');
Dutch Barbara Martinez Replied 6 months ago

It is not possible to directly add an RSS feed into a group by modifying the hook in the RSS feed component. The hook newsfeed is a generic identifier for the news feed component and changing it to Group/Group ID number will not achieve the desired result.