News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Simple Colorizer

Started by Diego Andrés, June 26, 2011, 10:03:48 PM

Previous topic - Next topic

Suki

Indeed this one uses hooks while the other one makes code edits. Since this mod is OS, you can fork it, commit your changes and have an installable mod with those changes already included. This way you have control over what changes you add to your forum.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

phoenixphyre

#121
Quote from: Diego Andrés on July 19, 2019, 04:06:09 PM
I installed fine, no errors in the log either.

Hmm... must be conflicting with something. I'll just need to figure out what. Thanks for checking into it!

Edit: I installed it on a clean install and when I navigated to the index it had the same issue as before and wouldn't load the page at all. It seems to work fine on the admin pages but not the rest.

GigaWatt

Quote from: Suki on July 22, 2019, 10:44:52 AM
Indeed this one uses hooks while the other one makes code edits. Since this mod is OS, you can fork it, commit your changes and have an installable mod with those changes already included. This way you have control over what changes you add to your forum.

Really? Cool :). Didn't know it was on GitHub :).

Well, I'll try... I'll probably need some help, but still, it's a start :).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

jsx

@Diego Andrés

I use a modification Say Thanks and Simple Colorizer on the forum, so when someone thanks for a post, the user's name in the thanks does not appear in color.



After refreshing the page, the username color is displayed correctly.



Maybe this is some mistake from modification Say Thanks. Could you check it out?

Diego Andrés

It's because thanks mod is likely using ajax.
The mod colors the names right before the user gets them in the content.

SMF Tricks - Free & Premium Responsive Themes for SMF.

jsx

Thanks for the clarification. :)

pocttopus

It's not working on 2.1RC2.
There is no field for color change on profile page like in 2.0.17.

Diego Andrés

Mod has never had such feature.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Diego Andrés

1.3 - 23 October 2021
Fixed uninstall.
Fixed applying style to links that already have a style.
Fixed adding empty styles when the group had no color.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

DO NOT pm me for support!

pikeman

Works well with 2.1.1.

peter_mein

Hello
I have a conflict between simple colorizer and avatars display integration.
If i install avatars display integration it is all ok. See
picture error2.
when i install both mods it looks like this. See picture error1.
They disturb each other.

Diego Andrés

Sorry for the late response, I forgot about your post.
It's an issue with the avatar display integration mod.
Simple Colorizer already prevents double styles or overwriting styles, but in case of the latter the mod expects any previous styles to have a proper line ending ;

To fix it, you'd need to edit Sources/AvatarsDisplayIntegration.php
Code (Search) Select
return ('style="background-color: rgb('.$r.','.$g.','.$b.')"');
Code (Replace) Select
return ('style="background-color: rgb('.$r.','.$g.','.$b.');"');
Pinging @Pipke just in case they want to sort it in a future update.

SMF Tricks - Free & Premium Responsive Themes for SMF.

peter_mein

Thanks. Now everything is correct
Another question. Is it possible to change the guest color ?
The guest color is red.

Diego Andrés

Guest color is not a link, it will use the color provided by your theme for that specific element.

SMF Tricks - Free & Premium Responsive Themes for SMF.

jsx

@Diego Andrés

Have you thought about implementing member name coloring in Who's Online? This is missing here.

@rjen

Quote from: jsx on September 20, 2022, 01:14:33 PM@Diego Andrés

Have you thought about implementing member name coloring in Who's Online? This is missing here.

You are using TonyPortal, right?

That is a standard functionality in TinyPortal...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Diego Andrés

For the actual list? It should work in 2.1.3 with no additional changes required.
See: https://github.com/SimpleMachines/SMF/pull/7500

You could manually do this tiny change and it would work.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

Just tried it and yep, works like a charm.
DO NOT pm me for support!

jsx

Quote from: @rjen on September 20, 2022, 01:28:21 PMThat is a standard functionality in TinyPortal...

Thanks for the information, I didn't know about it.

This is this feature:

"Use membergroup color for user names throughout the forum"

Quote from: Diego Andrés on September 20, 2022, 01:59:09 PMFor the actual list? It should work in 2.1.3 with no additional changes required.
See: https://github.com/SimpleMachines/SMF/pull/7500

You could manually do this tiny change and it would work.

Thanks for the information.

Advertisement: