Page 1 of 3 1 2 3 LastLast
Results 1 to 15 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; Can someone tell me what template I need to edit to remove my forum name from all of my CMS ...

  1. #1
    Junior Member fogjuice's Avatar
    Real Name
    Chris
    Join Date
    Mar 2010
    Posts
    27
    Liked
    0 times

    How to remove forum title from CMS articles?

    Can someone tell me what template I need to edit to remove my forum name from all of my CMS article pages?

    I only want my forum title to be in the title tag of the main index page, not every single CMS article posted.

    *edit*

    I found out that if I edit vbcms_page then I can remove the title, but that also removes it from the index page and I do not want to do that. Does anyone know how to remove it strictly from the article pages, but not the main content page?

    Code:
    <title><vb:if condition="$vboptions['cmstitle']">{vb:raw vboptions.cmstitle}<vb:else />{vb:raw vboptions.bbtitle}</vb:if> - {vb:raw html_title}</title>
     <!--<title>{vb:raw html_title}</title>-->
    to

    Code:
    <title>{vb:raw html_title}</title>
     <!--<title>{vb:raw html_title}</title>-->
    However that removes the main title from every CMS page including the index. Is there a vb:if to check what page it's on and if it's the main index page, not remove it?
    Last edited by fogjuice; 07-02-2010 at 02:52 PM. Reason: Original post made no sense, reworded. Ha.

  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
    every CMS page uses the cms_page template as it's base display engine.

    It may be possible to use something like
    {vb:raw contentid}

    in a conditional. if it has a content ID, its probably not the homepage.

  3. #3
    Junior Member fogjuice's Avatar
    Real Name
    Chris
    Join Date
    Mar 2010
    Posts
    27
    Liked
    0 times
    Any idea how I could implement that into an if condition on the vbcms template sheet?

  4. #4
    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
    something like
    Code:
    <title>{vb:raw html_title}<vb:if condition="!{vb:raw contentid}"> - {vb:raw vboptions.bbtitle}</vb:if></title>
    may work. again, untested.

  5. #5
    MTD
    MTD is offline
    Senior Member
    Real Name
    Mike
    Join Date
    Apr 2008
    Posts
    141
    Liked
    0 times
    Just noticed this... wow this is unbelievable. Why the heck does vBulletin have this crap by default? Oh my what a bright idea... let's have every CMS page have the same title as the site. What are they thinking?

    Anyway, I tried your code Brian but when I saved it got an error and it suggested I go back and fix it, so I just deleted it and put back in the original. Is there any way you or someone else could test this code on your end to find out what it needs to be?

    Thanks

  6. #6
    MTD
    MTD is offline
    Senior Member
    Real Name
    Mike
    Join Date
    Apr 2008
    Posts
    141
    Liked
    0 times
    just noticed another problem with the homepage (if you have CMS set for home) and that is the section title is added after the normal title.... how frustrating I need to find a fix asap.

  7. #7
    MTD
    MTD is offline
    Senior Member
    Real Name
    Mike
    Join Date
    Apr 2008
    Posts
    141
    Liked
    0 times
    Here is a screenshot of the error... no one can help?
    Attached Thumbnails Attached Thumbnails error.jpg  

  8. #8
    Senior Member adom81's Avatar
    Real Name
    AHMET
    Join Date
    Jul 2007
    Location
    Antalya
    Posts
    182
    Liked
    4 times
    Just use this one
    Code:
    <title>{vb:raw html_title}</title>

  9. #9
    MTD
    MTD is offline
    Senior Member
    Real Name
    Mike
    Join Date
    Apr 2008
    Posts
    141
    Liked
    0 times
    adom81 - please see first post, that removes the title from every CMS page including index.

    Anyone???

  10. #10
    Senior Member adom81's Avatar
    Real Name
    AHMET
    Join Date
    Jul 2007
    Location
    Antalya
    Posts
    182
    Liked
    4 times
    Please check my site out, I did it as I posted.
    Categories, sections and articles' titles display it without forum title

  11. #11
    MTD
    MTD is offline
    Senior Member
    Real Name
    Mike
    Join Date
    Apr 2008
    Posts
    141
    Liked
    0 times
    I just tried it, but it showed the section title for the homepage title?

  12. #12
    Senior Member adom81's Avatar
    Real Name
    AHMET
    Join Date
    Jul 2007
    Location
    Antalya
    Posts
    182
    Liked
    4 times
    Quote Originally Posted by creditcardforum View Post
    I just tried it, but it showed the section title for the homepage title?
    It's weird :S
    Mine is okay, and I followed this instruction

    edit
    vbcms_page
    find
    Code:
    <title><vb:if condition="$vboptions['cmstitle']">{vb:raw vboptions.cmstitle}<vb:else />{vb:raw vboptions.bbtitle}</vb:if> -{vb:raw html_title}</title>
    leave
    <title>{vb:raw html_title}</title>

    Sorry, man
    Thats all I can say

  13. #13
    Senior Member adom81's Avatar
    Real Name
    AHMET
    Join Date
    Jul 2007
    Location
    Antalya
    Posts
    182
    Liked
    4 times
    Have you ever changed the sections' tittles via customizing on front page?
    That may be reason.

  14. #14
    MTD
    MTD is offline
    Senior Member
    Real Name
    Mike
    Join Date
    Apr 2008
    Posts
    141
    Liked
    0 times
    If you go to my homepage, the "Latest Credit Card Reviews" is the section, so that's what shows for the homepage when I change it to <title>{vb:raw html_title}</title>.

    The title I want to show for the homepage is what it used to be, which was "Credit Card Forum - Best Credit Card Deals, Reviews, & Offers" but I need to keep the title of that section "Latest Credit Card Reviews" the same. How can I accomplish that?

  15. #15
    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 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

Page 1 of 3 1 2 3 LastLast

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
  •