RSS feed that link to wrapped forum?

Started by jorgen, December 01, 2005, 01:32:45 AM

Previous topic - Next topic

Orstio

Thanks for the reminder.  :)

It will work, but in smf.php you need to add this:

//Don't forget XML feeds
$buffer = str_replace('<link>'.$scripturl, '<link>'.$myurl, $buffer );
$buffer = str_replace('<link>'.$scripturl, '<link>'.$myurl, $buffer );


right after this:

$buffer = str_replace('\'' . $scripturl, '\'' . $myurl, $buffer);

(Should be line 159).

phil_roy

Cool thanks. I have to hold off updating for a few days, so if anyone applies the changes that Orstio mentions, how about posting here as I'd love to see RSS feeds back in action! And thanks Orstio  :D

Phil
http://www.nzmac.com
NZMac.com - Supporting the New Zealand Mac community


Slack

Nice.

Is this only with RC3?  Or will it work with RC2?


Slack

Looks like a good reason to upgrade.  ;)

Thanks Orstio.... the SMF/Joomla-Mambo bridged combo just keeps getting better and better.  Very nice work you are doing.


mmn100

#27
I was having a similar problem as the rest of you but I created my own podcast on a Joomla site and it turns out that it is not the ampersands or question marks that were causing the problem, it is the word "option".  That is why in torkil's previous post the first one did not validate but the second one did:

Quote<link>hxxp:www.kampforum.com/index.php [nonactive]?option=com_smf&Itemid=26&?topic=9790.msg139133#msg139133</link>

I cannot find a solution to this problem on the internet but I was thinking of encoding the word option in the URL.

UPDATE: It turns out it was because I had to convert the ampersands to &amp;

Orstio

No, it's the fact that there is a second question mark in the query string.
This will validate:

<link>http://www.kampforum.com/index.php?option=com_smf&amp;Itemid=26&amp;topic=9790.msg139133#msg139133</link>

phil_roy

I activated this today but then had to switch it off, as users email addresses were being shown  :'(
Any way to make sure that people who have hidden their email address don't get their address shown?

Also...can't figure out anyway to get it to list the last 10 most recent topics that have had a post to them. Can do the last 10 posts, the last 10 new threads...but not the last 10 threads that have a new post in them?

Phil
http://www.nzmac.com
NZMac.com - Supporting the New Zealand Mac community

Kindred

no way, in the current system...   you'd have to write a mod to do that.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

dbrown

#31
In my instance, the links in the rss reader come out with /forums in the URL. I.E.:

http://www.DOMAIN.com/forums/index.php?topic=2008.msg19477#msg19477

What causes this, and how do I fix it? Thanks.

[EDIT] Nevermind...skipped right over this part:

//Don't forget XML feeds
$buffer = str_replace('<link>'.$scripturl, '<link>'.$myurl, $buffer );
$buffer = str_replace('<link>'.$scripturl, '<link>'.$myurl, $buffer );
Please do not PM me with support questions.  You will get better and faster responses by contacting someone who has a clue. Thank you.

dbrown

Any way to show the latest members, and other functions that you used to be able to do? I don't think I've got the formatting down if it's possible. Thanks.
Please do not PM me with support questions.  You will get better and faster responses by contacting someone who has a clue. Thank you.

phil_roy

Quote from: Kindred on August 28, 2006, 12:03:37 PM
no way, in the current system...   you'd have to write a mod to do that.
OK....if that's the case...what file would I hack so that all email addresses are listed "[email protected]" ?

There's just no way I can let users go through a registration process, decide not to have their email address displayed, post a message and then betray the agreement not to display their address!

Alternatively, does some clever coder have a way where the code would say "if email address = hidden, post email address as [email protected]" ?

Phil
http://www.nzmac.com
NZMac.com - Supporting the New Zealand Mac community

phil_roy

http://www.nzmac.com
NZMac.com - Supporting the New Zealand Mac community

chase_m

Quote from: Orstio on August 22, 2006, 08:44:31 AM
Thanks for the reminder.  :)

It will work, but in smf.php you need to add this:

//Don't forget XML feeds
$buffer = str_replace('<link>'.$scripturl, '<link>'.$myurl, $buffer );
$buffer = str_replace('<link>'.$scripturl, '<link>'.$myurl, $buffer );


right after this:

$buffer = str_replace('\'' . $scripturl, '\'' . $myurl, $buffer);

(Should be line 159).

What and where is this "smf.php"?

??? ??? ???

phil_roy

Once you've installed the bridge into Joomla, you'll find that file in your joomla directory/components/com_smf folder.

Phil
http://www.nzmac.com
NZMac.com - Supporting the New Zealand Mac community

chase_m

Quote from: phil_roy on August 31, 2006, 04:57:22 AM
Once you've installed the bridge into Joomla, you'll find that file in your joomla directory/components/com_smf folder.

Phil

Ah, the bridge you say?  Alrighty then.

Thanks. :D

chase_m


I am unable to CHMOD the "smf.php" file (I'm using the FTP proggie, FlashFXP), and therefore I am unable to rewrite the file.

How do I resolve this situation? 

Thanks in advance. :)


Advertisement: