Membergroup Profiles

Started by lordtron, July 22, 2008, 12:34:40 PM

Previous topic - Next topic

Rumbaar

Well I only focused on the URL, you'll need to make sure this part ($profile['GROUP_ID'] == {group_id_here}) is correct and correct populating.  What is the URL it's rendering to page?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

lordtron

This is the code I am using to replace the other code.

'href' => $profile['GROUP_ID'] == 9 ? http://google.com : $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'],
        'link' => '<a href="' . ($profile['GROUP_ID'] == 9 ? http://google.com : $scripturl . '?action=profile;u=' . $profile['ID_MEMBER']). '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . $profile['realName'] . '</a>',

I told it to goto google just for a test run. But it just ignores it or something and just goes to there default forum profile like I just said.

VainSoftGames.com - New Design To Gaming

Rumbaar

Well I'm sure $profile['GROUP_ID'] returns an array, so will never equal a single digit Group ID, so will never trigger $true to use that first URL.  You'll need to do a type of array_intersect check I'm sure.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

lordtron

And how exactly would I do that?

VainSoftGames.com - New Design To Gaming

Rumbaar

Well getting the trigger, you might have to use if statements
$newprofile = array(id1,id2,etc);
         if (array_intersect($profile['GROUP_ID'], $newprofile))
Now that assumed $profile['GROUP_ID'] actual is populated where you are calling it.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

lordtron

Alright where does that go, does that replace $profile['GROUP_ID']???

VainSoftGames.com - New Design To Gaming

Rumbaar

Well you can try (untested and off top of head), and I'm sure more elegant ways to do it but define a variable and then call upon that variable to trigger the swap.

$newprofile = array(id1,id2,etc);
if (array_intersect($profile['GROUP_ID'], $newprofile))
{
$showme = 'true';
}


'href' => $showme == true ? http://vainsoft.com/model/ourgirls/' . $variable . ' : $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'],

"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

lordtron

Ok, where do I put this?
   $newprofile = array(id1,id2,etc);
   if (array_intersect($profile['GROUP_ID'], $newprofile))
   {
   $showme = 'true';
   }

VainSoftGames.com - New Design To Gaming

Rumbaar

Anywhere in the file before it's call by those two references.  You might want to unset it after use or use an else statement to mark it false for none people in membergroups.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

lordtron

Alright that didn't work at all. I got this error


Parse error: parse error, unexpected T_DOUBLE_ARROW, expecting ')' in /Sources/Load.php on line 1043

Fatal error: Call to undefined function: cache_get_data() in /Sources/Load.php on line 158

VainSoftGames.com - New Design To Gaming

Rumbaar

Yeah I'm sure I'm not populating the variable right, what's on line 1043.  I'll fully test on my test server tonight if you haven't gotten it working by then or someone else has corrected my mistake.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

lordtron

Line 1043 is this:
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . $profile['realName'] . '</a>',

VainSoftGames.com - New Design To Gaming

Rumbaar

That has none of the edits outlined in this thread.  You must have some other open code in previous edits before that.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

lordtron

Oh, I new I forgot something. Well anyways I just changed the 2nd line to what the other guy said to replace it with and now I get this error


Parse error: parse error, unexpected '=' in /catchusers3/2014368/model/boards/Sources/Load.php on line 1042

Fatal error: Call to undefined function: cache_get_data() in /catchusers3/2014368/model/boards/Sources/Load.php on line 158

Line 1042 is the href code you gave me.
Line 158 is:
if (($modSettings = cache_get_data('modSettings', 90)) == null)

VainSoftGames.com - New Design To Gaming

[SiNaN]

This link and href should work:

'href' => in_array($profile['ID_GROUP'], array(1,2,3)) ? ('http://www.google.com/girls/' . $profile['realName']) : ($scripturl . '?action=profile;u=' . $profile['ID_MEMBER']),
'link' => '<a href="' . (in_array($profile['ID_GROUP'], array(1,2,3)) ? ('http://www.google.com/girls/' . $profile['realName']) : ($scripturl . '?action=profile;u=' . $profile['ID_MEMBER'])) . '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . $profile['realName'] . '</a>',


1,2,3 are the ID of groups whose profile links will be changed.

Note that this will just affect the profile link which are loaded with loadMemberData(). For example in memberlist or messages.
Former SMF Core Developer | My Mods | SimplePortal

lordtron

So are you saying that the link in posts won't change?

VainSoftGames.com - New Design To Gaming

[SiNaN]

Former SMF Core Developer | My Mods | SimplePortal

lordtron

So where wouldn't it change, cause you make it sound like in some places it won't change.

VainSoftGames.com - New Design To Gaming

[SiNaN]

For example in the latest member, latest posts. These ones I spotted just now. This could help you, a query with 'realName':

Quote----------------------------------------
Find ''realName'' in '\www\smf\Sources\Admin.php':
\www\smf\Sources\Admin.php(144):   $context['administrators'][] = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
Found ''realName'' 1 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\BoardIndex.php':
\www\smf\Sources\BoardIndex.php(229):     'name' => $row_board['realName'],
\www\smf\Sources\BoardIndex.php(231):     'link' => $row_board['posterName'] != '' ? (!empty($row_board['ID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_board['ID_MEMBER'] . '">' . $row_board['realName'] . '</a>' : $row_board['realName']) : $txt[470],
\www\smf\Sources\BoardIndex.php(293):   if (empty($row['realName']))
\www\smf\Sources\BoardIndex.php(306):    $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
\www\smf\Sources\BoardIndex.php(308):    $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
\www\smf\Sources\BoardIndex.php(320):    'name' => $row['realName'],
Found ''realName'' 7 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\Calendar.php':
\www\smf\Sources\Calendar.php(314):    'name' => $row['realName'],
Found ''realName'' 1 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\Display.php':
\www\smf\Sources\Display.php(375):     $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
\www\smf\Sources\Display.php(377):     $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
\www\smf\Sources\Display.php(389):     'name' => $row['realName'],
Found ''realName'' 3 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\Load.php':
\www\smf\Sources\Load.php(483):   'name' => isset($user_settings['realName']) ? $user_settings['realName'] : '',
\www\smf\Sources\Load.php(617):       'name' => $row['realName'],
\www\smf\Sources\Load.php(619):       'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MODERATOR'] . '" title="' . $txt[62] . '">' . $row['realName'] . '</a>'
\www\smf\Sources\Load.php(1008):   'name' => &$profile['realName'],
\www\smf\Sources\Load.php(1016):   'link' => '<a href="' . (in_array($profile['ID_GROUP'], array(1,2,3)) ? ('www.google.com/girls/' . $profile['realName']) : ($scripturl . '?action=profile;u=' . $profile['ID_MEMBER'])) . '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . $profile['realName'] . '</a>',
\www\smf\Sources\Load.php(1623):       'name' => $row['realName'],
\www\smf\Sources\Load.php(1625):       'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MODERATOR'] . '" title="' . $txt[62] . '">' . $row['realName'] . '</a>'
Found ''realName'' 10 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\ManageBans.php':
\www\smf\Sources\ManageBans.php(718):       'name' => $row['realName'],
\www\smf\Sources\ManageBans.php(720):       'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>',
\www\smf\Sources\ManageBans.php(989):      'name' => $row['realName'],
\www\smf\Sources\ManageBans.php(991):      'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>',
\www\smf\Sources\ManageBans.php(1072):     'name' => $row['realName'],
\www\smf\Sources\ManageBans.php(1074):     'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>',
Found ''realName'' 6 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\ManageBoards.php':
\www\smf\Sources\ManageBoards.php(527):   $context['board']['moderators'][] = $row['realName'];
Found ''realName'' 1 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\ManageErrors.php':
\www\smf\Sources\ManageErrors.php(160):    'realName' => $txt[28]
\www\smf\Sources\ManageErrors.php(168):    $context['errors'][$id]['member']['name'] = $members[$memID]['realName'];
\www\smf\Sources\ManageErrors.php(184):    $context['filter']['value']['html'] = '<a href="' . $scripturl . '?action=profile;u=' . $id . '">' . $user_profile[$id]['realName'] . '</a>';
Found ''realName'' 3 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\ManageMembergroups.php':
\www\smf\Sources\ManageMembergroups.php(621):   'name' => 'realName',
\www\smf\Sources\ManageMembergroups.php(632):   $querySort = 'realName';
\www\smf\Sources\ManageMembergroups.php(673):    'name' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>',
Found ''realName'' 3 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\ManageMembers.php':
\www\smf\Sources\ManageMembers.php(276):     'db_fields' => array('memberName', 'realName'),
\www\smf\Sources\ManageMembers.php(421):   'realName' => array('label' => $txt['display_name']),
\www\smf\Sources\ManageMembers.php(493):    'name' => $row['realName'],
\www\smf\Sources\ManageMembers.php(500):    'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>'
\www\smf\Sources\ManageMembers.php(731):    'name' => $row['realName'],
Found ''realName'' 5 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\ManageNews.php':
\www\smf\Sources\ManageNews.php(507):    !empty($_POST['send_html']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>' : $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
\www\smf\Sources\ManageNews.php(509):    $row['realName']
Found ''realName'' 2 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\Memberlist.php':
\www\smf\Sources\Memberlist.php(93):   'realName' => array(
\www\smf\Sources\Memberlist.php(160):  $use_cache = $modSettings['totalMembers'] > 2000 && (!isset($_REQUEST['sort']) || $_REQUEST['sort'] === 'realName') && isset($_REQUEST['start']) && $_REQUEST['start'] > $cache_step_size;
\www\smf\Sources\Memberlist.php(212):   $_REQUEST['sort'] = 'realName';
\www\smf\Sources\Memberlist.php(269):   'realName' => array(
\www\smf\Sources\Memberlist.php(314):  if ($use_cache && $_REQUEST['sort'] === 'realName' && !isset($_REQUEST['desc']))
\www\smf\Sources\Memberlist.php(323):  elseif ($use_cache && $_REQUEST['sort'] === 'realName')
\www\smf\Sources\Memberlist.php(347):  if ($_REQUEST['sort'] == 'realName')
\www\smf\Sources\Memberlist.php(385):    $fields = array('memberName', 'realName');
Found ''realName'' 8 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\MessageIndex.php':
\www\smf\Sources\MessageIndex.php(196):        'name' => $row_board['realName'],
\www\smf\Sources\MessageIndex.php(198):        'link' => $row_board['posterName'] != '' ? (!empty($row_board['ID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_board['ID_MEMBER'] . '">' . $row_board['realName'] . '</a>' : $row_board['realName']) : $txt[470],
\www\smf\Sources\MessageIndex.php(277):       'name' => $row['realName'],
\www\smf\Sources\MessageIndex.php(280):       'link' => $row['posterName'] != '' ? (!empty($row['ID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>' : $row['realName']) : $txt[470],
\www\smf\Sources\MessageIndex.php(333):     $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
\www\smf\Sources\MessageIndex.php(335):     $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
\www\smf\Sources\MessageIndex.php(346):     'name' => $row['realName'],
Found ''realName'' 9 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\Modlog.php':
\www\smf\Sources\Modlog.php(233):     'name' => $row['realName'],
\www\smf\Sources\Modlog.php(235):     'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>'
\www\smf\Sources\Modlog.php(313):      'name' => $row['realName'],
\www\smf\Sources\Modlog.php(315):      'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>'
\www\smf\Sources\Modlog.php(318):     $context['entries'][$action]['extra']['member'] = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
Found ''realName'' 5 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\News.php':
\www\smf\Sources\News.php(473):     'title' => cdata_parse($row['realName']),
\www\smf\Sources\News.php(481):     'title' => cdata_parse($row['realName']),
\www\smf\Sources\News.php(486):     'title' => cdata_parse($row['realName']),
\www\smf\Sources\News.php(496):     'name' => cdata_parse($row['realName']),
Found ''realName'' 4 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\PersonalMessage.php':
\www\smf\Sources\PersonalMessage.php(1162):     $form_message = '
Quote from: &quot;' . $row_quoted['realName'. "&quot;]\n" . $form_message . "\n
";
\www\smf\Sources\PersonalMessage.php(1164):     $form_message = '
Quote from: ' . $row_quoted['realName'. ' link=action=profile;u=' . $row_quoted['ID_MEMBER'] . ' date=' . $row_quoted['msgtime'] . "]\n" . $form_message . "\n
";
\www\smf\Sources\PersonalMessage.php(1176):     'name' => $row_quoted['realName'],
\www\smf\Sources\PersonalMessage.php(1180):     'link' => !empty($row_quoted['ID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_quoted['ID_MEMBER'] . '">' . $row_quoted['realName'] . '</a>' : $row_quoted['realName'],
\www\smf\Sources\PersonalMessage.php(1205):    $membersTo[] = '&quot;' . $row_quoted['realName'] . '&quot;';
\www\smf\Sources\PersonalMessage.php(1216):     $membersTo[] = '&quot;' . htmlspecialchars($row['realName']) . '&quot;';
\www\smf\Sources\PersonalMessage.php(1231):     $membersTo[] = '&quot;' . $row['realName'] . '&quot;';
\www\smf\Sources\PersonalMessage.php(1322):     'name' => $row_quoted['realName'],
\www\smf\Sources\PersonalMessage.php(1326):     'link' => !empty($row_quoted['ID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_quoted['ID_MEMBER'] . '">' . $row_quoted['realName'] . '</a>' : $row_quoted['realName'],
\www\smf\Sources\PersonalMessage.php(1622):     'name' => $row['realName'],
\www\smf\Sources\PersonalMessage.php(2136):    $context['admins'][$row['ID_MEMBER']] = $row['realName'];
Found ''realName'' 13 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\Profile.php':
\www\smf\Sources\Profile.php(275):   'name' => !isset($user_profile[$memID]['realName']) || $user_profile[$memID]['realName'] == '' ? '' : $user_profile[$memID]['realName'],
\www\smf\Sources\Profile.php(469):  elseif (isset($profile_vars['realName']))
\www\smf\Sources\Profile.php(473):  if (isset($profile_vars['birthdate']) || isset($profile_vars['realName']))
\www\smf\Sources\Profile.php(704):   if (isset($_POST['realName']) && (!empty($modSettings['allow_editDisplayName']) || allowedTo('moderate_forum')) && trim($_POST['realName']) != $old_profile['realName'])
\www\smf\Sources\Profile.php(706):    $_POST['realName'] = trim(preg_replace('~[\s]~' . ($context['utf8'] ? 'u' : ''), ' ', $_POST['realName']));
\www\smf\Sources\Profile.php(707):    if (trim($_POST['realName']) == '')
\www\smf\Sources\Profile.php(709):    elseif ($func['strlen']($_POST['realName']) > 60)
\www\smf\Sources\Profile.php(714):     if (isReservedName($_POST['realName'], $memID))
\www\smf\Sources\Profile.php(718):    if (isset($_POST['realName']))
\www\smf\Sources\Profile.php(719):     $profile_vars['realName'] = '\'' . $_POST['realName'] . '\'';
\www\smf\Sources\Profile.php(1392):  $context['page_title'] = $txt[458] . ' ' . $user_profile[$memID]['realName'];
\www\smf\Sources\Profile.php(1616):  $context['page_title'] = $txt['statPanel_showStats'] . ' ' . $user_profile[$memID]['realName'];
\www\smf\Sources\Profile.php(1760):  $context['page_title'] = $txt['trackUser'] . ' - ' . $user_profile[$memID]['realName'];
\www\smf\Sources\Profile.php(1763):  $context['member']['name'] = $user_profile[$memID]['realName'];
\www\smf\Sources\Profile.php(1854):     $context['members_in_range'][$row['ID_MEMBER']] = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
\www\smf\Sources\Profile.php(1865):     $context['members_in_range'][$row['ID_MEMBER']] = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
\www\smf\Sources\Profile.php(2038):  $context['member']['name'] = $user_profile[$memID]['realName'];
\www\smf\Sources\Profile.php(2556):     'name' => $row['realName'],
\www\smf\Sources\Profile.php(2558):     'link' => empty($row['ID_MEMBER']) ? $row['realName'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>'
\www\smf\Sources\Profile.php(2610):    $pm_ignore_list .= "\n" . $row['realName'];
\www\smf\Sources\Profile.php(2626):   $buddy_list .= "\n" . $row['realName'];
\www\smf\Sources\Profile.php(2651):  $context['page_title'] = $txt['deleteAccount'] . ': ' . $user_profile[$memID]['realName'];
\www\smf\Sources\Profile.php(2760):   'name' => !isset($_POST['realName']) || $_POST['realName'] == '' ? $user_profile[$_REQUEST['userID']]['memberName'] : stripslashes($_POST['realName']),
Found ''realName'' 32 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\Register.php':
\www\smf\Sources\Register.php(217):  if (isset($_POST['realName']) && (!empty($modSettings['allow_editDisplayName']) || allowedTo('moderate_forum')))
\www\smf\Sources\Register.php(219):   $_POST['realName'] = trim(preg_replace('~[\s]~' . ($context['utf8'] ? 'u' : ''), ' ', $_POST['realName']));
\www\smf\Sources\Register.php(220):   if (trim($_POST['realName']) != '' && !isReservedName($_POST['realName'], $memID) && $func['strlen']($_POST['realName']) <= 60)
\www\smf\Sources\Register.php(221):    $possible_strings[] = 'realName';
\www\smf\Sources\Register.php(404):   sendmail($row['emailAddress'], $txt['register_subject'], sprintf($txt[empty($modSettings['registration_method']) || $modSettings['registration_method'] == 1 ? 'resend_activate_message' : 'resend_pending_message'], $row['realName'], $row['memberName'], $row['validation_code'], $scripturl . '?action=activate;u=' . $row['ID_MEMBER'] . ';code=' . $row['validation_code']));
Found ''realName'' 8 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\Reminder.php':
\www\smf\Sources\Reminder.php(131):   sprintf($txt['sendtopic_dear'], $row['realName']) . "\n\n" .
Found ''realName'' 1 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\Reports.php':
\www\smf\Sources\Reports.php(205):   $moderators[$row['ID_BOARD']][] = $row['realName'];
\www\smf\Sources\Reports.php(697):   newTable($row['realName'], '', 'left', 'auto', 'left', 200, 'center');
Found ''realName'' 2 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\SplitTopics.php':
\www\smf\Sources\SplitTopics.php(372):    'poster' => $row['realName'],
\www\smf\Sources\SplitTopics.php(401):     'poster' => $row['realName']
Found ''realName'' 2 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\Stats.php':
\www\smf\Sources\Stats.php(209):    'name' => $row_members['realName'],
\www\smf\Sources\Stats.php(213):    'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'] . '">' . $row_members['realName'] . '</a>'
\www\smf\Sources\Stats.php(398):    'name' => $row_members['realName'],
\www\smf\Sources\Stats.php(402):    'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'] . '">' . $row_members['realName'] . '</a>'
\www\smf\Sources\Stats.php(445):    'name' => $row_members['realName'],
\www\smf\Sources\Stats.php(449):    'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'] . '">' . $row_members['realName'] . '</a>'
Found ''realName'' 6 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\Subs-Auth.php':
\www\smf\Sources\Subs-Auth.php(463):    'name' => $row['realName'],
\www\smf\Sources\Subs-Auth.php(467):    'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>'
\www\smf\Sources\Subs-Auth.php(566):    $utf8 = iconv($txt['lang_character_set'], 'UTF-8', $row['realName']);
\www\smf\Sources\Subs-Auth.php(568):     $row['realName'] = $utf8;
\www\smf\Sources\Subs-Auth.php(571):   $row['realName'] = strtr($row['realName'], array('&amp;' => '&', '&lt;' => '<', '&gt;' => '>', '&quot;' => '"'));
\www\smf\Sources\Subs-Auth.php(573):   if (preg_match('~&#\d+;~', $row['realName']) != 0)
\www\smf\Sources\Subs-Auth.php(585):    $row['realName'] = preg_replace('~&#(\d+);~e', '$fixchar(\'$1\')', $row['realName']);
\www\smf\Sources\Subs-Auth.php(588):   echo $row['realName'], "\n";
Found ''realName'' 10 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\Subs-Members.php':
\www\smf\Sources\Subs-Members.php(701):   'realName' => "'$regOptions[username]'",
\www\smf\Sources\Subs-Members.php(787):  $realName = substr($regOptions['register_vars']['realName'], 1, -1);
Found ''realName'' 2 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\Subs-Post.php':
\www\smf\Sources\Subs-Post.php(781):    $log['failed'][] = sprintf($txt['pm_error_data_limit_reached'], $row['realName']);
\www\smf\Sources\Subs-Post.php(788):    $log['failed'][] = sprintf($txt['pm_error_ignored_by_user'], $row['realName']);
\www\smf\Sources\Subs-Post.php(797):   $log['sent'][] = sprintf(isset($txt['pm_successfully_sent']) ? $txt['pm_successfully_sent'] : '', $row['realName']);
Found ''realName'' 3 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\Subs.php':
\www\smf\Sources\Subs.php(568):    'realName',
Found ''realName'' 1 time(s).
----------------------------------------
Find ''realName'' in '\www\smf\Sources\Who.php':
\www\smf\Sources\Who.php(388):     $data[$k] = sprintf($session_text, $row['ID_MEMBER'], $row['realName']);
Found ''realName'' 1 time(s).
Search complete, found ''realName'' 149 time(s). (27 file(s)).

In BoardIndex, in Stats, etc..
Former SMF Core Developer | My Mods | SimplePortal

lordtron

#39
So does this mean that everything that deals with realName will have the new link status?



Well I am not going to do realName, due to the chance of someone changing there realName. Just yesterday I had to change someones name. And when I get into higher numbers this will be a pain. So I just changed it to ID_MEMBER and thats fine, cause you can't change your ID_MEMBER, but only 1 problem with this.

It doesn't work for New Member in the Stats and for Latest Post on the Boards.
But it does work for Memberlist, Mail, And if your in a post the Poster, thats all I checked so far.

VainSoftGames.com - New Design To Gaming

Advertisement: