Announcement

Collapse
No announcement yet.

vB5 How To: Add forum names into Today's Posts / New Topics

Collapse
X
Collapse
  •  

  • vB5 How To: Add forum names into Today's Posts / New Topics

    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>
      Posting comments is disabled.

    About the Author

    Collapse

    Mark.B Find out more about Mark.B

    Article Tags

    Collapse

    advanced (5) albums (1) android (2) api (29) array (17) beginner (17) blog (4) calendar (2) cloud (1) cms (2) create (1) customization (1) forum (3) forums (4) Intermediate (7) iphone (3) mapi (30) methods (10) mobile (34) poll (1) security (2) style (2) threads (4) vb5howto (5) vBulletin (5)

    Latest Articles

    Collapse

    • The Basic Anatomy of a vBulletin Page
      by Wayne Luke
      vBulletin 5's user output is created using a system of pages that are customizable by the site administrator. This system is called Site Builder. By breaking the system down into pages, a lot of control is given to the system administrator. By using Site Builder, you can create a unique site without any knowledge of HTML or CSS.

      vBulletin's pages are created using layers built upon a grid layout. Each page starts with a layout which defines the content areas of the page. Layouts define...
      Mon 11th Sep '17, 8:55am
    • Enabling Push Notifications in vBulletin 5.3.2 and Mobile Suite 1.16
      by Wayne Luke
      vBulletin Mobile Suite 1.16 includes functionality for Push Notifications. One of the requirements to add this functionality is that you must be running vBulletin 5.3.2 Connect on your site and create a project with Google's Firebase Cloud Messaging (FCM) platform. The steps below will walk you through the process of enabling this functionality in vBulletin and in your Mobile Apps.

      Add a project to your Firebase account








      ...
      Thu 27th Jul '17, 8:56am
    • Enabling Two-Factor Authentication
      by Wayne Luke
      vBulletin 5.3.0 and higher will allow site owners to enable Two-Factor Authentication for Administrator and Moderator functionality. This is an extra layer of security provided to make sure your user data remains as safe as possible. Two-Factor Authentication works in conjunction with an app on the user's smartphone, tablet, or computer. These apps provide a security token that lasts a limited time before expiring. The security token is created using industry standard algorithms and a unique string...
      Tue 4th Apr '17, 8:38am
    • How to moderate the posts of new users only
      by Wayne Luke
      To help combat spam, many users opt to have new user’s posts moderated until they’ve made a specific number of posts. This allows the Admin/Moderator team to keep potentially malicious posts out of the public eye until a user has effectively passed a ‘probationary period’ as a member of the site.

      In order to do this, you will need to create a custom usergroup and a promotion.

      Creating a Custom Usergroup
      First, you need to setup the usergroup for your non-Moderated...
      Wed 22nd Feb '17, 9:13am
    • Rebuilding the Sphinx index
      by Wayne Luke
      From time to time, we will need to update the indexing schema for the Sphinx server. In order for this fix to take effect, you will need to update the sphinx schema for the index. Follow these steps to rebuild your Sphinx Search Schema.
      1. Stop the Sphinx service on your server.
      2. Replace your existing Sphinx configuration file (vbulletin-sphinx.php) with the one provided in the current version of vBulletin 5 Connect. You can find this file in the do_not_upload directory.
      3. Update the file as provided
      ...
      Fri 3rd Feb '17, 1:01pm
    • Using the Search JSON
      by Dominic
      Using the advanced editor you can create powerful search modules. Following you find possible filters / parameters for using within these modules:
      The search JSON parameter has the following format:

      Code:
      { "filter": <value>, "filter": <value>, ... }
      <value> may be any valid string, number or JSON structure and will be interpreted by the specified filter. Filters not listed below are ignored.

      Filters

      The valid filters...
      Wed 28th Jan '15, 12:51pm
    Working...
    X