Username Colour Change MOD

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
Bobski2000
Registered User
Posts: 130
Joined: Mon Feb 16, 2009 9:40 pm
Location: UK

Re: Username Colour Change MOD

Post by Bobski2000 »

Eh?

It is differnet, so the changes that you made are ok to do?

You do see the difference between your file and mine yes?

(Please ignore the attachment.)
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Username Colour Change MOD

Post by mtrs »

This mod was denied twice, then I resubmitted. During updates, you must have downloaded the version before the last one. Yes, there are slight changes.
Please download from the first post in this topic, thanks.
I abandoned all of my mods.
User avatar
Bobski2000
Registered User
Posts: 130
Joined: Mon Feb 16, 2009 9:40 pm
Location: UK

Re: Username Colour Change MOD

Post by Bobski2000 »

I have. But i re-downloaded it again and checked the files you have in the ziped up folder and on line 26 of the functions_users_colour.php:

Code: Select all

'topic_first_poster_colour'		=> $update_user_colour,
Mine is this:

Code: Select all

'topic_first_poster_colour'		=> $db->sql_escape($update_user_colour),
There all slightly different.(The files that i need to upload from the zip files)

If i upload yours, to overwrite mine, surley it wont work as its re writen the first bi, if that makes sense?

So i guess there is something a miss?
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Username Colour Change MOD

Post by mtrs »

One of MODDB denial reasons of this mod was unneccesary use of $db->sql_escape , so I deleted them before resubmitting again.
Now, I've just downloaded the mod zip file again from MODDB, it's the latest, and has no $db->sql_escape in it.
I abandoned all of my mods.
SuperBaby
Registered User
Posts: 29
Joined: Tue Aug 02, 2005 8:04 am

Re: Username Colour Change MOD

Post by SuperBaby »

How do I remove the BOLD as in the attached screenshot? I tried to edit admin.css and links.css and changed the class username-coloured (from bold to none) but it didn't work. Having it bold is too distracting.
You do not have the required permissions to view the files attached to this post.
Janwawa Group Tour Management
http://janwawa.com
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Username Colour Change MOD

Post by mtrs »

Open
styles/prosilver/theme/links.css
Find

Code: Select all

/* Coloured usernames */
.username-coloured {
	font-weight: bold;
	display: inline !important;
	padding: 0 !important;
}
Find and Delete

Code: Select all

	font-weight: bold;
I tested at localhost, it works. You may need to purge cache and refresh themes.
I abandoned all of my mods.
User avatar
Bobski2000
Registered User
Posts: 130
Joined: Mon Feb 16, 2009 9:40 pm
Location: UK

Re: Username Colour Change MOD

Post by Bobski2000 »

Thanks. Stupid me.... I remember trying to install this mod a while ago when i new nothing. Made a bit of a mess with it...

Forgot to uninstall your previous uploaded files. So i was thinking that the new files that im going to upload were over writing somthing of the board not previously writen files by you..

What a smuck am I !

Anyhow, thanks for putting up with me.. Will let you know if i have any problems..

TTFN
SuperBaby
Registered User
Posts: 29
Joined: Tue Aug 02, 2005 8:04 am

Re: Username Colour Change MOD

Post by SuperBaby »

mtrs wrote:Open
styles/prosilver/theme/links.css
Find

Code: Select all

/* Coloured usernames */
.username-coloured {
	font-weight: bold;
	display: inline !important;
	padding: 0 !important;
}
Find and Delete

Code: Select all

	font-weight: bold;
I tested at localhost, it works. You may need to purge cache and refresh themes.
Purged cache. Not working. Weird.
Janwawa Group Tour Management
http://janwawa.com
azzam
Registered User
Posts: 345
Joined: Sat May 03, 2008 11:33 am

Re: Username Colour Change MOD

Post by azzam »

1)I installed this mod and set permissions to all group to yes but still no one can set color in ucp.
I remove if enabled line from ucp to try if working.But its showinng user_color like this but not right wording.

Edit: I think you missed out $user->add_lang('mods/user_colour'); this line now its work right... Thankyou

2)Also color didn't change when i first try but before that mod i installed ign mod.I get two line from function_ser.php >>

Code: Select all

global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx, $cache;
$cache->destroy('sql', USERS_TABLE);


After adding this code colors changed 100 % perfectly.But i don't know about coding.Will this cause some problem?

Edit:Now please answer to this...

I will be grateful if ya help me out.
Azzam Malik
I love mods :)
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Username Colour Change MOD

Post by mtrs »

azzam wrote:2)Also color didn't change when i first try but before that mod i installed ign mod.I get two line from function_ser.php >>

Code: Select all

global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx, $cache;
$cache->destroy('sql', USERS_TABLE);
After adding this code colors changed 100 % perfectly.But i don't know about coding.Will this cause some problem?
My mod only changes the value of default user_colour field in users_table, also update colour of this user in other table fields. So, that shouldn't be any problem.
I abandoned all of my mods.
azzam
Registered User
Posts: 345
Joined: Sat May 03, 2008 11:33 am

Re: Username Colour Change MOD

Post by azzam »

mtrs wrote:
azzam wrote:2)Also color didn't change when i first try but before that mod i installed ign mod.I get two line from function_ser.php >>

Code: Select all

global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx, $cache;
$cache->destroy('sql', USERS_TABLE);
After adding this code colors changed 100 % perfectly.But i don't know about coding.Will this cause some problem?
My mod only changes the value of default user_colour field in users_table, also update colour of this user in other table fields. So, that shouldn't be any problem.
Thanks for reply
Azzam Malik
I love mods :)
brett05
Registered User
Posts: 93
Joined: Fri Jun 05, 2009 2:16 pm

Re: Username Colour Change MOD

Post by brett05 »

Hi. Wondering if you can help please. After installing the MOD and trying to change the colour of a user in ACP, I am getting the following error -->

General Error
SQL ERROR [ mysql4 ]

Column 'user_colour_change' cannot be null [1048]

SQL

UPDATE users SET user_colour = '', user_colour_change = NULL WHERE user_id = 783

BACKTRACE

FILE: includes/db/mysql.php
LINE: 174
CALL: dbal->sql_error()

FILE: includes/acp/acp_users.php
LINE: 838
CALL: dbal_mysql->sql_query()

FILE: includes/functions_module.php
LINE: 507
CALL: acp_users->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Username Colour Change MOD

Post by mtrs »

Double check your edits in,
includes/acp/acp_users.php

Make sure, you made all the edits correct, I recommend using Automod to install.
Last edited by mtrs on Fri Jul 31, 2009 10:29 pm, edited 1 time in total.
I abandoned all of my mods.
brett05
Registered User
Posts: 93
Joined: Fri Jun 05, 2009 2:16 pm

Re: Username Colour Change MOD

Post by brett05 »

Thank you very much mtrs. I did have a small error in acp_users.php. I've uploaded the new file and will get my admin to test it.

I've never used Automod. I've just been following the instructions in the install.xml files. I'll have to do a search and find out more about Automod.
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Username Colour Change MOD

Post by mtrs »

Also, don't forget to run install script after the edits
phpBB3/install_usercolour.php
I abandoned all of my mods.

Return to “[3.0.x] MOD Database Releases”