Compguy11 Custom Modifications: Compatibility with Individual Username Format - Compguy11 Custom Modifications

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Compatibility with Individual Username Format User Requested Rate Topic: -----

#1 User is offline   lubu Icon

  • Advanced Member
  • Group: Members
  • Posts: 32
  • Joined: 06-October 06

Posted 14 June 2009 - 05:53 PM

(T23) Individual Username Format 1.2.1

he told me to ask u how to do this

"<a href='{$this->ipsclass->base_url}showuser={$r['member_name']}'>".$this->ipsclass->t23_iuf_render($r, $r['member_name'] )."</a>"


2 => array(	'select' => 'm.id, m.mgroup, m.members_display_name, m.t23_iuf_use, m.t23_iuf_color, m.t23_iuf_background, m.t23_iuf_border, m.t23_iuf_bold, m.t23_iuf_italic', 'from'   => array( 'members' => 'm' ), 'where'  => "m.id=du.member_id", 'type'   => 'left'),


anywhere that a username shows or other members usernames that show i would like it to be color with the username format mod he said use that code somewhere in ur mod to make it work
0

#2 User is offline   compguy11 Icon

  • Head Programmer
  • Group: Management
  • Posts: 1,674
  • Joined: 26-November 04
  • Gender:Male
  • Location:Wherever you need me...

Posted 20 June 2009 - 11:15 PM

Alright, I'm going to throw something up and see if it works. I obviously did not have time to test this out (would have to install the mod), but based on what you posted there, I think I can work something out.

Open /sources/components_public/teams.php

Find:
		$query_string = "id, name, members_display_name, mgroup";


Replace With:
			  $query_string = "id, name, members_display_name, mgroup,t23_iuf_use, t23_iuf_color, t23_iuf_background, t23_iuf_border, t23_iuf_bold, t23_iuf_italic";


Find:
			$this->mem_data[ $mem['id'] ] = $mem['members_display_name'];


Replace With:
				$this->mem_data[ $mem['id'] ] = $this->ipsclass->t23_iuf_render($mem, $mem['members_display_name'] );


Save and re-upload.

Try that.. let me know if any problems arise.
compguy11

http://compguy11.com

[ You may PM me if you have any questions or you wish to discuss a custom modification. ]
0

#3 User is offline   lubu Icon

  • Advanced Member
  • Group: Members
  • Posts: 32
  • Joined: 06-October 06

Posted 21 June 2009 - 06:32 PM

got this error

P[] error: syntax error, unexpected T_VARIABLE in /home/d2tc/public_html/forums/sources/components_public/teams.php on line 189


i know its not hard to get this working
0

#4 User is offline   compguy11 Icon

  • Head Programmer
  • Group: Management
  • Posts: 1,674
  • Joined: 26-November 04
  • Gender:Male
  • Location:Wherever you need me...

Posted 21 June 2009 - 11:33 PM

Woops.. my fault. At the end of that second replace, that line needs to have a semicolon at the end. Just look at Post #2 and I think you will see what I mean.
compguy11

http://compguy11.com

[ You may PM me if you have any questions or you wish to discuss a custom modification. ]
0

#5 User is offline   lubu Icon

  • Advanced Member
  • Group: Members
  • Posts: 32
  • Joined: 06-October 06

Posted 22 June 2009 - 05:49 PM

worked u should pin this code for anyone esle that uses this color mod
0

#6 User is offline   lubu Icon

  • Advanced Member
  • Group: Members
  • Posts: 32
  • Joined: 06-October 06

Posted 23 June 2009 - 01:19 AM

found 1 problem when i goto guild Management

love Vin'> next to Mass PM guild member button

love Vin'> tose members i donno

Posted Image
0

#7 User is offline   compguy11 Icon

  • Head Programmer
  • Group: Management
  • Posts: 1,674
  • Joined: 26-November 04
  • Gender:Male
  • Location:Wherever you need me...

Posted 23 June 2009 - 03:39 PM

Yes, I knew it wouldn't be as easy as my first post.

Still in /sources/components_public/teams.php

Find:
$this->team_mem_double = array();


Add Below:
$this->mem_data_plain = array();


Find:
			$this->mem_group_data[ $mem['id'] ] = $mem['mgroup'];


Add Above:
$this->mem_data_plain[ $mem['id'] ] = $mem['members_display_name'];


Find: (around line 830)
		$f[] = $this->mem_data[ $team_mem['mid'] ];


Replace With:
		$f[] = $this->mem_data_plain[ $team_mem['mid'] ];


Save and upload. Try that.
compguy11

http://compguy11.com

[ You may PM me if you have any questions or you wish to discuss a custom modification. ]
0

#8 User is offline   lubu Icon

  • Advanced Member
  • Group: Members
  • Posts: 32
  • Joined: 06-October 06

Posted 24 June 2009 - 07:25 PM

works and i dont see any errors
0

#9 User is offline   nikkolas Icon

  • Newbie
  • Group: Members
  • Posts: 1
  • Joined: 03-October 08
  • Gender:Male
  • Location:USA

Posted 10 September 2009 - 08:48 PM

Thanks I was just searching for this code. Saved me a heck of a lot of time :)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users