Page Index Toggle Pages: [1] 2 3 ... 8 Send TopicPrint
Very Hot Topic (More than 25 Replies) Extended Profiles for SP1.1 (Read 49934 times)
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Extended Profiles for SP1.1
Feb 1st, 2003 at 2:45pm
Print Post  
This mod has been created because of several requests and a lot of good ideas. This mod will allow you to add new fields to user profiles! So here it is:



Warning: I this mod has been designed for BoardMod 2.5.2. Please update if you don't run it already.

Features:
  • unlimited profile fields
  • additional fields can be displayed on viewprofile, memberlist and post pages
  • easily add, edit, reorder and remove fields in admin center
  • 9 different field types:
      - textbox
      - textarea
      - dropdown list
      - radiobuttons
      - checkbox
      - date
      - email
      - url
      - spacer
  • each field has the following settings available:
      - active
      - comment/description
      - required/visible on registration
      - visible in ViewProfile (including limitation for special users and/or groups!)
      - visible in Posts (including limitation for special users and/or groups!)
      - visible in Memberlist (including limitation for special users and/or groups!)
      - switch for editable by user or admin only
  • special settings for a couple of types:
      - limit length
      - input box width
      - force numberic value
      - default value
      - allow ubbc
      - unlimited options for dropdown lists and radiobuttons
      - different spacer types (<br> and <hr>)
  • highly compatible with other mods (YaMS-compatible mod file included)
  • easy integration into your own code
  • intelligent profile file handling to minimize disk usage (profiles equal to default get deleted)


Installation Instructions:
  • Install the mod
  • upload ALL modified files
  • upload ExtendedProfiles.pl to your Sources folder, in ASCII mode, chmod 666
  • upload extended_profiles_fields.txt to your Variables folder, in ASCII mode, chmod 666
  • upload extended_profiles_order.txt to your Variables folder, in ASCII mode, chmod 666
  • goto your admin center -> extended profile controls and add new profile fields


Screenshots:
Extended Profile Controls:
Field Options:                                                                        
View Profile Page:                                          
Edit Profile Page:
Memberlist:
Posts:

Version History:
v1.2.2: - fixed "limit to membergroups" option for membergroups with spaces
v1.2.1: - added YaMS5-compatible mod file and made ExtendedProfiles.pl compatible with it
v1.2: - fixed admin-only fields to be reset when user changes his profile
v1.1: - fixed allowing html in field comments
v1.0: - minor html fixes (replaced <BR> with <br>)
Beta 4: - fixed conflicts with multiple date fields and birthday
Beta 3: - "Invalid Character" error in textareas fixed
Beta 2: - Changed search strings in Profile.pl to make the mod more compatible with other mods.
« Last Edit: Apr 25th, 2004 at 1:47am by Administrator »  

extended_profiles_v12_sp11.zip (Attachment deleted)

The Administrator.
Back to top
WWW  
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #1 - Feb 2nd, 2003 at 11:54pm
Print Post  
To avoid duplicating errors on my part, please tell me what would be the easiest way to set up a second avatar selection from a different folder using this mod?

In other words... I want to setup a menu drop down list where users can choose a second avatar. The folder where they select the avatar will be different from the original.

Thanks in advance.
  

Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Extended Profiles for SP1.1
Reply #2 - Feb 3rd, 2003 at 1:11pm
Print Post  
The eastiest way would be to add a dropdown box named "Second Avatar" and add all the image names you got (ex. image1.gif, image2.jpg). keep it invisible in posts. Instead look for this code in Display.pl:

Code
Select All
require "$sourcedir/ExtendedProfiles.pl";
$yymain .= ext_viewinposts($musername) . qq~ 


and replace it with:
Code
Select All
require "$sourcedir/ExtendedProfiles.pl";
$sec_avatar = qq~<img src="http://www.yourpage.com/YourImageDir/~.ext_get($musername,"Second Avatar");.qq~" alt="second avatar"><br>~;
$yymain .= $sec_avatar . ext_viewinposts($musername) . qq~
 



Don't forget to change www.yourpage.com/YourImageDir/ to your image path.
  

The Administrator.
Back to top
WWW  
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #3 - Feb 3rd, 2003 at 2:14pm
Print Post  
I keep getting errors with this line of code:

Quote:
$sec_avatar = qq~<img src="http://www.yourpage.com/YourImageDir/~.ext_get($musername,"Second Avatar");.qq~" alt="second avatar"><br>~;
  

Back to top
WWW  
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #4 - Feb 3rd, 2003 at 2:16pm
Print Post  
If you set that a drop down menu can only be seen by certain groups, shouldn't that be automatic for admin to see all? Or do I have to list admin as one of the people that can see? I say that because it is not visible or administrator, only the groups listed. Thanks.
  

Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Extended Profiles for SP1.1
Reply #5 - Feb 3rd, 2003 at 2:30pm
Print Post  
Sorry, there is a typo in the line. Use this one instead:
Code
Select All
$sec_avatar = qq~<img src="http://www.yourpage.com/YourImageDir/~.ext_get($musername,"Second Avatar").qq~" alt="second avatar"><br>~; 



If you want admins to be able to view it too, simply add them to the list. Imagine you have a group who is supposed to see the information in posts but you as admin don't need to see it all the time...
  

The Administrator.
Back to top
WWW  
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #6 - Feb 3rd, 2003 at 2:40pm
Print Post  
Thanks. Works great now Smiley
  

Back to top
WWW  
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #7 - Feb 3rd, 2003 at 3:25pm
Print Post  
Is there a way to have a dropdown box editable by only certain user groups?
  

Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Extended Profiles for SP1.1
Reply #8 - Feb 3rd, 2003 at 3:37pm
Print Post  
nope, there is no easy way todo this. it would require heavy modifications on ExtendedProfiles.pl. You can only choose between admin- and usereditable.
  

The Administrator.
Back to top
WWW  
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #9 - Feb 3rd, 2003 at 4:18pm
Print Post  
Okay for the URL field is there a way to have it display text rather than the url itself? Some URLS are very long and would be better for it to show as 'My Page' etc.
  

Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Extended Profiles for SP1.1
Reply #10 - Feb 3rd, 2003 at 4:33pm
Print Post  
No easy way for this either. The url type doesn't have a description option in the fileformat. You'd have to change it's structure.
  

The Administrator.
Back to top
WWW  
IP Logged
 
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #11 - Feb 8th, 2003 at 10:53am
Print Post  
I know a little about this mod. Now I'm playing around with this mod seems to have multiple functions. Anywayz let everyone know that very easy to install although my board having more than 140 mods installed  Cheesy 

@Michael
i've no idea this is my fault or not.
In the comment field that HTML allowed when i typed
Code
Select All
<font color="#cea000">comment text</font> 


it won't show as I wanted, sounded like HTML wasn't allowed.
What'm Idoing wrong?
Thanks
  

   
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Extended Profiles for SP1.1
Reply #12 - Feb 8th, 2003 at 4:24pm
Print Post  
That's a bug. I've attached v1.1 which has this problem fixed.
  

The Administrator.
Back to top
WWW  
IP Logged
 
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #13 - Feb 8th, 2003 at 4:38pm
Print Post  
Quote:
That's a bug. I've attached v1.1 which has this problem fixed.


Just change only the ExtendedProfiles.pl or anywhereelse

Thanks
  

   
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Extended Profiles for SP1.1
Reply #14 - Feb 8th, 2003 at 6:23pm
Print Post  
yes, only one line in ExtendedProfiles.pl was added.
  

The Administrator.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 3 ... 8
Send TopicPrint