News:

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

Main Menu

New Topic in Different Color

Started by Hj Ahmad Rasyid Hj Ismail, July 26, 2010, 05:21:35 AM

Previous topic - Next topic

Hj Ahmad Rasyid Hj Ismail

New Topic in Different Color - Link to Mod

Taken over by: BurkeKnight - BurkeKnight Enterprises from: Joker™

For Support: The mod's Support topic at SMF, or at BurkeKnight Enterprises.

This modification will show new posts in different colors in boards,rather than just showing new icon next to them.

Change Log

Version 1.3
- Mod updated for SMF 2.0.2 and SMF 1.1.16
- New license added
- Fixed new topic button bug


Version 1.2
- Mod updated for SMF 2.0 final and SMF 1.1.14
- License added to the mod


Version 1.1
- Mod updated for SMF 1.1.13 and SMF 2.0 RC5

Github Link


License
* This SMF Modification is subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this SMF modification except in compliance with
* the License. You may obtain a copy of the License at
*http://www.mozilla.org/MPL/

Afro


Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

flutter

I'd have liked to have been able to pick the colour for the new topics.  We intend to have a sepia coloured theme and blue would stand out horribly.  Any plans on letting us change the colour through css or anything?  Or is there a way to change it ourselves in the code?  The last one being a good one.  You must have written the colour somewhere in the code, so can you tell us where and we can change it ourselves.

Joker™

Quote from: flutter on October 20, 2010, 05:05:06 PM
I'd have liked to have been able to pick the colour for the new topics.  We intend to have a sepia coloured theme and blue would stand out horribly.  Any plans on letting us change the colour through css or anything?  Or is there a way to change it ourselves in the code?  The last one being a good one.  You must have written the colour somewhere in the code, so can you tell us where and we can change it ourselves.
Forgot to tell your version. Go to mod page and parse the version you have downloaded.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

flutter

it's 2.0 r3.  So I can change the css in the files then.  I'll go have a look at it

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

flutter

Thank you so much, this will be lovely for our forum

roryjsk

Two questions.

How can I retain my sticky graphic on the right side of the topic?  Since they return after you've read the topic, it seems strange.

Second, is there a way to have either a different color for unread sticky topics?

Joker™

Quote from: roryjsk on January 10, 2011, 01:16:56 AM
Two questions.

How can I retain my sticky graphic on the right side of the topic?  Since they return after you've read the topic, it seems strange.

Second, is there a way to have either a different color for unread sticky topics?
How can I help you, if you don't tell me your
1. SMF version
2. Theme.

These are most basic things which you must write in any graphic related post.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved


roryjsk

My apologies.  I had been working on my site all day, wrote the post, and abruptly conked out.   :P

SMF version 2.0 RC4

Theme is BlueMaze.

Joker™

Quote from: Masterd on January 10, 2011, 06:32:46 AM
Nice mod! :D
Thank you :).


Quote from: roryjsk on January 10, 2011, 07:10:44 AM
My apologies.  I had been working on my site all day, wrote the post, and abruptly conked out.   :P

SMF version 2.0 RC4

Theme is BlueMaze.
One last thing, can you show me by some screen shots that what exact changes you would like to have ;).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

roryjsk

Could there be a separate "unread" color unique for sticky topics, to keep them standing out?

Joker™

Quote from: roryjsk on January 10, 2011, 11:33:32 AM
Could there be a separate "unread" color unique for sticky topics, to keep them standing out?
I've not tested the code yet, but you can try this. Make changes in the following file

Make backup of file before editing it
Themes\<your theme>\MessageIndex.template.php (If your folder doesn't have this file, open Default theme folder)

Find:
if ($topic['new'])
$color_class = 'new';


Replace it with:
if ($topic['new'] && $topic['is_sticky'])
$color_class = 'stickybg';
elseif ($topic['new'])
$color_class = 'new';
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Siirist

Hi ya Joker,

Upgraded ver 2.0 RC5 to ver 2.0 Final and am adding Mods.  Like this one, ,  ;D, but it's not working for me using ver 2.0 final, Default Theme.  :-\
See attached Screen Shot.  ???
Hmmm.

Thanks in advance.  ;)

Take Care,
Cloud  8)
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Joker™

Quote from: A_Survivor on June 29, 2011, 12:52:48 AM
Hi ya Joker,

Upgraded ver 2.0 RC5 to ver 2.0 Final and am adding Mods.  Like this one, ,  ;D, but it's not working for me using ver 2.0 final, Default Theme.  :-\
See attached Screen Shot.  ???
Hmmm.

Thanks in advance.  ;)

Take Care,
Cloud  8)

I think this mod changes the color of post links inside of the boards.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

lorth

i tried this mod on my 1.1.14 test forum with the default theme, and if the mod is enabled the "new postings" icon (and link) next to the topics headline doesn't get displayed.

any clue how to get that back?

Joker™

In themes\default\MessageIndex.template.php (Make backup of file before editing it)

Code (Find:) Select
echo '
', $topic['is_sticky'] ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>', $topic['is_sticky'] ? '</b>' : '';



Code (Add after:) Select
echo '
<a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a>';
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

lorth


Advertisement: