Results 1 to 3 of 3

How do I make this conditional work?

This is a discussion on How do I make this conditional work? within the Troubleshooting forums, part of the vBSEO SEO Plugin category; How do I make this conditional work? Before installing vBSEO I had the following conditionals in my FORUMDISPLAY template: <if ...

  1. #1
    Junior Member Array
    Real Name
    Michael Dengler
    Join Date
    Jun 2006
    Posts
    10
    Liked
    0 times

    How do I make this conditional work?

    How do I make this conditional work?

    Before installing vBSEO I had the following conditionals in my FORUMDISPLAY template:

    <if condition="$foruminfo['forumid'] == 3">$rsseng</if>
    <if condition="$foruminfo['forumid'] == 4">$rssaus</if>
    <if condition="$foruminfo['forumid'] == 5">$rsssaf</if>
    <if condition="$foruminfo['forumid'] == 6">$rsspak</if>
    <if condition="$foruminfo['forumid'] == 7">$rssind</if>
    <if condition="$foruminfo['forumid'] == 8">$rssnz</if>
    <if condition="$foruminfo['forumid'] == 9">$rsssl</if>
    <if condition="$foruminfo['forumid'] == 11">$rssbd</if>
    <if condition="$foruminfo['forumid'] == 10">$rsszim</if>
    <if condition="$foruminfo['forumid'] == 12">$rsswi</if>
    <if condition="$foruminfo['forumid'] == 67">$rsswc</if>

    The vBSEO setting I'm using is: 001 - Hierarchic .html type URLs with content relevant forums and threads (Default Settings)

    Since there is no forumid in the URL now how do I make the conditional work? For example: if I display http://world-a-team.com/australia-cricket-forum/ how do I get $rssaus to run?

  2. #2
    vBSEO.com Webmaster Array Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,463
    Liked
    721 times
    Blog Entries
    4
    The forumid's are already processed so you can still use the same if conditions
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  3. #3
    Junior Member Array
    Real Name
    Michael Dengler
    Join Date
    Jun 2006
    Posts
    10
    Liked
    0 times
    Thanks, Mert. Those conditionals worked once I created a plugin with the following PHP code:

    ob_start();
    require("rssaus.php");
    $rssaus = ob_get_contents();
    ob_end_clean();
    ob_start();
    require("rsseng.php");
    $rsseng = ob_get_contents();
    ob_end_clean();
    ob_start();
    require("rssind.php");
    $rssind = ob_get_contents();
    ob_end_clean();
    ob_start();
    require("rssnz.php");
    $rssnz = ob_get_contents();
    ob_end_clean();
    ob_start();
    require("rsspak.php");
    $rsspak = ob_get_contents();
    ob_end_clean();
    ob_start();
    require("rsssaf.php");
    $rsssaf = ob_get_contents();
    ob_end_clean();
    ob_start();
    require("rsssl.php");
    $rsssl = ob_get_contents();
    ob_end_clean();
    ob_start();
    require("rsswi.php");
    $rsswi = ob_get_contents();
    ob_end_clean();
    ob_start();
    require("rssbd.php");
    $rssbd = ob_get_contents();
    ob_end_clean();
    ob_start();
    require("rsszim.php");
    $rsszim = ob_get_contents();
    ob_end_clean();
    ob_start();
    require("rsswc.php");
    $rsswc = ob_get_contents();
    ob_end_clean();

    The hook location I used is global_start. Now each of those forums has an RSS feed from cricinfo.com displayed above the thread list.

Similar Threads

  1. Replies: 17
    Last Post: 06-25-2007, 08:35 AM
  2. Can we just make work vbseo in archieve?
    By turkforum in forum Custom Rewrite Rules
    Replies: 5
    Last Post: 12-20-2006, 04:25 PM
  3. Trying to make the sitemap plugin work
    By DLGx in forum Troubleshooting
    Replies: 4
    Last Post: 11-03-2006, 06:58 AM

Posting Permissions

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