Page 12 of 15 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 LastLast
Results 166 to 180 of 222
Like Tree2Likes

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

This is a discussion on [How To] Add H1 Tags to your vBulletin Templates for Long Tail Search Optimization within the Member Articles forums, part of the Focus on Members category; Originally Posted by Brian Cummiskey You basically need to change <if to < vb :if and </if > to </ ...

  1. #166
    Member
    Real Name
    jaryx
    Join Date
    Mar 2009
    Location
    WestPreussen
    Posts
    38
    Liked
    0 times
    Quote Originally Posted by Brian Cummiskey View Post
    You basically need to change <if to <vb:if and </if > to </vb:if>
    It is not work, because on vb4 they are different. I tried many combinations like:
    Code:
    <vb:if condition="THIS_SCRIPT == 'blog'">{vb:raw pagetitle}</vb:if>
    None of them didn't work. Something missing?

  2. #167
    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
    It looks like vb has changed variable scope.

    {vb:raw threadinfo.title}
    should work for showthread pages, however, in the navbar, it is blank. It must either be out of scope or they kill the reference template pointers before the navbar is included.

    In otherwords, i'm stumped, and you will need to consult vb support for more help.

  3. #168
    Junior Member Norman's Avatar
    Real Name
    Norman
    Join Date
    Feb 2007
    Location
    [Italy]
    Posts
    22
    Liked
    0 times
    I'm using this instead.

    Code:
    <if condition="is_array($navbits)">
    <br />
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" <if condition="THIS_SCRIPT == 'showthread'">width="65%"<else />width="50%"</if> align="center">
    <tr>
        <td class="alt1" style="background: #FFFFFF url(skin/gradients/gradient_thead.gif) repeat-x top left; text-align: center" width="100%">
    
    <if condition="THIS_SCRIPT == 'showthread'">
    <!-- Tag SEO  -->
    <h1 style="color: #FFFFFF; font-weight: bold; margin: 0; padding: 0;">$navbits[lastelement]</h1>
    <!-- ### -->
    <else />
    <!-- Tag SEO  -->
    <h1 style="color: #FFFFFF; font-weight: bold; margin: 0; padding: 0;">$navbits[lastelement]</h1>
    <!-- ### -->
    </if>
    
    
    </td>
    </tr>
    </table>
    </if>
    
    <br />

  4. #169
    Senior Member Astyanax's Avatar
    Real Name
    Daniel
    Join Date
    Dec 2009
    Location
    Sweden
    Posts
    299
    Liked
    4 times
    Can you please update this thread how to have it work with vBulletin 4.0 please?

  5. #170
    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
    If you are using RR's, you don't need to do this. vb4 comes with heading tags in the template by default now, and with using the RR's, this thread is obsolete for vb4.

  6. #171
    Member
    Real Name
    Kon
    Join Date
    Sep 2008
    Posts
    80
    Liked
    1 times
    Hi all and thanks for the information.

    I have now added H1 tags where appropriate.

    I would like to ask if it's ok in forumdisplay for exampe to have the title of the forum as H1 and the thread titles as H2?

  7. #172
    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
    I would not recommend making every thread title in the list an h2, but the h1 is ok.

  8. #173
    Member
    Real Name
    Kon
    Join Date
    Sep 2008
    Posts
    80
    Liked
    1 times
    Thanks again Brian.

    Would you put them as H3 or there is no need for that? Also in a forumdisplay what would you put as H2?

  9. #174
    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
    I would not make them headings at all, as they are not a logical outline heading-- they are the 'data' that supports the heading.

    Think of headings as an outline to a document, as that is exactly what they are

    h1
    support1
    support2

    • h2
    • support1
    • support2
      • h3
      • support1
      • support2
        • h4
        • and so on.

  10. #175
    Senior Member A.Chakery's Avatar
    Real Name
    Ali Chakery
    Join Date
    Jan 2008
    Posts
    772
    Liked
    54 times
    Brian I got confused about Headings :(

    I've set my vbseo RR's like this :

    Code:
    <h1 class="vbseoRR-1">[forum_title]</h1><h2 class="vbseoRR-2" id="relevant_replacement">Below you will find a list of discussions in the <b>[forum_title]</b> forums at the [bb_title]. The [forum_title] forum [forum_description]</h2>
    and

    Code:
    <h1 class="vbseoRR-1">[thread_title]</h1><h2 class="vbseoRR-2" id="relevant_replacement">This is a discussion on <em>[thread_title]</em> within the <b>[forum_title]</b> forums, part of the [parent_forum_title] category; [first_post_30_words]...</h2>
    are these ok ?
    if no would you please suggest a better one please ?

    Regards

  11. #176
    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
    I personally do not use them. I have hard-coded headings based on sections in my templates.
    We recommend
    VB4 RR's? - vBulletin SEO Forums

  12. #177
    Senior Member A.Chakery's Avatar
    Real Name
    Ali Chakery
    Join Date
    Jan 2008
    Posts
    772
    Liked
    54 times
    Quote Originally Posted by Brian Cummiskey View Post
    I personally do not use them. I have hard-coded headings based on sections in my templates.
    We recommend
    VB4 RR's? - vBulletin SEO Forums
    Thanks so much brian,

    Brain would you please tell me how to hard-code headings based on sections in my templates ?

    Sorry if I ask , but Its long time that I am looking to ask this question, and I think its the second time that I ask it.

    please give me some tutorial or something like that.

    I will be so thankful.

    Best Regards.

  13. #178
    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
    It's the first post of this thread...

  14. #179
    Senior Member A.Chakery's Avatar
    Real Name
    Ali Chakery
    Join Date
    Jan 2008
    Posts
    772
    Liked
    54 times
    oh thanks, but would you please tell me which one of the methods is better ?
    in other words which one do you prefer ?

    thanks for the support

  15. #180
    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
    Doing it manually is far more flexible, but it requires more work for upgrades/reverting templates/etc.

Page 12 of 15 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 LastLast

Similar Threads

  1. Replies: 126
    Last Post: 09-11-2011, 03:40 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

Posting Permissions

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