Ok.. i have a similar issue.
I need to find the includes/usercp_viewprofile.php
I'm installing the shop mod and it wants me to add:
//// Shop Code//if ( $board_config['viewprofile'] == 'images' ){ $sql = "SELECT * FROM " . USER_ITEMS_TABLE . " WHERE user_id='{$profiledata['user_id']}' AND ( worn = 0 or worn = 1 ) GROuP BY `item_name` ORDER BY `id`"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'SQL Fetch Error retrieving user items.'); } $num_rows = $db->sql_numrows($result); $user_items = '<br>'; for ( $iz = 0; $iz <num_rows>sql_fetchrow($result); if (file_exists('shop/images/' . $row['item_name'] . '.jpg')) { $user_items .= ' <img>'; } elseif (file_exists('shop/images/' . $row['item_name'] . '.png')) { $user_items .= ' <img>'; } elseif (file_exists('shop/images/' . $row['item_name'] . '.gif')) { $user_items .= ' <img>'; } } $usernameurl = '<a><b>' . $lang['items'] . '</b></a>] == 'link' ){ $usernameurl = '<a><b>' . $lang['items'] . '</b></a>';}
before:
$template->assign_vars(array(
'USERNAME' => $profiledata['username'],
and
'INVENTORYLINK' => $usernameurl, 'INVENTORYPICS' => $user_items,
after
'YIM' => $yim,
and
'L_ITEMS' => $lang['items'],
after
'L_INTERESTS' => $lang['Interests'],
where else would these things be located?? I'm SO close to getting this finished.
Will adding this file mess stuff up??