IGN Style Colored Names

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.
Locked
azzam
Registered User
Posts: 345
Joined: Sat May 03, 2008 11:33 am

Re: IGN Style Colored Names

Post by azzam »

Any news on update?
Azzam Malik
I love mods :)
Trel
Registered User
Posts: 507
Joined: Sun Aug 11, 2002 2:02 pm
Location: In your moniter stupid
Contact:

Re: IGN Style Colored Names

Post by Trel »

I'm going to do a test install of 3.0.4 to see what's up.
Trel
Registered User
Posts: 507
Joined: Sun Aug 11, 2002 2:02 pm
Location: In your moniter stupid
Contact:

Re: IGN Style Colored Names

Post by Trel »

Ok, what I've seen so far

In the instructions it says

FIND:

Code: Select all

function get_username_string($mode, $user_id, $username, $username_colour = '', $guest_username = false, $custom_profile_url = false)
{
	global $phpbb_root_path, $phpEx, $user, $auth;
Instead, you should FIND:

Code: Select all

		return $_profile_cache[$cache_key][$mode];
	}

	global $phpbb_root_path, $phpEx, $user, $auth;
That edit remains the same

---------------

Next, the instructions say

FIND:

Code: Select all

$profile_url = '';
Instead, FIND:

Code: Select all

$username_colour = ($username_colour) ? '#' . $username_colour : '';
Once again, the edit remains the same.

----------

Then it says to FIND:

Code: Select all

else
	{
		$profile_url = '';
	}
Instead, you should FIND:

Code: Select all

	else
	{
		$username = ($user_id && $user_id != ANONYMOUS) ? $username : ((!empty($guest_username)) ? $guest_username : $user->lang['GUEST']);
	}
And again, the edit remains the same.





Everything else in that file should be the same.
Does that help?

(Also, I had to clear the cache before it showed up the first time, so if it's still showing the non-colors, try purging the cache, but do this first as it IS needed.)
WascallyWabbit
Registered User
Posts: 170
Joined: Sun Mar 16, 2008 1:17 pm
Contact:

Re: IGN Style Colored Names

Post by WascallyWabbit »

Trel wrote:Ok, what I've seen so far

In the instructions it says

FIND:

Code: Select all

function get_username_string($mode, $user_id, $username, $username_colour = '', $guest_username = false, $custom_profile_url = false)
{
	global $phpbb_root_path, $phpEx, $user, $auth;
Instead, you should FIND:

Code: Select all

		return $_profile_cache[$cache_key][$mode];
	}

	global $phpbb_root_path, $phpEx, $user, $auth;
That edit remains the same

---------------

Next, the instructions say

FIND:

Code: Select all

$profile_url = '';
Instead, FIND:

Code: Select all

$username_colour = ($username_colour) ? '#' . $username_colour : '';
Once again, the edit remains the same.

----------

Then it says to FIND:

Code: Select all

else
	{
		$profile_url = '';
	}
Instead, you should FIND:

Code: Select all

	else
	{
		$username = ($user_id && $user_id != ANONYMOUS) ? $username : ((!empty($guest_username)) ? $guest_username : $user->lang['GUEST']);
	}
And again, the edit remains the same.





Everything else in that file should be the same.
Does that help?

(Also, I had to clear the cache before it showed up the first time, so if it's still showing the non-colors, try purging the cache, but do this first as it IS needed.)
Two Great Big Thumbs Up!! Thank you so much for fixing the problem, you are the best.

Have a good 1
azzam
Registered User
Posts: 345
Joined: Sat May 03, 2008 11:33 am

Re: IGN Style Colored Names

Post by azzam »

Two more thumbs up ..

Thank you so much :)
Azzam Malik
I love mods :)
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 26144
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

IGN Style Colored Names

Post by Paul »

MOD Updated to version 1.4.0
See first post for Download Link
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development
Trel
Registered User
Posts: 507
Joined: Sun Aug 11, 2002 2:02 pm
Location: In your moniter stupid
Contact:

Re: IGN Style Colored Names

Post by Trel »

The only change in 1.4.0 is what I already said in: http://www.phpbb.com/community/viewtopi ... 5#p8122745

If you already adjusted for that in the latest phpBB, then you're fine.
User avatar
eeji
Jr. Style Validator
Posts: 1236
Joined: Fri Dec 12, 2008 9:08 pm
Location: Manchester, UK
Contact:

Re: IGN Style Colored Names

Post by eeji »

is there any easy way to limit the choice to just text colour?

I found a work around by hiding the options in the ucp_profile_profile_info.html file but it still needs the same colour as the background to be in the functions_content.php to work which then leaves people able to choose the same colour as the background for their username :(
My phpBB styles: phpbbstyles.oo.gd
My board: iansvivarium.com
Trel
Registered User
Posts: 507
Joined: Sun Aug 11, 2002 2:02 pm
Location: In your moniter stupid
Contact:

Re: IGN Style Colored Names

Post by Trel »

eeji wrote:is there any easy way to limit the choice to just text colour?

I found a work around by hiding the options in the ucp_profile_profile_info.html file but it still needs the same colour as the background to be in the functions_content.php to work which then leaves people able to choose the same colour as the background for their username :(
Quickest way to do it without me having to think too much as it's almost 3am.

Open functions_content.php

Find:

Code: Select all

$username_colour = $user_row['style_color'].'; font-weight: '.$user_row['style_fontweight'].';
          font-style: '.$user_row['style_fontstyle'].';
          background-color: '.$user_row['style_background'].';
          text-decoration: '.$user_row['style_decoration'].';
          border: '.$user_row['style_border'].';';
Replace with

Code: Select all

$username_colour = $user_row['style_color'].';';
That will restrict what's displayed to colors only.

If you want to make it so things like bold, underline strikethrough, and italic still work, then instead

Replace with

Code: Select all

$username_colour = $user_row['style_color'].'; font-weight: '.$user_row['style_fontweight'].';
          font-style: '.$user_row['style_fontstyle'].';
          text-decoration: '.$user_row['style_decoration'].';';
SpEeDyZ
Registered User
Posts: 70
Joined: Wed Apr 09, 2008 10:47 am

Re: IGN Style Colored Names

Post by SpEeDyZ »

can anyone show me a demo please ?
Trel
Registered User
Posts: 507
Joined: Sun Aug 11, 2002 2:02 pm
Location: In your moniter stupid
Contact:

Re: IGN Style Colored Names

Post by Trel »

SpEeDyZ wrote:can anyone show me a demo please ?
Demo version (and login info) is in the first post here: http://www.phpbb.com/community/viewtopi ... &t=1215365
It's a version or two old, but it should be the same as far as the usage goes.
User avatar
eeji
Jr. Style Validator
Posts: 1236
Joined: Fri Dec 12, 2008 9:08 pm
Location: Manchester, UK
Contact:

Re: IGN Style Colored Names

Post by eeji »

Thank you so much Trel, that worked a treat :D
My phpBB styles: phpbbstyles.oo.gd
My board: iansvivarium.com
ximpdbydefault
Registered User
Posts: 33
Joined: Sun Feb 05, 2006 8:13 am

Re: IGN Style Colored Names

Post by ximpdbydefault »

Realy a decent mod Trel, in fact Ive installed it about an hour ago and have been flooded by pm's and emails asking either why they are all admins or whos the admin. Can I pick your brain and ask why you chose FF0000 to be default? could it have not been defaulted to none?

For thoes who would like to override and therefore eliminate the red names with red borders (upon new register and after the install of this mod) but keep the underline in tact and for thoes who are able to access phpmyadmin, do the following:

First:
Logon to phpmyadmin>(click on your database the phpbb install)>click on the structure icon for phpbb_users>check the check boxes next to style_border AND style_color and use the drop fearure (red X) for these two tables.> Click Yes on the next screen.

Next:
Logon to phpmyadmin>(click on your database the phpbb install)>click on the word SQL at the very top of the page to Run SQL query and in the field provided enter the following:

Code: Select all

ALTER TABLE phpbb_users ADD style_color varchar(255) NOT NULL default 'normal';
ALTER TABLE phpbb_users ADD style_border varchar(255) NOT NULL default '1px solid normal';
Then click the go button.

Lastly:
Open up your prefered file manager> navigate to the cache directory under your forums directory> delete everything in there except for the .htaccess located there. Doing this will be just like purging your forum cache even better because it will delete old sql istances as well.> go back to your forum index page and CTRL+F5. Your set.

Note:
Users can still change to any color name and any color border in ucp, even red, if they chose.
Last edited by ximpdbydefault on Thu Jan 08, 2009 3:58 pm, edited 1 time in total.
figo
Registered User
Posts: 129
Joined: Tue Sep 18, 2007 4:57 am

Re: IGN Style Colored Names

Post by figo »

i would like to see a feature where the default color on installation of this mod is whatever the user currently has it as. So if they are in a special usergroup that colors their username green. It should be like that by default.

They should change the color only if they want it to be, bot force them to.

I only want this because i have a sports forum, where club groups are represented by the teams color. so right away we can identify who supports who.


I just dont think this mod should override the defaults (including admin, mod, and usergroup colors)
Trel
Registered User
Posts: 507
Joined: Sun Aug 11, 2002 2:02 pm
Location: In your moniter stupid
Contact:

Re: IGN Style Colored Names

Post by Trel »

ximpdbydefault wrote:Realy a decent mod Trel, in fact Ive installed it about an hour ago and have been flooded by pm's and emails asking either why they are all admins or whos the admin. Can I pick your brain and ask why you chose FF0000 to be default? could it have not been defaulted to none?
Remember, I based this off the feature on IGN boards. When you first get the ability on there, the default is red. (I actually did the red border as default to differentiate between admin and color ability)

figo wrote:i would like to see a feature where the default color on installation of this mod is whatever the user currently has it as. So if they are in a special usergroup that colors their username green. It should be like that by default.

They should change the color only if they want it to be, bot force them to.

I only want this because i have a sports forum, where club groups are represented by the teams color. so right away we can identify who supports who.


I just dont think this mod should override the defaults (including admin, mod, and usergroup colors)
I'm not so sure that would work easily. Doing it per user would be a big strain as it would have to check for every user (and if you have a lot, that could be not good at all). Second, this is intended as a replacement for the built in colors. My code for this overrides the color set by phpBB this would not be a simple rewrite.

(I also said I'm not taking feature requests until I start on the next version)
Locked

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