Results 1 to 9 of 9

content on certain forums

This is a discussion on content on certain forums within the Template Modifications forums, part of the vBulletin SEO Discussion category; I am trying to add links to the bottom of my forum, but I want to show them in certain ...

  1. #1
    Senior Member
    Real Name
    Matt
    Join Date
    May 2006
    Posts
    973
    Liked
    3 times

    content on certain forums

    I am trying to add links to the bottom of my forum, but I want to show them in certain forums, and some forums will have different links.

    This is what I have placed in my footer template

    Code:
    <!-- ads edit start -->
    <if condition = $forum[forumid] == '89'"> 
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    <else /> 
    <if condition = "$forum[forumid] == '94'">
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    <else /> 
    <if condition = "$forum[forumid] == '122'">
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    <else /> 
    <if condition = "$forum[forumid] == '126'">
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    <else /> 
    <if condition = "$forum[forumid] == '263'">
    <a href="http://www.runescape.in/" target="_blank" rel="nofollow" alt="Runescape,Runescape Gold,Runescape Money,Runescape Yew logs,www.Runescape.in</a>
    <else /> 
    </if>
    <!-- ads edit end -->
    But it is showing them on every page, instead of being only those selected forums.

    Any ideas what I have done wrong?

  2. #2
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,998
    Liked
    11 times
    You need as many </if>s as you have <if>s.

    Ie:

    Code:
    <a href="http://www.runescape.in/" target="_blank" rel="nofollow" alt="Runescape,Runescape Gold,Runescape Money,Runescape Yew logs,www.Runescape.in</a>
    <else /> 
    </if></if></if></if></if>
    Try that at the end.

  3. #3
    Senior Member
    Real Name
    Matt
    Join Date
    May 2006
    Posts
    973
    Liked
    3 times
    my new code

    Code:
    <!-- ads edit start -->
    <if condition = $forum[forumid] == '89'"> 
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    <else /> 
    <if condition = "$forum[forumid] == '94'">
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    <else /> 
    <if condition = "$forum[forumid] == '122'">
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    <else /> 
    <if condition = "$forum[forumid] == '126'">
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    <else /> 
    <if condition = "$forum[forumid] == '263'">
    <a href="http://www.runescape.in/" target="_blank" rel="nofollow" alt="Runescape,Runescape Gold,Runescape Money,Runescape Yew logs,www.Runescape.in</a>
    <else /> 
    </if></if></if></if></if>
    <!-- ads edit end -->
    Still shows every link on every page. any other ideas?

  4. #4
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,998
    Liked
    11 times
    If I recall correctly, each <if> has to be alone, don't use <else /> statements.

  5. #5
    Senior Member
    Real Name
    Matt
    Join Date
    May 2006
    Posts
    973
    Liked
    3 times
    This is my new code

    Code:
    <!-- ads edit start -->
    <if condition = $forum[forumid] == '89'"> 
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    </if>
    <if condition = "$forum[forumid] == '94'">
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    </if>
    <if condition = "$forum[forumid] == '122'">
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    </if> 
    <if condition = "$forum[forumid] == '126'">
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    </if>
    <if condition = "$forum[forumid] == '263'">
    <a href="http://www.runescape.in/" target="_blank" rel="nofollow" alt="Runescape,Runescape Gold,Runescape Money,Runescape Yew logs,www.Runescape.in</a>
    </if>
    <!-- ads edit end -->
    It is still showing every link on every page. any other ideas?

  6. #6
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,998
    Liked
    11 times
    For starters, the first line is missing a " before $forum.

    (You are aware that those sites are illegal, and the people you send to them will end up being banned from the games, right?)

  7. #7
    Senior Member
    Real Name
    Matt
    Join Date
    May 2006
    Posts
    973
    Liked
    3 times
    Quote Originally Posted by Ace Shattock View Post
    For starters, the first line is missing a " before $forum.

    (You are aware that those sites are illegal, and the people you send to them will end up being banned from the games, right?)
    hopefully they wont, but need to earn money, so a little advertising link in the footer is my solution for now.


    here is my new code

    Code:
    <!-- ads edit start -->
    <if condition = "$forum[forumid] == '89'"> 
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    </if>
    <if condition = "$forum[forumid] == '94'">
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    </if>
    <if condition = "$forum[forumid] == '122'">
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    </if> 
    <if condition = "$forum[forumid] == '126'">
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    </if>
    <if condition = "$forum[forumid] == '263'">
    <a href="http://www.runescape.in/" target="_blank" rel="nofollow" alt="Runescape,Runescape Gold,Runescape Money,Runescape Yew logs,www.Runescape.in</a>
    </if>
    <!-- ads edit end -->
    Still showing every link on every page. I have tried everything I can think of, it must be something simple :/

  8. #8
    Senior Member
    Real Name
    Matt
    Join Date
    May 2006
    Posts
    973
    Liked
    3 times
    update this part works

    Code:
    <!-- ads edit start -->
    <if condition="$forum[forumid] == '94'">
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    </if>
    <if condition="$forum[forumid] == '122'">
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    </if> 
    <if condition="$forum[forumid] == '126'">
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">VIRGOODS.com</a>
    </if>
    <if condition="$forum[forumid] == '263'">
    <a href="http://www.runescape.in/" target="_blank" rel="nofollow" alt="Runescape,Runescape Gold,Runescape Money,Runescape Yew logs,www.Runescape.in</a>
    </if>
    <!-- ads edit end -->
    Now going back to something earlier, how do you enter in multiple forums?

    this is what I tried

    Code:
    <!-- ads edit start -->
    <if condition="!in_array($forum[forumid], array(89,90,93,235,312,316))"> 
    <a href="http://www.virgoods.com/" target="_blank" rel="nofollow" alt="Buy WoW Gold, LOTRO Gold, Guild Wars Gold, VIRGOODS.com">Maple Story</a>
    </if>
    <!-- ads edit end -->
    But it just displayed it on every page, this is a completely new statement for me.

  9. #9
    Senior Member
    Real Name
    Matt
    Join Date
    May 2006
    Posts
    973
    Liked
    3 times
    Update got it to all work perfect now. I had to use a global statement.

    thanks for all the help tho.

Similar Threads

  1. The vBSEO LinkBacks User Guide - vBSEO 3.0 GOLD
    By Joe Ward in forum General Discussion
    Replies: 49
    Last Post: 09-20-2011, 08:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •