vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Display Enhancements - Move announcements back to above threads (https://vborg.vbsupport.ru/showthread.php?t=231460)

BSMedia 12-27-2009 10:00 PM

Move announcements back to above threads
 
1 Attachment(s)
By default in vB4 the annoucements are sort of floating right below the header for some unknown reason. They do come in a different color which is nice, but it's pretty hideous where it's currently at.

Open FORUMDISPLAY template locate and remove

Code:

<vb:if condition="$announcebits">
<ol id="announcements" class="announcements">
        {vb:raw announcebits}
</ol>
</vb:if>

Find:

Code:

                        <vb:if condition="$show['stickies']">               
                                <ol id="stickies" class="stickies">
                                        {vb:raw threadbits_sticky}
                                </ol>
                        </vb:if>

Add above (code we removed from step 1)

Code:

<vb:if condition="$announcebits">
<ol id="announcements" class="announcements">
        {vb:raw announcebits}
</ol>
</vb:if>

I know it's a simple change, but it looks much nice imo.

Demo: Aperture Photography Forums : Camera Talk

VonDoom 12-28-2009 07:01 PM

Tagged, Much better. the default placement of announcements is just bad. Thanks for helping me to put it back where it belongs and looks bests.

Hornstar 12-28-2009 09:52 PM

As above. I can't believe they moved it, it really looked out of place.

Dr.osamA 12-30-2009 09:31 AM

installed
________
Justin Bieber

Brother Malachi 01-01-2010 08:05 AM

Quote:

Originally Posted by hornstar1337 (Post 1940920)
As above. I can't believe they moved it, it really looked out of place.

Although I agree, don't you think the default vb4 placement draws more attention to it? Makes it more...err..important so to speak.

BSMedia 01-02-2010 07:17 PM

Not really because no one looks there for threads or annoucements.

Sador 01-07-2010 11:33 AM

1 Attachment(s)
Hmm, installed. However, on the right side, the grey line seems to be missing next to the announcement. Is there any way to make that show up as well?

Screenshot: https://vborg.vbsupport.ru/attachmen...1&d=1262871169

Thanks. :)

BSMedia 01-22-2010 05:08 PM

you could try to add border-left and border-right to the css for the annoucement bit, but I don't have the exact edit handy atm.

Sador 01-22-2010 05:36 PM

Hm, I wouldn't know either.. I'll wait. Thanks for the reply, anyway.

Bram H 02-28-2010 12:09 PM

Sometimes the most simply modifications have the best result. This is one of them! Great stuff thanks!

ndut 09-09-2010 11:58 PM

installed, on vb 4.0.5 thank you

shanef 10-18-2010 07:59 PM

after i did this code edit i can only have one announcement at a time showing and i don't have a back up of the code to change back, i know the code is in the post but i dont know exactly where to place it any ideas?

leclownos 11-10-2010 02:36 PM

Thank !! installed and Ok

jgt58 03-21-2011 12:49 AM

this should be default in vbulletin

jgt58 03-21-2011 12:50 AM

btw this works on 4.1.1

J-P 10-02-2011 02:29 PM

not too bad. Since we can place the announcement as forum specific, I was hoping it would remain above ALL thread within that forum. Not just at the forum root.

most people search the "what's new" and won't even bother to look at the forum root and will miss the announcement.

TravisWPaquin 08-10-2013 11:32 AM

The instructions provied are sloppy and has a poor organization. Really, the steps could of been elaborate upon much much better. Could anyone assist me, perhaps by me allowing you my administration information to resolve the issue among the coing? This would be very much appreciated if applicable.

TravisWPaquin 08-18-2013 09:42 AM

Anybody?


All times are GMT. The time now is 04:28 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01201 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete