Page 3 of 3 FirstFirst 1 2 3
Results 31 to 40 of 40

How to remove forum title from CMS articles?

This is a discussion on How to remove forum title from CMS articles? within the General Discussion forums, part of the vBulletin SEO Discussion category; What about using something like this: HTML Code: <title> { vb :raw html_title} - < vb :if condition= "$vboptions['cmstitle']" > ...

  1. #31
    Member
    Real Name
    Jason
    Join Date
    Aug 2008
    Location
    AZ, USA
    Posts
    82
    Liked
    0 times
    What about using something like this:

    HTML Code:
        <title>{vb:raw html_title} - <vb:if condition="$vboptions['cmstitle']">{vb:raw vboptions.cmstitle}<vb:else />{vb:raw vboptions.bbtitle}</vb:if></title>
    The main goal that I want is to have a higher click through rate when at the top of SERPs. Having the title of my forum listed first before the article title would probably improve CTR.

  2. #32
    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 will probably have the exact opposite effect.

  3. #33
    Member
    Real Name
    BrandonDrury
    Join Date
    Dec 2005
    Posts
    40
    Liked
    0 times
    I'm not sure what you guys are after, but I got what I wanted by simply doing this.

    PHP Code:
    <title>{vb:raw html_title}</title
    At least I THINK I want this.

  4. #34
    Member
    Real Name
    Les Hill
    Join Date
    Sep 2005
    Location
    Gloucester, England, UK
    Posts
    65
    Liked
    2 times
    Quote Originally Posted by Brian Cummiskey View Post
    This isn't pretty, but it does seem to work. There doesn't seem to be a better way without making a plugin and registering a template var for this.

    Code:
    Var to use: {vb:raw page_url}
    <title>{vb:raw html_title}<vb:if condition="$page_url== 'http://mydomain.com/content.php'"> - <{vb:raw vboptions.bbtitle}</vb:if></title>
    Load your CMS homepage and find the "var to use" string at the top of the page. It should be some sort of content.php url with your full domain, etc (un-seo'ed). Plug it in, and delete the prompt so it doesn't show on your site.

    Also, in order for this to be reliable, you need to make sure you have set up www vs non-www's so there is only one access method.
    [How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects - vBulletin SEO Forums
    Hi, Brian, as a followup to the other post, could you please explain it a bit better for us?

    I am a bit lost on what exactly the instructions are, do I create a plugin or, ... sorry I'm just a bit confused and need a bit more easy instructions please.

  5. #35
    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
    There's no plugin. The idea is to print out that string raw on the page, so you know what it is, and then delete it. Then you use that variable in the conditional.

  6. #36
    Member
    Real Name
    Les Hill
    Join Date
    Sep 2005
    Location
    Gloucester, England, UK
    Posts
    65
    Liked
    2 times
    Quote Originally Posted by Brian Cummiskey View Post
    There's no plugin. The idea is to print out that string raw on the page, so you know what it is, and then delete it. Then you use that variable in the conditional.
    I see,

    but the explanation you gave me makes absolutely no sense to me..

    Load your CMS homepage and find the "var to use"
    So how exactly do we find this "var to use" string ?
    eg. I load my homepage, myhomepage.com now what ?

    print out that string raw on the page
    What string, where is this string. then delete it, delete what exactly...
    You have to be more specific and give us a bigger and easier explanation..
    I am sorry but not everyone is a coder or can understand that jargon.

  7. #37
    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
    You find it by placing

    Var to use: {vb:raw page_url}

    in the template temporaily

    load the site, and this 'string' prints out on to the top of the page.
    Last edited by Brian Cummiskey; 05-05-2011 at 02:47 PM.
    Brian Cummiskey / Crawlability Inc.
    Security vbulletin - Patch Level for all supported versions released!

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  8. #38
    Member
    Real Name
    Les Hill
    Join Date
    Sep 2005
    Location
    Gloucester, England, UK
    Posts
    65
    Liked
    2 times
    Okay, So I have done that exactly, and the got string which was something like "http://mywebsite.com/content.php".

    So after using this code
    Code:
    <title>{vb:raw html_title}<vb:if condition="$page_url== 'http://mywebsite.com/content.php'"> - <{vb:raw vboptions.bbtitle}</vb:if></title>
    It works on the articles but, affects the homepage along with all other navbar pages. The cms home page still shows as "Home - Mywebsite" when I want it to show as Mywebsite - Home ....

    any ideas?

  9. #39
    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 want to flip the display, you'll need to flip the above template too.

    It should not just be content.php. It should show something like content.php?r=xxx

  10. #40
    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
    Apparently what is in this article is too complicated to follow, so here it is again, step by step.



    Place
    Var to use: {vb:raw page_url}
    at the top of in the cms_page template

    load your homepage
    copy what prints out as that var to notepad/etc for reference later
    go back to cms_page
    remove that statement from the template
    find the html title block in the template
    replace it with
    <title>{vb:raw html_title}<vb:if condition="$page_url== 'http://mydomain.com/content.php'"> - <{vb:raw vboptions.bbtitle}</vb:if></title>
    replacing http://mydomain.com/content.php with what printed out as the var to use that you pasted into notepad

Page 3 of 3 FirstFirst 1 2 3

Similar Threads

  1. Replies: 126
    Last Post: 09-11-2011, 03:40 PM
  2. How to remove the first part of the Forum Title?
    By Marvin Hlavac in forum Template Modifications
    Replies: 3
    Last Post: 09-04-2008, 08:46 PM
  3. remove forum title from thread title
    By mindhunter77 in forum General Discussion
    Replies: 3
    Last Post: 06-08-2008, 02:17 AM
  4. How do I remove forum title from archive
    By Tipsy in forum Template Modifications
    Replies: 4
    Last Post: 12-19-2005, 02:20 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
  •