Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Burke ♞ Knight on November 18, 2008, 11:41:06 AM

Title: News Stay Mod by BK-Modding
Post by: Burke ♞ Knight on November 18, 2008, 11:41:06 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1506)

BK-SMF News Stay Mod

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

Made by: BurkeKnight (http://www.simplemachines.org/community/index.php?action=profile;u=150637) - BK-SMF (http://www.bksmf.com/)

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. (http://www.bksmf.com)

Support:

You may get support or submit questions and comments in the modification's support topic at the BK-SMF Support Site. (http://www.bksmf.com)

Changelog:

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

November 7, 2008:
+ Mod submitted
Title: Re: BK-SMF News Stay Mod
Post by: JiminiCricket on October 04, 2009, 01:18:10 PM
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">
Title: Re: BK-SMF News Stay Mod
Post by: flamechica on November 19, 2009, 04:52:31 AM
Will this be updated for RC2?