collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Colors Module - Priority  (Read 1725 times)

0 Members and 1 Guest are viewing this topic.

Offline redmagician

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Colors Module - Priority
« on: August 24, 2007, 05:18:45 pm »
Hi all,
Just thought I'd post my thoughts on the colors module.
First, I love these new ##color## tags, it cuts down on me having to lookup the correct hex value.

However, I've run into a "problem" and would like to know if this is intended or possibly an oversight.

Take this code in the whois module:
$result = "\"##whois_name##" . $who["nickname"] . "##end##\"";

In the current colors implementation if $who["nickname"] contains a color (for example black)
It has higher priority than the theme so the output is "##whois_nameend##" instead of "Black"

I believe themes should have a higher priority so I moved the "create all other color tags" check to be last, but I'd really like to know what other people think.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Colors Module - Priority
« Reply #1 on: August 24, 2007, 05:46:17 pm »
I guess it would have been smarter to use different tags for opening and closing...

Anyways, you can try moving block creating the color tags behind the block creating the scheme tags, perhaps it will help.

 

* Recent Posts
0.8.x updates for AO by bitnykk
[Today at 03:19:47 pm]


0.8.x updates for AoC by bitnykk
[Today at 03:19:44 pm]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 280
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal