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.

How do you remove "View Topic::" from PhpBB?

Discussion in 'phpBB' started by Univ, Apr 26, 2007.

  1. #1
    It appears in every single topic, I want the topics to just say the name of the topic, not that stupid "View Topic" writing and the forum name either. I wanna remove both. Any help is appreciated.
     
    Univ, Apr 26, 2007 IP
  2. Univ

    Univ Peon

    Messages:
    161
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No answer? :(
     
    Univ, Apr 26, 2007 IP
  3. Endurer

    Endurer Well-Known Member

    Messages:
    1,113
    Likes Received:
    84
    Best Answers:
    0
    Trophy Points:
    140
    #3
    There are two ways of doing that:

    1) Open viewtopic.php and find:

    $page_title = $lang['View_topic'] .' - ' . $topic_title;
    Code (markup):
    Replace with:

    $page_title = $topic_title;
    Code (markup):
    Alternative method:

    Edit the language/lang_english/lang_main.php and find:

    $lang['View_topic'] = 'View topic';

    And replace with:

    $lang['View_topic'] = '';
     
    Endurer, Apr 27, 2007 IP
  4. Univ

    Univ Peon

    Messages:
    161
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hello Endurer,

    Your message was very useful, and it totally works. I used the second way since I couldnt find the viewtopic.php file you mentioned in the first way. But it works awesome! :) Thanks so much really!

    Also, do you know any way to remove the site name also from the topics? So it was

    Example.com:: view topic: Example Topic

    Now it is:

    Example.com:: Example Topic

    Now what I am wondering is if the following is also possible. If not, that's OK:

    Example Topic



    Thank you soooooooooooo very much! :)
     
    Univ, Apr 27, 2007 IP
  5. Univ

    Univ Peon

    Messages:
    161
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    No answer to my second question? :( I had asked how you remove the site title... :(
     
    Univ, Apr 28, 2007 IP
  6. Jackuul

    Jackuul Well-Known Member

    Messages:
    2,972
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    180
    #6
    Find it in the .tpl file in the templates folder. viewtopic_body.tpl

    <a href="{U_INDEX}" class="nav">{L_INDEX}</a>
    -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>

    Should be in there twice if it is subSilver.
     
    Jackuul, Apr 29, 2007 IP
  7. Endurer

    Endurer Well-Known Member

    Messages:
    1,113
    Likes Received:
    84
    Best Answers:
    0
    Trophy Points:
    140
    #7
    Sorry I fell siick and was hospitalized.

    Find in templates/your template name/overall_header.tpl :

    <title>{SITENAME} :: {PAGE_TITLE}</title>
    Code (markup):
    Replace with:

    <title>{PAGE_TITLE} :: {SITENAME}</title>
    Code (markup):
    You can remove {SITENAME} from the title if you'd like to.
     
    Endurer, Apr 30, 2007 IP
  8. Univ

    Univ Peon

    Messages:
    161
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You are so awesome Endurer! I hope you feel better now!

    Your response is so related, and so useful. Both of them...

    Thanks for giving me both options in your last response. I was originally planning to delete the site name altogether, but I guess your suggestion is better (site name after the topic).
     
    Univ, May 2, 2007 IP
  9. Endurer

    Endurer Well-Known Member

    Messages:
    1,113
    Likes Received:
    84
    Best Answers:
    0
    Trophy Points:
    140
    #9
    Glad I was of some help to you. :) It's always good to leave the site name in the title.
     
    Endurer, May 2, 2007 IP
    yogesh sarkar likes this.
  10. yogesh sarkar

    yogesh sarkar Well-Known Member

    Messages:
    1,740
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    140
    #10
    Endurer thanks a lot for posting this info, + rep for you :)
     
    yogesh sarkar, May 3, 2007 IP
    Endurer likes this.
  11. ThatForumPlace

    ThatForumPlace Peon

    Messages:
    201
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Just as a quick tip - as long as you keep backing up what you're doing, you can learn a lot by tinkering with the /templates/overall_header.tpl, /templates/overall_footer.tpl and viewtopic.tpl

    As long as you understand the basic concepts of html, it's quite easy to not only add or remove certain parts of a page, but rearrange parts so that your page appears differently (ie., more efficiently).

    For example, in overall_header.tpl, take a couple minutes to scan through the code and look for all that (IMHO) junk about "The time now is blah blah blah, you last visited...." Delete it (again, make sure you have a backup copy in case you screw up), then reupload the new version. Already by clearing away some useless stuff, it can make your forum easier to browse. As in this example, I deleted those parts, as pretty much every PC shows you the time anyway, and who really NEEDS to know when they last visited?

    Trial and error works great. If you're using Dreamweaver or similar, in conjunction with an easy to use FTP application, it's very quick and easy to make a change, upload, view changes, then either continue, or just go back into the program, click "undo", then reupload - hopefully learning each time how little changes affect your layout.

    Good luck.
     
    ThatForumPlace, May 5, 2007 IP