Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[FORUM-HOME] Add Notices/Advertisements to Forums on homepage Details »
[FORUM-HOME] Add Notices/Advertisements to Forums on homepage
Mod Version: 1.00, by addamroy (Designer) addamroy is offline
Developer Last Online: Jan 2018 I like it Show Printable Version Email this Page

vB Version: 4.2.x Rating: (1 vote - 5.00 average) Installs: 6
Released: 10 Jun 2014 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code Translations  

This hack will allow you to add custom Notices/Advertisements/Messages underneath individual forums on the forum home page.

For example you could put a custom no-permission notice underneath your private forums with a link to your sales thread. You could place advertisements or any other links/text underneath specific forums on your home page.

You need to make 2 simple template edits to make this happen.

Step 1 - Add the following to the end of your additional.css template |
Styles & Templates > Edit Templates > CSS Templates > Additional.css


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

Step 2 - Open your forumhome_forumbit_level2_post template |
Styles & Templates > Edit Templates > FORUMHOME Templates > forumhome_forumbit_level2_post

In this template find:

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

Add this code right above it:

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

Change your FORUM ID to the ID of the forum you wish to display your message on.

Change USERGROUP IDs to the IDs of the usergroups that CAN see this message.

Change your URLs and/or adjust the message to suit your needs.

You MAY have to change the Margin-top: value to suit your forum's needs if your forumbits are different heights

That's it! Repeat step 2 for each forum you wish to display a custom notice under.

Mark as installed!

Download Now

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

Screenshots

Click image for larger version

Name:	example1.png
Views:	368
Size:	13.4 KB
ID:	149363  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Forum Home Enhancements Dashed - Forum Home Dashed Notices (Visually Appealing!) zefyx vBulletin 3.8 Template Modifications 5 04 Jul 2009 12:21
Forum Home Advertisements Daniel vBulletin 3.5 Template Modifications 28 21 Apr 2006 20:20

Comments
  #2  
Old 11 Jun 2014, 19:47
Davey-UK's Avatar
Davey-UK Davey-UK is offline
 
Join Date: Feb 2003
Location: Sheffield-UK
Real name: Dave
Post

It is simpler to add everything into an array like so:

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

Nice little edit, but i get a problem, that the forum titles are not clickable anymore when this notice is in place. Not good for Mr Google i wouldn't imagine.
__________________
==========================================
If it aint broke -------------------- Don't fix it!!
==========================================

Last edited by Davey-UK; 11 Jun 2014 at 20:10.
Reply With Quote
  #3  
Old 11 Jun 2014, 22:55
addamroy addamroy is offline
 
Join Date: Sep 2010
You are correct on using that string as opposed to mine, that is an easier option. (I am not as code savvy when it comes to vb code and conditionals)

There was a missing piece of the CSS style in additional CSS.

Use this code in the additional.css. Change the margin-top:52px value if your forumbits have a custom height. It will solve the unclickable problem.


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

__________________
Amazing Post-bit Legacy Hacks HERE http://www.vbulletin.org/forum/membe...ort=date#hacks
Reply With Quote
  #4  
Old 12 Jun 2014, 15:45
Davey-UK's Avatar
Davey-UK Davey-UK is offline
 
Join Date: Feb 2003
Location: Sheffield-UK
Real name: Dave
I'm working on it, because if you just add a new height, that doesnt look good if you have many sub forums, as obviously the height of the cell gets bigger, the more sub forums you have under a parent forum.
__________________
==========================================
If it aint broke -------------------- Don't fix it!!
==========================================
Reply With Quote
  #5  
Old 12 Jun 2014, 18:27
addamroy addamroy is offline
 
Join Date: Sep 2010
Let me know what you come up with for that. I'd certainly update the code here.
__________________
Amazing Post-bit Legacy Hacks HERE http://www.vbulletin.org/forum/membe...ort=date#hacks
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


New To Site? Need Help?

All times are GMT. The time now is 20:29.

Layout Options | Width: Wide Color: