Results 1 to 3 of 3

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

This is a discussion on [How To] vB 4 - Add H1 Tags to your vBulletin Templates for Long Tail Search Optimization within the Member Articles forums, part of the Focus on Members category; To make this easier to find hopefully an admin will make it a sticky. To get the background on this ...

  1. #1
    Member
    Real Name
    Tim
    Join Date
    Jan 2012
    Posts
    82
    Liked
    1 times

    vB 4 [How to] - Add H1 Tags to your vBulletin Templates for Long Tail Search Optimization

    To make this easier to find hopefully an admin will make it a sticky. To get the background on this topic you can read this thread to understand the concept: [How To] Add H1 Tags to your vBulletin Templates for Long Tail Search Optimization Thanks to Michael Biddle for the original topic and special thanks to Brian Cummiskey for the updated code for vb 4:

    Steps to Updating Your navbar Template with a H1 Tag
    • Login to your vBulletin AdminCP.
    • On the left hand side of the screen, locate Styles & Templates.
    • Expand the menu and click Style Manager.
    • Identify the style you wish to update, and then select Edit Templates from the menu.
    • A list of all templates for the style will be displayed.
    • Find the Navigation / Breadcrumb Templates in the list and and double click it.
    • Then double click the navbar template to begin editing.
    • At the very bottom of the template, below the rest of the text, please add the following:


    HTML Code:
    <vb:if condition="THIS_SCRIPT == 'forumdisplay'"> <h1>$foruminfo[title_clean]</h1> <else /> 
    <vb:if condition="THIS_SCRIPT == 'showthread'"> <h1>$thread[title]</h1> <else /> 
    <vb:if condition="THIS_SCRIPT == 'group'"> <h1>$custompagetitle</h1> <else /> 
    <vb:if condition="THIS_SCRIPT == 'album'"> <h1>$custompagetitle</h1> <else /> 
    <vb:if condition="THIS_SCRIPT == 'tags'"> <h1>$tag[tagtext]</h1> <else /> 
    <vb:if condition="THIS_SCRIPT == 'blog'"> <h1>$pagetitle</h1> <else /> 
    <vb:if condition="THIS_SCRIPT == 'member'"> <h1>$userinfo[username]</h1> <else /> 
    <h1>$vboptions[bbtitle]</h1> 
    </if> 
    </if> 
    </if> 
    </if> 
    </if> 
    </if> 
    </if>

  2. #2
    Member
    Real Name
    kev
    Join Date
    Aug 2008
    Posts
    41
    Liked
    0 times
    Hi,

    I get the following error....

    The following error occurred when attempting to evaluate this template:
    Unclosed Tag
    This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

  3. #3
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    There is an error in supplied code

    All instance of </if> should be </vb:if> <else /> should be <vb:else /> or the exact variable used by vBulletin 4
    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

Similar Threads

  1. Replies: 221
    Last Post: 01-23-2012, 05:07 PM
  2. How long is your search long tail?
    By Joe Ward in forum General Discussion
    Replies: 77
    Last Post: 05-06-2011, 05:13 PM
  3. Monitoring Long Tail Search
    By BamaStangGuy in forum Analysis: Traffic & SERPS
    Replies: 2
    Last Post: 11-10-2010, 12:34 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
  •