by visiblesoul
for Mkportal M1.1 Rc1
Download: http://www.visiblesoul.net/resources/downl...ils.php?file=68

Version 1.0.1 is available in the downloads section. There are many bugs in previous versions. The module is really not functional in versions previous to rc4. You should upgrade to 1.0.1. Upgrade instructions are included in download package. The upgrade is easy.
This is a basic profile module for MKPortal. It's kind of a pain to install but most MKPortal modules are.
Quote
USAGE:
Customization: Most customization of the module for various uses can be done simply by editing the language entires. For example, if you want to use the module as an "Featured Artists" module replace "Member" with "Artist" etc. Language entries for this module are in the following locations:
* /mkportal/lang/*/lang_profile.php
* /mkportal/lang/*/lang_global.php
* /mkportal/lang/*/lang_admin.php
-------------------------
There are 3 modes for profile creation/editing/deleting.
1. Forum Admin mode:
Forum Admin can create profiles for other users. The "Submit Profile" link is always available to Forum Admin. In addition Forum Admin sees a "My Profile" link that links to their own personal profile if one has been created.
Forum Admin has additional "Member" and "Member ID" input boxes in the "Submit Profile" screen (index.php?ind=profile&op=submit_file1). To create a profile for a forum user simply type the username (must be exact username) in the "Member" box. If you want the username to link to the forum profile page enter the userid in the optional "Member ID" box. It is also possible to create profiles for people (or things) who are not registered users on your forum. Simply leave the "Member ID" box blank and the "Member" name will not be a link.
Forum Admin can edit and delete all profiles.
Note that if Forum Admin creates a profile for an existing forum user then that user WILL be able to edit or delete his profile if he has "Can Moderate Profiles?" permissions. If you do not want a user to be able to edit his/her own profile then either make sure that he/she does not have "Can Moderate Profiles?" permissions or DO NOT enter a userid in the "Member ID" box (or enter "0"). A user can only edit their own profile if the MKPProfile username AND userid match their forum username AND userid.
Also note that it is possible for Forum Admins to create duplicate profiles for a User. This is not recommended. It is not possible for non-Admins to create duplicate profiles.
-----
2. Portal Admin Mode:
"Portal Admin" is defined as any usergroup who has "Can Manage MKPortal?" permissions which are set in the Portal CP Permissions management but does NOT have forum Admin permissions. Portal Admins can NOT create profiles for other users. The "Submit Profile" link is available to Portal Admins until they create their profile. After the profile is created the "Submit Profile" link is replaced by a "My Profile" link that links to their own personal profile.
Portal Admins may only create one profile. They may only create their own profile. The "Member" input box in the "Submit Profile" screen (index.php?ind=profile&op=submit_file1) and "edit_file" screen (index.php?ind=profile&op=edit_file&iden=*) is readonly for Portal Admins so they cannot edit usernames. The "Member ID" input box is not available for Portal Admins so they cannot edit userid numbers.
Portal Admins can edit and delete all profiles but they can only create their own profiles.
-----
3. User mode:
The "Submit Profile" link is available to registered users who have "Can Submit Profiles?" permissions set in the Portal CP until they create their profile. After the profile is created the "Submit Profile" link is replaced by a "My Profile" link that links to their own personal profile. In profile entry_view the user can edit or delete their own profile only if they have "Can Moderate Profiles?" permissions set in the Portal CP.
Registered Users may only create one profile. They may only create their own profile. The "Member" input box in the "Submit Profile" screen (index.php?ind=profile&op=submit_file1) is readonly for registered users. The "Member ID" input box is not available for registered users because the module will use the user's forum id to create the link to their forum profile.
-------------------------
Profile Photo:
Users can upload a profile photo. The module will display the user's forum avatar if they do not upload a profile image (avatar feature works in IPB 2.x only - other boards can be added). If no profile image or avatar is available it will display a "No Photo" image. Images cannot currently be edited within the module. If a user wants to change their photo they must delete their profile and create a new profile with their new photo and profile info. I may add an "change image" option in a future version.
-------------------------
Profile Fields:
Required fields are username, description, and bio. Required fields are marked with an asterisk (*). Other fields can be added in the Portal CP. Optional Fields 1- 6 will parse URL links that begin with http:// so you can use them for homepage links or anything else you want. Of course these fields can also be plain text. Optional Field 7 will not parse links.
-------------------------
Profiles List: The list of member profiles in section_view is sorted by Member Name by default.
-------------------------
Administration:
The module is based on the MKPReviews module so you will be able to figure it out pretty easily.
-------------------------
Module Credits: As is the case with all of my recent modules, some credits information is visible only to Admin. The version number is always hidden from non-Admins. Please do not remove my credits page. It is the primary reason that I am willing to create modules like this one that I do not personally need. Feel free to add your own credits to the page if you do modifications. If you absolutely need to remove the credits page from the module please contact me and I will probably allow it but I won't like it.
Customization: Most customization of the module for various uses can be done simply by editing the language entires. For example, if you want to use the module as an "Featured Artists" module replace "Member" with "Artist" etc. Language entries for this module are in the following locations:
* /mkportal/lang/*/lang_profile.php
* /mkportal/lang/*/lang_global.php
* /mkportal/lang/*/lang_admin.php
-------------------------
There are 3 modes for profile creation/editing/deleting.
1. Forum Admin mode:
Forum Admin can create profiles for other users. The "Submit Profile" link is always available to Forum Admin. In addition Forum Admin sees a "My Profile" link that links to their own personal profile if one has been created.
Forum Admin has additional "Member" and "Member ID" input boxes in the "Submit Profile" screen (index.php?ind=profile&op=submit_file1). To create a profile for a forum user simply type the username (must be exact username) in the "Member" box. If you want the username to link to the forum profile page enter the userid in the optional "Member ID" box. It is also possible to create profiles for people (or things) who are not registered users on your forum. Simply leave the "Member ID" box blank and the "Member" name will not be a link.
Forum Admin can edit and delete all profiles.
Note that if Forum Admin creates a profile for an existing forum user then that user WILL be able to edit or delete his profile if he has "Can Moderate Profiles?" permissions. If you do not want a user to be able to edit his/her own profile then either make sure that he/she does not have "Can Moderate Profiles?" permissions or DO NOT enter a userid in the "Member ID" box (or enter "0"). A user can only edit their own profile if the MKPProfile username AND userid match their forum username AND userid.
Also note that it is possible for Forum Admins to create duplicate profiles for a User. This is not recommended. It is not possible for non-Admins to create duplicate profiles.
-----
2. Portal Admin Mode:
"Portal Admin" is defined as any usergroup who has "Can Manage MKPortal?" permissions which are set in the Portal CP Permissions management but does NOT have forum Admin permissions. Portal Admins can NOT create profiles for other users. The "Submit Profile" link is available to Portal Admins until they create their profile. After the profile is created the "Submit Profile" link is replaced by a "My Profile" link that links to their own personal profile.
Portal Admins may only create one profile. They may only create their own profile. The "Member" input box in the "Submit Profile" screen (index.php?ind=profile&op=submit_file1) and "edit_file" screen (index.php?ind=profile&op=edit_file&iden=*) is readonly for Portal Admins so they cannot edit usernames. The "Member ID" input box is not available for Portal Admins so they cannot edit userid numbers.
Portal Admins can edit and delete all profiles but they can only create their own profiles.
-----
3. User mode:
The "Submit Profile" link is available to registered users who have "Can Submit Profiles?" permissions set in the Portal CP until they create their profile. After the profile is created the "Submit Profile" link is replaced by a "My Profile" link that links to their own personal profile. In profile entry_view the user can edit or delete their own profile only if they have "Can Moderate Profiles?" permissions set in the Portal CP.
Registered Users may only create one profile. They may only create their own profile. The "Member" input box in the "Submit Profile" screen (index.php?ind=profile&op=submit_file1) is readonly for registered users. The "Member ID" input box is not available for registered users because the module will use the user's forum id to create the link to their forum profile.
-------------------------
Profile Photo:
Users can upload a profile photo. The module will display the user's forum avatar if they do not upload a profile image (avatar feature works in IPB 2.x only - other boards can be added). If no profile image or avatar is available it will display a "No Photo" image. Images cannot currently be edited within the module. If a user wants to change their photo they must delete their profile and create a new profile with their new photo and profile info. I may add an "change image" option in a future version.
-------------------------
Profile Fields:
Required fields are username, description, and bio. Required fields are marked with an asterisk (*). Other fields can be added in the Portal CP. Optional Fields 1- 6 will parse URL links that begin with http:// so you can use them for homepage links or anything else you want. Of course these fields can also be plain text. Optional Field 7 will not parse links.
-------------------------
Profiles List: The list of member profiles in section_view is sorted by Member Name by default.
-------------------------
Administration:
The module is based on the MKPReviews module so you will be able to figure it out pretty easily.
-------------------------
Module Credits: As is the case with all of my recent modules, some credits information is visible only to Admin. The version number is always hidden from non-Admins. Please do not remove my credits page. It is the primary reason that I am willing to create modules like this one that I do not personally need. Feel free to add your own credits to the page if you do modifications. If you absolutely need to remove the credits page from the module please contact me and I will probably allow it but I won't like it.
CHANGELOG:
--------------------------
1.0.1 (06.06.2006):
-added 1 database query - mkp_stats (bug report by Neuroitc)
-fixed Delete Comment bug (bug report by alpujarra)
-fixed image resize bug for servers with hotlink protection (bug report by stefano8663)
-fixed image resize bug in Latest Profiles block
-fixed edit description input field bug (bug report by stefroy)
-changed "prof_nodelcomm" language entry (English & Italian only)
Changed files:
1. /mkportal/modules/profile/index.php
2. /mkportal/blocks/latest_profiles.php
3. /mkportal/lang/English/lang_profile.php
3. /mkportal/lang/Italiano/lang_profile.php
--------------------------
1.0a (27.05.2006):
-Added Italian translation by stefano8663
-Added French translation by stefroy
-Added Random Profile block by stefroy
--------------------------
1.0 Final (25.05.2006):
-fixed bug with avatar display (IPB 2.1.x only)
-fixed html output to be valid xhtml 1.0 transitional
-added Latest Profiles block
Changed files:
1. /mkportal/modules/profile/index.php
Added files:
1. /mkportal/blocks/latest_profiles.php (used for Latest Profiles block)
2. /mkportal/modules/profile/classes/prof_share.inc.php (used for Latest Profiles block)
--------------------------
1.0 RC4a (22.05.2006):
-Removed nophoto.gif image link (bug report by blu)
Changed files:
1. /mkportal/modules/profile/index.php
--------------------------
1.0 RC4 (22.05.2006):
-Added CHMOD step to install instructions in readme.txt (bug report by
Patrick_D)
-Fixed ad_profile "prof_sec_page" and "prof_file_page" bugs that did not allow
global config setting to be saved (bug report by craver)
-Fixed multiple Admin permission bugs in /profiles/index.php that did not
allow Forum Admins full create, edit and delete perms (bug report by stefroy
and craver)
-Fixed uploaded avatar display issue with IPB 2.1.x
-Added 'prof_noedexist' entry in lang_profile.php
-Added error message if user tries to edit a profile before creating one
-Added Spanish readme, upgrade and lang file by cur
Changed files:
1. /mkportal/modules/profile/index.php
2. /mkportal/admin/ad_profile.php
3. /mkportal/lang/*/lang_profile.php
--------------------------
1.0 RC3 (17.05.2006):
-Updated Read Me for clarity. Added more Usage info.
-Fixed bug that allowed users to access function "submit_file1" bypassing
function "submit_file" (bug report by stefroy)
-Fixed bug that did not allow Forum Admins and Portal Admins to edit/delete
other users' profiles (bug report by stefroy)
-Fixed page title bug that displayed html code in title (bug report by Nexus)
-Edited "prof_nodel" entry in lang_profile.php
Changed files:
1. /mkportal/modules/profile/index.php
2. /mkportal/modules/profile/tpl_profile.php
3. /mkportal/lang/*/lang_profile.php
--------------------------
1.0 RC2 (16.05.2006):
-Install instructions modified for /mkportal/admin/ad_perms.php to eliminate an
ambiguity.
-Added upgrade.txt
-Fixed Perms bug in /mkportal/admin/ad_perms.php (function perms_show) edits.
One additional edit required. (bug report by gonny)
-Fixed php short tags bugs
-Added Turkish readme and lang file by cyberjack
-Added changelog.txt
--------------------------
1.0 RC1 (13.05.2006):
-First module release
--------------------------













