vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   RSS help (https://vborg.vbsupport.ru/showthread.php?t=78720)

caislander 03-24-2005 08:40 PM

RSS help
 
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>

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/showt...hlight=%3Celse

Marco van Herwaarden 03-25-2005 03:20 AM

Can't you just use a
PHP Code:

<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

Quote:

Originally Posted by MarcoH64
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
Quote:

And from which script are you calling this?
t is being used in the forumdisplay template
Quote:

Is the $forum array filled (doubt that to be honest)
How would I check?

Quote:

Originally Posted by caislander
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 :(
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 />
                              &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.


All times are GMT. The time now is 05:02 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01900 seconds
  • Memory Usage 1,753KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete