How to add forum names into Today's Posts / New Topics

Discussion in 'vBulletin Discussions' started by Mark.B, Feb 12, 2014.

  1. Mark.B

    Mark.B Regular Member

    Joined:
    Jul 4, 2013
    Messages:
    253
    Likes Received:
    42
    This tutorial can be found on the vBulletin Support Forums HERE.

    One major thing that has been missing in vB5, has been the name of the forum in the Today's Posts / New Posts results. You are told the name of the topic, who started it, when it was started, who made the most recent post, etc...but you are not told what forum it's in.

    For many, this is essential, as they only want to read threads in forums they are interested in.

    Well, here's how to add this back in.

    First, add this to the template css_additional.css
    Code:
    /* Today's Posts - Forum Title */
    .f-title
    {
    font-weight: normal;
    }
    
    .topic-list-container .topic-list .topic-item .cell-topic .topic-info
    {
    font-size: 12px;
    }
    
    .topic-list-container .topic-list .topic-item td
    {
    vertical-align: middle;
    }
    /* Today's Posts - Forum Title */
    
    Next, edit the template display_Topics_item

    Find BOTH instances of this:
    Code:
    {vb:rawphrase started_by_link_x_y_z, {vb:var profileUrl}, {vb:raw topic.authorname}, {vb:datetime {vb:raw topic.created}}}
    Add IMMEDIATELY afterwards: (Don't leave a space! And take care not to erase any of the curly brackets!)
    Code:
    <vb:if condition="$page['title'] == 'Search Result'"><span class="f-title"> in <a href="{vb:url {vb:raw topic.channelroute}, {vb:raw topic}}">{vb:raw topic.channeltitle}</a></span></vb:if>
    Finally, find BOTH instances of this:
    Code:
    {vb:rawphrase started_by_guest_x, {vb:datetime {vb:raw topic.created}}}
    Add IMMEDIATELY afterwards: (Don't leave a space! And take care not to erase any of the curly brackets!)
    Code:
    <vb:if condition="$page['title'] == 'Search Result'"><span class="f-title"> in <a href="{vb:url {vb:raw topic.channelroute}, {vb:raw topic}}">{vb:raw topic.channeltitle}</a></span></vb:if>
    Capture.JPG
     
    Last edited: Feb 12, 2014
    AWS likes this.

Share This Page