Page 21 of 29

Posted: Fri Nov 25, 2005 8:35 pm
by MHobbit
Unlocked at author's request.

Posted: Fri Nov 25, 2005 8:57 pm
by chyduskam
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.

Posted: Sun Nov 27, 2005 12:03 pm
by bugfixed
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

Posted: Sun Nov 27, 2005 3:59 pm
by chyduskam
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.

Posted: Mon Nov 28, 2005 9:11 am
by bugfixed
chyduskam thanks.

Posted: Mon Nov 28, 2005 11:27 am
by dcz
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.

++
++

Posted: Mon Nov 28, 2005 2:35 pm
by bugfixed
very thanks dcz :wink: :)
Please see my rss Click here!

Posted: Mon Nov 28, 2005 2:49 pm
by dcz
bugfixed wrote: very thanks dcz :wink: :)
Please see my rss Click here!


You did it ! ;)

++

Posted: Wed Nov 30, 2005 3:52 am
by ridinhighspeeds
Have the same problem...

Posted: Wed Nov 30, 2005 3:56 am
by ridinhighspeeds
nm...found the fix. Thanks lol

Posted: Thu Dec 01, 2005 5:10 pm
by ridinhighspeeds
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',

Posted: Thu Dec 01, 2005 5:24 pm
by dcz
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.


++

Posted: Sun Dec 04, 2005 8:44 am
by -ds-
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.

Posted: Sun Dec 04, 2005 4:17 pm
by chyduskam
-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

Posted: Wed Dec 07, 2005 10:56 pm
by -ds-
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