Log in

View Full Version : RSS help


caislander
03-24-2005, 08:40 PM
I am trying to add an RSS feed link for a given forum to our display options block for that forum but am not sure how to (or even if it is possible) , I have tried replacing the forum number of the rss url with
http://www.webxpertz.net/forums/external.php?type=rss&forumids=$forum[forumid]
which just produces http://www.domain_name.net/forums/external.php?type=rss&forumids=
I also tried to use a conditional with
<if condition="$forum[forumid]=1">
<a href="http://www.domain_name.net/forums/external.php?type=rss&forumids=1" target="_blank">RSS</a>
<elseif />
<if condition="$forum[forumid]=3">
<a href="http://www.domain_name.net/forums/external.php?type=rss&forumids=3" target="_blank">RSS</a>
<elseif />
<if condition="$forum[forumid]=75">
<a href="http://www.domain_name.net/forums/external.php?type=rss&forumids=75" target="_blank">RSS</a>
<elseif />
<if condition="$forum[forumid]=74">
<a href="http://www.domain_name.net/forums/external.php?type=rss&forumids=74" target="_blank">RSS</a>
<elseif />
<if condition="$forum[forumid]=54">
<a href="http://www.domain_name.net/forums/external.php?type=rss&forumids=54" target="_blank">RSS</a>
<elseif />
<if condition="$forum[forumid]=4">
<a href="http://www.domain_name.net/forums/external.php?type=rss&forumids=4" target="_blank">RSS</a>
<elseif />
<if condition="$forum[forumid]=46">
<a href="http://www.domain_name.net/forums/external.php?type=rss&forumids=46" target="_blank">RSS</a>
<elseif />
<if condition="$forum[forumid]=5">
<a href="http://www.domain_name.net/forums/external.php?type=rss&forumids=5" target="_blank">RSS</a>
<elseif />
<if condition="$forum[forumid]=6">
<a href="http://www.domain_name.net/forums/external.php?type=rss&forumids=6" target="_blank">RSS</a>
<else />
:)
</if> but <elseif /> doesn?t work :( is there some other way to do this (I know there must be) any thought would be appreciated.

thanks

noppid
03-24-2005, 08:48 PM
Here is a good explaination by Floris. There is no elseif.

http://www.vbulletin.com/forum/showthread.php?t=87592&highlight=%3Celse

Marco van Herwaarden
03-25-2005, 03:20 AM
Can't you just use a
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=$forum[forumid]" target="_blank">RSS</a>
Without all the if statements?

caislander
03-25-2005, 02:42 PM
Marco64,

I tried that first thing but it only produced
http://www.webxpertz.net/forums/ext...e=rss&forumids= so appearently that variable won't work in that template

Marco van Herwaarden
03-25-2005, 07:25 PM
You are aware that the external script is trying to get posts logged in as a guest?

And from which script are you calling this? Is the $forum array filled (doubt that to be honest)

caislander
03-25-2005, 09:41 PM
You are aware that the external script is trying to get posts logged in as a guest?Yes but ammending doesn't even appear to work on the forums that a guest wouldd have access to
And from which script are you calling this? t is being used in the forumdisplay template
Is the $forum array filled (doubt that to be honest)How would I check?

Yes but ammending doesn't even appear to work on the forums that a guest wouldd have access to t is being used in the forumdisplay template
How would I check?
I tried this code also and was unable to get it to work either :(
<if condition="$forum[forumid]=1">
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=1" target="_blank">RSS</a>
<else />
<if condition="$forum[forumid]=3">
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=3" target="_blank">RSS</a>
<else />
<if condition="$forum[forumid]=75">
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=75" target="_blank">RSS</a>
<else />
<if condition="$forum[forumid]=74">
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=74" target="_blank">RSS</a>
<else />
<if condition="$forum[forumid]=54">
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=54" target="_blank">RSS</a>
<else />
<if condition="$forum[forumid]=4">
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=4" target="_blank">RSS</a>
<else />
<if condition="$forum[forumid]=46">
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=46" target="_blank">RSS</a>
<else />
<if condition="$forum[forumid]=5">
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=5" target="_blank">RSS</a>
<else />
<if condition="$forum[forumid]=6">
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=6" target="_blank">RSS</a>
<else />
<if condition="$forum[forumid]=11">
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=11" target="_blank">RSS</a>
<else />
<if condition="$forum[forumid]=76">
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=76" target="_blank">RSS</a>
<else />
<if condition="$forum[forumid]=77">
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=77" target="_blank">RSS</a>
<else />
<if condition="$forum[forumid]=78">
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=78" target="_blank">RSS</a>
<else />
<if condition="$forum[forumid]=79">
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=79" target="_blank">RSS</a>
<else />
<if condition="$forum[forumid]=7">
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=7" target="_blank">RSS</a>
<else />
<if condition="$forum[forumid]=88">
<a href="http://www.webxpertz.net/forums/external.php?type=rss&forumids=88" target="_blank">RSS</a>
<else />
&nbsp;
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>

MarcoH64,

We were able to find a solution that seems to work, instead of using $forum[forumid] we used $foruminfo[forumid] and it apprear to work fine.

Thanks much for the help with this :cool:

ps: what is up with all my replies being put into one post???? I have used quick reply and regular reply and it just keeps making my previous post longer, instead on posting another reply ??

Marco van Herwaarden
03-26-2005, 05:29 AM
Glad you solved it.

To avoid people bumping a post too much, all replies to your own posts within 24 hours are auto-merged.