Fast Viewprofile Change

Mods etc.

Moderator: Integra Moderator

Fast Viewprofile Change

PostAuthor: Skywalker » Fri Jun 02, 2006 2:10 am

could someone port this to IM (PCP)

Code: Select all
 ############################################################## ## MOD Title]http://www.leuchte.net[/url] ## MOD Description: With this Mod you can fast change the profile by enter a user-id oder username in viewprofile.#### MOD Version: 1.0.0## ## Installation Level: Easy## Installation Time: 5 Minutes ## Files To Edit: 4####           language/lang_english/lang_main.php##           profile.php##           includes/usercp_viewprofile.php##           templates/subSilver/profile_view_body.tpl#### Included Files: 0 ############################################################## ## For Security Purposes, Please Check: [url=http://www.leuchte.net/mods/]http://www.leuchte.net/mods/[/url] for the ## latest version of this MOD.## ################################################################ Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ################################################################ MOD History:####   2004-11-17 - Initial Release################################################################ # #-----[ OPEN ]------------------------------------------ # language/lang_english/lang_main.php  # #-----[ FIND ]------------------------------------------ # ?>  # #-----[ BEFORE, ADD ]------------------------------------------ # $lang['Change_profile_viewprofile'] = 'Show Profile';$lang['Change_profile_idornick'] = 'Enter a User-ID or Username';  # #-----[ OPEN ]------------------------------------------ # profile.php  # #-----[ FIND ]------------------------------------------ # redirect(append_sid("index.$phpEx", true));  # #-----[ REPLACE, WITH ]------------------------------------------ # if ( isset($HTTP_GET_VARS['change_profile']) || isset($HTTP_POST_VARS['change_profile']) ){         $change = ( isset($HTTP_POST_VARS['change_view_profile']) ) ? $HTTP_POST_VARS['change_view_profile'] : $HTTP_GET_VARS['change_view_profile'];           $sql = "SELECT user_id             FROM ". USERS_TABLE ."             WHERE username = '$change'";         if ( !($result = $db->sql_query($sql)) )         {             message_die(GENERAL_ERROR, 'Could not get userdata', '', __LINE__, __FILE__, $sql);         }         if ( $row = $db->sql_fetchrow($result) )         {             $change_user_id = $row['user_id'];         }         else         {             $sql2 = "SELECT user_id                 FROM ". USERS_TABLE ."                 WHERE user_id = '$change'";             if ( !($result2 = $db->sql_query($sql2)) )             {                 message_die(GENERAL_ERROR, 'Could not get userdata', '', __LINE__, __FILE__, $sql);             }                     if ( !$row2 = $db->sql_fetchrow($result2) )             {                 message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);             }             else             {                 $change_user_id = $row2['user_id'];             }         }         header("Location:".append_sid("profile.$phpEx?mode=viewprofile&".POST_USERS_URL."=$change_user_id"));}else{     redirect(append_sid("index.$phpEx", true));}  # #-----[ OPEN ]------------------------------------------ # includes/usercp_register.php  # #-----[ FIND ]------------------------------------------ #     'L_OCCUPATION' => $lang['Occupation'],     'L_INTERESTS' => $lang['Interests'],  # #-----[ AFTER, ADD ]------------------------------------------ #     'L_CHANGE_VIEWPROFILE' => $lang['Change_profile_viewprofile'],     'L_CHANGE_IDORNICK' => $lang['Change_profile_idornick'],     'L_SEARCH' => $lang['Search'],  # #-----[ OPEN ]------------------------------------------ # templates/subSilver/profile_view_body.tpl  # #-----[ FIND ]------------------------------------------ #<table>   <tr>     <td><span><br>{JUMPBOX}</span></td>   </tr></table>  # #-----[ BEFORE, ADD ]------------------------------------------ # <form><table>   <tr>         <th>{L_CHANGE_VIEWPROFILE}</th>   </tr>   <tr>         <td><span>{L_CHANGE_IDORNICK}:</span> <input> <input></td>     </tr></table></form>  # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Return to IntegraMOD Modifications

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]