Results 1 to 2 of 2

Help with <if> statement please...

This is a discussion on Help with <if> statement please... within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi folks, I have categories my forum into 3 sets of pages; index pages, forum pages and info pages. index ...

  1. #1
    Senior Member
    Real Name
    Glen
    Join Date
    Apr 2008
    Location
    Scotland
    Posts
    104
    Liked
    0 times

    Help with <if> statement please...

    Hi folks,

    I have categories my forum into 3 sets of pages; index pages, forum pages and info pages.

    index pages - index.php, adv_index
    forum pages - forumdisplay, showthread
    info pages - who's online, usercp, members list, etc.

    On index pages, I want to show forum stats.
    On forum pages, I want to show info relative to the forum/thread (RRs in vbseo)
    On info pages, I want to show nothing.

    So far I have...

    Code:
    <if condition="THIS_SCRIPT=='index' OR THIS_SCRIPT=='adv_index'">
    <strong>Forum Statistics:</strong> 
    <br />
    Discussions: $totalthreads &nbsp;&nbsp;|&nbsp;&nbsp; Messages: $totalposts 
    <br />
    Total Members: $numbermembers &nbsp;&nbsp;|&nbsp;&nbsp; Online Now: $totalonline  
    <br />
    Our Newest Member : <a href="$vboptions[bburl]/member.php?u=$newuserid"><strong>$newusername</strong></a> (Welcome!)
    <else />
    &nbsp;
    </if>
    This works well with the index pages and info pages.

    This is what I have for the forum pages...

    Code:
    <if condition="THIS_SCRIPT=='index' OR THIS_SCRIPT=='vaispy' OR THIS_SCRIPT=='adv_index'">
    <strong>Forum Statistics:</strong> 
    <br />
    Discussions: $totalthreads &nbsp;&nbsp;|&nbsp;&nbsp; Messages: $totalposts 
    <br />
    Total Members: $numbermembers &nbsp;&nbsp;|&nbsp;&nbsp; Online Now: $totalonline  
    <br />
    Our Newest Member : <a href="$vboptions[bburl]/member.php?u=$newuserid"><strong>$newusername</strong></a> (Welcome!)
    <elseif condition="THIS_SCRIPT=='forumdisplay' OR THIS_SCRIPT=='showthread'">
    <!--VBSEO_RR_1-->
    <else />
    &nbsp;
    </if>
    But nothing is shown on forumdisplay or showthread. I am using RRs in a different place and they are showing the thread and forum information correctly. Can I use them in two places or only one?

    Can anyone assist please?

    Thanks!

  2. #2
    Senior Member
    Real Name
    Glen
    Join Date
    Apr 2008
    Location
    Scotland
    Posts
    104
    Liked
    0 times
    All fixed now...

    Code:
    <if condition="THIS_SCRIPT=='index' OR THIS_SCRIPT=='vaispy' OR THIS_SCRIPT=='adv_index'">
    <strong>Forum Statistics:</strong> 
    <br />
    Discussions: $totalthreads &nbsp;&nbsp;|&nbsp;&nbsp; Messages: $totalposts 
    <br />
    Total Members: $numbermembers &nbsp;&nbsp;|&nbsp;&nbsp; Online Now: $totalonline  
    <br />
    Our Newest Member : <a href="$vboptions[bburl]/member.php?u=$newuserid"><strong>$newusername</strong></a> (Welcome!)
    <else />
    <if condition="THIS_SCRIPT=='forumdisplay' OR THIS_SCRIPT=='showthread'">
    <!--VBSEO_RR_1-->
    </if>
    <else />
    &nbsp;
    </if>

Posting Permissions

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