![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||
[FORUM-HOME] Add Notices/Advertisements to Forums on homepage
![]() Developer Last Online: Jan 2018 ![]() ![]() ![]()
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
Step 2 - Open your forumhome_forumbit_level2_post template | Styles & Templates > Edit Templates > FORUMHOME Templates > forumhome_forumbit_level2_post In this template find:
Add this code right above it:
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 Show Your Support
No members have liked this post.
|
![]() |
||||
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 11:21 |
Forum Home Advertisements | Daniel | vBulletin 3.5 Template Modifications | 28 | 21 Apr 2006 19:20 |
Comments |
#2
|
||||
|
||||
![]()
It is simpler to add everything into an array like so:
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!! ========================================== No members have liked this post.
Last edited by Davey-UK; 11 Jun 2014 at 19:10. |
#3
|
||||
|
||||
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.
__________________
Amazing Post-bit Legacy Hacks HERE http://www.vbulletin.org/forum/membe...ort=date#hacks No members have liked this post.
|
#4
|
||||
|
||||
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!! ========================================== No members have liked this post.
|
#5
|
|||
|
|||
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 No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 12:14.