Locating includes/usercp_viewprofile.php

Support for IntegraMOD 140

Moderator: Integra Moderator

Locating includes/usercp_viewprofile.php

PostAuthor: Forgotten » Thu Jul 06, 2006 8:15 pm

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.
Last edited by Forgotten on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Forgotten
Newbie
Newbie
 
Posts: 3
Likes: 0 post
Liked in: 0 post
Joined: Thu Jul 06, 2006 8:12 pm
Cash on hand: 0.00

Re: Locating includes/usercp_viewprofile.php

PostAuthor: Adrian Rea » Fri Jul 07, 2006 4:02 am

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]
Last edited by Adrian Rea on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 11:59 pm
Cash on hand: 0.00

Re: Locating includes/usercp_viewprofile.php

PostAuthor: Forgotten » Fri Jul 07, 2006 10:28 am

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]
Last edited by Forgotten on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Forgotten
Newbie
Newbie
 
Posts: 3
Likes: 0 post
Liked in: 0 post
Joined: Thu Jul 06, 2006 8:12 pm
Cash on hand: 0.00

Re: Locating includes/usercp_viewprofile.php

PostAuthor: Teelk » Fri Jul 07, 2006 1:54 pm

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.
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: Locating includes/usercp_viewprofile.php

PostAuthor: Forgotten » Fri Jul 07, 2006 4:38 pm

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.
Last edited by Forgotten on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Forgotten
Newbie
Newbie
 
Posts: 3
Likes: 0 post
Liked in: 0 post
Joined: Thu Jul 06, 2006 8:12 pm
Cash on hand: 0.00

PostAuthor: zenrei » Sun Nov 26, 2006 10:29 am

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??
Last edited by zenrei on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
IntegraMOD 141 RULES!!
[img=left]http://www.falloutzone.net/foz/images/smiles/attentionwhore.gif[/img]

[url=http]Click here to go to my site built with IntegraMOD 141[/url] <img>
User avatar
zenrei
Sr Integra Member
Sr Integra Member
 
Posts: 286
Likes: 0 post
Liked in: 0 post
Joined: Mon Oct 09, 2006 7:36 am
Cash on hand: 0.00

PostAuthor: zenrei » Sun Nov 26, 2006 10:51 am

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?
Last edited by zenrei on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
IntegraMOD 141 RULES!!
[img=left]http://www.falloutzone.net/foz/images/smiles/attentionwhore.gif[/img]

[url=http]Click here to go to my site built with IntegraMOD 141[/url] <img>
User avatar
zenrei
Sr Integra Member
Sr Integra Member
 
Posts: 286
Likes: 0 post
Liked in: 0 post
Joined: Mon Oct 09, 2006 7:36 am
Cash on hand: 0.00


Return to IntegraMOD 140

Who is online

Registered users: Bing [Bot]