Page 1 of 1

Locating includes/usercp_viewprofile.php

PostPosted: Thu Jul 06, 2006 9:15 pm
Author: Forgotten
Ok, since I am installing some mods, I need to know what file replaces the use of "includes/usercp_viewprofile.php".

I am lost between the network of files... and ideas?

I am specifically trying to locate the following line:

Code: Select all
$search = '<a>' . $lang['Search_user_posts'] . '</a>';


Thanks.

Re: Locating includes/usercp_viewprofile.php

PostPosted: Fri Jul 07, 2006 5:02 am
Author: Adrian Rea
I am not sure of which file you want, but I did a search for SEARCH_USER_POSTS and I came back with these results[code]integramod140memberlist.php        1         $search_img = '<a><img></a>';        2         $search = '<a>' . sprintf($lang['Search_user_posts'], $username)  . '</a>';3 matches in integramod140memberlist.phpintegramod140modcp.php        1                     'L_SEARCH_POSTS' => sprintf($lang['Search_user_posts'], $username), 1 match in integramod140modcp.phpintegramod140privmsg.php        1     $search_img = '<a><img></a>';        2     $search = '<a>' . sprintf($lang['Search_user_posts'], $username_from)  . '</a>';3 matches in integramod140privmsg.phpintegramod140shoutbox_max.php        1                     'L_SEARCH_POSTS' => sprintf($lang['Search_user_posts'], $shout_username), 1 match in integramod140shoutbox_max.phpintegramod140viewtopic.php        1     $search_img = '<a><img></a>';        2     $search = '<a>' . sprintf($lang['Search_user_posts'], $postrow[$i]['username'])  . '</a>';3 matches in integramod140viewtopic.phpintegramod140adminadmin_approve.php        1             $search_img = '<a><img></a>';        2             $search = '<a>' . sprintf($lang['Search_user_posts'], $profiledata['username'])  . '</a>';        3                 'L_SEARCH_USER_POSTS' => sprintf($lang['Search_user_posts'], $profiledata['username']),        4                 $search_img = '<a><img></a>';        5                 $search = '<a>' . sprintf($lang['Search_user_posts'], $postrow['username'])  . '</a>';8 matches in integramod140adminadmin_approve.phpintegramod140adminadmin_ip_search.php        1                 'L_SEARCH_POSTS' => sprintf($lang['Search_user_posts'], $username), 1 match in integramod140adminadmin_ip_search.phpintegramod140languagelang_englishlang_main.php        1  //$lang['Search_user_posts'] = 'Search for posts by this user';        2  $lang['Search_user_posts'] = 'Find all posts by %s'; // Find all posts by username2 matches in integramod140languagelang_englishlang_main.phpintegramod140profilcpprofilcp_privmsg.php        1     $search_img = '<a><img></a>';        2     $search = '<a>' . sprintf($lang['Search_user_posts'], $username_from)  . '</a>';3 matches in integramod140profilcpprofilcp_privmsg.phpintegramod140profilcpdefdef_userfuncs_std.php        1         $img = '<a><img></a>';        2             $txt .= '<a><b>' . sprintf($lang['Search_user_posts'], $view_userdata['username']) . '</b></a>';4 matches in integramod140profilcpdefdef_userfuncs_std.phpintegramod140templatesfisubiceprofile_view_body.tpl        1  <a>{L_SEARCH_USER_POSTS}</a><br><a>{L_PERSONAL_GALLERY}</a></span></td>1 match in integramod140templatesfisubiceprofile_view_body.tplintegramod140templatesInfernoprofile_view_body.tpl        1  <a>{L_SEARCH_USER_POSTS}</a><br><a>{L_PERSONAL_GALLERY}</a></span></td>1 match in integramod140templatesInfernoprofile_view_body.tplTOTAL]

Re: Locating includes/usercp_viewprofile.php

PostPosted: Fri Jul 07, 2006 11:28 am
Author: Forgotten
Im looking for the file that defines the data for the Basic Info aka Public Profile of a user.

Code: Select all
 // Contains     'POSTS' => $profiledata['user_posts'],  //Contains$search = '<a>' . $lang['Search_user_posts'] . '</a>';  //Contains     'L_TOTAL_POSTS' => $lang['Total_posts'],  //Contains     'L_SEARCH_USER_POSTS' => sprintf($lang['Search_user_posts'], $profiledata['username']),  //Conatains     'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username'])),


These are the lines I am trying to locate, or something similar that completes the same function.

[EDIT] This is [url=http]usercp_viewproile.php[/url]

Re: Locating includes/usercp_viewprofile.php

PostPosted: Fri Jul 07, 2006 2:54 pm
Author: Teelk
Hi there,

Do you have more specific file changes you can share, perhaps from the MOD. You may have to do some rewriting as PCP changes the way that the profile is handled.

Re: Locating includes/usercp_viewprofile.php

PostPosted: Fri Jul 07, 2006 5:38 pm
Author: Forgotten
Basically Im charged with the task to install around 30 mods, most of which require the editing of non-existant files.

So I'm on a mission to try to find the files that replace the missing...


List of ones I have yet had trouble with (There will be more)

Account Link n Switch for multi accounts with same owner.zip
user_notes_mod.zip
User_Selectable_Logo_1.0.1.zip
Vehicle Registry Hack.zip

Downloads: http://www.capitol7.com/604test/_modx0rz/

There are a lot, and I'm lost like a man trying to navigate thru a maze with his eyes closed.

PostPosted: Sun Nov 26, 2006 11:29 am
Author: zenrei
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:

Code: Select all
//// 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

Code: Select all
 'INVENTORYLINK' => $usernameurl,     'INVENTORYPICS' => $user_items,  


after

'YIM' => $yim,

and

Code: Select all
 '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??

PostPosted: Sun Nov 26, 2006 11:51 am
Author: zenrei
honestly.. it looks like i'm just adding things to the user profile.. isn't there some way i can do that through the admin? maybe the PCP wizard?