Format Username in private.php ?
ZiNgA BuRgA Online
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Format Username in private.php ?
Depends on where exactly you want it, but the general procedure should be to look for build_profile_link() calls and wrap with format_name() calls.

If just the PM listing, then:
Find LAST instance of

Code:
SELECT pm.*, fu.username AS fromusername, tu.username as tousername

replace with

Code:
SELECT pm.*, fu.username AS fromusername, fu.usergroup AS fromusergroup, fu.displaygroup AS fromdisplaygroup, tu.username as tousername, tu.usergroup AS tousergroup, tu.displaygroup AS todisplaygroup


Find LAST instance of

PHP Code:
$tofromusername = build_profile_link($tofromusername, $tofromuid);

Add before:

PHP Code:
1
2
3
4
5
6
7
8
9
			if($folder == 2 || $folder == 3) {
				$tofromgrp = $message['tousergroup'];
				$tofromdgrp = $message['todisplaygroup'];
			} else {
				$tofromgrp = $message['fromusergroup'];
				$tofromdgrp = $message['fromdisplaygroup'];
			}
			if($tofromgrp)
				$tofromusername = format_name($tofromusername, $tofromgrp, $tofromdgrp);


My Blog
01-06-2012 04:27 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Format Username in private.php ? - Jumper - 01-06-2012, 12:25 PM
RE: Format Username in private.php ? - ZiNgA BuRgA - 01-06-2012 04:27 PM

 Standard Tools
Forum Jump: