Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Joomla Bridge Support => Topic started by: rucanunes on February 18, 2008, 12:26:22 PM

Title: Feed Icon Board Index problem.
Post by: rucanunes on February 18, 2008, 12:26:22 PM
Hello,

If you go to http://80.172.224.135/~salaprof/index.php?option=com_smf&Itemid=62
and click on a RSS feed icon (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.saladosprofessores.com%2Fforum%2FThemes%2Forange-lt114v1%2Fimages%2Frss.png&hash=6eb305c0eb50799d552d27b640fd1af0935b223e) everything works great!!
But once you're in this page: http://80.172.224.135/~salaprof/index.php?option=com_smf&Itemid=62&action=.xml&board=1&type=rss
and you click a topic you're redirected to the forum WITHOUT Joomla.

Is there a way to make this links redirect to the forum BUT bridged by Joomla?
Another question; is there a way to increase number of posts showed?

Thanks,
Raul Nunes
Title: Re: Feed Icon Board Index problem.
Post by: greyknight17 on February 18, 2008, 01:20:59 PM
Hi Raul, was your forum just moved to a new server?

To show more posts, increase the number of recent posts (Admin->Current Theme).
Title: Re: Feed Icon Board Index problem.
Post by: rucanunes on February 18, 2008, 01:26:55 PM
Quote from: greyknight17 on February 18, 2008, 01:20:59 PM
Hi Raul, was your forum just moved to a new server?

To show more posts, increase the number of recent posts (Admin->Current Theme).

This is my test server.
Can you help me on the links?
Title: Re: Feed Icon Board Index problem.
Post by: Kindred on February 18, 2008, 02:25:24 PM
just add the re-driect code into smf's index.php file so that people who try to access your standalone forum get automatically bounced to the bridged forum instead.

That code is in the combined readme post in the bridge specific board.
Title: Re: Feed Icon Board Index problem.
Post by: rucanunes on February 18, 2008, 03:08:07 PM
How do I do that?
Title: Re: Feed Icon Board Index problem.
Post by: rucanunes on February 18, 2008, 03:21:52 PM
Ok, I added this code to the index.php

// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false && strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false)
{
        if(!defined('_VALID_MOS')){ header("Location: /index.php?option=com_smf&Itemid=62&".$_SERVER['QUERY_STRING']); }
}


But when I click on a link at: http://80.172.224.135/~salaprof/index.php?option=com_smf&Itemid=62&action=.xml&board=1&type=rss
I get this link: http://80.172.224.135/~salaprof/index.php?option=com_smf&Itemid=62& (forum index, not the actual Post).

What am I doing wrong?...
Title: Re: Feed Icon Board Index problem.
Post by: rucanunes on February 18, 2008, 03:27:12 PM
Quote from: greyknight17 on February 18, 2008, 01:20:59 PM
Hi Raul, was your forum just moved to a new server?

To show more posts, increase the number of recent posts (Admin->Current Theme).

I have 10 there but it's only showing 5 in RSS.
On the forum, at the bottom, I have 10 recent posts...
Title: Re: Feed Icon Board Index problem.
Post by: Orstio on February 18, 2008, 04:54:26 PM
QuoteJoomla Bridge by JoomlaHacks.com

You will find better support for that at joomlahacks.com.
Title: Re: Feed Icon Board Index problem.
Post by: rucanunes on February 18, 2008, 07:14:34 PM
Strange! When I add this code to the index.php:
// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false && strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false)
{
        if(!defined('_VALID_MOS')){ header("Location: /index.php?option=com_smf&Itemid=62&".$_SERVER['QUERY_STRING']); }
}


Preview stops working with this error:

getElementByTagName(...).0" is null or is not an object

Can someone please help me?