Results 1 to 4 of 4

Help IF statement with VBseo re-writes

This is a discussion on Help IF statement with VBseo re-writes within the General Discussion forums, part of the vBSEO SEO Plugin category; Hello, I need help doing IF statement for my header. I am basically adding custom text at the top of ...

  1. #1
    Senior Member
    Real Name
    RadarLaser
    Join Date
    Dec 2008
    Posts
    134
    Liked
    0 times

    Help IF statement with VBseo re-writes

    Hello,
    I need help doing IF statement for my header. I am basically adding custom text at the top of each page for SEO so each category page I want it to show different text so it is unique and pertains to that category they are in. I have it written on my index page at: Radar Detectors Review & Radar Detector Reviews

    But I need to know rest of the IF statement to write so that it goes on my other categories...I have the vbseo url category rewrites where it has the category name in the url, so not sure if that would effect the if statement.

    For example my homepage I have this:

    <if condition="THIS_SCRIPT == 'index'">
    <h1>Radar Detectors</h1>
    <strong>Radar Detectors</strong> Review &amp; <i>Radar Detector Reviews</i> from <b>Escort Passport Radar</b>, <b>Cobra Radar Detectors</b>, <b>Valentine One Radar</b>, <b>Whistler Radar Detectors</b>, <b>Bel Radar Detectors</b> &amp; other <i>Radar Detector Reviews</i>
    </if>


    If I wanted to just have different text on different category pages on my forum for example say this category on my site, what would my IF statement be that I would need to write?

    Website News - Radar Detectors Review & Radar Detector Reviews

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    This article should help you:

    [How To] Add H1 Tags to your vBulletin Templates for Long Tail Search Optimization

    It lists most of the if conditionals you would need along with template variables used.

  3. #3
    Senior Member
    Real Name
    RadarLaser
    Join Date
    Dec 2008
    Posts
    134
    Liked
    0 times
    I have the vbseo url rewrites, not working for me....

    Looking for the IF statement for individual category pages...

    For example on my main homepage I have a category named "Website News" I want to have custom text on the top of that main category page where you see all the different threads in that category...so need if statement for that... and so forth for all other category title names.

    The link you referred me to would be just for "forumdisplay" so all of the category pages would have same....looking for different on each page.

  4. #4
    Senior Member
    Real Name
    Marco Mamdouh
    Join Date
    May 2008
    Location
    Egypt
    Posts
    2,627
    Liked
    3 times
    Blog Entries
    1
    As I understand you need to add different text on every forum if that's correct you can use this
    HTML Code:
    <if condition="$forum[forumid] == X">
    Text here
    </if>
    replace X with the forum ID you want to display the custom text on it

Similar Threads

  1. Need Some Help With Re-Writes
    By dieselpowered in forum Custom Rewrite Rules
    Replies: 6
    Last Post: 05-27-2009, 04:31 PM
  2. Help with <if> statement please...
    By Kaos in forum General Discussion
    Replies: 1
    Last Post: 04-02-2009, 04:38 PM
  3. What if the url re-writes don't work?
    By openfire in forum Pre-Sales Questions
    Replies: 10
    Last Post: 10-05-2007, 01:53 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
  •