Back to vBulletin 5.x Products & Extensions

[vBMods.rocks] Display Forum Description on Forum Channel page using an Ad Module
Mod Version: 1.00, by noypiscripter

vB Version: 5.2.x Rating: (0 vote - 0 average) Installs: 5
Released: 13 Oct 2016 Last Update: Never Downloads: 0
Supported  

It's a default feature in vB4 to have the forum description displayed below the forum name in the forum display page. Unfortunately, this is not the case for vB5. But don't worry, adding it is fairly easy thing to do and the actual code for it is so simple! You may wonder why on earth vBulletin has not implemented it yet? Don't ask me, I don't know why.

You can do this by editing a template but I don't recommend it for maintenance reasons as you may get template merge conflicts during an upgrade and you would have to resolve the conflicts every time. I prefer this approach better using an Ad module as this will not get affected by future upgrades.

Below are the steps:
  1. Go to a Forum Channel Page.
  2. Enable Sitebuilder (Edit Site ON)
  3. Click Edit Page.
  4. Drag and drop an Ad Module onto the page below the Page Title Module.
  5. Edit the Ad Module by clicking on the Pencil icon.
  6. Fill out the config form
    Title: Forum Description (or anything, it doesn't matter as this will not be displayed)
    Keep default values in other fields.
  7. Click Edit button in the Config Ad option.
  8. Click Add New Ad button.
  9. Enter Ad title (e.g. Forum Description)
  10. Enter the following HTML code and template variable. NOTE: The code in red is required as a workaround for vB 5.2.4 and above until this http://tracker.vbulletin.com/browse/VBV-16734 is fixed. For vB 5.2.3 and below, do not add them.

    Code:
    </vb:literal>
    <div class="custom-forum-channel-desc h-align-left">
    	{vb:raw page.nodedescription}
    </div>
    <vb:literal>
  11. Check "Active" checkbox.
  12. Save the form.
  13. Save the page.
  14. Overwrite the template. This makes the changes to the template available to all the Forum channel pages.
  15. (Optional) If you want to style the forum description, you can add custom CSS in css_additional (or via Sitebuilder > Style > CSS Editor) with this CSS rule:
    Code:
    .custom-forum-channel-desc {
    	/* custom style here */
    }
    You could also add the custom CSS directly in the Ad module itself by adding this at the very top of the code.
    Code:
    <style>
    .custom-forum-channel-desc {
    	/* custom style here */
    }
    </style>

Live Demo:
http://vbmods.rocks/forum/vbulletin-5-modifications/vbulletin-5-template-only-modifications

This mod is also posted in http://vbmods.rocks/forum/vbulletin-5-modifications/vbulletin-5-miscellaneous-modifications/1610-display-forum-description-on-forum-channel-page-using-an-ad-module

Screenshot:
See attached image below.

Download

No files for download.

Screenshots

Click image for larger version
Name:	forum-description.png
Views:	338
Size:	25.2 KB
ID:	155388  

Similar Mods

Show Thread Enhancements [vBMods.rocks] Add Custom Profile Fields in Postbit vBulletin 5.x Products & Extensions
New Posting Features [vBMods.rocks] Quote Selected Text vBulletin 5.x Products & Extensions
Show Thread Enhancements [vBMods.rocks] Display Status Update in Postbit vBulletin 5.x Products & Extensions
Miscellaneous Hacks [vBMods.rocks] Quick fix for guests having no access to the reset-password page vBulletin 5.x Products & Extensions
Vbadvanced - Weather Channel Module vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024