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.
knutroggers
Registered User
Posts: 6
Joined: Sun Sep 14, 2008 10:02 pm

Re: Username Colour Change MOD

Post by knutroggers »

probably im to silly to search in the correct way... ^^

i found this 4 parts:

Code: Select all

                                $template->assign_vars(array(
                                        'ERROR'                                => (sizeof($error)) ? implode('<br />', $error) : '',


                                $template->assign_vars(array(
                                        'ERROR'                => (sizeof($error)) ? implode('<br />', $error) : '',


                                $template->assign_vars(array(
                                        'ERROR'                                => (sizeof($error)) ? implode('<br />', $error) : '',


                                $template->assign_vars(array(
                                        'ERROR'                        => (sizeof($error)) ? implode('<br />', $error) : '',
it seams, that just the spaces are different (and with my editor i can't search for more than 1 space ^^

anyway it works well (nearly all my users have coloured themselves now^^), and it seams to me, that many others were able to install ist, so this should not be the problem .)
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Username Colour Change MOD

Post by mtrs »

Yes, that is fine it works for you. ;)

Another factor when editing is, finding the first find after the previous edit. Even if there 4 find instances, the first find after the previous edit is the correct find.
If you install with AutoMOD, it gives error if the edits are not in correct order.
I abandoned all of my mods.
knutroggers
Registered User
Posts: 6
Joined: Sun Sep 14, 2008 10:02 pm

Re: Username Colour Change MOD

Post by knutroggers »

mtrs wrote: Another factor when editing is, finding the first find after the previous edit. Even if there 4 find instances, the first find after the previous edit is the correct find.
oh thanks for that information! i didn't know that

Reinhard
happypappy
Registered User
Posts: 463
Joined: Wed Apr 27, 2005 1:44 am

Re: Username Colour Change MOD

Post by happypappy »

I keep getting logged out everytime i try and run the script. Could I please have the database sql entries?
comkidwizzer3
Registered User
Posts: 375
Joined: Fri Jul 13, 2007 8:24 am
Location: $user->data['user_location'];

Re: Username Colour Change MOD

Post by comkidwizzer3 »

mtrs wrote:
comkidwizzer3 wrote:Nice work, Hope you can improve this, I was thinking of if that when you type someones username it will come up with a link to their profile and will be their colour. :D
If I understand correctly, you want to enter the name of other user for colour selection, then mod would save her/his colour as your username colour.
But, this mod does not support this, having said that, you can just use a colour picker to learn the colour code of other user, then select your colour at ucp accordingly.
I mean that I want it so that for instance I type your name, and you color is Blue, so when I type your username, in my post it automatically changes to Blue
~My MODs~
Login After Register - v1.0.0 | Custom Ranks MOD - RC

~!Hasher!~
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Username Colour Change MOD

Post by mtrs »

happypappy wrote:I keep getting logged out everytime i try and run the script. Could I please have the database sql entries?
I don't have sql entries. It seems, your cookie settings need to be fixed, you should ask for help in support forums.
comkidwizzer3 wrote:I mean that I want it so that for instance I type your name, and you color is Blue, so when I type your username, in my post it automatically changes to Blue
I understand, but this mod doesn't support that. However, you can modify the code to do what you want.
I abandoned all of my mods.
comkidwizzer3
Registered User
Posts: 375
Joined: Fri Jul 13, 2007 8:24 am
Location: $user->data['user_location'];

Re: Username Colour Change MOD

Post by comkidwizzer3 »

It would be great if it did :D
~My MODs~
Login After Register - v1.0.0 | Custom Ranks MOD - RC

~!Hasher!~
rojoloco47
Registered User
Posts: 30
Joined: Wed Oct 28, 2009 3:30 pm

Re: Username Colour Change MOD

Post by rojoloco47 »

Hello !!
I have checked out your MOD and like it, I have installed it in my testing forum getting 1 problem ,
That in your screenshots you can change the color from ACP> USERS and GROUPS> Manage Users>

I cant see any option like that in my ACP > Manage Users
All is fine in UCP > Profile
Need a little guide about where I am wrong
I have double checked the file edits
Still cant get any solution . .. .

Regards
rojo
User avatar
dazzlebug
Registered User
Posts: 10
Joined: Mon Oct 26, 2009 8:41 pm

Re: Username Colour Change MOD

Post by dazzlebug »

Hi,

I uploaded all relevant files, made all necessary script changes, ran the install file (then deleted it), and set permissions correctly. But the option for changing username colour isn't showing up in the UCP. Help? I saw the reply on page 2 about a similar/same issue, but didn't quite understand the reply :? Any help greatly appreciated!
Supernatural Video Station | icon by [url=http://just_delicious.livejournal.com]just_delicious[/url]
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Username Colour Change MOD

Post by mtrs »

Make sure your edits are correct and purge cache
Control these two files again
# includes/ucp/ucp_profile.php,
# styles/prosilver/template/ucp_profile_profile_info.html

Also, if you can't make it work, add your user permission setting screenshot here.

Edit: I just installed this mod again at 3.0.6 with AutoMOD at localhost in a minute. It works just fine.
I abandoned all of my mods.
BMercer
Registered User
Posts: 55
Joined: Tue Aug 04, 2009 10:58 pm

Re: Username Colour Change MOD

Post by BMercer »

Is that possible, to let use this option only to users wich have X posts and X posts in some forums?
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Username Colour Change MOD

Post by mtrs »

For X posts limit, it is simple,
After installing this mod

Open
includes/ucp/ucp_profile.php
Find

Code: Select all

if ($auth->acl_get('u_change_colour'))
Replace with

Code: Select all

if ($auth->acl_get('u_change_colour') && $user->data['user_posts'] > 999)
For X posts limit in some forums
Open
includes/ucp/ucp_profile.php
Find

Code: Select all

if ($auth->acl_get('u_change_colour'))
Replace with

Code: Select all

	// Count users post in $X forum ID
		$X = 555; //forum_id where posts will be counted //change to an appropriate number you need
		$sql = 'SELECT COUNT(post_id) as posts_num
			FROM ' . POSTS_TABLE . '
			WHERE poster_id = ' . $user->data['user_id'] . ';
				AND forum_id = ' . $X;
		$result = $db->sql_query($sql);
		$user_posts_num = (int) $db->sql_fetchfield('posts_num');
		$db->sql_freeresult($result);
if ($auth->acl_get('u_change_colour') && $user_posts_num > 99 && $user->data['user_posts'] > 999)
Also you can use the user permissions to only allow certain users

Note: code is not tested, you need to test. Replace 99 and 999 number with your limit.
I abandoned all of my mods.
User avatar
wagu
Registered User
Posts: 26
Joined: Tue Nov 24, 2009 4:04 am
Location: Chile

Re: Username Colour Change MOD

Post by wagu »

Test in 3.0.6 work fine ;)
BMercer
Registered User
Posts: 55
Joined: Tue Aug 04, 2009 10:58 pm

Re: Username Colour Change MOD

Post by BMercer »

What if i'd like that only users with (let's say a number) 150 posts in all forums but the one with the id 69, could use this mod?
I'm not sure of what i said, but i'd like that the post count doesnt count the post in the forum with id 69.
;)

Thaks for the previous reply.
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Username Colour Change MOD

Post by mtrs »

Can you give examples?

User A - 999 posts - ??? in ?? forums ???
I abandoned all of my mods.

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