Forums / Cotonti / Extensions / Color Usernames

123>>>

Give each letter it's own look.

TwistedGA
#1 2009-02-19 16:11
Colored Usernames. We've assigned them using CSS by GroupID(good for showing moderators, unfair to members). We've assigned them by UserID(fair to members, give moderators bold, or other style). These methods are very effective but require a lot of space in your CSS files, and lack a very nice feature to have. MultiColored names. Such as "nismo240". The ability to assign each individual letter's color, style, weight, ect.

Heres a screenshot of a username with random color change in it in action, I probably should have made them alternate but wheres the fun in that. Fades are awsome.



Link for 0.0.7:
http://rapidshare.com/files/205406077/ColorNames-0.0.7.zip
[color=#CC0000]Lazymod[/color] [color=#000000]Studios[/color]

Dit bericht is bewerkt door TwistedGA (2009-03-05 07:04, 14 jaren ago)
diablo
#2 2009-02-20 06:50
u dont need any php code for this just use css...
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
Brock
#3 2009-02-20 08:40
# diablo : u dont need any php code for this just use css...

You can alternate colors with CSS?
Web Design Database - www.wddb.com
TwistedGA
#4 2009-02-20 09:17
CSS can't alternate colors that I could find. I looked into it originally.
[color=#CC0000]Lazymod[/color] [color=#000000]Studios[/color]
Kilandor
#5 2009-02-21 06:47
0.1.0 Will have a feature so this no longer has to be corehacked
TwistedGA
#6 2009-02-21 08:01
I bet you wont be using this code though..huh?

I might aswell put my editing tools aside until cotonti is finished 100%.

Between this and the quickedit, everything I'm doing is being redone by someone on staff...

Why waste time recoding what I already did when it makes perfect sense to use it. Minimal changes, in three files(including making it editable) and the ability to use any html you please for any effect imaginable.

What more could we need with it?

This code can allow users to edit their display names as will should the site allow it, I am on several forums that allow this but to me, its hard to keep track of who everyone is when people change names daily.

I'm sure it could also feature the ability to let a user choose what color they want for each letter from dropdown boxes. I have plans to add more to it, but for now, this is far superior to any CSS.
[color=#CC0000]Lazymod[/color] [color=#000000]Studios[/color]

Dit bericht is bewerkt door TwistedGA (2009-02-21 08:09, 15 jaren ago)
oc
#7 2009-02-21 17:57
@Kilandor

Obsolete.
Kilandor
#8 2009-02-21 18:20
Why, would this be obsolete?

There is no way at all to modify the function or add HTML around users/groups without core hacking.

Dit bericht is bewerkt door Kilandor (2009-02-21 18:38, 15 jaren ago)
oc
#9 2009-02-21 18:56
I hate even viewing the rights forum like x--the owner of the world. Different colors are not professional (childish) and discriminating
Kilandor
#10 2009-02-21 19:28
Different colors or such can server purposes such as easily distingusing user, or administration for others, and its only childish if the admin desgins it lame, and its not discriminating in any way. For example in pages and stuff unless you just know who someone is then you may not know they are a Admin, or maybe a mod. With such features you can quickly distinguish who someone is just from the color of their name.

I have a site I use it on and it serves a distinct purpose, and there are so many users that use it. Or you can look at just about every other CMS/Forum system out there, they have a default coloring scheme for default groups.

I have no plans to put default colors, just the feature admins to set HTML, and admin choice to allow users to set their own (something I would never do on my own site). Also this would allow for, plugins to use this feature as well.

Part of what your referring to is a typical "title" feature, most systems have, but the location and such can be used for similar things lol. Though I don't think we need to add "titles" since it can be added as extra fields.

The reason for needing to add support for HTML for users/groups is because the only way for such modifications are corehacks, and these things are corehacked enough by people that its something we should have. It will also be very non-invasive, and for those that don't want it they will never know it was even there.
diablo
#11 2009-02-21 19:34
totally agree with oc . as i said if u want this really badly use css so you can add lots of more things like bold and italic text..

.groupcolor5 {color:#000000; font-weight:bold;}

<span style="groupcolor{FORUMS_POSTS_ROW_MAINGRPID}"> FORUMS_POSTS_ROW_POSTERNAME </span>
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
Kilandor
#12 2009-02-21 19:37
What I include will not be limited to just color's, it will support just nay html flat-out. But for the user editing (if admin allows) it would be limited to bbcode, and maybe more restrictive than that.

Using it in TPL like that is not acceptable as it would not work like that in every location.
Lombi
#13 2009-02-21 19:43
# TwistedGA : I bet you wont be using this code though..huh?

I might aswell put my editing tools aside until cotonti is finished 100%.

Between this and the quickedit, everything I'm doing is being redone by someone on staff...

Why waste time recoding what I already did when it makes perfect sense to use it. Minimal changes, in three files(including making it editable) and the ability to use any html you please for any effect imaginable.

What more could we need with it?

This code can allow users to edit their display names as will should the site allow it, I am on several forums that allow this but to me, its hard to keep track of who everyone is when people change names daily.

I'm sure it could also feature the ability to let a user choose what color they want for each letter from dropdown boxes. I have plans to add more to it, but for now, this is far superior to any CSS.

Please dont feel offended. The two improvements you've made are interesting enough that they are being considered to be very tightly integrated with the constnatly improving CMS. What you could do is maybe consider tackling any of the shortcomings in my signature link :)

# Kilandor : What I include will not be limited to just color's, it will support just nay html flat-out. But for the user editing (if admin allows) it would be limited to bbcode, and maybe more restrictive than that.

Using it in TPL like that is not acceptable as it would not work like that in every location.

Indeed, this could be improved vastly since it would allow the admin to make all sorts of design improvements that are group-based, like for example the way deviantart dispalys the usernames (char in front of username), which can't be handled by just CSS
<a href="http://www.domenlo.com">Surreal Art</a>

Dit bericht is bewerkt door Lombi (2009-02-21 19:44, 15 jaren ago)
oc
#14 2009-02-21 20:20
@TwistedGA

Do you think every code written is used ?
esclkm
#15 2009-02-21 23:12
i think we can made color user names now without any hacks or plugins - JS)
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты

123>>>