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.

PHPbb change

Discussion in 'phpBB' started by DarrenC, Dec 25, 2005.

  1. #1
    Does anyone know how I can get 'view topic' from disappearing on my forum posts?
     
    DarrenC, Dec 25, 2005 IP
  2. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #2
    'ya lost me. Could you rephrase the question?

    Also, please mention the names of the .php files in your address bar when phpBB displays the desired behavior and the undesired behavior.
     
    Will.Spencer, Dec 26, 2005 IP
  3. DarrenC

    DarrenC Peon

    Messages:
    3,386
    Likes Received:
    154
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sorry Will - it was late!

    viewtopic.php includes in the title the words "view topic"

    i.e. www.travel-rants.com/forum/ptopic711. html

    How do I remove the 'view topic' words from the title?

    Darren
     
    DarrenC, Dec 26, 2005 IP
  4. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #4
    Edit \templates\{template.name}\overall_header.tpl.

    Look for "<title>" near the top of that file and edit it to whatever you like. Mine looks like this:

    <title>{PAGE_TITLE} : Online Psychology Self-Help and Support Forum : {SITENAME}</title>
    Code (markup):
    which yields a title that looks like this:

    <title>Having trouble logging in? : Online Psychology Self-Help and Support Forum : PsychLinks Online</title>
    Code (markup):
    Actually, looking at that now, I think it could use a little work... but it does avouid having every page say "view topic".

    Edit: I just simplified it to

    <title>{PAGE_TITLE} : {SITENAME} Psychology Self-Help and Support Forum</title>
    Code (markup):
    so now that page title would convert to

    [code]<title>Having trouble logging in? : PsychLinks Online Psychology Self-Help and Support Forum</title>
    Code (markup):
     
    minstrel, Dec 26, 2005 IP
    DarrenC likes this.
  5. DarrenC

    DarrenC Peon

    Messages:
    3,386
    Likes Received:
    154
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Minstrel your a genius.. thanks! :)
     
    DarrenC, Dec 26, 2005 IP
  6. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #6
    Glad to help. Being called a "genius" doesn't hurt the ego, either, especially if, like me, you have teenage children... "genius" isn't usually the word they use when describing me :eek:
     
    minstrel, Dec 26, 2005 IP
  7. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You'll probably get better search engine results only running {PAGE_TITLE} up there.
     
    mdvaldosta, Dec 26, 2005 IP
  8. DarrenC

    DarrenC Peon

    Messages:
    3,386
    Likes Received:
    154
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Hmm can I withdraw that genius statement? lol

    That seems to have resolve the issue with viewforum.php but viewtopic.php is still showing 'View Topic' before the topic title and forum title

    i.e. travel-rants.com/forum/viewtopic.php?t=705

    Any ideas? :)
     
    DarrenC, Dec 26, 2005 IP
  9. aaron_nimocks

    aaron_nimocks Im kind of a big deal Staff

    Messages:
    5,563
    Likes Received:
    627
    Best Answers:
    0
    Trophy Points:
    420
    #9
    The comeplete SEO mod which will fix what you are trying to accomplish is found here.

    http://www.able2know.com/forums/about15132.html

    If you follow the steps (takes about 15 mins) the forums will be SEO friendly and will fix the view topic. But I am not sure what you are trying to change. If you are trying to remove viewtopic.php from the URL I think you have to do the mod_rewrite mod for the forums which I dont suggest doing for the main reason is can cause duplicate pages.
     
    aaron_nimocks, Dec 26, 2005 IP
  10. DarrenC

    DarrenC Peon

    Messages:
    3,386
    Likes Received:
    154
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Excellent ... your both a genius ;)

    I have actually dont the seo mod but must of missed that section out!

    Darren
     
    DarrenC, Dec 26, 2005 IP
  11. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #11
    The forum name, etc., is at the end of the title - I prefer it that way personally because it "brands" the forum name with every topic and it doesn't hurt the search terms in the actual title.
     
    minstrel, Dec 26, 2005 IP
  12. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #12
    I don't think it's paret of the SEP MOD - my forum is pretty heavily customized beyond that.

    Open viewtopic.php (forum root folder, not the termplate folder).

    Find:

    //
    // Output page header
    //
    $page_title = $lang['View_topic'] .' - ' . $topic_title;
    
    Code (markup):
    replace with
    //
    // Output page header
    //
    // $page_title = $lang['View_topic'] .' - ' . $topic_title;
    $page_title = $topic_title;
    
    Code (markup):
     
    minstrel, Dec 26, 2005 IP