[ABD] RSS Feed 2.2.4

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Locked
User avatar
MHobbit
Former Team Member
Posts: 4761
Joined: Thu Mar 18, 2004 5:32 pm
Location: There and Back Again

Post by MHobbit » Fri Nov 25, 2005 8:35 pm

Unlocked at author's request.
Former phpBB MOD Team member
No private support is offered.
"There’s too many things to get done, and I’m running out of days..."

chyduskam
Registered User
Posts: 110
Joined: Thu Oct 28, 2004 9:33 am
Location: Saint Petersburg, Russia
Contact:

Post by chyduskam » Fri Nov 25, 2005 8:57 pm

First off all I'm sorry for long absent.
I made some cosmetic fix in code. As I think if you have ver. 2.2.3 installed you be able to do nothing.
I'm looking forward to next version with new ability.

bugfixed
Registered User
Posts: 101
Joined: Sun Apr 04, 2004 2:57 am
Location: Turkey
Name: Murat
Contact:

Post by bugfixed » Sun Nov 27, 2005 12:03 pm

hello all. thanks for mod.

I'm using mod rewrite phpbb forum.

Go to rss page .

my forum link display ex. "viewtopic.php?t=2583"

but mod_rewrite forum link display "about1568.html"

what adapted mod_rewrite my rss Url's ?

thanks.

forum version : 2.0.18
rss naklon version : 2.2.4

chyduskam
Registered User
Posts: 110
Joined: Thu Oct 28, 2004 9:33 am
Location: Saint Petersburg, Russia
Contact:

Post by chyduskam » Sun Nov 27, 2005 3:59 pm

bugfixed wrote: my forum link display ex. "viewtopic.php?t=2583"
but mod_rewrite forum link display "about1568.html"


As I think and if I understand your problem you need to change code

Code: Select all

'POST_URL' => $viewpost_url . '?' . POST_POST_URL . '=' . $post['post_id'] . '#' . $post['post_id'],
			'FIRST_POST_URL' => $viewpost_url . '?' . POST_POST_URL . '=' . $post['topic_first_post_id'] . '#' . $post['topic_first_post_id'],
			'REPLY_URL'=>$replypost_url."&".POST_POST_URL."=".$post['post_id'],
But, as you can see, rss feed mod is not use letter 't' in output XML. Try to modify that lines according to your task.

bugfixed
Registered User
Posts: 101
Joined: Sun Apr 04, 2004 2:57 am
Location: Turkey
Name: Murat
Contact:

Post by bugfixed » Mon Nov 28, 2005 9:11 am

chyduskam thanks.

dcz
Registered User
Posts: 787
Joined: Sun Feb 13, 2005 5:37 am
Contact:

Post by dcz » Mon Nov 28, 2005 11:27 am

bugfixed wrote: hello all. thanks for mod.

I'm using mod rewrite phpbb forum.

Go to rss page .

my forum link display ex. "viewtopic.php?t=2583"

but mod_rewrite forum link display "about1568.html"

what adapted mod_rewrite my rss Url's ?

thanks.

forum version : 2.0.18
rss naklon version : 2.2.4


Well, I don't understant, as this seems quite normal to have rewrited urls with mod rewrite ;)
in your case "about1568.html" = "viewtopic.php?t=1568" and this is totally transparent regarding any type of mod, as your .htaccess tells php, when you load "about1568.html" to consider "viewtopic.php?t=1568" instead. so the t var is still used correctly, and this does not interfer with rss mod.

So maybe you are talking about rewriting the links provided by feeds, for that just hard code your url standard in the mod :

Code: Select all

'POST_URL' => $viewpost_url . '?' . POST_POST_URL . '=' . $post['post_id'] . '#' . $post['post_id'], 
becomes :

Code: Select all

'POST_URL' => 'http://yourdomain.com/phpbbfolder/viewpost' . $post['post_id'] . '.html#' . $post['post_id'], 
Where viewpost stands for you rewriting convention for posts (different for sure), as it seems that about stand for topics . Do the sams for last post.

++
++

phpBB SEO || phpBB3 SEO Premod || SEO phpBB3
GYM Sitemaps & RSS for phpBB3: GYM Sitemaps & RSS

bugfixed
Registered User
Posts: 101
Joined: Sun Apr 04, 2004 2:57 am
Location: Turkey
Name: Murat
Contact:

Post by bugfixed » Mon Nov 28, 2005 2:35 pm

very thanks dcz :wink: :)
Please see my rss Click here!

dcz
Registered User
Posts: 787
Joined: Sun Feb 13, 2005 5:37 am
Contact:

Post by dcz » Mon Nov 28, 2005 2:49 pm

bugfixed wrote: very thanks dcz :wink: :)
Please see my rss Click here!


You did it ! ;)

++

phpBB SEO || phpBB3 SEO Premod || SEO phpBB3
GYM Sitemaps & RSS for phpBB3: GYM Sitemaps & RSS

ridinhighspeeds
Registered User
Posts: 105
Joined: Tue Jan 25, 2005 1:53 am
Location: MA
Contact:

Post by ridinhighspeeds » Wed Nov 30, 2005 3:52 am

Have the same problem...
Last edited by ridinhighspeeds on Wed Nov 30, 2005 3:57 am, edited 1 time in total.

ridinhighspeeds
Registered User
Posts: 105
Joined: Tue Jan 25, 2005 1:53 am
Location: MA
Contact:

Post by ridinhighspeeds » Wed Nov 30, 2005 3:56 am

nm...found the fix. Thanks lol

ridinhighspeeds
Registered User
Posts: 105
Joined: Tue Jan 25, 2005 1:53 am
Location: MA
Contact:

Post by ridinhighspeeds » Thu Dec 01, 2005 5:10 pm

Made the changes...Google is denying the URL's because they look like this:

http://defendingthetruth.com/viewpost19362.html#19362

So I made the following changes:

Code: Select all

'POST_URL' => 'http://yourdomain.com/phpbbfolder/viewpost' . $post['post_id'] . '.html#' . $post['post_id'],
becomes

Code: Select all

'POST_URL' => 'http://yourdomain.com/phpbbfolder/viewpost' . $post['post_id'] . '.html',

dcz
Registered User
Posts: 787
Joined: Sun Feb 13, 2005 5:37 am
Contact:

Post by dcz » Thu Dec 01, 2005 5:24 pm

A cool thing to add would be the possibility to edit the pub date somewhere, could be while posting, so that, for example, if you announce something for the future, you can set the pub date to be the event's date, like some news site does in order to facilitate classification when those feeds are being sorted by date in agregators. This way, events add can show up on the day they are supposed to happen, and are not disapearing to fast from the list, as being considererd old.

This way, agregators will keep it up until the event is past.
I really think this could be a great thing to add.


++

phpBB SEO || phpBB3 SEO Premod || SEO phpBB3
GYM Sitemaps & RSS for phpBB3: GYM Sitemaps & RSS

User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

Post by -ds- » Sun Dec 04, 2005 8:44 am

For some reason it still includes the unauthorised forums topics in the feeds.

I have edited the rss_config.php and added the forum ids that are for admins only.

$unauthed='0,14,15,16';


However, If I simply receive the feeds in my reader the topics posted in those forums are still shown. I have used multiple browsers and tried this when i am not logged in etc .. It still shows the forum titles & thread titles in the admon only forums. How can I make it so they won't be shown to unregistered users or users that aren't admins. In fact I don't want to display them at all. Any help on this would be great.

edit: The above seems to work now ;)

My second question is, I have the cms articles mod installed and a links page, both of wich also display the rss symbol, as I have used the autodiscovery mod in the page_header.php. Can I tell it to not show the rss feeds for certain pages? eg links.php or cms_articles.php etc

Thanks.

chyduskam
Registered User
Posts: 110
Joined: Thu Oct 28, 2004 9:33 am
Location: Saint Petersburg, Russia
Contact:

Post by chyduskam » Sun Dec 04, 2005 4:17 pm

-ds- wrote: edit: The above seems to work now ;)

My second question is, I have the cms articles mod installed and a links page, both of wich also display the rss symbol, as I have used the autodiscovery mod in the page_header.php. Can I tell it to not show the rss feeds for certain pages? eg links.php or cms_articles.php etc


1. I'm glad to see it.
2. I think, for example, you can define constant like
define('NO_AUTODISCOVERY',true);
in start of code in links.php or cms_articles.php
after that you can modified page_header.php
Change

Code: Select all

$nav_links_html.=$rss_link; //  RSS autodiscovery
to

Code: Select all

if(!defined('NO_AUTODISCOVERY')) $nav_links_html.=$rss_link; //  RSS autodiscovery

User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

Post by -ds- » Wed Dec 07, 2005 10:56 pm

chyduskam wrote: 1. I'm glad to see it.
2. I think, for example, you can define constant like
define('NO_AUTODISCOVERY',true);
in start of code in links.php or cms_articles.php
after that you can modified page_header.php
Change

Code: Select all

$nav_links_html.=$rss_link; //  RSS autodiscovery
to

Code: Select all

if(!defined('NO_AUTODISCOVERY')) $nav_links_html.=$rss_link; //  RSS autodiscovery


Many thanks, that worked a treat 8) :P

Locked

Return to “[2.0.x] MODs in Development”