Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[vBMods.rocks] Display Forum Description on Forum Channel page using an Ad Module Details »
[vBMods.rocks] Display Forum Description on Forum Channel page using an Ad Module
Mod Version: 1.00, by noypiscripter (Coder/Designer) noypiscripter is offline
Developer Last Online: May 2017 I like it Show Printable Version Email this Page

vB Version: 5.2.x Rating: (0 vote - 0 average) Installs: 2
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 JIRA bug report is fixed. For vB 5.2.3 and below, do not add them.


    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  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:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    You could also add the custom CSS directly in the Ad module itself by adding this at the very top of the code.

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.


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

This mod is also posted in http://vbmods.rocks/forum/vbulletin-...g-an-ad-module

Screenshot:
See attached image below.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	forum-description.png
Views:	130
Size:	25.2 KB
ID:	155388  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Show Thread Enhancements [vBMods.rocks] Add Custom Profile Fields in Postbit noypiscripter vBulletin 5.x Products & Extensions 5 24 Feb 2017 16:58
New Posting Features [vBMods.rocks] Quote Selected Text noypiscripter vBulletin 5.x Products & Extensions 4 08 Jan 2017 14:39
Miscellaneous Hacks [vBMods.rocks] Quick fix for guests having no access to the reset-password page noypiscripter vBulletin 5.x Products & Extensions 0 06 Aug 2016 01:17
Show Thread Enhancements [vBMods.rocks] Display Status Update in Postbit noypiscripter vBulletin 5.x Products & Extensions 0 02 Aug 2016 20:27
Vbadvanced - Weather Channel Module boo.3 vBulletin 3.0 Full Releases 43 08 Nov 2008 15:49

Comments
  #2  
Old 14 Oct 2016, 21:54
Papa Bear's Avatar
Papa Bear Papa Bear is offline
 
Join Date: Apr 2011
Ok followed the steps and instead it only shows this.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #3  
Old 15 Oct 2016, 00:31
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
Are you on vBCloud?
__________________
Glenn Vergara - Former vB Developer
Looking for vB mods? Even for vBCloud?
vB Mods That Rock!

Reply With Quote
  #4  
Old 15 Oct 2016, 00:50
Papa Bear's Avatar
Papa Bear Papa Bear is offline
 
Join Date: Apr 2011
Originally Posted by noypiscripter View Post
Are you on vBCloud?
No..running version 5.2.4
Reply With Quote
  #5  
Old 15 Oct 2016, 01:08
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
Are you sure you are using an Ad Module and not an HTML module?
__________________
Glenn Vergara - Former vB Developer
Looking for vB mods? Even for vBCloud?
vB Mods That Rock!

Reply With Quote
  #6  
Old 15 Oct 2016, 01:10
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
Could you post or PM me the link to your site?
__________________
Glenn Vergara - Former vB Developer
Looking for vB mods? Even for vBCloud?
vB Mods That Rock!

Reply With Quote
  #7  
Old 18 Nov 2016, 16:14
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
@Papa Bear, I have an idea what's happening to your site not parsing vB template code syntax in Ad modules.

1. Determine the ad id generated by the Ad module you added. Right click on the module and inspect the HTML element and find ad_XXX_inner or axd_XXX CSS classes in the module. The XXX is the ad id. I found it for your site which is 158.

2. Find the ad template in AdminCP using the ad id you got in step 1. The template name has a format of ad_XXX where XXX is the ad id. So in your case, the template name is ad_158.

3. Edit the template and make sure the "Text Only" checkbox is unchecked. I'm pretty sure it is checked for you which causes vB template code syntax to not be parsed and evaluated.

4. Save.

Please let me know if that fixes the issue for you.
__________________
Glenn Vergara - Former vB Developer
Looking for vB mods? Even for vBCloud?
vB Mods That Rock!

Reply With Quote
  #8  
Old 18 Nov 2016, 23:12
Mark.B Mark.B is offline
 
Join Date: Feb 2004
Glenn, I ran into this on a client site and it's because the template has <vb:literal> tags in it. If you remove those it works.

Guess the ad modules must insert those by default, I'm not sure. The text only box was already unticked.
__________________
MARK.B (Member of the vB Support Team)
Reply With Quote
  #9  
Old 19 Nov 2016, 07:53
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
I don't see vb literal tags in Ad module templates. Or is that done only in vBCloud? I know the Text Only flag is forcely set in css_additional template when adding custom css via Sitebuilder CSS Editor. I created a related JIRA on that recently.

http://tracker.vbulletin.com/browse/VBV-16683
__________________
Glenn Vergara - Former vB Developer
Looking for vB mods? Even for vBCloud?
vB Mods That Rock!

Reply With Quote
  #10  
Old 19 Nov 2016, 10:25
Mark.B Mark.B is offline
 
Join Date: Feb 2004
Originally Posted by noypiscripter View Post
I don't see vb literal tags in Ad module templates. Or is that done only in vBCloud? I know the Text Only flag is forcely set in css_additional template when adding custom css via Sitebuilder CSS Editor. I created a related JIRA on that recently.

http://tracker.vbulletin.com/browse/VBV-16683
This was on a self hosted site, not cloud. It just put the tags in itself and that generated the same symptoms as the user above. I removed them and it worked. So that might be this user's issue.

It's worth noting that adding the forum description is due to go into 5.2.6:
http://tracker.vbulletin.com/browse/VBV-12209

The css_additional flag being set is, I'm fairly sure, because of Cloud customers, as they have access to that and it needs to be text only. So to implement that Jira they'd need some way of distinguishing between the two and setting it appropriately. Otherwise Cloud customers would have to be restricted from adding custom css.
__________________
MARK.B (Member of the vB Support Team)
Reply With Quote
  #11  
Old 20 Nov 2016, 04:26
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
Originally Posted by Mark.B View Post
This was on a self hosted site, not cloud. It just put the tags in itself and that generated the same symptoms as the user above. I removed them and it worked. So that might be this user's issue.
That looks like an issue then. There should be no vb literal tags in ad templates as vb template syntax is supported in ad modules
__________________
Glenn Vergara - Former vB Developer
Looking for vB mods? Even for vBCloud?
vB Mods That Rock!

Reply With Quote
  #12  
Old 22 Nov 2016, 19:48
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
I have tested in my 5.2.5 test site that it adds <vb:literal> tags around the code in Ad modules. I don't know if this was intended but it looks like this was implemented recently in the past one or two versions. I assume this was intended for vBCloud only and not for self-hosted. So I guess this has the same issue as the Text Only flag in css_additional template (http://tracker.vbulletin.com/browse/VBV-16683).

Btw, the added literal tags can be easily bypassed by closing and opening it and putting your code in between.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

First post updated to add this workaround. This workaround will probably work in vBCloud too.
__________________
Glenn Vergara - Former vB Developer
Looking for vB mods? Even for vBCloud?
vB Mods That Rock!


Last edited by noypiscripter; 22 Nov 2016 at 23:21.
Reply With Quote
  #13  
Old 22 Nov 2016, 22:05
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
I checked vB 5.2.3 and it doesn't add <vb:literal> tags. So I think the addition of literal tags started in vB 5.2.4.

I still think that this was intended for vBCloud only. This should not happen in self-hosted version. Actually, the Ad code field has this text above it:

Template conditionals and variables are allowed.
That should be removed if template code syntax is not allowed.
__________________
Glenn Vergara - Former vB Developer
Looking for vB mods? Even for vBCloud?
vB Mods That Rock!

Reply With Quote
  #14  
Old 22 Nov 2016, 22:20
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
I created a bug report for this.

http://tracker.vbulletin.com/browse/VBV-16734
__________________
Glenn Vergara - Former vB Developer
Looking for vB mods? Even for vBCloud?
vB Mods That Rock!

Reply With Quote
  #15  
Old 23 Nov 2016, 18:07
satriamuda99 satriamuda99 is offline
 
Join Date: Oct 2014
you are very genius in vBulletin can you create a module like this? http://prntscr.com/d7zdpl
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 22:30.

Layout Options | Width: Wide Color: