UnBold My News (1.1.x and 2.x)

Started by Yigal, September 22, 2008, 09:57:10 PM

Previous topic - Next topic

Yigal

Link to Mod




What's This?

1.0: Unbolds the News Fader and allows you to use the and feature or <b> and </b> ONLY for 1.1.x
1.1: Unbolds the News Fader and allows you to use the and feature or <b> and </b> AND changes the News Fader/News Header from "News" to "Global Forum News" (just look at the parse/manual instructions and you can change the header name ONLY for 1.1.x
2.0: Unbolds the News Fader and allows you to use the and feature or <b> and </b> ONLY for 2.0.x

1.2 = Not a lot of time for it, so I can't really work on it
2.1 = Not a lot of time for it, so I can't really work on it

Compatibility?
What SMF Versions will this Modification work on?

1.1.x = YES
2.x = YES

2.0 RC 3/4
Quote from: LHW on August 27, 2010, 02:00:33 PM

Edit BoardIndex.template.php and look for this:

      // Create a news fader object.
      var oNewsFader = new smf_NewsFader({
         sSelf: \'oNewsFader\',
         sFaderControlId: \'smfFadeScroller\',
         sItemTemplate: ', JavaScriptEscape('<strong>%1$s</strong>'), ',
         iFadeDelay: ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], '
      });


And change it to this:

      // Create a news fader object.
      var oNewsFader = new smf_NewsFader({
         sSelf: \'oNewsFader\',
         sFaderControlId: \'smfFadeScroller\',
         sItemTemplate: ', JavaScriptEscape('%1$s'), ',
         iFadeDelay: ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], '
      });


All you need to do is remove the <strong> & </strong> tags.

Support
Do you need support?  Have any issues? Please post any issues/questions here!  Or if you just want to thank me for this modification!  Go right ahead =]

DO NOT PM ME/EMAIL ME/ABOUT THIS MODIFICATION FOR SUPPORT
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

Marcus Forsberg

Thank's for this!
Te bold news has been disturbing me very long, but I've been to lazy to fix it until I saw this mod :)

Yigal

No Problem :D
For any more questions please post here!
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

Yigal

#3
Fixed.
What the problem was I named 'package-info.xml' 'Package-Info.xml'

Have a nice day.
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

Asshandler

#4
Nice mod, good job.

Quick question though, I'd like to change the title of the News box from just "News" to something more flashy, like "Latest Headlines" or something to that effect.

Any idea how I would go about doing this?  Thanks in advance.  :)

Edit -- Nvm, found it.  Themes > Default > Languages > index.english

Cheers. :)
The only thing necessary for the triumph of evil is for good men to do nothing.

Yigal

#5
Thank You for your comment, and good job finding it yourself :)

Please Look At Post #1 for an update.
1.1 has been released due to your question :)
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

Yigal

*Announcement*

1.2 has been cancelled due to lack of time, sorry.
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

prot

This mod didn't work for me and I'm guessing it's because I'm using a custom theme.  Would you know how to make this work for the theme called Outline by dzinerstudio?

Yigal

I would suggest installing the Mod manually.
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

steve51184

is it just me or is the below code (that needs to be found) not even in smf 2.0 rc2 in the BoardIndex.template.php file?

Code (find) Select
// Surround each item with... anything special?
var smfFadeBefore = "<b>", smfFadeAfter = "</b>";


Code (replace) Select
// Surround each item with... anything special?
var smfFadeBefore = " ", smfFadeAfter = " ";


i can't find it any where


steve51184


Yigal

Sorry, no.  I lost intrest in SMF and modifications.  Anyone else can modify codes if they like.  I just don't care anymore. 

Sorry.
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

steve51184


Yigal

Sorry my friend.  Perhaps one day i might come back :)
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

steve51184

Quote from: Yigal on March 21, 2010, 09:49:54 PM
Sorry my friend.  Perhaps one day i might come back :)

sorry to hear that... any chance you can answer my above question? think of it as a nice send off ;)

http://www.simplemachines.org/community/index.php?topic=263592.msg2521074#msg2521074

LHW

@Steve: If you're still looking at how to do this in RC3...

Edit BoardIndex.template.php and look for this:

      // Create a news fader object.
      var oNewsFader = new smf_NewsFader({
         sSelf: \'oNewsFader\',
         sFaderControlId: \'smfFadeScroller\',
         sItemTemplate: ', JavaScriptEscape('<strong>%1$s</strong>'), ',
         iFadeDelay: ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], '
      });


And change it to this:

      // Create a news fader object.
      var oNewsFader = new smf_NewsFader({
         sSelf: \'oNewsFader\',
         sFaderControlId: \'smfFadeScroller\',
         sItemTemplate: ', JavaScriptEscape('%1$s'), ',
         iFadeDelay: ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], '
      });


All you need to do is remove the <strong> & </strong> tags.


Yigal

Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

Yigal

Now compatible with 2.0RC3/4 (look at the code above).

Thanks LHW.
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

Eyesman

Hello, I am using smf 1.1.12 and I have installed this mod but it's still all bold. Is there a configuration or something?

Thank you.

Advertisement: