News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

News Stay Mod by BK-Modding

Started by Burke ♞ Knight, November 18, 2008, 11:41:06 AM

Previous topic - Next topic

Burke ♞ Knight

Link to Mod

BK-SMF News Stay Mod

Version: 1.5 Date: November 10, 2008
Compatibility: 1.1.x and 2.0 Beta 4

Made by: BurkeKnight - BK-SMF

This modification changes the random news box.

Instead of vanishing when people collapse the user section, it will stay.

Demo:
This can be seen at the BK-SMF Support Site.

Support:

You may get support or submit questions and comments in the modification's support topic at the BK-SMF Support Site.

Changelog:

November 10, 2008:
+ Version 1.5 Compatible with SMF 1.1.x and 2.0 Beta 4

November 7, 2008:
+ Mod submitted

JiminiCricket

Anyone have any updates on this mod?  The website referred to is defunct, at least at this point.

I'd like to have the News stay visible all the time so that I can use it for a small ad, similar to what you see in gmail.

Unfortunately, in the New_Look theme, the changes don't work.   :(

There's very little code but I'm afraid I don't know enough to change it.

There are two xml files in this that do the following.  Anyone?  Thanks a million!

Replace: document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";
Add: // document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

Replace: <table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', ' width="100%" cellpadding="4" cellspacing="0" border="0">
</search>
Add: <table id="upshrinkHeader2" width="100%" cellpadding="4" cellspacing="0" border="0">

Replace: mainHeader.addTogglePanel("user_section");
      mainHeader.addTogglePanel("news_section");
Add: mainHeader.addTogglePanel("user_section");

Replace: <div id="news_section" class="titlebg2 clearfix"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
Add: <div id="news_section" class="titlebg2 clearfix">

flamechica

Will this be updated for RC2?

Advertisement: