The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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/ex...=rss&forumids= I also tried to use a conditional with Code:
<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> ![]() thanks |
#2
|
|||
|
|||
![]()
Here is a good explaination by Floris. There is no elseif.
http://www.vbulletin.com/forum/showt...hlight=%3Celse |
#3
|
|||
|
|||
![]()
Can't you just use a
PHP Code:
|
#4
|
|||
|
|||
![]()
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 |
#5
|
|||
|
|||
![]()
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) |
#6
|
||||
|
||||
![]() Quote:
Quote:
Quote:
Quote:
![]() Code:
<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 /> </if> </if> </if> </if> </if> </if> </if> </if> </if> </if> </if> </if> </if> </if> </if> </if> 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 ![]() 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 ?? |
#7
|
|||
|
|||
![]()
Glad you solved it.
To avoid people bumping a post too much, all replies to your own posts within 24 hours are auto-merged. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|