News:

Wondering if this will always be free?  See why free is better.

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


Siirist

Quote from: Joker™ on June 29, 2011, 02:26:36 AM
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.

Yup, that was it.
Thanks,
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

reboam

Hi.

I've installed your Mod on my SMF 2.02.
It seems my "Jump to last post button" have disappeared. How can I make it come back?

Thanks!



Joker™

That happened on the default theme or custom theme?
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

reboam

Quote from: Joker™ on February 02, 2012, 12:08:20 PM
That happened on the default theme or custom theme?

Custom theme.

Take a look if you want: hxxp:www.offtopicalia.com/foro/index.php?board=1.0 [nonactive]

As you see, on the right side of each post, it seems to appear the button. Ok. But before installing your mod that blue button appeared close to each post title.

Joker™

#24
Bug with the mod ;).

Give me a few mins to update it.

Edit - Mod updated.
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

reboam


OCJ

Nice but for guests everything appears  'new' in the colour. It destroys the look on any other themes if all the forum posts look this way.

As you said, you can edit the css file colour but it would be better being able to set a time limit for what is 'new', particularly for guest view. Ideally an admin section to input number of days considered new and a colour (any format will do ...hex).


Joker™

Quote from: igirisjin on February 05, 2012, 01:25:17 AMNice but for guests everything appears  'new' in the colour.
I'll see it, and most probably fro guests there should be no new color. Must be some coding error made from my side :P.

How about a field in admin panel where you can put the hex code of new color.
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

OCJ

QuoteHow about a field in admin panel where you can put the hex code of new color.

Would be easy for everyone.

Hj Ahmad Rasyid Hj Ismail

Hiya all.

I am entrusted with this mod now but I haven't have time to look into it deeply yet. I also believe that my brother Joker is a better coder than I am. I will try to do my best in handling this mod.

This mod idea is almost similar to my mod - HLBM: Highlight Buddy Message. These two mods won't be merged by similar idea may be used to enchance each other.

Thank you for supporting this mod and do feel free to ask for support.

CİHAD_EHLİ

What does this mod is there any setting

Harvester

This mod has been working fine for me but I now want to change the color of the new topics and I cannot find where to do that in the admin area. Where would that be?

br360

That would be in your theme's index.css.

Look for


/* New topics get a different background */
.new
{
background: #a0b9c9;
}
.new2
{
background: #baccd8;
}


Then just change the background colors to whatever you want

Harvester


Advertisement: