1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

VB - Remove Forum Title from Interior Pages

Discussion in 'vBulletin' started by DeluxeEdition, Feb 29, 2008.

  1. #1
    I tried searching for this since I imagine it's been asked before but I might have been searching for the wrong terms because I couldn't find anything.

    If you notice on Most Forums it has the "<Category Title> - <Forum Name> " for the title on DP it has "<Category Title> Forum", example "Forum Management Forum" without the <Forum Name> and then on the link in from the index it's just called Forum Management without the trailing Forum.

    If anyone can follow what I was saying, How's this Done.

    Vbulletin 3.6.8
     
    DeluxeEdition, Feb 29, 2008 IP
  2. hermione_dies

    hermione_dies Peon

    Messages:
    309
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Go to your showthread template and remove:

    - $vboptions[bbtitle]

    from within <title></title>
     
    hermione_dies, Feb 29, 2008 IP
    DeluxeEdition likes this.
  3. DeluxeEdition

    DeluxeEdition Active Member

    Messages:
    308
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Thanks hermione_dies - You put me on the right track :)

    I actually had to change the code you mentioned but in the Forum Display Template - The other one changed it for threads though and that helped too.

    :)
     
    DeluxeEdition, Feb 29, 2008 IP
  4. DeluxeEdition

    DeluxeEdition Active Member

    Messages:
    308
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    58
    #4
    I came up with another question on the same subject; Some Forums I want to end the name with Forum others I want to end the Name with something else. I tried this bit of code in the Forum Display Template (Please don't make to much fun of my code still trying to learn :eek::

    <title>$foruminfo[title_clean]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> 
    <if condition="$forumid=56"> 
    echo ""; 
    else
    echo "Forum";
    </if></title>
    Code (markup):
    What I was trying to achieve is if the forum is forum 56 don't display the word "Forum". I need this for about 10 different places but thought I would start with one first.
     
    DeluxeEdition, Feb 29, 2008 IP
  5. hermione_dies

    hermione_dies Peon

    Messages:
    309
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You don't need the php syntax

    <if condition="forumid=56">
    Forum
    </if>

    And <if condition="$pagenumber>1"> should be <if condition="$pagenumber=1">

    Heres something that might help: http://forum.vbulletinsetup.com/f66/vbulletin-template-conditionals-list-2185.html
     
    hermione_dies, Feb 29, 2008 IP
    Brandon Sheley likes this.
  6. DeluxeEdition

    DeluxeEdition Active Member

    Messages:
    308
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    58
    #6
    That actually was already in Vbulletin before I edited anything - I do have VBSEO installed though. I'll check out the link thanks.
     
    DeluxeEdition, Feb 29, 2008 IP
  7. DeluxeEdition

    DeluxeEdition Active Member

    Messages:
    308
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    58
    #7
    I don't know if the link is for an old VB setup or if I'm doing something wrong but I tried the following from the link

    <if condition="in_array($forum['forumid'], array(56,61))"></if>
    Code (markup):
    Throws an error where even VB says whoah better go back and try again

    <if condition="$forum[forumid] == 56"></if>
    Code (markup):
    Seems to completely ignore the code.

    Do you have any other thoughts?
     
    DeluxeEdition, Feb 29, 2008 IP
  8. Brandon Sheley

    Brandon Sheley Illustrious Member

    Messages:
    9,721
    Likes Received:
    612
    Best Answers:
    2
    Trophy Points:
    420
    #8
    the Template Conditionals list posted earlier was written for vb 3.6, but should work with 3.7 as well.

    Here is a similar thread were we removed the forum name from most the forum like DP has it.

    cheers
    -Brandon
     
    Brandon Sheley, Feb 29, 2008 IP
  9. DeluxeEdition

    DeluxeEdition Active Member

    Messages:
    308
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    58
    #9
    Thanks loco.m weird to see someone who's page I was just using answering my questions. And from the post I just read, looks like you have plenty of qualifications: Big Board Admin and Pre Release team for VBSEO

    I think this pretty much shows it's my error and not the page

    :(

    I got how to remove the title.

    But what I can't figure out is how to this:

    Most of my forums I want to say Forum after the title Just Like DP but with some of my forums the way there titled having Forum after them doesn't make sense to me.

    For Example a Forum named : "Pepper" I want it to say in the title bar "Pepper Forum" but for another Forum "The Best Pepper Recipes" I don't want it to say "The Best Pepper Recipes Forum" just "The Best Pepper Recipes" in the title bar.

    I Know I could change the name of the forum but on the index page I don't want it to say Forum

    Wow, I hope someone can follow that.
     
    DeluxeEdition, Feb 29, 2008 IP
    Brandon Sheley likes this.
  10. Brandon Sheley

    Brandon Sheley Illustrious Member

    Messages:
    9,721
    Likes Received:
    612
    Best Answers:
    2
    Trophy Points:
    420
    #10
    Hi DE, thanks for the kind words :)
    I think I know what your are talking about and one of our admins made the hack that I :think: is what you are after.
    Go to vbulletin.org and search for this user "whitemike" he made a title hack that I'm about 90% sure will achieve what you are after.

    cheers
    -Brandon

    ps.. If you're having troubles finding the hack, I'll look it up for you :)
     
    Brandon Sheley, Mar 1, 2008 IP
    DeluxeEdition likes this.
  11. DeluxeEdition

    DeluxeEdition Active Member

    Messages:
    308
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    58
    #11
    DeluxeEdition, Mar 1, 2008 IP