| |
|
| :: |
| Author |
Message |
digdigger
Joined: 26 Sep 2007 Posts: 12
|
Posted: Fri Aug 01, 2008 2:17 pm Post subject: Link to specific RSS-Channel in Forum & Topic |
|
|
First, I have to thank you for this great Mod. I installed them without any probs, only I have to investigate all the features for hours ... it's really great.
On a new forum http://latinofreunde.net I modified the Feed-Link in the Meta-Header an Footer for the digest-feed (I will not offer only headline-Feeds). The URI-Rewrite works fantastic and there are many possibilities for the users - IF THEY KNOW THEM.
It's clear, that I have to explain all the features to the users, but I like it to make it easy for them (so after some investigations, it's for most of them complicated to find the xml-Link in the channel-list on the right side so they click on the headline which links to the normal forum or topicview) ....
So I wish insert the xml-Link to the forum, so it's easy with one-click to subscribe for a specific (sub)forum feed - always the same feed like the last link of the breadcrumb.
Example:
HomePage >> Category >> Forum >> Subforum | Link to xml of Subforum
But at this point, I need your help. The URI of the (sub)forum is http://latinofreunde.net/chile.html
The Link to the xml is http://latinofreunde.net/chile/digest/forum.xml
So I need a Variable to show up the xml-link in forum/topic-view ... I think, this is very useful to subscribe for a few specific feeds directly in the normal forum view for the user without searching first the channel link and after that the specific forum in 190 forum/sumforums
If you follow the forum link above, you'll find on the right-side in the line of the breadcrumb the link (which not works until now) .... the transation is like: "Subscribe the RSS-Feed for this forum"
So, I'm very happy if you've got any ideas about this.
Greetings from Brazil, digdigger |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3472
|
Posted: Fri Aug 01, 2008 4:46 pm Post subject: Re: Link to specific RSS-Channel in Forum & Topic |
|
|
This should be added to the auto linking system in the future versions.
It's not done yet because the general case is a bit tricky and we were not working on this part lately.
I don't thinks it will be aded in B3 though, but we added a feed parser to display links anywhere in phpBB in B3 :
http://phpbb3.phpbb-seo.net/demo/rss-links.php
http://phpbb3.phpbb-seo.net/demo/rss-messages.php
Until then, if you know a bit of code, you could build the links yourself using the phpbb_seo class variables :
| Code: | | $phpbb_seo->seo_url['forum'][$forum_id] |
is the variable that will contain the forum url bit ('chile' in your example), it's always filled when forum url cache is activated so, you can use this to manually build the links for you needs.
++ |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
digdigger
Joined: 26 Sep 2007 Posts: 12
|
Posted: Fri Aug 01, 2008 8:55 pm Post subject: Re: Link to specific RSS-Channel in Forum & Topic |
|
|
Thanks for this fast reply.
I tried it first for the viewforum.php
So I put a variable to the template viewforum_body.html
| Code: | | <a href="{FORUM_RSS}" >Subscribe the xml!</a> |
In the /includes/functions.php I've put this variable into a big block of variables, like
| Code: | | 'U_INDEX' => append_sid("{$phpbb_root_path}index.$phpEx"), |
after that, I added
| Code: | | 'FORUM_RSS' => "{$phpbb_root_path}" . $phpbb_seo->seo_url['forum'][$forum_id] . 'digest/forum.xml', |
So I am a php noob, don't know where I have to declare a function or anything else ...
Fact is, after parsing, I will find the following link on my website:
| Code: | | <a href="http://latinofreunde.net/digest/forum.xml" >Subscribe the xml!</a> |
So this seo_class variable in the middle is missing. Where I have to make a "connection" that while parsing, so that "chile" will be inside the link?
Or it is more complicated than I think? Or exists a better place for define the variable ...
Thanks for your great help! |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14131
|
|
| Back to top |
|
 |
digdigger
Joined: 26 Sep 2007 Posts: 12
|
Posted: Mon Aug 04, 2008 1:13 pm Post subject: Re: Link to specific RSS-Channel in Forum & Topic |
|
|
Hello, thanks for this tip, but this will work (in functions.php) only with topics, not with forums.
So I put the variable out of functions.php in the specific files:
>> viewtopic.php
SEARCH
| Code: | // Send vars to template
$template->assign_vars(array(
'FORUM_ID' => $forum_id, |
AFTER, ADD
| Code: | // RSS-FORUM LINK (Build the Forum Link)
'FORUM_RSS' => "{$phpbb_root_path}" . $phpbb_seo->seo_url['forum'][$forum_id] . '/digest/forum.xml',
// RSS-FORUM LINK |
>> viewforum.php
FIND
| Code: |
$template->assign_vars(array(
'MODERATORS' => (!empty($moderators[$forum_id])) ? implode(', ', $moderators[$forum_id]) : '', |
AFTER, ADD
| Code: | // RSS-FORUM LINK (Build the Forum Link)
'FORUM_RSS' => "{$phpbb_root_path}" . $phpbb_seo->seo_url['forum'][$forum_id] . '/digest/forum.xml',
// RSS-FORUM LINK |
So this will show up the correct (in my case the digest) forum feed for the specific forum in forumview and topic.
It works great and it's for me a big thing for usability. |
|
|
| Back to top |
|
 |
digdigger
Joined: 26 Sep 2007 Posts: 12
|
Posted: Mon Aug 04, 2008 1:39 pm Post subject: Re: Link to specific RSS-Channel in Forum & Topic |
|
|
First, I have to thank you once more for your great support.
One more question:
For this release, you didn't realized a "category" Feed ...
http://phpbb3.phpbb-seo.net/english-section/forum.xml
In my forum I work the first time with categories like caribic, south-america, latinamerica and specific countries. Each category has 5 or more forums.
category: south-america
(sub)category: chile
forum: chile-infos, chile-news, chile-politics ....
The Forum Feeds are working well (see the post above), but like in your testforum, the category-feed-link gives a "401 Unauthorized".
So I tried out to declare the category like a normal forum. Logically, the feed will work directly, but empty, so the feeds / topics of the subforums are not included ....
There are any plans to realize this great feature, so the user did not need to subscribe a lot of single forum feeds (for south-america there are neary 50!!!) and only the category or (sub)category feed?
I know, this means a big modification of these mod, so this is only a question for future releases ...
Greetz from a cold winter morning in the south of brazil (8 degrees),
DigDigger |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14131
|
Posted: Wed Aug 06, 2008 8:00 am Post subject: Re: Link to specific RSS-Channel in Forum & Topic |
|
|
| digdigger wrote: |
Greetz from a cold winter morning in the south of brazil (8 degrees),
DigDigger |
Gawd, 8 degrees in Brazil, is that possible
So, right now, the mods does only list the postable forums, meaning, no categories and no forum link listing.
Could actually be great to enable category listing, to directly list all sub forums, as you say, it's something that could be added in the future.
Until then, you could use the :
| Code: | | $forum_data['forum_type'] == FORUM_POST |
test, to output or not the rss link
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
digdigger
Joined: 26 Sep 2007 Posts: 12
|
Posted: Wed Aug 06, 2008 1:56 pm Post subject: Re: Link to specific RSS-Channel in Forum & Topic |
|
|
Yes, down to zero degree on a very cold winter morning.
I found a place in viewforum.php
>> viewforum.php
| Code: | make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"), $forum_id);
$template->assign_vars(array(
|
AFTER, ADD:
| Code: | // RSS-CAT LINK (Build the Category Link)
'CAT_RSS' => "{$phpbb_root_path}" . $phpbb_seo->seo_url['forum'][$forum_id] . '/digest/forum.xml',
// RSS-CAT LINK |
So in the Forumview which lists subforums the link will show up.
>> viewforum_body.html
FIND:
| Code: | | <!-- IF S_HAS_SUBFORUM --> |
AFTER, ADD:
| Code: | <a href="{CAT_RSS}" title="RSS-Feed nur dieser Kategorie abonnieren" ></a><img src="/gym_sitemaps/images/feed-icon.png" alt="RSS 2.0 feed link"/></div><a href="{CAT_RSS}" title="RSS-Feed dieser Kategorie abonnieren" >
<b>{FORUM_NAME} - RSS-Feed</b></a> |
But this was only the first step, because like I wrote before, the Link gives a "401 Unauthorized"
So I'm thinking to use a third part tool like "feed combiner" or a web service to build a feed from various forums and declare in another way with using the forumID-snippet ....
I tried it with the first category "Organisation" which includes three forums.
The id is "organisatorisches"
I build the category feed-link in this way:
| Code: | // RSS-CAT LINK (Build the Forum Link)
'CAT_RSS' => "{$phpbb_root_path}feed/" . $phpbb_seo->seo_url['forum'][$forum_id] . '/rss2.php',
// RSS-CAT LINK |
On root, I create a folder /feed/organisatorisches
The feed-Folder is only to get the root clear. I put the feed combiner ( http://jowra.com/journal/2006/10/rss-combiner/ ) in and build a new feed with the three xml feeds from your mod, which are in this category
The outside of feed is always /path-to-rss-combiner/rss2.php or atom.php
In this way, the specific folder must have the same name like the forumID
So you can check it, if you want:
http://latinofreunde.net/feed/organisatorisches/rss2.php
But this is only handmade, needs the script in every folder again and again (because the script can only manage one combined feed) and at least it's a lot of work - I have to do this at latinofreunde for 50 or more feeds!
My homemade solution until you will release in a few weeks the future version of the biggest rss-mod in the history of phpbb ....
Greetz from Brazil ...
DigDigger |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14131
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|