Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: winrules on March 30, 2006, 02:21:25 PM

Title: Custom Profile Field Mod
Post by: winrules on March 30, 2006, 02:21:25 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=319)

This mod will add an unlimited number of custom profile fields to SMF. They will be configurable in "Features and Options". The following options are available (when you click on the field name on the main screen):


For text box or text area:
-Name
-Field Description
-Show in profile?
-Show in posts?
-Parse BBC?
-Text to display before field (BBC is ok if enabled above)
-Text to display after field (BBC is ok if enabled above)
-Field ID
-Add a horizontal rule before field in profile?
-Show field on registration?
-Only allow admins to edit field?
-Only allow admins to view field?

For check box:
-Name
-Field Description
-Show in profile?
-show in posts?
-Text to display when box is checked
-Text to display when box isn't checked
-Parse BBC?
-Fields ID
-Add a horizontal rule before field in profile?
-Show field on registration?
-Only allow admins to edit field?
-Only allow admins to view field?

For selection box:
-Name
-Field Description
-Show in profile?
-show in posts?
-Parse BBC?
-Fields ID
-Add a horizontal rule before field in profile?
-Show field on registration?
-Only allow admins to edit field?
-Only allow admins to view field?
-Option 1
-Option 2
-Add an option

In the text to add before and after the field you can type "%1" (without the quotes) and it will replace %1 with the content of the field. Example: If you wanted to make a MySpace Field, you could use [url=http://www.myspace.com/%1] in the before spot and [/url] in the after spot, and it would just show the username but link to the site.


Currently Known Bugs:
- None


Version History:
3.19-Fixed a small bug with fields on registration.
3.18-Fixes a security vulnerability.
3.17-Fixed a bug with moving fields.
3.16-Added compatibility for 1.1 final.
3.15-Fixed bug with moving fields up and down and deleting.
3.14-Security hole fixed (big thanks to HarzeM for discovering it). All users are strongly encouraged to upgrade.
3.13-1.1 RC3 compatibility added, 1.1 RC2 development stopped.
3.12-Fixes a bug with the before and after options on text fields.
3.11-Fixes a bug with adding options, and a bug with moving selection fields.
3.1-Adds an option to reorder and delete fields, some small changes in the admin interface, field descriptions, the text for the admin tab is now stored in language files, adds some more options for horizontal rules, fields are now enabled by default when you create them.
3.02-Fixes a bug with fields on posts.
3.01-Fixes an error with loadLanguage().
3.0-Moved almost everything into a central file for easier upgrades, fixed a bug with check boxes, and moved all the text into the language files.
2.14-Fixed some issues with selection fields.
2.13-Fixes errors in error log, other bugs.
2.12-Fixes bug with Mambo/Joomla, and fixes XHTML compliance bug.
2.11-Fixes bug when forcing field on registration.
2.1-Added permissions to view and edit fields, an option on where to display in posts, and an option to display the fields on registration.
2.0-Adds selection box fields and adds an add a field button.
1.11-Fixes bug with using "%1" in posts.
1.1-Adds "%1" functionality in before and after fields.
1.02-Fixes more compatibility issues.
1.01-Fixes compatibility issue with some other mods (there is no need to upgrade from 1.0 to 1.01 if you already have the mod installed).
1.0-Initial public release.


How to Make "Show in posts?" Work With Custom Themes (last updated for version 3.16):

In Display.template.php
Find:

// Show how many posts they have made.

And Replace With:

global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();

// Show how many posts they have made.


Find:

<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';

And Replace With:

<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
DisplayFieldPostsPictures();

Note: If your theme has it's own Profile.template.php or PersonalMessage.template.php or Register.template.php you will have to make changes to those but most themes don't. Also note that this isn't necessary on all themes, but most have their own Display.template.php.


Download Latest Version (3.19) (http://custom.simplemachines.org/mods/index.php?action=download;mod=319;id=58190)
Title: Re: Custom Profile Field Mod
Post by: xtremecruiser on March 30, 2006, 10:15:12 PM
Will this do links to other sites too, like blogs, or blog profiles, etc ?
Thanks
Title: Re: Custom Profile Field Mod
Post by: xtremecruiser on March 30, 2006, 10:19:33 PM
Got some errors, using Powered by SMF 1.1 RC2 with the latest patch

Install Actions
Installations actions for "Custom Profile Mod":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/ModSettings.php    Test failed
2.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
3.    Execute Modification    ./Themes/default/Display.template.php    Test successful
4.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
5.    Execute Code    add_settings.php    
Title: Re: Custom Profile Field Mod
Post by: daragor on March 31, 2006, 01:16:36 AM
some errors for me too in RC2

nice mod! fix it please
Title: Re: Custom Profile Field Mod
Post by: dracomiconia on March 31, 2006, 02:24:27 AM
What about 1.07 users.....?

:'( :'( :'(
Title: Re: Custom Profile Field Mod
Post by: winrules on March 31, 2006, 08:46:08 AM
xtremecruiser and daragor, do you have any other mods installed?

dracomiconia, I'll might make it for 1.0.7 depending on how much changes I'd have to make.
Title: Re: Custom Profile Field Mod
Post by: xtremecruiser on March 31, 2006, 09:04:30 AM
Quote from: winrules on March 31, 2006, 08:46:08 AM
xtremecruiser and daragor, do you have any other mods installed?

dracomiconia, I'll might make it for 1.0.7 depending on how much changes I'd have to make.

I have a beta site ( copy of my main one and its loaded with mods )
List is below of all that were on it and whats on it now ( all work except Spoiler Tag    0.2.3 )
My main site is on RC1.1 but I have not updated since RC 1.3 or the final is so close ( and your will not install on RC1.1 )

Mod Name     Version     
1.    The Bar Of Experience    1.1    [ Apply Mod ] [ List Files ] [ Delete ]
2.    Spoiler Tag    0.2.3    [ List Files ] [ Delete ]
3.    Integrated Chat    2.2    [ Apply Mod ] [ List Files ] [ Delete ]
4.    Karma Log    1.0.1    [ Apply Mod ] [ List Files ] [ Delete ]
5.    Spoiler Tag    0.2.3    [ Uninstall ] [ List Files ] [ Delete ]
6.    Custom Profile Mod    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
7.    EmailFlash    1.0    [ Uninstall ] [ List Files ] [ Delete ]
8.    G&S_Sticky    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
9.    Simple_Mood    1.0    [ Uninstall ] [ List Files ] [ Delete ]
12.    MessagePreviewOnHover    1.0    [ Uninstall ] [ List Files ] [ Delete ]
13.    Ad Managment    1.4    [ Uninstall ] [ List Files ] [ Delete ]
14.    TinyPortal    0.84    [ Apply Mod ] [ List Files ] [ Delete ]
15.    OnLine Users Today    1.2    [ Apply Mod ] [ List Files ] [ Delete ]
16.    Board Default Sort    1.23    [ List Files ] [ Delete ]
17.    Faster Parsecode    1.07    [ List Files ] [ Delete ]
18.    Unreplied Topics    1.02    [ List Files ] [ Delete ]
19.    Actions in Profile Display    1.3    [ Apply Mod ] [ List Files ] [ Delete ]
20.    Thank You Mod    1.01    [ Apply Mod ] [ List Files ] [ Delete ]
21.    Visual Warning / Post Moderation    1.21    [ Apply Mod ] [ List Files ] [ Delete ]
22.    Excess Blank Lines    1.02    [ List Files ] [ Delete ]
23.    Hide Tag    1.18    [ Uninstall ] [ List Files ] [ Delete ]
24.    Banner Manager    3.4    [ Apply Mod ] [ List Files ] [ Delete ]
25.    MessagePreview    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
26.    SMF 1.0.7 / 1.1 RC2 Update    1.0    [ Uninstall ] [ List Files ] [ Delete ]
27.    Resample Big Attached Images    0.1    [ Uninstall ] [ List Files ] [ Delete ]
Title: Re: Custom Profile Field Mod
Post by: winrules on March 31, 2006, 09:08:28 AM
Wow, that's a lot. I'll try to go through all the main ones there and see if i can find any conflicting modifications.
Title: Re: Custom Profile Field Mod
Post by: winrules on March 31, 2006, 09:21:13 AM
OK, try version 1.01 i just uploaded, that should atleast fix the Sources/ModSettings.php error.
Title: Re: Custom Profile Field Mod
Post by: xtremecruiser on March 31, 2006, 09:28:23 AM
Quote from: winrules on March 31, 2006, 09:21:13 AM
OK, try version 1.01 i just uploaded, that should atleast fix the Sources/ModSettings.php error.

Only a few of them are accually installed, I just listed what the older versions of SMF had installed

I got this with the new version

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/ModSettings.php    Test successful
2.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
3.    Execute Modification    ./Themes/default/Display.template.php    Test successful
4.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
5.    Execute Code    add_settings.php    

The only active mods are

EmailFlash
Simple_Mood
MessagePreviewOnHover
Ad Managment
Hide Tag
SMF 1.0.7 / 1.1 RC2 Update
Resample Big Attached Images
and Spoiler Tag  0.2.3 that will not work since the update but I think it was because of the Thank You Mod that I modified
Title: Re: Custom Profile Field Mod
Post by: winrules on March 31, 2006, 09:34:22 AM
OK, now try 1.02, i just uploaded it, it might fix the other problem.
Title: Re: Custom Profile Field Mod
Post by: xtremecruiser on March 31, 2006, 09:42:04 AM
Quote from: winrules on March 31, 2006, 09:34:22 AM
OK, now try 1.02, i just uploaded it, it might fix the other problem.

Still the same issue, I am installing another test site with the mods listed
These rae the ones I have to have since I have so many posts with them

MessagePreviewOnHover
Ad Managment
Hide Tag
SMF 1.0.7 / 1.1 RC2 Update
Resample Big Attached Images
and Spoiler Tag  0.2.3

Installations actions for "Custom Profile Mod":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/ModSettings.php    Test successful
2.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
3.    Execute Modification    ./Themes/default/Display.template.php    Test successful
4.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
5.    Execute Code    add_settings.php    

Do you need to see my Profile.template.php ?
Title: Re: Custom Profile Field Mod
Post by: winrules on March 31, 2006, 10:29:15 AM
Quote from: xtremecruiser on March 31, 2006, 09:42:04 AM
Quote from: winrules on March 31, 2006, 09:34:22 AM
OK, now try 1.02, i just uploaded it, it might fix the other problem.

Still the same issue, I am installing another test site with the mods listed
These rae the ones I have to have since I have so many posts with them

MessagePreviewOnHover
Ad Managment
Hide Tag
SMF 1.0.7 / 1.1 RC2 Update
Resample Big Attached Images
and Spoiler Tag  0.2.3

Installations actions for "Custom Profile Mod":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/ModSettings.php    Test successful
2.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
3.    Execute Modification    ./Themes/default/Display.template.php    Test successful
4.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
5.    Execute Code    add_settings.php    

Do you need to see my Profile.template.php ?
Yeah, that would help if you could post it here.
Title: Re: Custom Profile Field Mod
Post by: xtremecruiser on March 31, 2006, 10:45:31 AM
I got it to work by, updating to Ad Managment 1.5 or removing MessagePreviewOnHover  1.0 and Simple_Mood then installing your mod then reinstalling them ?
Not sure what did it ? I set up a new test forum and everything worked, so I started removing mods for testing

May I ask a silly Q also
I want the mod to use for a link to a blog profile, basically its a website link

IE www.xxxxx.com/Name
I see that I can do the site name   www.xxxxx.com/ and add the name in the field but the whole thing shows up and its too long and I only need the Name to show

And Thanks for all the help !!!
Title: Re: Custom Profile Field Mod
Post by: winrules on March 31, 2006, 10:51:17 AM
Quote from: xtremecruiser on March 31, 2006, 10:45:31 AM
I got it to work by, updating to Ad Managment 1.5 or removing MessagePreviewOnHover  1.0 and Simple_Mood then installing your mod then reinstalling them ?
Not sure what did it ? I set up a new test forum and everything worked, so I started removing mods for testing

May I ask a silly Q also
I want the mod to use for a link to a blog profile, basically its a website link

IE www.xxxxx.com/Name
I see that I can do the site name   www.xxxxx.com/ and add the name in the field but the whole thing shows up and its too long and I only need the Name to show

And Thanks for all the help !!!
It was probly the simple mood mod that messed it up, since its the only one that modifies profile.template.php.

You can't currently do that in this version, but I'm working on a way to do that for next version.
Title: Re: Custom Profile Field Mod
Post by: xtremecruiser on March 31, 2006, 10:59:43 AM
Quote from: winrules on March 31, 2006, 10:51:17 AM
Quote from: xtremecruiser on March 31, 2006, 10:45:31 AM
I got it to work by, updating to Ad Managment 1.5 or removing MessagePreviewOnHover  1.0 and Simple_Mood then installing your mod then reinstalling them ?
Not sure what did it ? I set up a new test forum and everything worked, so I started removing mods for testing

May I ask a silly Q also
I want the mod to use for a link to a blog profile, basically its a website link

IE www.xxxxx.com/Name
I see that I can do the site name   www.xxxxx.com/ and add the name in the field but the whole thing shows up and its too long and I only need the Name to show

And Thanks for all the help !!!
It was probly the simple mood mod that messed it up, since its the only one that modifies profile.template.php.

You can't currently do that in this version, but I'm working on a way to do that for next version.

Thanks I was about to post that that mod was the only one that modified the file too, yours just has to be installed first.

No way to resize the part that shows or make it use 2 lines or hide the "Text to display before field" or maybe a image to use instead :P

Thanks again

I can use BBC code for a image but cant get the name to add in in, a weblink is just too long IE http://www.xxxx.com/BlogLink

[url=http://www.xxxx.com/][img]http://link to image goes here[/img][/url]
Title: Re: Custom Profile Field Mod
Post by: winrules on March 31, 2006, 01:44:46 PM
Quote from: xtremecruiser on March 31, 2006, 10:59:43 AM
Quote from: winrules on March 31, 2006, 10:51:17 AM
Quote from: xtremecruiser on March 31, 2006, 10:45:31 AM
I got it to work by, updating to Ad Managment 1.5 or removing MessagePreviewOnHover  1.0 and Simple_Mood then installing your mod then reinstalling them ?
Not sure what did it ? I set up a new test forum and everything worked, so I started removing mods for testing

May I ask a silly Q also
I want the mod to use for a link to a blog profile, basically its a website link

IE www.xxxxx.com/Name
I see that I can do the site name   www.xxxxx.com/ and add the name in the field but the whole thing shows up and its too long and I only need the Name to show

And Thanks for all the help !!!
It was probly the simple mood mod that messed it up, since its the only one that modifies profile.template.php.

You can't currently do that in this version, but I'm working on a way to do that for next version.

Thanks I was about to post that that mod was the only one that modified the file too, yours just has to be installed first.

No way to resize the part that shows or make it use 2 lines or hide the "Text to display before field" or maybe a image to use instead :P

Thanks again

I can use BBC code for a image but cant get the name to add in in, a weblink is just too long IE http://www.xxxx.com/BlogLink

[url=http://www.xxxx.com/][img]http://link to image goes here[/img][/url]
Version 1.1 has been released!

You can now use "%1" in the before and after fielids and it will be substitued with the fields content. Hope that's what you're looking for. :)
Title: Re: Custom Profile Field Mod
Post by: xtremecruiser on March 31, 2006, 02:12:28 PM
I will try it right now  :D
Title: Re: Custom Profile Field Mod
Post by: winrules on March 31, 2006, 05:09:20 PM
Version 1.11 has been released, which fixes a bug with using the "%1" feature and displaying the field in posts.
Title: Re: Custom Profile Field Mod
Post by: xtremecruiser on March 31, 2006, 05:15:15 PM
Quote from: winrules on March 31, 2006, 05:09:20 PM
Version 1.11 has been released, which fixes a bug with using the "%1" feature and displaying the field in posts.

I will give it a good test tonight :P
BTW I am going to use the Awards Mod later tonight also  ;D
Title: Re: Custom Profile Field Mod
Post by: xtremecruiser on March 31, 2006, 06:20:00 PM
Works great now with <a href="www. xxxxx .com/%1> in the Text to display before field
and </a> in Text to display after field. Parse BBC? Off
It now picks up the /"Blogname" the user enters in their profile and only shows it.
Title: Re: Custom Profile Field Mod
Post by: winrules on March 31, 2006, 07:04:36 PM
Quote from: xtremecruiser on March 31, 2006, 06:20:00 PM
Works great now with <a href="www. xxxxx .com/%1> in the Text to display before field
and </a> in Text to display after field. Parse BBC? Off
It now picks up the /"Blogname" the user enters in their profile and only shows it.
Good, it did that before in the profile screen, just not the post and pm screen, b/c i for got that i have to use $message instead of $context. Glad you got it to work :)
Title: Re: Custom Profile Field Mod
Post by: asdboard on April 01, 2006, 07:17:45 AM
That's what I was looking for....installed on 1.1RC2 and it works great! Thank you!
Title: Re: Custom Profile Field Mod
Post by: uberjon on April 01, 2006, 10:04:34 PM
this is something that has made me so happy! i mean i play this game that has a recruit link and a stats link. and i was thinking of hosting a forum for a clan i will be in. and these

-Show in profile?
-Show in posts?
-Parse BBC?
-Text to display before field (BBC is ok if enabled above)
-Text to display after field (BBC is ok if enabled above)

make this so much better than i think any other forum software ever!

if you start a clan you almost 100% need this mod!

ipb has a similar feature but not the text display and not sure about the parce bbc or even the show in posts!

basicaly i love this mod and i love you for making it!  :D
Title: Re: Custom Profile Field Mod
Post by: Skipdawg on April 01, 2006, 11:40:16 PM
Very nice I like this allot. The possibilities with this Mod. Very kewl  ;D ;) 8)
Title: Re: Custom Profile Field Mod
Post by: JCphotog on April 02, 2006, 08:24:57 PM
Great idea for a mod.  Out of curiosity.  When we upgrade..  if we have to uninstall and re-install the mod will we lose the profile information? 
Title: Re: Custom Profile Field Mod
Post by: winrules on April 05, 2006, 06:46:55 PM
Quote from: JCphotog on April 02, 2006, 08:24:57 PM
Great idea for a mod.  Out of curiosity.  When we upgrade..  if we have to uninstall and re-install the mod will we lose the profile information? 
No, the information stays the there.
Title: Re: Custom Profile Field Mod
Post by: arnaud on April 05, 2006, 07:37:14 PM
I was instructed to put my question here: :)

Is there anyway to declare a field which would be filled only by the admin (or a moderator) and that would be displayed on user's profile?
Title: Re: Custom Profile Field Mod
Post by: winrules on April 05, 2006, 07:41:16 PM
Quote from: arnaud on April 05, 2006, 07:37:14 PM
I was instructed to put my question here: :)

Is there anyway to declare a field which would be filled only by the admin (or a moderator) and that would be displayed on user's profile?
Not right now, but I think I'll put it in, thanks for the idea.
Title: Re: Custom Profile Field Mod
Post by: winrules on April 06, 2006, 11:11:48 AM
Version 2.0 has been released, which adds another field type, selection boxes and adds an "Add a field" button so you can have unlimited fields.
Title: Re: Custom Profile Field Mod
Post by: ukrob12 on April 06, 2006, 11:21:19 AM
I'm just curious when version 2.1 will be coming, cause I REALLY need to display fields on signup as soon as possible.

Thanks
Title: Re: Custom Profile Field Mod
Post by: winrules on April 06, 2006, 11:27:00 AM
Quote from: ukrob12 on April 06, 2006, 11:21:19 AM
I'm just curious when version 2.1 will be coming, cause I REALLY need to display fields on signup as soon as possible.

Thanks
It won't take too long since there isn't anything hard in my to-do list. Probly about 1 week from now. Mabey even sooner if I have the time.
Title: Re: Custom Profile Field Mod
Post by: Killian on April 06, 2006, 12:28:10 PM
winrules, you rock!  Love the mod!!  Know of any way we can do a search based on these custom fields?  Thank you so much!
Title: Re: Custom Profile Field Mod
Post by: winrules on April 06, 2006, 12:57:45 PM
Quote from: Killian on April 06, 2006, 12:28:10 PM
winrules, you rock!  Love the mod!!  Know of any way we can do a search based on these custom fields?  Thank you so much!
I might make it so you can sort the member list based on fields, but it wont be in 2.1.
Title: Re: Custom Profile Field Mod
Post by: Søren Bjerg on April 06, 2006, 01:58:17 PM
Great mod! Took it in use today when I saw you had added selection fields to it.

What I'd like to see would be having the horizontal bar you can insert before a field, when you are modifying your profile, also kick in when viewing the Profile Summary (and possibly also in posts, only with a blank line instead of an actual bar).
Title: Re: Custom Profile Field Mod
Post by: winrules on April 06, 2006, 02:29:37 PM
Quote from: Søren Bjerg on April 06, 2006, 01:58:17 PM
Great mod! Took it in use today when I saw you had added selection fields to it.

What I'd like to see would be having the horizontal bar you can insert before a field, when you are modifying your profile, also kick in when viewing the Profile Summary (and possibly also in posts, only with a blank line instead of an actual bar).
Thanks for the idea, it won't be in 2.1 but I'll add it to my list for 2.2.
Title: Re: Custom Profile Field Mod
Post by: winrules on April 07, 2006, 05:49:32 PM
Version 2.1 been released, which adds permissions to view and edit fields, an option on where to display in posts, and an option to display the fields on registration.
Title: Re: Custom Profile Field Mod
Post by: JCphotog on April 07, 2006, 11:37:53 PM
Weird thing, I tired to install using the package manager.  I'm using.. 1.0.7 and I got this error:

Package Manager - Install Actions
Install Actions for archive customprofile2-1.zip:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Any thoughts?
Title: Re: Custom Profile Field Mod
Post by: Søren Bjerg on April 08, 2006, 04:37:24 AM
Quote[...] Compatible With:     1.1 RC2 [...]
Title: Re: Custom Profile Field Mod
Post by: JCphotog on April 08, 2006, 10:27:02 AM
Ah too bad.  It would have been fun for 1.0.7...  anyone interested in porting it for us?
Title: Re: Custom Profile Field Mod
Post by: pyko on April 08, 2006, 09:19:25 PM
hi there
i just installed the mod...and no errors installing...but i can't seem to find the controls for the mod!! I've looked in "Features and options" nothing...and all the other menus too....(maybe i'm blind??)

I'm using 1.1RC2, bridged with Joomla 1.08

any help would be great :D
pyko
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 09, 2006, 08:57:20 AM
I just downloaded the new 2.1 version this morning and I have to say that this is excellent. It's kinda simple as mods go but it just solves so many problems for me all at once lol

I love the 'admin only edit' option and the registration option and now I see you can add links like myspace etc by using the %1 option on the address - cant wait to try that :)

I was interested in the biography mod last year as I liked the idea of being able to add a pic in the profile but it doesnt work with my version, so I could never do it.  Now I can add pics thanks to this!

Using the [img ] tag I can link to photobucket pics etc

I only have one question about doing this... I have max image sizes on my forum of 500x300 pixels but this seems to be ignored and it displays at full size.  Do you know why it ignores the site limits?  It doesnt matter a great deal but I thought I would ask

Registration
I have been trying to add other fields to be filled in at registration and now I can do this really easily, this is so great.

Admin only
We have lots of member of the month type awards on my board and we give the motm an award to wear that month but now we can add a permanent record to their profile and posts to show that they were motm in a previous month... as well as being able to add more awards

This is very cool

Thanks very much for making my life easier

I should also say that I was just considering installing community builder as I have joomla but I dont think i need to now :)


PYKO - you should see a tab at the top of features and options that says 'custom profile fields'.  It should be next to the 'basic features' tab which is the page you open when you go into features and options.  I have lots of mods installed so my custom profiles tab is a little further along but it should just display a tab, then you can open the Custom profiles screen :)
Title: Re: Custom Profile Field Mod
Post by: winrules on April 09, 2006, 10:52:36 AM
Quote from: perplexed on April 09, 2006, 08:57:20 AM
I just downloaded the new 2.1 version this morning and I have to say that this is excellent. It's kinda simple as mods go but it just solves so many problems for me all at once lol

I love the 'admin only edit' option and the registration option and now I see you can add links like myspace etc by using the %1 option on the address - cant wait to try that :)

I was interested in the biography mod last year as I liked the idea of being able to add a pic in the profile but it doesnt work with my version, so I could never do it.  Now I can add pics thanks to this!

Using the [img ] tag I can link to photobucket pics etc

I only have one question about doing this... I have max image sizes on my forum of 500x300 pixels but this seems to be ignored and it displays at full size.  Do you know why it ignores the site limits?  It doesnt matter a great deal but I thought I would ask

Registration
I have been trying to add other fields to be filled in at registration and now I can do this really easily, this is so great.

Admin only
We have lots of member of the month type awards on my board and we give the motm an award to wear that month but now we can add a permanent record to their profile and posts to show that they were motm in a previous month... as well as being able to add more awards

This is very cool

Thanks very much for making my life easier

I should also say that I was just considering installing community builder as I have joomla but I dont think i need to now :)


PYKO - you should see a tab at the top of features and options that says 'custom profile fields'.  It should be next to the 'basic features' tab which is the page you open when you go into features and options.  I have lots of mods installed so my custom profiles tab is a little further along but it should just display a tab, then you can open the Custom profiles screen :)

Glad you like it :) It uses the same BBC parser as everthing else does, so if you set limits on the parser it should respect those. If yo set limits on attaching images, it won't respect those though. Can you tell me where you set the 500x300 limit?
Title: Re: Custom Profile Field Mod
Post by: geraintw1uk on April 09, 2006, 11:42:29 AM
Hi

I have just installed this and all went fine, but where do i give the new field a description, all that i have got at the moment is

:  (then checkbox)

Also i do i make it an admin only field where only the admin can change it, the only options in the admin section is enable field and type of field.

I am using RC2 and have the latest version 1.07

Thanks for your help

Geraint
Title: Re: Custom Profile Field Mod
Post by: winrules on April 09, 2006, 11:45:58 AM
Quote from: geraintw1uk on April 09, 2006, 11:42:29 AM
Hi

I have just installed this and all went fine, but where do i give the new field a description, all that i have got at the moment is

:  (then checkbox)

Also i do i make it an admin only field where only the admin can change it, the only options in the admin section is enable field and type of field.

I am using RC2 and have the latest version 1.07

Thanks for your help

Geraint

You'll see something like "Enable Custom Profile Field 1 (#post_)". "Custom Profile Field 1" should be a link. Click on the link for more options.
Title: Re: Custom Profile Field Mod
Post by: geraintw1uk on April 09, 2006, 12:04:37 PM
Thanks for that

All working now, i must say an exellent mod been waiting for something like this which was easy to manage for a while now

keep up the good work

Geraint
Title: Re: Custom Profile Field Mod
Post by: mitchell784 on April 09, 2006, 12:10:35 PM


Error

Installing this package will perform the following actions:

   Type    Action    Description
1.    Execute Modification    ./Sources/ModSettings.php    Test successful
2.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
3.    Execute Modification    ./Themes/default/Display.template.php    Test successful
4.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
5.    Execute Modification    ./Themes/default/Register.template.php    Test successful
6.    Execute Modification    ./Sources/Register.php    Test successful



Mods

Browse Packages

Modification Packages

   Mod Name    Version    
1.    TinyPortal    0.86
2.    Ignore user    1.2    
3.    Topic Digest    1.1.2
4.    Custom Profile Mod    2.1
5.    Karma On Memberlist    1.0    
6.    Display Number of Attachments    0.4
7.    Membergroup Color Legend    1.1    
8.    SMF 1.0.7 / 1.1 RC2 Update    1.0
9.    Current Location on Own Line    1.0
10.    MessagePreviewOnHover    1.0    
11.    Create Topic on Report to Moderator    0.2    
12.    Karma Description Mod    1.9.4
13.    Users Online Today Mod    1.3.1


Avatar Packages

   Mod Name    Version    
1.    2DTV 100px    1.0.100    
2.    Autumn's Horror II    1.0    
3.    Autumns Spookie AVS II    1.0    
4.    Comic faces    1.0
5.    kill bill    1.0    
6.    Megaman    1.0    
7.    Lots-of-Avatars-Animated    1.0    
8.    Diablo_II_Avatars    1.0    
9.    Pretty Faces    5.0



Request

I would love to use this but I am getting this error. :(
Title: Re: Custom Profile Field Mod
Post by: winrules on April 09, 2006, 12:47:13 PM
Could you pm me your profile.template.php?
Title: Re: Custom Profile Field Mod
Post by: winrules on April 09, 2006, 01:04:22 PM
OK, it looks like there some type of "AQ Character ID#" Mod that's interfering with this mod. You could either uninstall that mod or install this mod manually.

Don't see anything like that on your mod list that you posted though.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 09, 2006, 01:04:44 PM
Quote from: winrules on April 09, 2006, 10:52:36 AM
Quote from: perplexed on April 09, 2006, 08:57:20 AM
I just downloaded the new 2.1 version this morning and I have to say that this is excellent. It's kinda simple as mods go but it just solves so many problems for me all at once lol

I love the 'admin only edit' option and the registration option and now I see you can add links like myspace etc by using the %1 option on the address - cant wait to try that :)

I was interested in the biography mod last year as I liked the idea of being able to add a pic in the profile but it doesnt work with my version, so I could never do it.  Now I can add pics thanks to this!

Using the [img ] tag I can link to photobucket pics etc

I only have one question about doing this... I have max image sizes on my forum of 500x300 pixels but this seems to be ignored and it displays at full size.  Do you know why it ignores the site limits?  It doesnt matter a great deal but I thought I would ask

Registration
I have been trying to add other fields to be filled in at registration and now I can do this really easily, this is so great.

Admin only
We have lots of member of the month type awards on my board and we give the motm an award to wear that month but now we can add a permanent record to their profile and posts to show that they were motm in a previous month... as well as being able to add more awards

This is very cool

Thanks very much for making my life easier

I should also say that I was just considering installing community builder as I have joomla but I dont think i need to now :)


PYKO - you should see a tab at the top of features and options that says 'custom profile fields'.  It should be next to the 'basic features' tab which is the page you open when you go into features and options.  I have lots of mods installed so my custom profiles tab is a little further along but it should just display a tab, then you can open the Custom profiles screen :)

Glad you like it :) It uses the same BBC parser as everthing else does, so if you set limits on the parser it should respect those. If yo set limits on attaching images, it won't respect those though. Can you tell me where you set the 500x300 limit?

Its about halfway down the page in the basic setting of features and options, and looks like

Help     Max width of posted pictures (0 = disable)     500
   Max height of posted pictures (0 = disable)              300


Also I had another question but I dont see it here, it seems to have disappeared

I like the link example you gave with myspace and how it could be a live link with just inserting the username

I would like to get it to work with livejournal and photobucket but their urls are a different format
eg  
http://yourname.livejournal.com
http://s6.photobucket.com/albums/y245/yourname

Do you know anyway of getting around the different format and being able to link to a members account like your example with myspace?


Title: Re: Custom Profile Field Mod
Post by: winrules on April 09, 2006, 01:07:05 PM
http://%1.livehournal.com
http://s6.photobucket.com.albums/y245/%1
You can put the %1 where ever you want :)
Title: Re: Custom Profile Field Mod
Post by: mitchell784 on April 09, 2006, 01:07:50 PM
Quote from: winrules on April 09, 2006, 01:04:22 PM
OK, it looks like there some type of "AQ Character ID#" Mod that's interfering with this mod. You could either uninstall that mod or install this mod manually.

Don't see anything like that on your mod list that you posted though.

Umm thats cause I supposedly deleted it...

Hmmm

any suggestions?
Title: Re: Custom Profile Field Mod
Post by: winrules on April 09, 2006, 01:14:23 PM
Quote from: mitchell784 on April 09, 2006, 01:07:50 PM
Quote from: winrules on April 09, 2006, 01:04:22 PM
OK, it looks like there some type of "AQ Character ID#" Mod that's interfering with this mod. You could either uninstall that mod or install this mod manually.

Don't see anything like that on your mod list that you posted though.

Umm thats cause I supposedly deleted it...

Hmmm

any suggestions?
If you don't care about that you could upload a fresh copy of profile.template.php.
Title: Re: Custom Profile Field Mod
Post by: SamyWeb on April 09, 2006, 01:28:44 PM
Hello! Thank you for this grat MOD! :)
I would like to know if it's possible to use in SSI functions some conditions links to a user's field.. i.e.: All members who has choosen a particular option in the select field, they will see calendar events in my home site.

If you don't have ideas for my questions, I ask you only where I can find the column in which are stored data for this mod.

Sorry for my english...

Thanks very much!
Title: Re: Custom Profile Field Mod
Post by: mitchell784 on April 09, 2006, 01:39:35 PM
Is there a way to use this on a different theme besides the default one?

Ok I read how to do it.

But I dont know I am just having trouble using this.
And I cant delete a field...

How do I go about doing that?
Title: Re: Custom Profile Field Mod
Post by: winrules on April 09, 2006, 02:22:08 PM
Quote from: SamyWeb on April 09, 2006, 01:28:44 PM
Hello! Thank you for this grat MOD! :)
I would like to know if it's possible to use in SSI functions some conditions links to a user's field.. i.e.: All members who has choosen a particular option in the select field, they will see calendar events in my home site.

If you don't have ideas for my questions, I ask you only where I can find the column in which are stored data for this mod.

Sorry for my english...

Thanks very much!

The data's stored in the themes table. If you want to access it with ssi, you could wait until next version :) or find:

setupThemeContext();


and add after:

require_once($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);


havent tested it though...but it should work.
when you add that you can use

$context['member']['options'][fieldID]

So you could do something like

if ($context['member']['options']['someoption']=='First Page')
//first page
else
//second page



Quote from: mitchell784 on April 09, 2006, 01:39:35 PM
Is there a way to use this on a different theme besides the default one?

Ok I read how to do it.

But I dont know I am just having trouble using this.
And I cant delete a field...

How do I go about doing that?
You can just disable fields. just find the code it says to find, and replace it with the code it sayd to replace.
Title: Re: Custom Profile Field Mod
Post by: mitchell784 on April 09, 2006, 03:32:22 PM
QuoteYou can just disable fields. just find the code it says to find, and replace it with the code it sayd to replace.

I am not sure what you mean. What I wanted to know was with this How can I get rid of the thing in blue?

(http://i2.tinypic.com/v2zcdy.png)
Title: Re: Custom Profile Field Mod
Post by: sbarnes on April 09, 2006, 04:51:39 PM
Hi there,
Great little mod, have successfully installed it first time and appears to work great on the default theme.

I am also using a copy of the default theme with just a different style.css

I have copied the following modified files from my default theme directory to my second theme directory:
register.template.php
personalmessage.template.php
profile.template.php
display.template.php

What else do I need to do to get it to work on my second theme.
All admin settings and pages appear but mod sections in the profile and posts pages are missing.
Title: Re: Custom Profile Field Mod
Post by: winrules on April 09, 2006, 05:01:09 PM
Quote from: mitchell784 on April 09, 2006, 03:32:22 PM
QuoteYou can just disable fields. just find the code it says to find, and replace it with the code it sayd to replace.

I am not sure what you mean. What I wanted to know was with this How can I get rid of the thing in blue?

(http://i2.tinypic.com/v2zcdy.png)
You can't delete fields in this version. But if you disable it it won't show up anywhere besides the admin interface.

Quote from: sbarnes on April 09, 2006, 04:51:39 PM
Hi there,
Great little mod, have successfully installed it first time and appears to work great on the default theme.

I am also using a copy of the default theme with just a different style.css

I have copied the following modified files from my default theme directory to my second theme directory:
register.template.php
personalmessage.template.php
profile.template.php
display.template.php

What else do I need to do to get it to work on my second theme.
All admin settings and pages appear but mod sections in the profile and posts pages are missing.
Are you sure there are any field enabled? Because if there aern't then nothing will show up. Also you really don't need to copy all those files, just make the changes I specify in the first post of this topic.
Title: Re: Custom Profile Field Mod
Post by: sbarnes on April 09, 2006, 05:30:34 PM
QuoteAre you sure there are any field enabled? Because if there aern't then nothing will show up. Also you really don't need to copy all those files, just make the changes I specify in the first post of this topic.

Yes I setup a test field and activated it.

Thank you for your help. Just to clarify, do I make the changes you mention in your first post to the display.template within my second theme?
Title: Re: Custom Profile Field Mod
Post by: winrules on April 09, 2006, 06:14:05 PM
Quote from: sbarnes on April 09, 2006, 05:30:34 PM
QuoteAre you sure there are any field enabled? Because if there aern't then nothing will show up. Also you really don't need to copy all those files, just make the changes I specify in the first post of this topic.

Yes I setup a test field and activated it.

Thank you for your help. Just to clarify, do I make the changes you mention in your first post to the display.template within my second theme?
Yeah, make the changes to whatever custom themes you want the mod to work with.
Title: Re: Custom Profile Field Mod
Post by: SamyWeb on April 09, 2006, 07:44:26 PM
Edit: I've solved! Thanks very much for thi MOD!

Quote from: winrules on April 09, 2006, 02:22:08 PM


$context['member']['options'][fieldID]

So you could do something like

if ($context['member']['options']['someoption']=='First Page')
//first page
else
//second page

Thank you for the tip!
But... help me to understand:
I've added the two lines in SSI.php where you're said.
I've added a custon filed to profile with ID 'realm'
(http://img356.imageshack.us/img356/2237/customfields4ak.jpg) (http://imageshack.us)

Then I've created a PHP block (I'm using Tinyportal as CMS) with this code:
if ($context['member']['options']['realm']=='******')
ssi_recentTopics();
// it's only an example


And in my profile I've selected '******' as realm.

What it's wrong?
Title: Re: Custom Profile Field Mod
Post by: pyko on April 09, 2006, 08:02:44 PM
><" having problems with this mod...
Ok, the installation was fine - no fails or anything...but the 'Custom Fields' tab didn't show up in the 'Features and Options'...

So I decided, maybe I'll uninstall it, and re-install it...
But when I try to uninstall i get this...

Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Installation Readme
This will uninstall the Custom Profile Mod.

Uninstall Actions
Uninstall Actions "Custom Profile Mod":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/ModSettings.php Test failed
2. Execute Modification ./Themes/default/Profile.template.php Test failed
3. Execute Modification ./Themes/default/Display.template.php Test failed
4. Execute Modification ./Themes/default/PersonalMessage.template.php Test failed
5. Execute Modification ./Themes/default/Register.template.php Test failed
6. Execute Modification ./Sources/Register.php Test failed 


Any help please!!!
I'm using SMF 1.1RC2 & Joomla 1.08 (bridged and wrapped)

thanks heaps!!
pyko

edit: I don't have any other SMF mods installed
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 09, 2006, 11:30:45 PM
Quote from: winrules on April 09, 2006, 01:07:05 PM
http://%1.livehournal.com
http://s6.photobucket.com.albums/y245/%1
You can put the %1 where ever you want :)

thats cool, I'm learning new things every day lol

I dont think it will work with photobucket though as their accounts all seem to start with different prefixes   ie one is s6.photo.... but someone else's might be b34.photobucket...   and so on  *stupid photobucket*

thanks for the help though, did you understand my question about the image sizes and why it ignores them when they are set in features and options?

Title: Re: Custom Profile Field Mod
Post by: winrules on April 10, 2006, 04:54:46 PM
Quote from: pyko on April 09, 2006, 08:02:44 PM
><" having problems with this mod...
Ok, the installation was fine - no fails or anything...but the 'Custom Fields' tab didn't show up in the 'Features and Options'...

So I decided, maybe I'll uninstall it, and re-install it...
But when I try to uninstall i get this...

Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Installation Readme
This will uninstall the Custom Profile Mod.

Uninstall Actions
Uninstall Actions "Custom Profile Mod":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/ModSettings.php Test failed
2. Execute Modification ./Themes/default/Profile.template.php Test failed
3. Execute Modification ./Themes/default/Display.template.php Test failed
4. Execute Modification ./Themes/default/PersonalMessage.template.php Test failed
5. Execute Modification ./Themes/default/Register.template.php Test failed
6. Execute Modification ./Sources/Register.php Test failed 


Any help please!!!
I'm using SMF 1.1RC2 & Joomla 1.08 (bridged and wrapped)

thanks heaps!!
pyko

edit: I don't have any other SMF mods installed
Not sure what happened to you...could you try continuing with the uninstall anyway, and then reuload fresh copies of any files that had errors.


Quote from: perplexed on April 09, 2006, 11:30:45 PM
Quote from: winrules on April 09, 2006, 01:07:05 PM
http://%1.livehournal.com
http://s6.photobucket.com.albums/y245/%1
You can put the %1 where ever you want :)

thats cool, I'm learning new things every day lol

I dont think it will work with photobucket though as their accounts all seem to start with different prefixes   ie one is s6.photo.... but someone else's might be b34.photobucket...   and so on  *stupid photobucket*

thanks for the help though, did you understand my question about the image sizes and why it ignores them when they are set in features and options?


Yeah, I might try to make it follow that in next version.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 10, 2006, 06:39:54 PM
thanks I'm really having fun with this one lol
Title: Re: Custom Profile Field Mod
Post by: pyko on April 10, 2006, 08:28:47 PM
hmm,  yeah I did that but now every now and then I get this error
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!
I've made sure the directories I've listed in my prev. post are set to '777' but still get that error (Packages is also set to 777)

help?
Title: Re: Custom Profile Field Mod
Post by: winrules on April 10, 2006, 08:43:22 PM
Quote from: pyko on April 10, 2006, 08:28:47 PM
hmm,  yeah I did that but now every now and then I get this error
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!
I've made sure the directories I've listed in my prev. post are set to '777' but still get that error (Packages is also set to 777)

help?
Make sure the /pacages directory is also 777.
Title: Re: Custom Profile Field Mod
Post by: pyko on April 10, 2006, 10:07:17 PM
hi winrules,
yes, my Packages directory is also 777 (but the mod zip  file is 755..is that ok?)

are there any other directories/files that I will need to change permission for? Becuase i have a feeling that it is telling me it is "installing" but infact it isn't doing anything (same with the uninstallation process)

thanks!
pyko
Title: Re: Custom Profile Field Mod
Post by: john109 on April 11, 2006, 03:21:42 AM
Hi,

I installed the mod without any errors but when I click on Custom Profile Field 1 it sends me to my homepage. 

I'm running Joomla 1.9.8 + SMF 1.1RC2 + CPG1.4.4 all bridged together.  I have no other mods installed on SMF.

Any idea what this is? 
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 11, 2006, 07:24:05 AM
I was just coming to post the same thing :(

There is probably some kind of redirection that needs to be done but I wouldnt know what to do

If I hold my cursor over a custom profile link ready to click and enter, it says

http://mysite.com/index.php?option=com_smf&Itemid=46&action=featuresettings;sa=profile;cp=1

but when I follow through and click the button, it takes me to my forum homepage and in the address bar is

http://mysite.com/index.php?option=com_smf&Itemid=46&action=featuresettings;sa=profile;sesc=fa5cf59272954aad8d32c151378564a4

If this question should go to the smf joomla board, let me know and I'll ask there

thanks again
Title: Re: Custom Profile Field Mod
Post by: winrules on April 11, 2006, 04:10:58 PM
pyko, try making the mod file 77 too.

john109 and perplexed, I don't use Joomla/Mambo, and I'm not quite sure what's happening to you. What gridge are you using?
Title: Re: Custom Profile Field Mod
Post by: john109 on April 11, 2006, 04:29:55 PM
I'm using Orstio's 1.1.3 bridge.  Also I'm using Joomla 1.0.8 not 1.9.8 like it says in my previous post.  :-[
Title: Re: Custom Profile Field Mod
Post by: winrules on April 11, 2006, 04:39:09 PM
Quote from: john109 on April 11, 2006, 04:29:55 PM
I'm using Orstio's 1.1.3 bridge.  Also I'm using Joomla 1.0.8 not 1.9.8 like it says in my previous post.  :-[
Does it send you to the forum homepage or joomla homepage?
Title: Re: Custom Profile Field Mod
Post by: Kindred on April 11, 2006, 04:40:15 PM
winrules,

How are you coding the page change?   The bridge uses a pregreplace function to replace the normal index.php?action with the index.php?option=com_smf(etc)

It looks like the the bridge thinks it needs to identify the sessionID...
Title: Re: Custom Profile Field Mod
Post by: john109 on April 11, 2006, 04:42:19 PM
Quote from: winrules on April 11, 2006, 04:39:09 PM
Quote from: john109 on April 11, 2006, 04:29:55 PM
I'm using Orstio's 1.1.3 bridge.  Also I'm using Joomla 1.0.8 not 1.9.8 like it says in my previous post.  :-[
Does it send you to the forum homepage or joomla homepage?

Sends me to the Joomla homepage.
Title: Re: Custom Profile Field Mod
Post by: winrules on April 11, 2006, 04:45:09 PM
Quote from: Kindred on April 11, 2006, 04:40:15 PM
winrules,

How are you coding the page change?   The bridge uses a pregreplace function to replace the normal index.php?action with the index.php?option=com_smf(etc)

It looks like the the bridge thinks it needs to identify the sessionID...
I use

<a href=' . $scripturl . '?action=featuresettings;sa=profile;cp=' . $i . '>

where $i is the field number. Do you need to know anything else?
Title: Re: Custom Profile Field Mod
Post by: john109 on April 11, 2006, 04:49:48 PM
I noticed my situation is slightly different from perplexed's.  When I hover my cursor over the Custom Profile Field 1 link it shows this:

http://www.mysite.com/smf/index.php?action=featuresettings;sa=profile;cp=1

and when at my homepage this is in the address bar:

http://www.mysite.com/joomla/index.php?option=com_frontpage&Itemid=1

EDIT - Figured my mistake out.  I had added this code to my .../smf/index.php so people can't access my forums directly but it didn't work.  When I saw where I was redirected I thought this was the problem but I thought I had removed it.  I even went looking to see if I had removed it but I guess it was late last night and my eyes were tired.   ::)    (Why the redirection didn't work when typing www.mysite.com/smf but it does in this case is another question?)

// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false)
{
        if(!defined('_VALID_MOS')){ header("Location: http://www.mysite.com/joomla/index.php?option=com_frontpage&Itemid=1");}
}


It works now.  Thanks winrules for this great mod.  Good luck perplexed.  I don't think this is the same problem as yours.
Title: Re: Custom Profile Field Mod
Post by: winrules on April 11, 2006, 05:20:45 PM
Quote from: john109 on April 11, 2006, 04:49:48 PM
I noticed my situation is slightly different from perplexed's.  When I hover my cursor over the Custom Profile Field 1 link it shows this:

http://www.mysite.com/smf/index.php?action=featuresettings;sa=profile;cp=1

and when at my homepage this is in the address bar:

http://www.mysite.com/joomla/index.php?option=com_frontpage&Itemid=1

EDIT - Figured my mistake out.  I had added this code so people can't access my forums directly but it didn't work.  When I saw where I was redirected I thought this was the problem but I thought I had removed it.  I even went looking to see if I had removed it but I guess it was late last night and my eyes were tired.   ::)    (Why the redirection didn't work when typing www.mysite.com/smf but it does in this case is another question?)

// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false)
{
        if(!defined('_VALID_MOS')){ header("Location: http://www.mysite.com/joomla/index.php?option=com_frontpage&Itemid=1");}
}


It works now.  Thanks winrules for this great mod.  Good luck perplexed.  I don't think this is the same problem as yours.
Glad you got it working :) Hope I get get it working for perplexed too :)
Title: Re: Custom Profile Field Mod
Post by: john109 on April 11, 2006, 05:33:35 PM
Ah well another problem pops up.  When I click on Custom Profile Field 1 it goes to the page to set the options for that field but the page is no longer wrapped.  I have my forums wrapped in Joomla.  It throws all the formatting out of whack.
Title: Re: Custom Profile Field Mod
Post by: domipedro on April 11, 2006, 07:02:55 PM
Hello
exuse me for my poor english.
This is a very good mod, but i have a problem when i force input a field in registration.
When i register a account, i chek the box, when i validate, i have the error:
"You did not fill in the "Operateur" field."
This is a bug?
I have tested in 3 forum for test.
thank
by

(http://img132.imageshack.us/img132/2549/capture16xd.jpg)

(http://img69.imageshack.us/img69/1028/capture27eq.jpg)
Title: Re: Custom Profile Field Mod
Post by: winrules on April 11, 2006, 07:55:47 PM
john109, I will try to have all the Mambo/Joomla Porblems fixed ASAP.


Quote from: domipedro on April 11, 2006, 07:02:55 PM
Hello
exuse me for my poor english.
This is a very good mod, but i have a problem when i force input a field in registration.
When i register a account, i chek the box, when i validate, i have the error:
"You did not fill in the "Operateur" field."
This is a bug?
I have tested in 3 forum for test.
thank
by

(http://img132.imageshack.us/img132/2549/capture16xd.jpg)

(http://img69.imageshack.us/img69/1028/capture27eq.jpg)
Is the problem that the error message is in english or that it isn't supposed to give an error message?
Title: Re: Custom Profile Field Mod
Post by: Sapphire_H on April 11, 2006, 09:06:51 PM
I'm having a similar problem as domipedro -

I set a field to have one of three drop down answers.  If I "force" this as part of registration, no matter what selection of the three a user chooses, they are told "You did not fill in the _____ field."

I've had to disable it as a requirement to registration.  Any ideas?
Title: Re: Custom Profile Field Mod
Post by: domipedro on April 11, 2006, 10:41:17 PM
hi
this is the same problem of Sapphire_H
bye
Title: Re: Custom Profile Field Mod
Post by: john109 on April 12, 2006, 02:56:33 AM
I'm also getting this error when I try to go to the main section of the forums.

QuoteTemplate Parse Error!
There was a problem loading the /Themes/PortalBlue_1_1RC2/Display.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
parse error, unexpected T_ELSEIF

I put in that code you mention in your first post.  Is this another Joomla bridge problem?

Edit - I removed the code and the error is gone.  Now the custom field shows up in profile but not in the registration which I suppose has to do with the bridge? 
Title: Re: Custom Profile Field Mod
Post by: digit on April 12, 2006, 04:12:32 AM
I commented on this mod, but would like to retract it - I was getting an error on the Display.template.php page, but found that I had hacked it a bit - causing the failed test.....


Title: Re: Custom Profile Field Mod
Post by: Kindred on April 12, 2006, 07:39:11 AM
Quote from: john109 on April 12, 2006, 02:56:33 AM
I'm also getting this error when I try to go to the main section of the forums.

QuoteTemplate Parse Error!
There was a problem loading the /Themes/PortalBlue_1_1RC2/Display.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
parse error, unexpected T_ELSEIF

I put in that code you mention in your first post.  Is this another Joomla bridge problem?

Edit - I removed the code and the error is gone.  Now the custom field shows up in profile but not in the registration which I suppose has to do with the bridge? 


JOhn...  this is not a bridge problem...  this is problem with code you are pasting into a template file.   You are pasting it incorrectly, or in the wrong spot, thus causing a template error. You can not just randomly post code into a template...   Any templates that are not the default may require some modification of code...   that is why mods only install themselves in the default theme... because other themes might use slightly different coding.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 12, 2006, 09:35:37 AM
Does anyone know what I need to do to use this mod with joomla.  So far I havent made any changes to any templates but it still takes me to the forum home page when I try to add a custom field instead of letting me add a custom field

thanks in advance
Title: Re: Custom Profile Field Mod
Post by: john109 on April 12, 2006, 05:27:28 PM
Quote from: Kindred on April 12, 2006, 07:39:11 AM
Quote from: john109 on April 12, 2006, 02:56:33 AM
I'm also getting this error when I try to go to the main section of the forums.

QuoteTemplate Parse Error!
There was a problem loading the /Themes/PortalBlue_1_1RC2/Display.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
parse error, unexpected T_ELSEIF

I put in that code you mention in your first post.  Is this another Joomla bridge problem?

Edit - I removed the code and the error is gone.  Now the custom field shows up in profile but not in the registration which I suppose has to do with the bridge? 


JOhn...  this is not a bridge problem...  this is problem with code you are pasting into a template file.   You are pasting it incorrectly, or in the wrong spot, thus causing a template error. You can not just randomly post code into a template...   Any templates that are not the default may require some modification of code...   that is why mods only install themselves in the default theme... because other themes might use slightly different coding.

I realize that the Template Parse error was caused by the code I pasted into the template file.  As I said in my edit, I removed the code and the error no longer occured.  However, any custom fields I enter show up in the profile but do not show up on the registration.  It was this that I was wondering may be because of the bridge since I use bridge registration.  I'm not saying there is something wrong with the bridge just that this mod needs to work with the bridge.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 12, 2006, 06:19:26 PM
John can you tell me how you got to add/edit a custom field since it wont work for me at all and just takes me to the forum homepage?

My forum is 1.1 rc2 and joomla 1.0.7 and bridge 3.20
Title: Re: Custom Profile Field Mod
Post by: Kindred on April 12, 2006, 08:03:31 PM
Ah... in that case, John... YES.   If you use BRIDGE registration, then any changes that this mod makes to the SMF registration will have no effect on the bridge registration...
Title: Re: Custom Profile Field Mod
Post by: john109 on April 13, 2006, 01:55:18 AM
@perplexed - I didn't do anything special.  I only removed that little bit of code that redirected people who tried to access the forums directly.  Its in one of my previous posts on top of page 6.  After I removed that I was able to add custom fields, etc.  I'm running Joomla 1.0.8 and the 1.1.3 bridge.  Perhaps you need to upgrade?

@winrules - My problem remains that when I press on Custom Profile Field 1 the forum becomes unwrapped.  I've "fixed" my other problem of not seeing the custom fields on the registration form by changing the bridge option of using the bridge registration to using the SMF registration.

I still don't see the custom fields in the posts though.  Do I still need to put in that code you talk about in your first post?  Where exactly do I put it since the first time I did it I got errors?
Title: Re: Custom Profile Field Mod
Post by: uberjon on April 13, 2006, 02:07:20 AM
how do i update this to the latest version without loosing the info my members have put into their fields?
Title: Re: Custom Profile Field Mod
Post by: john109 on April 13, 2006, 03:01:40 AM
I've also noticed I have the same problem some others had mentioned here.  No matter what I enter into the custom fields when registering it says I have not filled out said custom field.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 13, 2006, 07:40:14 AM
ok I removed my redirection code for joomla and I was able to create custom fields - yay!

I put the code back in and I was able to fill in the custom fields in my profile - yay!

I put two fields in the registration agreement, one force, one optional, and the optional one works

the field that is forced just gives me the error that others have mentioned:

An Error Has Occurred!   
You did not fill in the "Referred By" field.

So that is the only error I think I have now
Title: Re: Custom Profile Field Mod
Post by: john109 on April 13, 2006, 08:18:11 AM
When I try to register a new acct I get this error now.

Quote8: Undefined index: memberName
File: /home/drago2/public_html/joomla/components/com_smf/smf.php
Line: 917

This is line 917
Quote$Options['realName'] = $Options['memberName'];

which is part of this
Quote//What if the realName field isn't being used?
   if (!isset($Options['realName']) || $Options['realName']=='')
      $Options['realName'] = $Options['memberName'];

The SMF registration doesn't ask for your real name but the bridge registration did.  Anyone know how I can fix this?
Title: Re: Custom Profile Field Mod
Post by: winrules on April 13, 2006, 04:04:21 PM
Version 2.11 has been released! This fixes a bug with forcing registration fields. It should now work right :)


Quote from: john109 on April 13, 2006, 01:55:18 AM
@perplexed - I didn't do anything special.  I only removed that little bit of code that redirected people who tried to access the forums directly.  Its in one of my previous posts on top of page 6.  After I removed that I was able to add custom fields, etc.  I'm running Joomla 1.0.8 and the 1.1.3 bridge.  Perhaps you need to upgrade?

@winrules - My problem remains that when I press on Custom Profile Field 1 the forum becomes unwrapped.  I've "fixed" my other problem of not seeing the custom fields on the registration form by changing the bridge option of using the bridge registration to using the SMF registration.

I still don't see the custom fields in the posts though.  Do I still need to put in that code you talk about in your first post?  Where exactly do I put it since the first time I did it I got errors?
I really don't know why it's being unwrapped, but I don't think it's that big of a problem because its just in the admin interface. With fields in the posts, you will just need to add the code specified in the first post of this topic.


Quote from: uberjon on April 13, 2006, 02:07:20 AM
how do i update this to the latest version without loosing the info my members have put into their fields?
Your members won't lose any data.


Quote from: john109 on April 13, 2006, 08:18:11 AM
When I try to register a new acct I get this error now.

Quote8: Undefined index: memberName
File: /home/drago2/public_html/joomla/components/com_smf/smf.php
Line: 917

This is line 917
Quote$Options['realName'] = $Options['memberName'];

which is part of this
Quote//What if the realName field isn't being used?
   if (!isset($Options['realName']) || $Options['realName']=='')
      $Options['realName'] = $Options['memberName'];

The SMF registration doesn't ask for your real name but the bridge registration did.  Anyone know how I can fix this?
Are you sure this is related to this mod, did it just start happening now?
Title: Re: Custom Profile Field Mod
Post by: digit on April 13, 2006, 04:30:27 PM
Hey winrules,

I am using your custom fields mod to hold charter member data....

date joined
initial amount contributed
last contribution
total amount contributed
etc, etc, etc...

works great!

Can you help me build a stand alone php page that displays the custom fields?

Title: Re: Custom Profile Field Mod
Post by: winrules on April 13, 2006, 04:33:16 PM
Quote from: digit on April 13, 2006, 04:30:27 PM
Hey winrules,

I am using your custom fields mod to hold charter member data....

date joined
initial amount contributed
last contribution
total amount contributed
etc, etc, etc...

works great!

Can you help me build a stand alone php page that displays the custom fields?


Glad you like it :)
You can use ssi to get the fields if you put some lines in ssi.php: http://www.simplemachines.org/community/index.php?topic=79004.msg539409#msg539409

It probly will be included by default in next version
Title: Re: Custom Profile Field Mod
Post by: digit on April 13, 2006, 04:53:39 PM
Quote from: winrules on April 09, 2006, 02:22:08 PM

The data's stored in the themes table. If you want to access it with ssi, you could wait until next version :) or find:

setupThemeContext();


and add after:

require_once($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);


havent tested it though...but it should work.


ok, did that.

Quote from: winrules on April 09, 2006, 02:22:08 PM
when you add that you can use

$context['member']['options'][fieldID]

So you could do something like

if ($context['member']['options']['someoption']=='First Page')
//first page
else
//second page




I get lost with the rest...  where does that code go???  (in ssi_examples.shtml?), or?

My fields are simply named....

Custom Profile Field 1 (CP1)

Custom Profile Field 2 (CP2)

etc. etc.

...  or are they actually named what we name them?

sorry for the confusion.

Title: Re: Custom Profile Field Mod
Post by: john109 on April 13, 2006, 04:58:01 PM
I've uninstalled 2.1 through the SMF admin and then installed 2.11 through the admin panel.  All without errors.  I have a custom field enabled.  I set the Joomla/SMF 1.1.3 bridge to use the bridge registration and the custom field still doesn't show up in the registration form.  I set the bridge to use SMF registration, the custom field appears on the registration form but when I submit it I still get the error on line 917.

The becoming unwrapped is a problem because you can't get back to the main website.  You become disconnected from Joomla and the bridge.  The formatting is all off and if you use the logout on the forum it only logs you out of the forums.  You remain logged into the bridge and Joomla.
Title: Re: Custom Profile Field Mod
Post by: winrules on April 13, 2006, 05:04:34 PM
Quote from: digit on April 13, 2006, 04:53:39 PM
Quote from: winrules on April 09, 2006, 02:22:08 PM

The data's stored in the themes table. If you want to access it with ssi, you could wait until next version :) or find:

setupThemeContext();


and add after:

require_once($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);


havent tested it though...but it should work.


ok, did that.

Quote from: winrules on April 09, 2006, 02:22:08 PM
when you add that you can use

$context['member']['options'][fieldID]

So you could do something like

if ($context['member']['options']['someoption']=='First Page')
//first page
else
//second page




I get lost with the rest...  where does that code go???  (in ssi_examples.shtml?), or?

My fields are simply named....

Custom Profile Field 1

Custom Profile Field 2

etc. etc.

...  or are they actually named what we name them?

sorry for the confusion.


that code goes in your php page that you want it to display the fields on (you'll have to include ssi.php)
by fieldID, I mean whatever you put in for the field ID in the options page for a particular field. (by default its CP{fieldnumber}, so if the field is Custom Profle Field 1 and you haven't changed the field ID you would use "$context['member']['options']['CP1']")




Quote from: john109 on April 13, 2006, 04:58:01 PM
I've uninstalled 2.1 through the SMF admin and then installed 2.11 through the admin panel.  All without errors.  I have a custom field enabled.  I set the Joomla/SMF 1.1.3 bridge to use the bridge registration and the custom field still doesn't show up in the registration form.  I set the bridge to use SMF registration, the custom field appears on the registration form but when I submit it I still get the error on line 917.

The becoming unwrapped is a problem because you can't get back to the main website.  You become disconnected from Joomla and the bridge.  The formatting is all off and if you use the logout on the forum it only logs you out of the forums.  You remain logged into the bridge and Joomla.
I really don't think the registration error is because of this mod, it's probly a problem with swithching registration to SMF. Are you sure everything is updated to the most recent version? You might want to post in the bridge support board.
About the forum becoming unrapped, what URL does the link to the profile field direct you to?
Title: Re: Custom Profile Field Mod
Post by: john109 on April 13, 2006, 05:22:36 PM
Everything is up to date.  Joomla 1.0.8 + SMF 1.1RC2  and Orstio's 1.1.3 bridge.  I have posted in the bridge support section now.  Hopefully some help can come from that direction.

The link for Custom Profile Field 1 is

Quotehttp://www.mysite.com/smf/index.php?action=featuresettings;sa=profile;cp=1

That is what is in the address bar after I click it as well.

Thanks for all your effort btw winrules.  I know this must be a pain.  :D
Title: Re: Custom Profile Field Mod
Post by: Kindred on April 13, 2006, 05:27:06 PM
that is, indeed an unwrapped url.   the wrapped (pregreplace) url should point to http://www.mysite.com/index.php?option=com_smf&Itemid=##&action=featuresettings;sa=profile;cp=1
Title: Re: Custom Profile Field Mod
Post by: john109 on April 13, 2006, 05:36:09 PM
(http://i24.photobucket.com/albums/c1/dyinfree/customprofile1.jpg)

Link#1
Quotehttp://www.mysite.com/joomla/index.php?option=com_smf&Itemid=29&action=featuresettings;sa=profile;sesc=528fa4fc1e539a4059f6b6a1f64004ba

Link#2
Quotehttp://www.mysite.com/smf/index.php?action=featuresettings;sa=profile;cp=1

Does that shed some light on this?  I'm a noob at all this so I wouldn't know where to make any modifications. 
Title: Re: Custom Profile Field Mod
Post by: winrules on April 13, 2006, 05:46:10 PM
Quote from: john109 on April 13, 2006, 05:36:09 PM
(http://i24.photobucket.com/albums/c1/dyinfree/customprofile1.jpg)

Link#1
Quotehttp://www.mysite.com/joomla/index.php?option=com_smf&Itemid=29&action=featuresettings;sa=profile;sesc=528fa4fc1e539a4059f6b6a1f64004ba

Link#2
Quotehttp://www.mysite.com/smf/index.php?action=featuresettings;sa=profile;cp=1

Does that shed some light on this?  I'm a noob at all this so I wouldn't know where to make any modifications. 
Basically the 2nd link isn't getting wrapped. It should be (mabey with the session ID)
Quote
http://www.mysite.com/joomla/index.php?option=com_smf&Itemid=29&action=featuresettings;sa=profile;cp=1
I don't know exactally how the preg_replace (or str_replace, not sure which on the bridge uses) works with the bridge. You could manually code in the option=com_smf&Itemid=29, but that would make upgrades hard.
Title: Re: Custom Profile Field Mod
Post by: john109 on April 13, 2006, 06:34:46 PM
Quote from: Kindred on April 13, 2006, 05:27:06 PM
that is, indeed an unwrapped url.   the wrapped (pregreplace) url should point to http://www.mysite.com/index.php?option=com_smf&Itemid=##&action=featuresettings;sa=profile;cp=1

Well looks like Kindred is saying the bridge uses pregreplace. 

If I type this directly into the address bar it works of course but like you said if I code it in directly it will make upgrading difficult.  I don't even know where to put the code in anyways.

Quotehttp://www.mysite.com/joomla/index.php?option=com_smf&Itemid=29&action=featuresettings;sa=profile;cp=1

Title: Re: Custom Profile Field Mod
Post by: Kalimas on April 13, 2006, 09:10:28 PM
I love the mod, everythings working great.

One question:

Is there any way to make it so a certain member group can change fields instead of "admin only"? I only have a slight working knowledge of my way around in the code, and I'd rather not risk breaking something without some advice.

Thanks in advance.
Title: Re: Custom Profile Field Mod
Post by: digit on April 14, 2006, 01:20:48 AM
Quote from: winrules on April 13, 2006, 05:04:34 PM
that code goes in your php page that you want it to display the fields on (you'll have to include ssi.php)
by fieldID, I mean whatever you put in for the field ID in the options page for a particular field. (by default its CP{fieldnumber}, so if the field is Custom Profle Field 1 and you haven't changed the field ID you would use "$context['member']['options']['CP1']")

sorry about the confusion....  I have added the snippet to SSI.php...

Then I wrote a php page named members.php

here is the code of that page.....






<?php

include ('SSI.php');

echo 
'
<html>
<title>test</title>
<meta http-equiv=Content-Type content="text/html;  charset=UTF-8">
<head>
</head>
<body>'
;

if (
$context['member']['options']['CP1']=='First Page')
echo 
' test1 ';

else
echo 
' test ';

echo 
'
</body>
</html>
'
;
?>




I am confused about the "=='First page'" here.....

if ($context['member']['options']['CP1']=='First Page')

What is that referencing?

The page above successfully prints "test", not "test1". (I guess you can see that )

...  what I'd REALLY like to do is print a list of all users WHERE ID_GROUP = 4 (charter members), along with a few of your custom fields... "Charter member since" (CP1) "amount contributed" (CP2) etc. etc.

here's an example, of what I'm trying to do....

(http://www.worlddatabase.com/example.gif)

so I need to do something like....

for each charter member (WHERE ID_GROUP = 4) - print that line.

I have also created two checkbox fields...

"Appear in List?" (CP5)  and "Show Amount Contributed?" (CP6)

I only want their member name to appear in the list IF CP5 is checked...  and only want "amount contributed" (CP2) visible if CP6 is checked. (is THAT doable?)

That brings up a question...  if the field is set so only the admin can see it, is it possible to make it visible though SSI.php? (yikes!)

...  and finally, I would have the same question as Kalimas...  I would like only users from ID_GROUP 4 to be able to view and edit some fields.

Any help would be most appreciated!!!!!!!!!!

Thanks!
Title: Re: Custom Profile Field Mod
Post by: ArkServer on April 14, 2006, 08:30:06 AM
The fields doesnt show up in the registration field
1.1 rc2

www.happyserver.be
Title: Re: Custom Profile Field Mod
Post by: Lili_ on April 14, 2006, 11:08:12 AM
Hi,

This is a wonderful mod, thank you for making it.

My theme has its own Profile.template.php, PersonalMessage.template.php and Register.template.php.
What changes do I need to make to them to have this feature working?

Also, how can I stop the titles (eg.location) showing in the posts when the field is empty?

Thanks!
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 14, 2006, 12:32:04 PM
oh dear I spoke too soon :(

I now have 200 pages of errors in the error log all pertaining to these two errors

http://www.mysite.com/forum/index.php?option=com_smf&amp;Itemid=43&amp;topic=929.msg37445;topicseen
8: Undefined index: CP5_view
File: /home/xxxx/public_html/forum/Themes/default/Display.template.php (main sub template - eval?)
Line: 350
   

http://www.mysite.com/forum/index.php?option=com_smf&amp;Itemid=43&amp;topic=929.msg37445;topicseen
8: Undefined index: CP5_view
File: /home/xxxxx/public_html/forum/Themes/default/Display.template.php (main sub template - eval?)
Line: 451

CP4 and CP5 are the only two fields that I have content in and are displaying on posts  and only I am using it at the moment,so all those errors are for me alone :(
Title: Re: Custom Profile Field Mod
Post by: winrules on April 14, 2006, 03:54:49 PM
Kalimas, I'll put that in for my list for next version

digit, the 'first page' is the vaule of the field. So it would only go through that if statment if CP1 was set to 'First Page'. If you just wanted to display it, you could use

echo '$context['member']['options']['CP1']';

about having options for show in list and stuff, you could just do

if ($context['member']['options']['CP6'])
{
     //code for showing in list
}

Hope you can get what you want to do to work.

ArkServer, are you using a custom theme?

Lil_, look in the modification.xml file of this mod for what to find.

perplexed, can you try going into the configuration screen for field 5, check that there is a checkbox for only allowing admins to view it, and then press save. If that doesn't work, try going to this URL:

http://www.yoursite.com/smfdir/index.php?action=featuresettings;sa=profile;addfield=5
Title: Re: Custom Profile Field Mod
Post by: digit on April 14, 2006, 04:21:21 PM
Quote from: winrules on April 14, 2006, 03:54:49 PM

digit, the 'first page' is the vaule of the field. So it would only go through that if statment if CP1 was set to 'First Page'. If you just wanted to display it, you could use

echo '$context['member']['options']['CP1']';

about having options for show in list and stuff, you could just do

if ($context['member']['options']['CP6'])
{
     //code for showing in list
}

Hope you can get what you want to do to work.

nope.  still isn't working.

I wonder if this is incorrect in SSI.php


Quote from: winrules on April 09, 2006, 02:22:08 PM

The data's stored in the themes table. If you want to access it with ssi, you could wait until next version :) or find:

setupThemeContext();


and add after:

require_once($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);


havent tested it though...but it should work.

Title: Re: Custom Profile Field Mod
Post by: ArkServer on April 14, 2006, 04:35:49 PM
Quote from: winrules on April 14, 2006, 03:54:49 PM
Kalimas, I'll put that in for my list for next version

digit, the 'first page' is the vaule of the field. So it would only go through that if statment if CP1 was set to 'First Page'. If you just wanted to display it, you could use

echo '$context['member']['options']['CP1']';

about having options for show in list and stuff, you could just do

if ($context['member']['options']['CP6'])
{
     //code for showing in list
}

Hope you can get what you want to do to work.

ArkServer, are you using a custom theme?

Lil_, look in the modification.xml file of this mod for what to find.

perplexed, can you try going into the configuration screen for field 5, check that there is a checkbox for only allowing admins to view it, and then press save. If that doesn't work, try going to this URL:

http://www.yoursite.com/smfdir/index.php?action=featuresettings;sa=profile;addfield=5


Nope default, but changed some colors etc
Title: Re: Custom Profile Field Mod
Post by: winrules on April 14, 2006, 05:24:49 PM
Quote from: digit on April 14, 2006, 04:21:21 PM
Quote from: winrules on April 14, 2006, 03:54:49 PM

digit, the 'first page' is the vaule of the field. So it would only go through that if statment if CP1 was set to 'First Page'. If you just wanted to display it, you could use

echo '$context['member']['options']['CP1']';

about having options for show in list and stuff, you could just do

if ($context['member']['options']['CP6'])
{
     //code for showing in list
}

Hope you can get what you want to do to work.

nope.  still isn't working.

I wonder if this is incorrect in SSI.php


Quote from: winrules on April 09, 2006, 02:22:08 PM

The data's stored in the themes table. If you want to access it with ssi, you could wait until next version :) or find:

setupThemeContext();


and add after:

require_once($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);


havent tested it though...but it should work.


Can you post what code your using?



Quote from: ArkServer on April 14, 2006, 04:35:49 PM
Quote from: winrules on April 14, 2006, 03:54:49 PM
Kalimas, I'll put that in for my list for next version

digit, the 'first page' is the vaule of the field. So it would only go through that if statment if CP1 was set to 'First Page'. If you just wanted to display it, you could use

echo '$context['member']['options']['CP1']';

about having options for show in list and stuff, you could just do

if ($context['member']['options']['CP6'])
{
     //code for showing in list
}

Hope you can get what you want to do to work.

ArkServer, are you using a custom theme?

Lil_, look in the modification.xml file of this mod for what to find.

perplexed, can you try going into the configuration screen for field 5, check that there is a checkbox for only allowing admins to view it, and then press save. If that doesn't work, try going to this URL:

http://www.yoursite.com/smfdir/index.php?action=featuresettings;sa=profile;addfield=5


Nope default, but changed some colors etc
Do the fields show up at all?
Title: Re: Custom Profile Field Mod
Post by: ArkServer on April 14, 2006, 06:07:27 PM
profiles yes, registration no
Title: Re: Custom Profile Field Mod
Post by: winrules on April 14, 2006, 06:09:08 PM
Quote from: ArkServer on April 14, 2006, 06:07:27 PM
profiles yes, registration no
any errors on install?
also are you sure you've enabled show on registration?
Title: Re: Custom Profile Field Mod
Post by: ArkServer on April 14, 2006, 06:13:17 PM
Quote from: winrules on April 14, 2006, 06:09:08 PM
Quote from: ArkServer on April 14, 2006, 06:07:27 PM
profiles yes, registration no
any errors on install?
also are you sure you've enabled show on registration?

Yup no install errors, the problem is this:
admin etc.. custom profiles -> "Show field on regristration?" when i click öptional input" and save its still on "dont show" the same as "show in posts" i just wont save. i tried it with 2 Custom Profile Fields both same results.

atm no one can register because you need to fill in the information but it isnt shown in the registration field.
Title: Re: Custom Profile Field Mod
Post by: winrules on April 14, 2006, 06:14:57 PM
Quote from: ArkServer on April 14, 2006, 06:13:17 PM
Quote from: winrules on April 14, 2006, 06:09:08 PM
Quote from: ArkServer on April 14, 2006, 06:07:27 PM
profiles yes, registration no
any errors on install?
also are you sure you've enabled show on registration?

Yup no install errors, the problem is this:
admin etc.. custom profiles -> "Show field on regristration?" when i click öptional input" and save its still on "dont show" the same as "show in posts" i just wont save. i tried it with 2 Custom Profile Fields both same results.

atm no one can register because you need to fill in the information but it isnt shown in the registration field.
At what version of this mod did you initially install?
Title: Re: Custom Profile Field Mod
Post by: ArkServer on April 14, 2006, 06:18:30 PM
Quote from: winrules on April 14, 2006, 06:14:57 PM
Quote from: ArkServer on April 14, 2006, 06:13:17 PM
Quote from: winrules on April 14, 2006, 06:09:08 PM
Quote from: ArkServer on April 14, 2006, 06:07:27 PM
profiles yes, registration no
any errors on install?
also are you sure you've enabled show on registration?

Yup no install errors, the problem is this:
admin etc.. custom profiles -> "Show field on regristration?" when i click öptional input" and save its still on "dont show" the same as "show in posts" i just wont save. i tried it with 2 Custom Profile Fields both same results.

atm no one can register because you need to fill in the information but it isnt shown in the registration field.
At what version of this mod did you initially install?
I  installed customprofile2-11.zip from the mod page.
Title: Re: Custom Profile Field Mod
Post by: winrules on April 14, 2006, 06:22:20 PM
Quote from: ArkServer on April 14, 2006, 06:18:30 PM
Quote from: winrules on April 14, 2006, 06:14:57 PM
Quote from: ArkServer on April 14, 2006, 06:13:17 PM
Quote from: winrules on April 14, 2006, 06:09:08 PM
Quote from: ArkServer on April 14, 2006, 06:07:27 PM
profiles yes, registration no
any errors on install?
also are you sure you've enabled show on registration?

Yup no install errors, the problem is this:
admin etc.. custom profiles -> "Show field on regristration?" when i click öptional input" and save its still on "dont show" the same as "show in posts" i just wont save. i tried it with 2 Custom Profile Fields both same results.

atm no one can register because you need to fill in the information but it isnt shown in the registration field.
At what version of this mod did you initially install?
I  installed customprofile2-11.zip from the mod page.
Is that the first version you install, or did you start at a different version and then upgrade?
Title: Re: Custom Profile Field Mod
Post by: ArkServer on April 14, 2006, 06:24:26 PM
Quote from: winrules on April 14, 2006, 06:22:20 PM
Quote from: ArkServer on April 14, 2006, 06:18:30 PM
Quote from: winrules on April 14, 2006, 06:14:57 PM
Quote from: ArkServer on April 14, 2006, 06:13:17 PM
Quote from: winrules on April 14, 2006, 06:09:08 PM
Quote from: ArkServer on April 14, 2006, 06:07:27 PM
profiles yes, registration no
any errors on install?
also are you sure you've enabled show on registration?

Yup no install errors, the problem is this:
admin etc.. custom profiles -> "Show field on regristration?" when i click öptional input" and save its still on "dont show" the same as "show in posts" i just wont save. i tried it with 2 Custom Profile Fields both same results.

atm no one can register because you need to fill in the information but it isnt shown in the registration field.
At what version of this mod did you initially install?
I  installed customprofile2-11.zip from the mod page.
Is that the first version you install, or did you start at a different version and then upgrade?

Yup first version ever
Title: Re: Custom Profile Field Mod
Post by: Orstio on April 14, 2006, 06:51:05 PM
This mod is great Winrules.

I do have a request, though.  Can you make sure that href fields in anchor tags are surrounded by double-quotes?  It breaks some integration functions to have <a href=URL> instead of <a href="URL">, not to mention that without the quotations, the page is not XHTML compliant. ;)
Title: Re: Custom Profile Field Mod
Post by: winrules on April 14, 2006, 07:06:59 PM
Quote from: Orstio on April 14, 2006, 06:51:05 PM
This mod is great Winrules.

I do have a request, though.  Can you make sure that href fields in anchor tags are surrounded by double-quotes?  It breaks some integration functions to have <a href=URL> instead of <a href="URL">, not to mention that without the quotations, the page is not XHTML compliant. ;)
OK, I guess that is the problem. Will release fix ASAP :)

I hate it when it's stupid mistakes like that that screw things up :P
Quote from: ArkServer on April 14, 2006, 06:24:26 PM
Quote from: winrules on April 14, 2006, 06:22:20 PM
Quote from: ArkServer on April 14, 2006, 06:18:30 PM
Quote from: winrules on April 14, 2006, 06:14:57 PM
Quote from: ArkServer on April 14, 2006, 06:13:17 PM
Quote from: winrules on April 14, 2006, 06:09:08 PM
Quote from: ArkServer on April 14, 2006, 06:07:27 PM
profiles yes, registration no
any errors on install?
also are you sure you've enabled show on registration?

Yup no install errors, the problem is this:
admin etc.. custom profiles -> "Show field on regristration?" when i click öptional input" and save its still on "dont show" the same as "show in posts" i just wont save. i tried it with 2 Custom Profile Fields both same results.

atm no one can register because you need to fill in the information but it isnt shown in the registration field.
At what version of this mod did you initially install?
I  installed customprofile2-11.zip from the mod page.
Is that the first version you install, or did you start at a different version and then upgrade?

Yup first version ever
Wierd, does your theme have a registration.template.php? Also, could you try recreating the field?
Title: Re: Custom Profile Field Mod
Post by: john109 on April 14, 2006, 07:10:59 PM
Yes winrules this is a great mod like Orstio says (now that I have it working :D).

With the help of the great Orstio I'm able to use the mod without any problems now except maybe the unwrapping of my forums thing.  I asked Orstio about that as well which is why he made the above post.  See this thread if you had similar problems to myself.

http://www.simplemachines.org/community/index.php?topic=81676.0 (http://www.simplemachines.org/community/index.php?topic=81676.0)


I hope that fixes my unwrapping problem.  I anxiously await your fix.  Thanks winrule.
Title: Re: Custom Profile Field Mod
Post by: winrules on April 14, 2006, 07:24:28 PM
Version 2.12 has been released! :)
This release fixes a bug with the Mambo/Joomla bridge.



Quote from: john109 on April 14, 2006, 07:10:59 PM
Yes winrules this is a great mod like Orstio says (now that I have it working :D).

With the help of the great Orstio I'm able to use the mod without any problems now except maybe the unwrapping of my forums thing.  I asked Orstio about that as well which is why he made the above post.  See this thread if you had similar problems to myself.

http://www.simplemachines.org/community/index.php?topic=81676.0 (http://www.simplemachines.org/community/index.php?topic=81676.0)


I hope that fixes my unwrapping problem.  I anxiously await your fix.  Thanks winrule.
Didn't take too long, just hadded to add a few quotes :)
Title: Re: Custom Profile Field Mod
Post by: ArkServer on April 14, 2006, 07:44:13 PM
could you take a look? i have no idea how to fix or change it
http://arkserver.servehttp.com/test/
Title: Re: Custom Profile Field Mod
Post by: uberjon on April 15, 2006, 12:32:27 AM
it works great! i love this mod but i am geting my error logs flooded with this

**********url removed***/index.php?action=profile
Apply Filter: Only show the errors with the same message
8: Undefined index: CP3_view
File: /home/uberjon/public_html/koc/Themes/default/languages/Who.english.php (eval?)
Line: 250

fix that and il be happy as can be
Title: Re: Custom Profile Field Mod
Post by: digit on April 15, 2006, 01:25:19 AM
Quote from: winrules on April 14, 2006, 05:24:49 PM

Can you post what code your using?


In SSI.php, I found....



setupThemeContext();



and added after it:



require_once($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);



Then I created a php page....




<?php

include ('/f/SSI.php');

echo 
'
<html>
<head>
<title>test</title>
<meta http-equiv=Content-Type content="text/html;  charset=UTF-8">
</head>
<body background="/images/coinsc.jpg">'
;

if (
$context['member']['options']['CP1'])
{
echo 
'please print that field!  ' $context['member']['options']['CP1'] , '

'
;
}
else
{

echo 
'nope, no data yet!';
}
echo 
'
</body>
</html>
'
;



For some reason, it's not printing the field.

here is that URL....

http://www.treasurenet.com/f/members.php

I can't post SSI.php and Profile.php because they ecxeed the maximum allowed characters. (can I email them to you?)

Thanks in advance.

Title: Re: Custom Profile Field Mod
Post by: john109 on April 15, 2006, 07:23:38 AM
Thanks for the updated fix winrules!! Everything works great now.

Just one more thing if I may?  I inserted the code you posted in your first post of this thread into my custom theme's display.theme.php .  It shows in PM's fine.

(http://i24.photobucket.com/albums/c1/dyinfree/customprofile2.jpg)

But in posts it shows like this.  What can I add to get it starting on its own line?

(http://i24.photobucket.com/albums/c1/dyinfree/customprofile3.jpg)

Is it also possible so that if they don't enter anything in that custom field nothing shows in the posts/pm's ?  If I leave the field blank the text I set to print before and/or after the field still gets printed.  Maybe for the future some might want the choice to show or not show if the field is empty?


Edit - Forget everything I said above.  I'm still figuring things out.  I had set it to show in posts next to the pictures.  That's why it looked like that in my screenshots.   ::)

Still though how about when the field is empty?  Choice of whether or not to still print the text?
Title: Re: Custom Profile Field Mod
Post by: GJ-tje on April 15, 2006, 08:50:04 AM
Is it possible, to add the BBC generetor to those fields as well?
I mean the editor box, you have when you post a reply in a topic, where you can select some things, like the B, for bold text and the like.

It's above the message field...

Many thanks in advance!
Title: Re: Custom Profile Field Mod
Post by: winrules on April 15, 2006, 09:40:31 AM
Quote from: digit on April 15, 2006, 01:25:19 AM
Quote from: winrules on April 14, 2006, 05:24:49 PM

Can you post what code your using?


In SSI.php, I found....



setupThemeContext();



and added after it:



require_once($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);



Then I created a php page....




<?php

include ('/f/SSI.php');

echo 
'
<html>
<head>
<title>test</title>
<meta http-equiv=Content-Type content="text/html;  charset=UTF-8">
</head>
<body background="/images/coinsc.jpg">'
;

if (
$context['member']['options']['CP1'])
{
echo 
'please print that field!  ' $context['member']['options']['CP1'] , '

'
;
}
else
{

echo 
'nope, no data yet!';
}
echo 
'
</body>
</html>
'
;



For some reason, it's not printing the field.

here is that URL....

http://www.treasurenet.com/f/members.php

I can't post SSI.php and Profile.php because they ecxeed the maximum allowed characters. (can I email them to you?)

Thanks in advance.


Can you try

if (isset($context))
{
echo 'test';
}

to see if it's even including ssi?


GJ-tje, No, I really don't see the point in that.

john109, That is a bug, it shouldn't be doing that, I will release a fix ASAP.

uberjon, I am currently looking into that.

ArkServer, are you using the actual default theme, or a copy of it?
Title: Re: Custom Profile Field Mod
Post by: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...

I mean this box to be added (as option):
(http://www.flipdesign.nl/aKC/editbox.png)
Title: Re: Custom Profile Field Mod
Post by: winrules on April 15, 2006, 09:52:10 AM
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
[/qu
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
You could still open up a post box and then copy and paste.
Title: Re: Custom Profile Field Mod
Post by: GJ-tje on April 15, 2006, 09:54:22 AM
Quote from: winrules on April 15, 2006, 09:52:10 AM
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
[/qu
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
You could still open up a post box and then copy and paste.

I do not expect the users to do that, keep in mind (and sorry for the flame, but it's true) simple users are very lazy to do such things... ;)

And I have to give those users the possibility too...
Title: Re: Custom Profile Field Mod
Post by: winrules on April 15, 2006, 09:56:40 AM
Quote from: GJ-tje on April 15, 2006, 09:54:22 AM
Quote from: winrules on April 15, 2006, 09:52:10 AM
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
[/qu
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
You could still open up a post box and then copy and paste.

I do not expect the users to do that, keep in mind (and sorry for the flame, but it's true) simple users are very lazy to do such things... ;)
I really just don't think there's a need, and there isn't one for signature either.
Title: Re: Custom Profile Field Mod
Post by: GJ-tje on April 15, 2006, 09:58:59 AM
Quote from: winrules on April 15, 2006, 09:56:40 AM
Quote from: GJ-tje on April 15, 2006, 09:54:22 AM
Quote from: winrules on April 15, 2006, 09:52:10 AM
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
[/qu
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
You could still open up a post box and then copy and paste.

I do not expect the users to do that, keep in mind (and sorry for the flame, but it's true) simple users are very lazy to do such things... ;)
I really just don't think there's a need, and there isn't one for signature either.

A signature is just a signature, why would some one have fancy stuff in there?
Have you ever made an image for your signature on letters? ;)

I think that there really is a need for it... Especially on chatservers... Which I am running and have installed the mod to add special fields... ;)
Title: Re: Custom Profile Field Mod
Post by: winrules on April 15, 2006, 10:02:51 AM
Quote from: GJ-tje on April 15, 2006, 09:58:59 AM
Quote from: winrules on April 15, 2006, 09:56:40 AM
Quote from: GJ-tje on April 15, 2006, 09:54:22 AM
Quote from: winrules on April 15, 2006, 09:52:10 AM
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
[/qu
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
You could still open up a post box and then copy and paste.

I do not expect the users to do that, keep in mind (and sorry for the flame, but it's true) simple users are very lazy to do such things... ;)
I really just don't think there's a need, and there isn't one for signature either.
A signature is just a signature, why would some one have fancy stuff in there?
Have you ever made an image for your signature on letters? ;)

I think that there really is a need for it... Especially on chatservers... Which I am running and have installed the mod to add special fields... ;)
I still don't really see the point, but i will consider it for next version.
Title: Re: Custom Profile Field Mod
Post by: GJ-tje on April 15, 2006, 10:03:54 AM
Quote from: winrules on April 15, 2006, 10:02:51 AM
Quote from: GJ-tje on April 15, 2006, 09:58:59 AM
Quote from: winrules on April 15, 2006, 09:56:40 AM
Quote from: GJ-tje on April 15, 2006, 09:54:22 AM
Quote from: winrules on April 15, 2006, 09:52:10 AM
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
[/qu
Quote from: GJ-tje on April 15, 2006, 09:47:38 AM
QuoteGJ-tje, No, I really don't see the point in that.

But what if the option for 'Parse BBC' is enabled? And you have a forum with some users who don't know the BB codes for smileys and the like? They should have a possibility too to add smileys or styled text...
You could still open up a post box and then copy and paste.

I do not expect the users to do that, keep in mind (and sorry for the flame, but it's true) simple users are very lazy to do such things... ;)
I really just don't think there's a need, and there isn't one for signature either.
A signature is just a signature, why would some one have fancy stuff in there?
Have you ever made an image for your signature on letters? ;)

I think that there really is a need for it... Especially on chatservers... Which I am running and have installed the mod to add special fields... ;)
I still don't really see the point, but i will consider it for next version.

I (and I think others too) would really appreciate it, if you've added it! :D
Many thanks in advance
Title: Re: Custom Profile Field Mod
Post by: ArkServer on April 15, 2006, 10:35:07 AM
Anyone know how to solve my problems? if you want i can send the file for you to edit..
Title: Re: Custom Profile Field Mod
Post by: digit on April 15, 2006, 12:00:36 PM
Quote from: winrules on April 15, 2006, 09:40:31 AM

Can you try

if (isset($context))
{
echo 'test';
}

to see if it's even including ssi?



yep, working fine.


http://www.treasurenet.com/f/members.php
Title: Re: Custom Profile Field Mod
Post by: winrules on April 15, 2006, 12:36:00 PM
Quote from: ArkServer on April 15, 2006, 10:35:07 AM
Anyone know how to solve my problems? if you want i can send the file for you to edit..
are your sure your using the default theme (and not a copy of it)?

digit, could you PM me your ssi.php?
Title: Re: Custom Profile Field Mod
Post by: ArkServer on April 15, 2006, 03:02:10 PM
Yup thats the only theme on our forums so that makes it the default one right? We dont hae any other themes in our theme directory.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 15, 2006, 06:19:05 PM
I uninstalled the 2.1 version and installed the 2.12 version and now I have different errors:

8: Undefined index: CP3_view
File: /home/xxxxx/public_html/forum/Themes/default/languages/Who.english.php (summary sub template - eval?)
Line: 316

and

8: Undefined index: CP4_edit
File: /home/xxxxx/public_html/forum/Themes/default/Profile.template.php (forumProfile sub template - eval?)
Line: 1663

over and over and over for every CP field 1-6 that I have enabled.  1 and 2 are registration CP fields and the rest are in profile only
Title: Re: Custom Profile Field Mod
Post by: winrules on April 15, 2006, 07:14:19 PM
Quote from: ArkServer on April 15, 2006, 03:02:10 PM
Yup thats the only theme on our forums so that makes it the default one right? We dont hae any other themes in our theme directory.
Could you pm me your register.template.php?


Quote from: perplexed on April 15, 2006, 06:19:05 PM
I uninstalled the 2.1 version and installed the 2.12 version and now I have different errors:

8: Undefined index: CP3_view
File: /home/xxxxx/public_html/forum/Themes/default/languages/Who.english.php (summary sub template - eval?)
Line: 316

and

8: Undefined index: CP4_edit
File: /home/xxxxx/public_html/forum/Themes/default/Profile.template.php (forumProfile sub template - eval?)
Line: 1663

over and over and over for every CP field 1-6 that I have enabled.  1 and 2 are registration CP fields and the rest are in profile only
OK, I think I've figured out what's causing this. To fix it go to this URL for field 1
http://www.mysite.com/smfdir/index.php?action=featuresettings;sa=profile;addfield=1
And then for field 2:
http://www.mysite.com/smfdir/index.php?action=featuresettings;sa=profile;addfield=2
ect, replacing the "addfield=2" with "addfield=field number" for every field that is giving you a problem. I'll release a fix ASAP.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 16, 2006, 07:12:26 AM
thanks, but I'm not sure what you want me to do, can you explain a little more or should I wait for the fix?

~thanks
Title: Re: Custom Profile Field Mod
Post by: winrules on April 16, 2006, 03:40:43 PM
Quote from: perplexed on April 16, 2006, 07:12:26 AM
thanks, but I'm not sure what you want me to do, can you explain a little more or should I wait for the fix?

~thanks
2.13 will probly be released tomorow, and it will fix all the current bugs.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 16, 2006, 04:10:46 PM
ok, that's great stuff, thanks :)
Title: Re: Custom Profile Field Mod
Post by: Skipdawg on April 16, 2006, 08:06:17 PM
Update! kewl I very much like this Mod  ;D ;)
Title: Re: Custom Profile Field Mod
Post by: Greycloak on April 17, 2006, 12:05:27 AM
I'm looking for a way to allow moderators to be able to edit a custom field.  I tried to modify the code myself, but it's not working.

Other than that, this is is a great mod!

[edit]Nevermind...I figured it out.  That was easier than I expected.
Title: Re: Custom Profile Field Mod
Post by: digit on April 17, 2006, 07:44:14 AM
Quote from: winrules on April 15, 2006, 12:36:00 PM
Quote from: ArkServer on April 15, 2006, 10:35:07 AM
Anyone know how to solve my problems? if you want i can send the file for you to edit..
are your sure your using the default theme (and not a copy of it)?

digit, could you PM me your ssi.php?

ok, I did - did you get it?  Still can't get that page to work. :(

also - a small feature request.

A field type that is a linked URL.  (like the existing website field)
Title: Re: Custom Profile Field Mod
Post by: winrules on April 17, 2006, 03:45:35 PM
Quote from: digit on April 17, 2006, 07:44:14 AM
Quote from: winrules on April 15, 2006, 12:36:00 PM
Quote from: ArkServer on April 15, 2006, 10:35:07 AM
Anyone know how to solve my problems? if you want i can send the file for you to edit..
are your sure your using the default theme (and not a copy of it)?

digit, could you PM me your ssi.php?

ok, I did - did you get it?  Still can't get that page to work. :(

also - a small feature request.

A field type that is a linked URL.  (like the existing website field)
yes, can you try an if (isset($context['member']['options']['CP1']))
Title: Re: Custom Profile Field Mod
Post by: digit on April 18, 2006, 01:08:13 AM
Quote from: winrules on April 17, 2006, 03:45:35 PM
Quote from: digit on April 17, 2006, 07:44:14 AM
Quote from: winrules on April 15, 2006, 12:36:00 PM
Quote from: ArkServer on April 15, 2006, 10:35:07 AM
Anyone know how to solve my problems? if you want i can send the file for you to edit..
are your sure your using the default theme (and not a copy of it)?

digit, could you PM me your ssi.php?

ok, I did - did you get it?  Still can't get that page to work. :(

also - a small feature request.

A field type that is a linked URL.  (like the existing website field)
yes, can you try an if (isset($context['member']['options']['CP1']))

still nothing... :(

here's my php page code...




<?php

require("/users/me/pages/f/SSI.php");

echo 
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>test</title>
<meta http-equiv=Content-Type content="text/html;  charset=UTF-8">
<link rel="stylesheet" href="/css/fx.css" type="text/css">
</head>
<body background="/images/coinsc.jpg">'
;


if (isset(
$context['member']['options']['CP1']))
{
echo 
'please print that field!  ' $context['member']['options']['CP1'] , '

'
;
}
else
{

echo 
'nope, no data yet!';
}
echo 
'
</body>
</html>
'
;




here's the url...

http://www.treasurenet.com/f/members.php
Title: Re: Custom Profile Field Mod
Post by: Nomina on April 18, 2006, 08:09:25 AM
Do we have a 2.13 update yet to correct the "undefined index" errors?  The mods page still lists versions 2.12, so I suppose that means, "No."    :'(
Title: Re: Custom Profile Field Mod
Post by: winrules on April 18, 2006, 04:32:52 PM
Quote from: digit on April 18, 2006, 01:08:13 AM
Quote from: winrules on April 17, 2006, 03:45:35 PM
Quote from: digit on April 17, 2006, 07:44:14 AM
Quote from: winrules on April 15, 2006, 12:36:00 PM
Quote from: ArkServer on April 15, 2006, 10:35:07 AM
Anyone know how to solve my problems? if you want i can send the file for you to edit..
are your sure your using the default theme (and not a copy of it)?

digit, could you PM me your ssi.php?

ok, I did - did you get it?  Still can't get that page to work. :(

also - a small feature request.

A field type that is a linked URL.  (like the existing website field)
yes, can you try an if (isset($context['member']['options']['CP1']))

still nothing... :(

here's my php page code...




<?php

require("/users/me/pages/f/SSI.php");

echo 
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>test</title>
<meta http-equiv=Content-Type content="text/html;  charset=UTF-8">
<link rel="stylesheet" href="/css/fx.css" type="text/css">
</head>
<body background="/images/coinsc.jpg">'
;


if (isset(
$context['member']['options']['CP1']))
{
echo 
'please print that field!  ' $context['member']['options']['CP1'] , '

'
;
}
else
{

echo 
'nope, no data yet!';
}
echo 
'
</body>
</html>
'
;




here's the url...

http://www.treasurenet.com/f/members.php
You have to be logged in.

Quote from: Nomina on April 18, 2006, 08:09:25 AM
Do we have a 2.13 update yet to correct the "undefined index" errors?  The mods page still lists versions 2.12, so I suppose that means, "No."    :'(
just give me a little bit and it'll be out...I'm working on another mod, but I'll bump this update up on my list :)
Title: Re: Custom Profile Field Mod
Post by: digit on April 18, 2006, 04:35:07 PM
Quote from: winrules on April 18, 2006, 04:32:52 PM
You have to be logged in.


I am ALWAYS LOGGED IN!
Title: Re: Custom Profile Field Mod
Post by: winrules on April 18, 2006, 04:36:58 PM
Quote from: digit on April 18, 2006, 04:35:07 PM
Quote from: winrules on April 18, 2006, 04:32:52 PM
You have to be logged in.


I am ALWAYS LOGGED IN!
What's the URL to your forum?
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 18, 2006, 04:39:48 PM
*waits patiently for 2.13*

Just to be clear, any fields that I have made and entered info into will be gone when I install 2.13 or will they still be there?  (they seemed to stay last time)  I just wanted to check before I go ahead and tell people its safe to add stuff
Title: Re: Custom Profile Field Mod
Post by: digit on April 18, 2006, 04:41:30 PM
Quote from: winrules on April 18, 2006, 04:36:58 PM
Quote from: digit on April 18, 2006, 04:35:07 PM
Quote from: winrules on April 18, 2006, 04:32:52 PM
You have to be logged in.


I am ALWAYS LOGGED IN!
What's the URL to your forum?

here it is...

http://www.treasurenet.com/f/

page I'm trying to get to print fields....

http://www.treasurenet.com/f/members.php
Title: Re: Custom Profile Field Mod
Post by: winrules on April 18, 2006, 04:44:13 PM
Quote from: perplexed on April 18, 2006, 04:39:48 PM
*waits patiently for 2.13*

Just to be clear, any fields that I have made and entered info into will be gone when I install 2.13 or will they still be there?  (they seemed to stay last time)  I just wanted to check before I go ahead and tell people its safe to add stuff
It'll stay :)


Quote from: digit on April 18, 2006, 04:41:30 PM
Quote from: winrules on April 18, 2006, 04:36:58 PM
Quote from: digit on April 18, 2006, 04:35:07 PM
Quote from: winrules on April 18, 2006, 04:32:52 PM
You have to be logged in.


I am ALWAYS LOGGED IN!
What's the URL to your forum?

here it is...

http://www.treasurenet.com/f/

page I'm trying to get to print fields....

http://www.treasurenet.com/f/members.php
Your site won't load for me.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 18, 2006, 04:49:49 PM
YAY!  thanks  btw what other mod are you working on  ;)
Title: Re: Custom Profile Field Mod
Post by: winrules on April 18, 2006, 04:52:02 PM
Quote from: perplexed on April 18, 2006, 04:49:49 PM
YAY!  thanks  btw what other mod are you working on  ;)
A little moderation center thingy
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 18, 2006, 05:05:32 PM
lol ok I have no idea what that is :)

I forgot to say before that in your CPF mod, there are two options for placing the fields on posts - under images or under text - or something like that.

I moved the position of the avatars on my site as we like them under the member name so the 'put under image' option doesnt work.  That's my fault for moving the avatars but I just thought I would mention it
Title: Re: Custom Profile Field Mod
Post by: winrules on April 18, 2006, 05:08:27 PM
Quote from: perplexed on April 18, 2006, 05:05:32 PM
lol ok I have no idea what that is :)

I forgot to say before that in your CPF mod, there are two options for placing the fields on posts - under images or under text - or something like that.

I moved the position of the avatars on my site as we like them under the member name so the 'put under image' option doesnt work.  That's my fault for moving the avatars but I just thought I would mention it
what do you mean it doesn't work?
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 18, 2006, 05:33:41 PM
if I select 'under post count' everything is ok, if I select 'next to images' nothing gets displayed after the members name, because I moved the avatars.

my posts look like

perplexed
Administrator

AVATAR HERE

personal text

*<---- mutiple badge feature
*
*
*

*
*
*

Karma: 76
Online Online

Posts: 444

putting under post count is fine, but putting 'next to images'  clears out that whole column from my name down so its blank

Like I said, its my fault for moving the avatar position and personal text but I just thought I would mention it
Title: Re: Custom Profile Field Mod
Post by: winrules on April 18, 2006, 05:36:59 PM
Quote from: perplexed on April 18, 2006, 05:33:41 PM
if I select 'under post count' everything is ok, if I select 'next to images' nothing gets displayed after the members name, because I moved the avatars.

my posts look like

perplexed
Administrator

AVATAR HERE

personal text

*<---- mutiple badge feature
*
*
*

*
*
*

Karma: 76
Online Online

Posts: 444

putting under post count is fine, but putting 'next to images'  clears out that whole column from my name down so its blank

Like I said, its my fault for moving the avatar position and personal text but I just thought I would mention it

ok, its not suposed to put it next to avatar, just next to messenger icons
Title: Re: Custom Profile Field Mod
Post by: winrules on April 18, 2006, 05:53:17 PM
Version 2.13 has been released! This version fixes several bugs. If you are getting errors like "Undefined Index: CP5_view", go to that field and click "recreate field". Note that you will have to change the field ID back if you have changed it.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 18, 2006, 05:54:29 PM
yeah I know but thats the only reason I can think of that it wouldnt be working is that I moved the avatar and personal text positions.  I could probably take a screen shot of it in the morning if you wanted to see it.  On my test forum - where nothing has been moved - the CP field text sits next to the YIM, AIM icons


btw do you mean 2.13 is released?

QuotePosted on: Today at 10:53:17 PM Posted by: winrules 
Version 2.12 has been released! This version fixes several bugs. If you are getting errors like "Undefined Index: CP5_view", go to that field and click "recreate field". Note that you will have to change the field ID back if you have changed it.
Title: Re: Custom Profile Field Mod
Post by: winrules on April 18, 2006, 05:56:12 PM
Quote from: perplexed on April 18, 2006, 05:54:29 PM
yeah I know but thats the only reason I can think of that it wouldnt be working is that I moved the avatar and personal text positions.  I could probably take a screen shot of it in the morning if you wanted to see it.  On my test forum - where nothing has been moved - the CP field text sits next to the YIM, AIM icons


btw do you mean 2.13 is released?

QuotePosted on: Today at 10:53:17 PM Posted by: winrules 
Version 2.12 has been released! This version fixes several bugs. If you are getting errors like "Undefined Index: CP5_view", go to that field and click "recreate field". Note that you will have to change the field ID back if you have changed it.
ok.


I fixed my typo :)
Title: Re: Custom Profile Field Mod
Post by: uberjon on April 18, 2006, 06:02:27 PM
ok i upgaded. but i still get these errors.


Apply Filter: Only show the error messages of this member  UberGold       Today at 06:01:24 PM
Apply Filter: Only show the error messages of this IP address 70.16.94.194      Apply Filter: Only show the error messages of this session aff7291a90038dba0083a7ba539dec42
Apply Filter: Only show the error messages of this URL http://koc.elitegaming.org/index.php?action=profile
Apply Filter: Only show the errors with the same message
8: Undefined index: CP3_view
File: /home/uberjon/public_html/koc/Themes/default/languages/Who.english.php (eval?)
Line: 316
   
Apply Filter: Only show the error messages of this member UberGold    Today at 06:01:24 PM
Apply Filter: Only show the error messages of this IP address 70.16.94.194      Apply Filter: Only show the error messages of this session aff7291a90038dba0083a7ba539dec42
Apply Filter: Only show the error messages of this URL http://koc.elitegaming.org/index.php?action=profile
Apply Filter: Only show the errors with the same message
8: Undefined index: CP2_view
File: /home/uberjon/public_html/koc/Themes/default/languages/Who.english.php (eval?)
Line: 316
   
Apply Filter: Only show the error messages of this member UberGold    Today at 06:01:24 PM
Apply Filter: Only show the error messages of this IP address 70.16.94.194      Apply Filter: Only show the error messages of this session aff7291a90038dba0083a7ba539dec42
Apply Filter: Only show the error messages of this URL http://koc.elitegaming.org/index.php?action=profile
Apply Filter: Only show the errors with the same message
8: Undefined index: CP1_view
File: /home/uberjon/public_html/koc/Themes/default/languages/Who.english.php (eval?)
Line: 316


i have these mods installed


Mod Name     Version     
1.    Custom Profile Mod    2.13    [ Uninstall ] [ List Files ] [ Delete ]
2.    Karma Description Mod    1.9.7    [ Uninstall ] [ List Files ] [ Delete ]
3.    SMF 1.0.7 / 1.1 RC2 Update    1.0    [ Uninstall ] [ List Files ] [ Delete ]
4.    Users Online Today Mod    1.3.1    [ Uninstall ] [ List Files ] [ Delete ]
5.    Membergroup Color Legend    1.1


yes i got the errors in the last version :( i hope he gets a fix soon :D
Title: Re: Custom Profile Field Mod
Post by: winrules on April 18, 2006, 07:07:10 PM
Quote from: winrules on April 18, 2006, 05:53:17 PM
If you are getting errors like "Undefined Index: CP5_view", go to that field and click "recreate field". Note that you will have to change the field ID back if you have changed it.
Title: Re: Custom Profile Field Mod
Post by: digit on April 19, 2006, 03:49:48 AM
Quote from: winrules on April 18, 2006, 04:44:13 PM

http://www.treasurenet.com/f/
http://www.treasurenet.com/f/members.php

Your site won't load for me.


huh?  just no response?
Title: Re: Custom Profile Field Mod
Post by: john109 on April 19, 2006, 07:31:37 AM
I was going to uninstall 2.12 so that I could install 2.13 but I got this message.

(http://i24.photobucket.com/albums/c1/dyinfree/customprofile4.jpg)

Is there a way I can upgrade manually?  Is there a big difference between the two versions that I should upgrade or should I stay with 2.12.  If it ain't broke why fix it right?  :D
Title: Re: Custom Profile Field Mod
Post by: yutt on April 19, 2006, 03:15:05 PM
I'm having issues when trying to access "Features and Options" after installing 2.13.

Parse error: parse error, unexpected '<' in [...]/Sources/ModSettings.php on line 441

Here's what the code looks like in that area. Clearly something was not changed as intended in the file.

438: function ModifyKarmaSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
441: </operation>

<operation>
<search position="replace"><![CDATA[
445: );
Title: Re: Custom Profile Field Mod
Post by: winrules on April 19, 2006, 04:37:36 PM
Quote from: digit on April 19, 2006, 03:49:48 AM
Quote from: winrules on April 18, 2006, 04:44:13 PM

http://www.treasurenet.com/f/
http://www.treasurenet.com/f/members.php

Your site won't load for me.


huh?  just no response?
it works now, could you pm me a test account?


Quote from: john109 on April 19, 2006, 07:31:37 AM
I was going to uninstall 2.12 so that I could install 2.13 but I got this message.

(http://i24.photobucket.com/albums/c1/dyinfree/customprofile4.jpg)

Is there a way I can upgrade manually?  Is there a big difference between the two versions that I should upgrade or should I stay with 2.12.  If it ain't broke why fix it right?  :D
theres no need to uninstall, you can just upgrade.


Quote from: yutt on April 19, 2006, 03:15:05 PM
I'm having issues when trying to access "Features and Options" after installing 2.13.

Parse error: parse error, unexpected '<' in [...]/Sources/ModSettings.php on line 441

Here's what the code looks like in that area. Clearly something was not changed as intended in the file.

438: function ModifyKarmaSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
441: </operation>

<operation>
<search position="replace"><![CDATA[
445: );

There were some major issues with the install package, could you please uninstall that package, redownload it, and then install again?
Title: Re: Custom Profile Field Mod
Post by: Nomina on April 19, 2006, 05:19:52 PM
I experienced similar troubles regarding the ModSettings.php changes.  Has the install package been updated, or should I wait for the next release?
Title: Re: Custom Profile Field Mod
Post by: randomPaul on April 19, 2006, 09:08:50 PM
Reporting an error... this is using SMF 1.1RC2.

Quote1.     Execute Modification     ./Sources/ModSettings.php     Test successful
2.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
3.    Execute Modification    ./Themes/default/Display.template.php    Test successful
4.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
5.    Execute Modification    ./Themes/default/Register.template.php    Test successful
6.    Execute Modification    ./Sources/Register.php    Test successful

I have the following mods installed:

Quote1.     MySpace Field      1.0
2.    Users Online Today Mod    1.4.0 Beta 2
3.    Member list by registration    1.0
4.    Custom Profile Mod    2.13 - not installed
5.    Membergroup Color Legend    1.1
6.    Award Mod    1.1 - not installed
7.    Googlebot & Spiders Mod
8.    SMF 1.0.7 / 1.1 RC2 Update

Hope that helps. :)
Title: Re: Custom Profile Field Mod
Post by: john109 on April 20, 2006, 02:02:05 AM
I've upgraded to 2.13 thanks.  My forum becomes unwrapped whenever I click on Add a field however.  Any ideas? 
Title: Re: Custom Profile Field Mod
Post by: Søren Bjerg on April 20, 2006, 07:22:03 AM
Where do I find the "recreate field" button/link?

I only have...

Name     
Show in profile?    
Show in posts?    
Parse BBC?    
Field ID    
Add a horizontal rule before field in profile?    
Show field on regristration?    
Only allow admins to edit field?    
Only allow admins to view field?    
Option X
Add an option
Save

...in the settings for my custom (selection) fields.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 20, 2006, 07:46:05 AM
If you go into one of your custom fields  eg CP1 you will see a link at the bottom that says 'recreate field'

eg

Name   
Show in profile?   
Show in posts?  Don't Show Show under post count Show next to images 
Parse BBC?   
Text to display before field (BBC is ok if enabled above)   
Text to display after field (BBC is ok if enabled above)   
Field ID   
Add a horizontal rule before field in profile?   
Show field on registration?  Don't Show Optional Input Force Input 
Only allow admins to edit field?   
Only allow admins to view field?   
Re-create field

Title: Re: Custom Profile Field Mod
Post by: Søren Bjerg on April 20, 2006, 07:49:37 AM
In 2.13? Not here, I only get those settings listed.

EDIT: I noticed 'Checkbox' and 'Selection Box' field do not get the choice of where to display the contents in posts... only yes/no.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 20, 2006, 08:04:55 AM
yes in 2.13, I just recreated all my fields and the link was there for all of them, whether they were text, or selection box etc

I checked Soren and my checkbox and selection box fields DO have the choice of where to display

did you download the latest version of the mod from last night, as I think Winrules made some changes?



Now, on to my problems lol

I am getting the following errors in my test forum log:

8: Undefined index: CP_type
File: /home/xxxx/public_html/testforum/Sources/ModSettings.php
Line: 433

action=featuresettings;sa=profile;addfield=13 
8: Undefined index: cp
File: /home/xxxx/public_html/testforum/Sources/ModSettings.php
Line: 433

for every field that I have used 'recreate' on with the 2.13 version.

Also when I look at our posts, all of the fields 'that show on posts' are now duplicated:

Zodiac:
Award:  April
MySpace: test
Currently Reading: my book
Location: US
Zodiac:
Award:  April
MySpace: test
Currently Reading: my book
Location: US
Posts: 62

I uninstalled 2.1 and installed 2.13 but perhaps I should have used the upgrade option?  I did get a error message on uninstall for profile.php but then I got that last time too and you said that was ok

I havent upgraded to 2.13 on my live site yet



Title: Re: Custom Profile Field Mod
Post by: Søren Bjerg on April 20, 2006, 08:07:57 AM
Quote from: perplexed on April 20, 2006, 08:04:55 AM
[...] did you download the latest version of the mod from last night, as I think Winrules made some changes? [...]
Hmm, I'll try downloading it again and see if it fixes it. *crosses fingers* :D

EDIT #1: I think I'll just wait for the next version, trying to uninstall the mod gives me a 'Test failed' for './Sources/ModSettings.php' - can live with a couple of entries in my error log until then :).

EDIT #2: Found how the URL for the 'Re-create field' should look like in the update XML file. Seemed to fix that... now I just get a couple of undefined variable in my error log, mssub and topicinfo, which I think pertains to Related Topics.
Title: Re: Custom Profile Field Mod
Post by: winrules on April 20, 2006, 04:11:45 PM
Quote from: Nomina on April 19, 2006, 05:19:52 PM
I experienced similar troubles regarding the ModSettings.php changes.  Has the install package been updated, or should I wait for the next release?
The package has been updated (didn't release a new version since not very many people had downloaded), uninstall the mod, redownload and reinstall.


Quote from: randomPaul on April 19, 2006, 09:08:50 PM
Reporting an error... this is using SMF 1.1RC2.

Quote1.     Execute Modification     ./Sources/ModSettings.php     Test successful
2.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
3.    Execute Modification    ./Themes/default/Display.template.php    Test successful
4.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
5.    Execute Modification    ./Themes/default/Register.template.php    Test successful
6.    Execute Modification    ./Sources/Register.php    Test successful

I have the following mods installed:

Quote1.     MySpace Field      1.0
2.    Users Online Today Mod    1.4.0 Beta 2
3.    Member list by registration    1.0
4.    Custom Profile Mod    2.13 - not installed
5.    Membergroup Color Legend    1.1
6.    Award Mod    1.1 - not installed
7.    Googlebot & Spiders Mod
8.    SMF 1.0.7 / 1.1 RC2 Update

Hope that helps. :)
This mod will now work alongside the Myspace mod.


Quote from: john109 on April 20, 2006, 02:02:05 AM
I've upgraded to 2.13 thanks.  My forum becomes unwrapped whenever I click on Add a field however.  Any ideas? 
Strange, and it didn't do that previously?


Quote from: Søren Bjerg on April 20, 2006, 07:22:03 AM
Where do I find the "recreate field" button/link?

I only have...

Name     
Show in profile?    
Show in posts?    
Parse BBC?    
Field ID    
Add a horizontal rule before field in profile?    
Show field on regristration?    
Only allow admins to edit field?    
Only allow admins to view field?    
Option X
Add an option
Save

...in the settings for my custom (selection) fields.
There was a problem in the upgrade package yesterday, if in modsettings.php you can find:

function ModifyProfileSettings()
{
global $txt, $scripturl, $context, $settings, $sc, $modSettings, $db_prefix;
if (!isset($_GET['cp']) && !isset($_GET['addfield']) && !isset($_GET['adddata']))
{
$config_vars = array();
$i = 1;
while (isset($modSettings['enable_CP' . $i . '']))
{
$config_vars[$i*3-3] = array('check', 'enable_CP' . $i . '', null, 'Enable <a href="' . $scripturl . '?action=featuresettings;sa=profile;cp=' . $i . '">Custom Profile Field ' . $i . '</a>');
$config_vars[$i*3-2] = array('select', 'CP' . $i . '_type', array('text' => 'Text', 'textarea' => 'Text Area', 'check' => 'Check Box', 'select' => 'Selection Box',), 'Type');
$config_vars[$i*3-1] = '';
$i++;
}
$config_vars[($i-1)*3] = '<a href=' . $scripturl . '?action=featuresettings;sa=profile;addfield=' . $i . '>Add a field</a>';
}
elseif ($modSettings['CP' . $_GET['cp'] . '_type']=='text' || $modSettings['CP' . $_GET['cp'] . '_type']=='textarea')
{
$cp = $_GET['cp'];
$config_vars = array(
array('text', 'CP' . $cp . '_name', null, 'Name'),
array('check', 'CP' . $cp . '_profile', null, 'Show in profile?'),
array('select', 'CP' . $cp . '_post', array('0' => 'Don\'t Show', 'text' => 'Show under post count', 'image' => 'Show next to images',), 'Show in posts?'),
array('check', 'CP' . $cp . '_bbc', null, 'Parse BBC?'),
array('text', 'CP' . $cp . '_data1', null, 'Text to display before field (BBC is ok if enabled above)'),
array('text', 'CP' . $cp . '_data2', null, 'Text to display after field (BBC is ok if enabled above)'),
array('text', 'CP' . $cp . '_id', null, 'Field ID'),
array('check', 'CP' . $cp . '_hr', null, 'Add a horizontal rule before field in profile?'),
array('select', 'CP' . $cp . '_reg', array('0' => 'Don\'t Show', 'opt' => 'Optional Input', 'force' => 'Force Input',), 'Show field on regristration?'),
array('check', 'CP' . $cp . '_edit', null, 'Only allow admins to edit field?'),
array('check', 'CP' . $cp . '_view', null, 'Only allow admins to view field?'),
);
}
elseif ($modSettings['CP' . $_GET['cp'] . '_type']=='check')
{
$cp = $_GET['cp'];
$config_vars = array(
array('text', 'CP' . $cp . '_name', null, 'Name'),
array('check', 'CP' . $cp . '_profile', null, 'Show in profile?'),
array('check', 'CP' . $cp . '_post', null, 'Show in posts?'),
array('text', 'CP' . $cp . '_data1', null, 'Text to display when box is checked'),
array('text', 'CP' . $cp . '_data2', null, 'Text to display when box isn\'t checked'),
array('check', 'CP' . $cp . '_bbc', null, 'Parse BBC?'),
array('text', 'CP' . $cp . '_id', null, 'Field ID'),
array('check', 'CP' . $cp . '_hr', null, 'Add a horizontal rule before field in profile?'),
array('select', 'CP' . $cp . '_reg', array('0' => 'Don\'t Show', 'opt' => 'Show',), 'Show field on regristration?'),
array('check', 'CP' . $cp . '_edit', null, 'Only allow admins to edit field?'),
array('check', 'CP' . $cp . '_view', null, 'Only allow admins to view field?'),
);
}
elseif ($modSettings['CP' . $_GET['cp'] . '_type']=='select')
{
$cp = $_GET['cp'];
$config_vars = array(
array('text', 'CP' . $cp . '_name', null, 'Name'),
array('check', 'CP' . $cp . '_profile', null, 'Show in profile?'),
array('check', 'CP' . $cp . '_post', null, 'Show in posts?'),
array('check', 'CP' . $cp . '_bbc', null, 'Parse BBC?'),
array('text', 'CP' . $cp . '_id', null, 'Field ID'),
array('check', 'CP' . $cp . '_hr', null, 'Add a horizontal rule before field in profile?'),
array('select', 'CP' . $cp . '_reg', array('0' => 'Don\'t Show', 'opt' => 'Show',), 'Show field on regristration?'),
array('check', 'CP' . $cp . '_edit', null, 'Only allow admins to edit field?'),
array('check', 'CP' . $cp . '_view', null, 'Only allow admins to view field?'),
);
$i = 1;
while (isset($modSettings['CP' . $cp . '_data' . $i . '']))
{
$config_vars[$i+8] = array('text', 'CP' . $cp . '_data'. $i . '', null, 'Option ' . $i . '');
$i++;
}
$config_vars[$i+8] = '<a href=' . $scripturl . '?action=featuresettings;sa=profile;adddata=' . $cp . '>Add an option</a>';
}
elseif (isset($_GET['addfield']) || isset($_GET['adddata']))
{
$overwrite_old_settings = false;
if (isset($_GET['addfield']))
{
$fieldnum = $_GET['addfield'];
$mod_settings = array(
'enable_CP' . $fieldnum . '' => '0',
'CP' . $fieldnum . '_name' => '',
'CP' . $fieldnum . '_type' => 'text',
'CP' . $fieldnum . '_post' => '0',
'CP' . $fieldnum . '_profile' => '1',
'CP' . $fieldnum . '_bbc' => '0',
'CP' . $fieldnum . '_data1' => '',
'CP' . $fieldnum . '_data2' => '',
'CP' . $fieldnum . '_id' => 'CP' . $fieldnum . '',
'CP' . $fieldnum . '_hr' => '0',
'CP' . $fieldnum . '_reg' => '0',
'CP' . $fieldnum . '_edit' => '0',
'CP' . $fieldnum . '_view' => '0',
);
$exit = 'action=featuresettings;sa=profile';
}
elseif (isset($_GET['adddata']))
{
$fieldnum = $_GET['adddata'];
$i = 1;
while (isset($modSettings['CP' . $fieldnum . '_data' . $i . '']))
{
$i++;
}
$datanum = $i;
$mod_settings = array(
'CP' . $fieldnum . '_data' . $datanum . '' => '',
);
$exit = 'action=featuresettings;sa=profile;cp=' . $fieldnum . '';
}
// Turn the array defined above into a string of MySQL data.
$string = '';
foreach ($mod_settings as $k => $v)
$string .= '
(\'' . $k . '\', \'' . $v . '\'),';

// Sorted out the array defined above - now insert the data!
if ($string != '')
$result = db_query("
" . ($overwrite_old_settings ? 'REPLACE' : 'INSERT IGNORE') . " INTO {$db_prefix}settings
(variable, value)
VALUES" . substr($string, 0, -1),__FILE__,__LINE__);

redirectexit($exit);
}

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=profile');
}

if (isset($_GET['cp']))
{
$context['settings_title'] = 'Custom Profile Field ' . $_GET['cp'] . ' Settings';
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=profile;cp=' . $_GET['cp'] .'';
}
else
{
$context['settings_title'] = 'Custom Profile Fields';
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=profile';
}

prepareDBSettingContext($config_vars);
}

replace it with:

function ModifyProfileSettings()
{
global $txt, $scripturl, $context, $settings, $sc, $modSettings, $db_prefix;
if (!isset($_GET['cp']) && !isset($_GET['addfield']) && !isset($_GET['adddata']))
{
$config_vars = array();
$i = 1;
while (isset($modSettings['enable_CP' . $i . '']))
{
$config_vars[$i*3-3] = array('check', 'enable_CP' . $i . '', null, 'Enable <a href="' . $scripturl . '?action=featuresettings;sa=profile;cp=' . $i . '">Custom Profile Field ' . $i . '</a>');
$config_vars[$i*3-2] = array('select', 'CP' . $i . '_type', array('text' => 'Text', 'textarea' => 'Text Area', 'check' => 'Check Box', 'select' => 'Selection Box',), 'Type');
$config_vars[$i*3-1] = '';
$i++;
}
$config_vars[($i-1)*3] = '<a href="' . $scripturl . '?action=featuresettings;sa=profile;addfield=' . $i . '">Add a field</a>';
}
elseif ($modSettings['CP' . $_GET['cp'] . '_type']=='text' || $modSettings['CP' . $_GET['cp'] . '_type']=='textarea')
{
$cp = $_GET['cp'];
$config_vars = array(
array('text', 'CP' . $cp . '_name', null, 'Name'),
array('check', 'CP' . $cp . '_profile', null, 'Show in profile?'),
array('select', 'CP' . $cp . '_post', array('0' => 'Don\'t Show', 'text' => 'Show under post count', 'image' => 'Show next to images',), 'Show in posts?'),
array('check', 'CP' . $cp . '_bbc', null, 'Parse BBC?'),
array('text', 'CP' . $cp . '_data1', null, 'Text to display before field (BBC is ok if enabled above)'),
array('text', 'CP' . $cp . '_data2', null, 'Text to display after field (BBC is ok if enabled above)'),
array('text', 'CP' . $cp . '_id', null, 'Field ID'),
array('check', 'CP' . $cp . '_hr', null, 'Add a horizontal rule before field in profile?'),
array('select', 'CP' . $cp . '_reg', array('0' => 'Don\'t Show', 'opt' => 'Optional Input', 'force' => 'Force Input',), 'Show field on registration?'),
array('check', 'CP' . $cp . '_edit', null, 'Only allow admins to edit field?'),
array('check', 'CP' . $cp . '_view', null, 'Only allow admins to view field?'),
'<a href="' . $scripturl . '?action=featuresettings;sa=profile;addfield=' . $cp . '">Re-create field</a>',
);
}
elseif ($modSettings['CP' . $_GET['cp'] . '_type']=='check')
{
$cp = $_GET['cp'];
$config_vars = array(
array('text', 'CP' . $cp . '_name', null, 'Name'),
array('check', 'CP' . $cp . '_profile', null, 'Show in profile?'),
array('check', 'CP' . $cp . '_post', null, 'Show in posts?'),
array('text', 'CP' . $cp . '_data1', null, 'Text to display when box is checked'),
array('text', 'CP' . $cp . '_data2', null, 'Text to display when box isn\'t checked'),
array('check', 'CP' . $cp . '_bbc', null, 'Parse BBC?'),
array('text', 'CP' . $cp . '_id', null, 'Field ID'),
array('check', 'CP' . $cp . '_hr', null, 'Add a horizontal rule before field in profile?'),
array('select', 'CP' . $cp . '_reg', array('0' => 'Don\'t Show', 'opt' => 'Show',), 'Show field on registration?'),
array('check', 'CP' . $cp . '_edit', null, 'Only allow admins to edit field?'),
array('check', 'CP' . $cp . '_view', null, 'Only allow admins to view field?'),
'<a href="' . $scripturl . '?action=featuresettings;sa=profile;addfield=' . $cp . '">Re-create field</a>',
);
}
elseif ($modSettings['CP' . $_GET['cp'] . '_type']=='select')
{
$cp = $_GET['cp'];
$config_vars = array(
array('text', 'CP' . $cp . '_name', null, 'Name'),
array('check', 'CP' . $cp . '_profile', null, 'Show in profile?'),
array('check', 'CP' . $cp . '_post', null, 'Show in posts?'),
array('check', 'CP' . $cp . '_bbc', null, 'Parse BBC?'),
array('text', 'CP' . $cp . '_id', null, 'Field ID'),
array('check', 'CP' . $cp . '_hr', null, 'Add a horizontal rule before field in profile?'),
array('select', 'CP' . $cp . '_reg', array('0' => 'Don\'t Show', 'opt' => 'Show',), 'Show field on registration?'),
array('check', 'CP' . $cp . '_edit', null, 'Only allow admins to edit field?'),
array('check', 'CP' . $cp . '_view', null, 'Only allow admins to view field?'),
);
$i = 1;
while (isset($modSettings['CP' . $cp . '_data' . $i . '']))
{
$config_vars[$i+8] = array('text', 'CP' . $cp . '_data'. $i . '', null, 'Option ' . $i . '');
$i++;
}
$config_vars[$i+8] = '<a href="' . $scripturl . '?action=featuresettings;sa=profile;adddata=' . $cp . '">Add an option</a>';
$config_vars[$i+9] = '<a href="' . $scripturl . '?action=featuresettings;sa=profile;addfield=' . $cp . '">Re-create field</a>';
}
elseif (isset($_GET['addfield']) || isset($_GET['adddata']))
{
$overwrite_old_settings = false;
if (isset($_GET['addfield']))
{
$fieldnum = $_GET['addfield'];
$mod_settings = array(
'enable_CP' . $fieldnum . '' => '0',
'CP' . $fieldnum . '_name' => '',
'CP' . $fieldnum . '_type' => 'text',
'CP' . $fieldnum . '_post' => '0',
'CP' . $fieldnum . '_profile' => '1',
'CP' . $fieldnum . '_bbc' => '0',
'CP' . $fieldnum . '_data1' => '',
'CP' . $fieldnum . '_data2' => '',
'CP' . $fieldnum . '_id' => 'CP' . $fieldnum . '',
'CP' . $fieldnum . '_hr' => '0',
'CP' . $fieldnum . '_reg' => '0',
'CP' . $fieldnum . '_edit' => '0',
'CP' . $fieldnum . '_view' => '0',
);
$exit = 'action=featuresettings;sa=profile';
}
elseif (isset($_GET['adddata']))
{
$fieldnum = $_GET['adddata'];
$i = 1;
while (isset($modSettings['CP' . $fieldnum . '_data' . $i . '']))
{
$i++;
}
$datanum = $i;
$mod_settings = array(
'CP' . $fieldnum . '_data' . $datanum . '' => '',
);
$exit = 'action=featuresettings;sa=profile;cp=' . $fieldnum . '';
}
// Turn the array defined above into a string of MySQL data.
$string = '';
foreach ($mod_settings as $k => $v)
$string .= '
(\'' . $k . '\', \'' . $v . '\'),';

// Sorted out the array defined above - now insert the data!
if ($string != '')
$result = db_query("
" . ($overwrite_old_settings ? 'REPLACE' : 'INSERT IGNORE') . " INTO {$db_prefix}settings
(variable, value)
VALUES" . substr($string, 0, -1),__FILE__,__LINE__);

redirectexit($exit);
}

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=profile');
}

if (isset($_GET['cp']))
{
$context['settings_title'] = 'Custom Profile Field ' . $_GET['cp'] . ' Settings';
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=profile;cp=' . $_GET['cp'] .'';
}
else
{
$context['settings_title'] = 'Custom Profile Fields';
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=profile';
}

prepareDBSettingContext($config_vars);
}


If you can't find it can you pm me your modsettings.php.
Title: Re: Custom Profile Field Mod
Post by: pyko on April 21, 2006, 02:52:07 AM
hihi
haven't yet installed this mod yet (had a few permission problems before, and been really busy lately)

but just wondering, after adding these custom fields, will they show up in the "search members" page? (So say, if you add "Graduation Year", will that become a searchable field like username?)

if yes..the double bonus :D, but if not...is it possible? (or would it be considered a different mod?)

thanks winrules!!
pyko
Title: Re: Custom Profile Field Mod
Post by: winrules on April 21, 2006, 03:54:31 PM
Quote from: pyko on April 21, 2006, 02:52:07 AM
hihi
haven't yet installed this mod yet (had a few permission problems before, and been really busy lately)

but just wondering, after adding these custom fields, will they show up in the "search members" page? (So say, if you add "Graduation Year", will that become a searchable field like username?)

if yes..the double bonus :D, but if not...is it possible? (or would it be considered a different mod?)

thanks winrules!!
pyko
That will be in 3.0. I'm having some trouble getting it to work though.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 21, 2006, 05:31:56 PM
hi Winrules, sorry to hassle you but did you see my error report above?

Is this a problem?

~thanks


and btw that idea of searching under these fields would be very good

Title: Re: Custom Profile Field Mod
Post by: winrules on April 21, 2006, 05:42:45 PM
Quote from: perplexed on April 21, 2006, 05:31:56 PM
hi Winrules, sorry to hassle you but did you see my error report above?

Is this a problem?

~thanks


and btw that idea of searching under these fields would be very good


sorry, didn't see that, the error messages should be a 1-time thing. Could you pm me your display.template.php and profile.template.php?
Title: Re: Custom Profile Field Mod
Post by: shikten on April 22, 2006, 04:56:56 AM
I can't access to this mod Admin CP. I go to Features and Options and there is nothing there.
I had no test failed error on instalation. I am using 1.1rc2 and 2.13
Title: Re: Custom Profile Field Mod
Post by: winrules on April 22, 2006, 10:31:36 AM
Quote from: shikten on April 22, 2006, 04:56:56 AM
I can't access to this mod Admin CP. I go to Features and Options and there is nothing there.
I had no test failed error on instalation. I am using 1.1rc2 and 2.13
There should be a tab at the top, not just mroe options.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 22, 2006, 12:52:11 PM
Quote from: winrules on April 21, 2006, 05:42:45 PM
Quote from: perplexed on April 21, 2006, 05:31:56 PM
hi Winrules, sorry to hassle you but did you see my error report above?

Is this a problem?

~thanks


and btw that idea of searching under these fields would be very good


sorry, didn't see that, the error messages should be a 1-time thing. Could you pm me your display.template.php and profile.template.php?

apparently not, there seems to be a maximum allowed length in place on this board

The main problem is that the CP fields that are checked to show on posts, are displaying twice :(
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 22, 2006, 02:46:18 PM
Does anyone using joomla have registration problems?  I just want to check its a joomla problem and not a CPF problem?
Title: Re: Custom Profile Field Mod
Post by: AlexJ on April 22, 2006, 07:31:39 PM
Does this mod work on SMF 1.0.7?
Title: Re: Custom Profile Field Mod
Post by: winrules on April 22, 2006, 08:28:13 PM
Quote from: perplexed on April 22, 2006, 02:46:18 PM
Does anyone using joomla have registration problems?  I just want to check its a joomla problem and not a CPF problem?
I think those are joomla problems.


Quote from: AlexJ on April 22, 2006, 07:31:39 PM
Does this mod work on SMF 1.0.7?
No, sorry.
Title: Re: Custom Profile Field Mod
Post by: onijin on April 22, 2006, 08:37:49 PM
Oh this thing is wonderful!

Thanks alot!  ^_^
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 23, 2006, 10:36:52 AM
Quote from: perplexed on April 22, 2006, 02:46:18 PM
Does anyone using joomla have registration problems?  I just want to check its a joomla problem and not a CPF problem?
yup joomla bridge problem

I just installed Orstio's new bridge 1.1.4 today and no registration problems.

I tried using the CPF registration fields both as 'optional' and as 'forced' and everything works :)

I am only getting one error in the forum log:

http://www.mysite.com/forum/index.php?option=com_smf&amp;Itemid=83&amp;action=register
8: Undefined index: member
File: /home/mysite/public_html/forum/Themes/default/Register.template.php (before sub template - eval?)
Line: 127

any ideas?

Title: Re: Custom Profile Field Mod
Post by: john109 on April 23, 2006, 09:08:44 PM
Your download link in the first post doesn't seem to be working.  You said in a previous post you changed something, updated the file but didn't change the version.  I'm not sure if I downloaded before you made the change or after.

Do we have to make the changes you mention at the bottom of this post?

http://www.simplemachines.org/community/index.php?topic=79004.msg552432#msg552432 (http://www.simplemachines.org/community/index.php?topic=79004.msg552432#msg552432)
Title: Re: Custom Profile Field Mod
Post by: crazie on April 24, 2006, 02:09:12 AM
Got the following error and I think I know why:

2.     Execute Modification     ./Themes/default/Profile.template.php     Test failed

Long, long ago, before this mod existed....I used [Unknown]'s tutorial on how to add a custom profile field and I linked that profile field to my registration - thus, requiring that field to be completed for a user to register.  So, obviously that has edited my profile.template.php file (possibly causing this conflict).

I'm currently using 1.1RC2 with the following mods:


1.    AutoSig    1.1    
2.    Gmail Field    1.1    
3.    BBC edit tag    1.0
4.    Simple ImageShack    1.0.4
5.    BBC-Google for SMF 1.1 RC2 (ver. 2.5)    2.5
6.    ImageShack12    1.0
7.    Quick Menu    1.2
8.    Quick Upload    2.1
9.    PJIRC Integrated Chat Mod    2.0
10.    Membergroup Color Legend    1.0    
11.    MySQL 5.0.12 Compatibility Update    1.0

Any idea if one of the above mods may also be causing the conflict?

Thanks, and this is an incredible mod!!!

Also had a couple of questions -

1.  I noticed in the description, you say we can link the profile fields with the registration....but can we make the registration field a requirement.  I will need to do this if I have to delete the changes I made using [Unknown]'s tutorial for this mod to work.

2.  If I delete a field, is that data lost forever, or will it reappear if I add the EXACT field name again?

The second question is just curiosity - and not really important, but the 1st question is crucial.

Thanks again! :D
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 24, 2006, 05:35:39 AM
Crazie:
1.  I am using this mod now with required and optional fields on the registration form.  It works :)  You can also make those fields only viewable by admin if you dont want the information seen on the profile by everyone

2.  You can enable and disable fields so if you disable a field the info stays there but isnt visible, then if you enable it, then obviously its there again

But WinRules can give you more info, I'm just a user :)



Title: Re: Custom Profile Field Mod
Post by: Piwaille on April 24, 2006, 09:11:01 AM
hello...

I wanted to install this mod on RC2 but I failed :
QuoteActions d'installation pour "Custom Profile Mod":
L'installation de ce paquet effectuera les actions suivantes :
   Type    Action    Description
1.    Appliquer la modification    ./Sources/ModSettings.php    Réussite du test
2.    Appliquer la modification    ./Themes/default/Profile.template.php    Échec du test
3.    Appliquer la modification    ./Themes/default/Display.template.php    Réussite du test
4.    Appliquer la modification    ./Themes/default/PersonalMessage.template.php    Réussite du test
5.    Appliquer la modification    ./Themes/default/Register.template.php    Réussite du test
6.    Appliquer la modification    ./Sources/Register.php    Réussite du test

the mod I allready have installed :
QuoteNom du mod     Version     
1.    Ad Managment    1.5    [ Désinstaller ] [ Lister les fichiers ] [ Effacer ]
2.    SMF 1.0.7 / 1.1 RC2 Update    1.0    [ Désinstaller ] [ Lister les fichiers ] [ Effacer ]
3.    Custom Profile Mod    2.13    [ Appliquer le mod ] [ Lister les fichiers ] [ Effacer ]
4.    MessagePreviewOnHover    1.0    [ Désinstaller ] [ Lister les fichiers ] [ Effacer ]
5.    Custom Profile Mod    2.13    [ Appliquer le mod ] [ Lister les fichiers ] [ Effacer ]
6.    CAPTCHA (code verification)    0.1    [ Désinstaller ] [ Lister les fichiers ] [ Effacer ]
7.    Lots_o_Smileys    1.0    [ Désinstaller ] [ Lister les fichiers ] [ Effacer ]
8.    Skype Name Mod    1.0    [ Désinstaller ] [ Lister les fichiers ] [ Effacer ]
9.    Quick Upload    2.1    [ Désinstaller ] [ Lister les fichiers ] [ Effacer ]
10.    Googlebot & Spiders Mod    1.0.5    [ Désinstaller ] [ Lister les fichiers ] [ Effacer ]

plus I've made several changes on Display.template.php and Boardindex.template.php...
but I never modified Profile.template.php

I've downloaded the zip file but I can't see why the test fails :(
the only thing I've seen it that the first search find the string on line 1527 when the second one finds the line 244...
Title: Re: Custom Profile Field Mod
Post by: SaikoJosh on April 24, 2006, 02:13:58 PM
Once you tick a checkbox in your profile it's impossible to untick it.

SMF: RC 2
MOD: 2.13
Title: Re: Custom Profile Field Mod
Post by: Bladenight on April 24, 2006, 03:02:02 PM
I get this message:


Installation Readme
Sorry, but this mod doesn't support your version of SMF.

Package Manager - Install Actions
Install Actions for archive customprofile2-13.zip:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


I have this version:


Version Information:
Forum version: SMF 1.0.7
Current SMF version: SMF 1.0.7


With this mods:


Mod Name Version
1. Jack's Phat Calendar Pack 1.0.4 [ Uninstall ]
2. G&S_Sticky 1.1 [ Uninstall ]
3. SMF 1.0.7 / 1.1 RC2 Update 1.0 [ Uninstall ]


Any ideas what the issue is?
Title: Re: Custom Profile Field Mod
Post by: winrules on April 24, 2006, 03:55:43 PM
perplexed, when does it give you that error?


john109, fixed :)
you only need to make the changes I posted in the first post of this thread if you are using a custom theme and you want to show the fields in posts.


crazie, just to add on to what perplexed said, the error is probly caused by either the coding changes you made, the gmail mod or the auto sig mod. the data always stays there, with the field id. So actually if you were using "default_options[myfield]" before, if you gave a field in this mod an ID of "myfield" (without quotes) the data would stay there.


piwaille, the skype name mod is probly interferring with this mod.


jcoleuk, confirmed, I will look into it.


Bladenight, sorry but this mod only works with 1.1 RC2, not 1.0.7.
Title: Re: Custom Profile Field Mod
Post by: daygo140 on April 24, 2006, 04:19:04 PM
Two things:

1) Remove a custom field.  I know you can uncheck it and then it doesn't appear but how can I remove the "Enable Custom Profile Field*" entry in the admin section?

2) I checked to show in posts & profile but for some reason it isn't showing in posts.
Title: Re: Custom Profile Field Mod
Post by: winrules on April 24, 2006, 04:21:39 PM
Quote from: daygo140 on April 24, 2006, 04:19:04 PM
Two things:

1) Remove a custom field.  I know you can uncheck it and then it doesn't appear but how can I remove the "Enable Custom Profile Field*" entry in the admin section?

2) I checked to show in posts & profile but for some reason it isn't showing in posts.
1: you can't delete fields.
2: if you are using a custom theme you will need to make the modifications to that theme as I said in the first post.
Title: Re: Custom Profile Field Mod
Post by: daygo140 on April 24, 2006, 04:45:56 PM
Quote from: winrules on April 24, 2006, 04:21:39 PM
Quote from: daygo140 on April 24, 2006, 04:19:04 PM
Two things:

1) Remove a custom field.  I know you can uncheck it and then it doesn't appear but how can I remove the "Enable Custom Profile Field*" entry in the admin section?

2) I checked to show in posts & profile but for some reason it isn't showing in posts.
1: you can't delete fields.
2: if you are using a custom theme you will need to make the modifications to that theme as I said in the first post.

OK nice!  Sorry there is so much info on this mod it's very overwhelming! 

I can't delete the fields manually in PHP or anything?

Also since I have your attention, KICK ASS MOD BTW, is there a way to make the custom field's title display bold in your posts in adding to a <BR> or space in between fields??
Title: Re: Custom Profile Field Mod
Post by: winrules on April 24, 2006, 04:48:35 PM
Quote from: daygo140 on April 24, 2006, 04:45:56 PM
Quote from: winrules on April 24, 2006, 04:21:39 PM
Quote from: daygo140 on April 24, 2006, 04:19:04 PM
Two things:

1) Remove a custom field.  I know you can uncheck it and then it doesn't appear but how can I remove the "Enable Custom Profile Field*" entry in the admin section?

2) I checked to show in posts & profile but for some reason it isn't showing in posts.
1: you can't delete fields.
2: if you are using a custom theme you will need to make the modifications to that theme as I said in the first post.

OK nice!  Sorry there is so much info on this mod it's very overwhelming! 

I can't delete the fields manually in PHP or anything?

Also since I have your attention, KICK ASS MOD BTW, is there a way to make the custom field's title display bold in your posts in adding to a <BR> or space in between fields??
1: you could delete the field in phpmyadmin, but onyl delete the last one.

2: not yet
Title: Re: Custom Profile Field Mod
Post by: daygo140 on April 24, 2006, 04:54:18 PM
Quote from: winrules on April 24, 2006, 04:48:35 PM
Quote from: daygo140 on April 24, 2006, 04:45:56 PM
Quote from: winrules on April 24, 2006, 04:21:39 PM
Quote from: daygo140 on April 24, 2006, 04:19:04 PM
Two things:

1) Remove a custom field.  I know you can uncheck it and then it doesn't appear but how can I remove the "Enable Custom Profile Field*" entry in the admin section?

2) I checked to show in posts & profile but for some reason it isn't showing in posts.
1: you can't delete fields.
2: if you are using a custom theme you will need to make the modifications to that theme as I said in the first post.

OK nice!  Sorry there is so much info on this mod it's very overwhelming! 

I can't delete the fields manually in PHP or anything?

Also since I have your attention, KICK ASS MOD BTW, is there a way to make the custom field's title display bold in your posts in adding to a <BR> or space in between fields??
1: you could delete the field in phpmyadmin, but onyl delete the last one.

2: not yet

I have two extra fields I don't use or have enabled.  So I assume I delete the last two.  But where and what field?

BTW...I GREATLY APPRECIATE your help and support!
Title: Re: Custom Profile Field Mod
Post by: winrules on April 24, 2006, 04:57:51 PM
Quote from: daygo140 on April 24, 2006, 04:54:18 PM
Quote from: winrules on April 24, 2006, 04:48:35 PM
Quote from: daygo140 on April 24, 2006, 04:45:56 PM
Quote from: winrules on April 24, 2006, 04:21:39 PM
Quote from: daygo140 on April 24, 2006, 04:19:04 PM
Two things:

1) Remove a custom field.  I know you can uncheck it and then it doesn't appear but how can I remove the "Enable Custom Profile Field*" entry in the admin section?

2) I checked to show in posts & profile but for some reason it isn't showing in posts.
1: you can't delete fields.
2: if you are using a custom theme you will need to make the modifications to that theme as I said in the first post.

OK nice!  Sorry there is so much info on this mod it's very overwhelming! 

I can't delete the fields manually in PHP or anything?

Also since I have your attention, KICK ASS MOD BTW, is there a way to make the custom field's title display bold in your posts in adding to a <BR> or space in between fields??
1: you could delete the field in phpmyadmin, but onyl delete the last one.

2: not yet

I have two extra fields I don't use or have enabled.  So I assume I delete the last two.  But where and what field?

BTW...I GREATLY APPRECIATE your help and support!
you would have to go to phpmyadmin and delete all the entrys in the settings table that have CPx in them, where x is the field number. however its probly more trouble than its worth.
Title: Re: Custom Profile Field Mod
Post by: daygo140 on April 24, 2006, 05:28:21 PM
Quote from: winrules
you would have to go to phpmyadmin and delete all the entrys in the settings table that have CPx in them, where x is the field number. however its probly more trouble than its worth.

worked great!!!
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 24, 2006, 05:47:28 PM
Quote from: perplexed on April 23, 2006, 10:36:52 AM
I tried using the CPF registration fields both as 'optional' and as 'forced' and everything works :)
I am only getting one error in the forum log:

http://www.mysite.com/forum/index.php?option=com_smf&amp;Itemid=83&amp;action=register
8: Undefined index: member
File: /home/mysite/public_html/forum/Themes/default/Register.template.php (before sub template - eval?)
Line: 127

This error?  I got it in the log after someone registered

Also since I had to look in the log again... it is full of

8: Undefined index: CP9
File: /home/mysite/public_html/forum/Themes/default/Profile.template.php (forumProfile sub template - eval?)
Line: 1699

for CP9 and CP10 - these are both fields for registration that also show in your profile, and they are selection boxes for selecting browser type, and OS.

CP9 shows in profile as firefox and CP10 as PC unless people change it. I have 4 fields in registration, but only these two are selection boxes and seen by the user. The other two are text fields and only seen by admin.  I wonder if it has something to do with that?



Title: Re: Custom Profile Field Mod
Post by: winrules on April 24, 2006, 06:11:30 PM
Quote from: perplexed on April 24, 2006, 05:47:28 PM
Quote from: perplexed on April 23, 2006, 10:36:52 AM
I tried using the CPF registration fields both as 'optional' and as 'forced' and everything works :)
I am only getting one error in the forum log:

http://www.mysite.com/forum/index.php?option=com_smf&amp;Itemid=83&amp;action=register
8: Undefined index: member
File: /home/mysite/public_html/forum/Themes/default/Register.template.php (before sub template - eval?)
Line: 127

This error?  I got it in the log after someone registered

Also since I had to look in the log again... it is full of

8: Undefined index: CP9
File: /home/mysite/public_html/forum/Themes/default/Profile.template.php (forumProfile sub template - eval?)
Line: 1699

for CP9 and CP10 - these are both fields for registration that also show in your profile, and they are selection boxes for selecting browser type, and OS.

CP9 shows in profile as firefox and CP10 as PC unless people change it. I have 4 fields in registration, but only these two are selection boxes and seen by the user. The other two are text fields and only seen by admin.  I wonder if it has something to do with that?




did you try recreating the fields?
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 24, 2006, 06:21:26 PM
yeah I did when I upgraded, I can do it again though and see if it makes any difference- everything seems to work ok though :)

*points to favourite mods in signature*
Title: Re: Custom Profile Field Mod
Post by: winrules on April 24, 2006, 06:44:53 PM
Quote from: perplexed on April 24, 2006, 06:21:26 PM
yeah I did when I upgraded, I can do it again though and see if it makes any difference- everything seems to work ok though :)

*points to favourite mods in signature*
would you post what's around lines 1699 in profile.template.php

also I've figured out what's causing the undifiened index:member errors, this wil be fixes shortly.
Title: Re: Custom Profile Field Mod
Post by: GJ-tje on April 24, 2006, 07:17:26 PM
Hello, here I am again, but I have a question.

Is it possible to give the custom profile fields a max width?
Because now there isn't and it can ****** the profiles up.
See also: http://www.appieskamertjuh.nl/smf/?action=profile;u=67
This occurs on any resolution a user has or can have...

Many thanks in advance!

P.S. Did you think about my suggestion which I told you some time ago?
Furthermore, I really like and appreciate this mod, with this mod, I do not have to modify SMF Profiles myself... :P
Title: Re: Custom Profile Field Mod
Post by: parcley on April 25, 2006, 02:10:11 PM
maybe this has been asked and i missed it...but is there a way to have the index of custom fields (in the admin section) display the name of the field and not "custom field 1"..."2"...etc.

Title: Re: Custom Profile Field Mod
Post by: perplexed on April 25, 2006, 02:30:42 PM
Quote from: winrules on April 24, 2006, 06:44:53 PM
Quote from: perplexed on April 24, 2006, 06:21:26 PM
yeah I did when I upgraded, I can do it again though and see if it makes any difference- everything seems to work ok though :)

*points to favourite mods in signature*
would you post what's around lines 1699 in profile.template.php

also I've figured out what's causing the undifiened index:member errors, this wil be fixes shortly.

Hi

here are the few lines around 1699 in profile as requested:


}
if ($modSettings['CP' . $i . '_type']=='select')
{
echo '
<tr>
<td><b>' . $modSettings['CP' . $i . '_name'] . ': </b></td>
<td><select name="default_options[' . $modSettings['CP' . $i . '_id'] . ']">';
$r = 1;
while (isset($modSettings['CP' . $i . '_data' . $r . '']) && !empty($modSettings['CP' . $i . '_data' . $r . '']))
{
echo '

[color=red]xxxxxxxx[/color] <option' , $context['member']['options'][$modSettings['CP' . $i . '_id']] == $modSettings['CP' . $i . '_data' . $r . ''] ? ' selected="selected"' : '' , '>' . $modSettings['CP' . $i . '_data' . $r . ''] . '</option>';
$r++;
}
echo '
</select></td>';
}
if ($modSettings['CP' . $i . '_type']=='check')
{
echo '
<tr>



I have highlighted the start of line 1699 with xxxxxxxxxx
Title: Re: Custom Profile Field Mod
Post by: winrules on April 25, 2006, 05:42:08 PM
Quote from: GJ-tje on April 24, 2006, 07:17:26 PM
Hello, here I am again, but I have a question.

Is it possible to give the custom profile fields a max width?
Because now there isn't and it can ****** the profiles up.
See also: http://www.appieskamertjuh.nl/smf/?action=profile;u=67
This occurs on any resolution a user has or can have...

Many thanks in advance!

P.S. Did you think about my suggestion which I told you some time ago?
Furthermore, I really like and appreciate this mod, with this mod, I do not have to modify SMF Profiles myself... :P
do you mean max lenght? I'll consider that.
about the other suggestion, It might be in 2.2 but I'm busy working on another mod right now.


parcley, Good idea, that'll be in 2.2.



perplexed, ok, figured out what's causing that, 2.1.4 will fix that too.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 25, 2006, 05:52:18 PM
yeah the max length idea would be good, as the text fields seem to be unlimited? 

I mentioned ages ago now putting a limit on the size of images that can be displayed in profiles, do you remember?  I set up a text area for a 'profile pic' but it doesnt read the image size restrictions set in features and options and displays it full size. (We have limits of 500px x 300px set on the board images.) I've decided not to mention 'images' until we can set the maximum size.

Title: Re: Custom Profile Field Mod
Post by: GJ-tje on April 25, 2006, 05:54:10 PM
Quote from: winrules on April 25, 2006, 05:42:08 PM
Quote from: GJ-tje on April 24, 2006, 07:17:26 PM
Hello, here I am again, but I have a question.

Is it possible to give the custom profile fields a max width?
Because now there isn't and it can ****** the profiles up.
See also: http://www.appieskamertjuh.nl/smf/?action=profile;u=67
This occurs on any resolution a user has or can have...

Many thanks in advance!

P.S. Did you think about my suggestion which I told you some time ago?
Furthermore, I really like and appreciate this mod, with this mod, I do not have to modify SMF Profiles myself... :P
do you mean max lenght? I'll consider that.
about the other suggestion, It might be in 2.2 but I'm busy working on another mod right now.


parcley, Good idea, that'll be in 2.2.



perplexed, ok, figured out what's causing that, 2.1.4 will fix that too.
No, I was nog talking about a max length, but the width (horizontal, not height (vertical)) ;)

Let me explain: If I do not make a new sentence it will put everything on 1 row, until the end of what he can get has been reached... I mean something like:
<div style="width: 300px;">;)
Title: Re: Custom Profile Field Mod
Post by: Christian A. Herrnboeck on April 25, 2006, 11:01:42 PM
Hi,

Where exactly are the values of the custom profile fields stored? I can't find them in the members table...
Title: Re: Custom Profile Field Mod
Post by: Søren Bjerg on April 26, 2006, 02:22:04 AM
They are stored in the smf_themes table.
Title: Re: Custom Profile Field Mod
Post by: Christian A. Herrnboeck on April 26, 2006, 08:05:55 AM
Ok, I found them... now, to the mod Author, PLEASE! Use logical DB development... why don't you just add them to the member's table? I'd say that'd be a lot easier... not to mention faster!

-Christian
Title: Re: Custom Profile Field Mod
Post by: crazie on April 26, 2006, 10:08:02 AM
Quote from: winrules on April 24, 2006, 03:55:43 PM
crazie, just to add on to what perplexed said, the error is probly caused by either the coding changes you made, the gmail mod or the auto sig mod. the data always stays there, with the field id. So actually if you were using "default_options[myfield]" before, if you gave a field in this mod an ID of "myfield" (without quotes) the data would stay there.

So, is there a particular way I should go about implementing the changes?  (i.e. uninstall autosig mod, then install this one, then re-install autosig mod).  Autosig is the only one I'd rather not get rid of.....if I had to eliminate one of them.

Or, can I just install it with the Failure in the test...and it should still work?

As for the coding changes I made, I can easily delete those to use this mod, since it would replace that anyways.

Perplexed and winrules- thanks for the info!!!
Title: Re: Custom Profile Field Mod
Post by: crazie on April 26, 2006, 10:45:17 AM
winrules,

Got it running just fine.  All I did was uninstall Auto-sig and gmail.  Then installed Custom Profile Field, and reinstalled the other two after.  Worked flawlessly!

Thanks for the help!  I didn't have to touch the coding I changed myself.
Title: Re: Custom Profile Field Mod
Post by: Piwaille on April 26, 2006, 03:23:02 PM
Quote from: winrules on April 24, 2006, 03:55:43 PM
piwaille, the skype name mod is probly interferring with this mod.

yes that's it !
8)

nice !
thanks
Title: Re: Custom Profile Field Mod
Post by: winrules on April 26, 2006, 04:13:53 PM
Quote from: GJ-tje on April 25, 2006, 05:54:10 PM
Quote from: winrules on April 25, 2006, 05:42:08 PM
Quote from: GJ-tje on April 24, 2006, 07:17:26 PM
Hello, here I am again, but I have a question.

Is it possible to give the custom profile fields a max width?
Because now there isn't and it can ****** the profiles up.
See also: http://www.appieskamertjuh.nl/smf/?action=profile;u=67
This occurs on any resolution a user has or can have...

Many thanks in advance!

P.S. Did you think about my suggestion which I told you some time ago?
Furthermore, I really like and appreciate this mod, with this mod, I do not have to modify SMF Profiles myself... :P
do you mean max lenght? I'll consider that.
about the other suggestion, It might be in 2.2 but I'm busy working on another mod right now.


parcley, Good idea, that'll be in 2.2.



perplexed, ok, figured out what's causing that, 2.1.4 will fix that too.
No, I was nog talking about a max length, but the width (horizontal, not height (vertical)) ;)

Let me explain: If I do not make a new sentence it will put everything on 1 row, until the end of what he can get has been reached... I mean something like:
<div style="width: 300px;">;)
Ok, I'll see what I can do.


Quote from: ChristianH. on April 26, 2006, 08:05:55 AM
Ok, I found them... now, to the mod Author, PLEASE! Use logical DB development... why don't you just add them to the member's table? I'd say that'd be a lot easier... not to mention faster!

-Christian
First off, this mod just provides an interface to creating fields unknown's way. I could have them be stored in the members table if I wanted, but I would have to be dynaically by creating tables, and it would be very complicated. Also I don't see how it would be faster, as the members table would grow very large and the values would be loaded on every page load.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 26, 2006, 05:07:46 PM
hi winrules

I got a quick question...

remember a few pages back I said the CPF on posts was showing up double on my testforum after upgrade?

Well fields are still showing up on profile and posts on display but not to edit, even though I uninstalled the mod.

Here is the section where it appears in profile template:


// Some more information.
echo '
</td>
</tr><tr>
<td><b>', $txt[96], ': </b></td>
<td><a href="', $context['member']['website']['url'], '" target="_blank">', $context['member']['website']['title'], '</a></td>';
$i = 1;
while (isset($modSettings['enable_CP' . $i . '']))
{
if ($modSettings['enable_CP' . $i . ''] && isset($context['member']['options'][$modSettings['CP' . $i . '_id']]) && $modSettings['CP' . $i . '_profile'])
{
if ($modSettings['CP' . $i . '_view'] && !$context['user']['is_admin'])
{
$i++;
continue;
}
if ($modSettings['CP' . $i . '_type']=='text' || $modSettings['CP' . $i . '_type']=='textarea')
{
$modSettings['CP' . $i . '_data1'] = preg_replace('/%1/', $context['member']['options'][$modSettings['CP' . $i . '_id']], $modSettings['CP' . $i . '_data1']);
$modSettings['CP' . $i . '_data2'] = preg_replace('/%1/', $context['member']['options'][$modSettings['CP' . $i . '_id']], $modSettings['CP' . $i . '_data2']);
if ($modSettings['CP' . $i . '_bbc'])
{
$context['member']['options'][$modSettings['CP' . $i . '_id']] = parse_bbc($modSettings['CP' . $i . '_data1'] . $context['member']['options'][$modSettings['CP' . $i . '_id']] . $modSettings['CP' . $i . '_data2']);
}
echo '
</tr><tr>
<td><b>' . $modSettings['CP' . $i . '_name'] . ': </b></td>
<td>' . $context['member']['options'][$modSettings['CP' . $i . '_id']] . '</td>';
}
if ($modSettings['CP' . $i . '_type']=='select')
{
if ($modSettings['CP' . $i . '_bbc'])
{
$field = parse_bbc($context['member']['options'][$modSettings['CP' . $i . '_id']]);
}
else
{
$field = $context['member']['options'][$modSettings['CP' . $i . '_id']];
}
echo '
</tr><tr>
<td><b>' . $modSettings['CP' . $i . '_name'] . ': </b></td>
<td>' . $field . '</td>';
}
if ($modSettings['CP' . $i . '_type']=='check')
{
if ($modSettings['CP' . $i . '_bbc'])
{
$modSettings['CP' . $i . '_data1'] = parse_bbc($modSettings['CP' . $i . '_data1']);
$modSettings['CP' . $i . '_data2'] = parse_bbc($modSettings['CP' . $i . '_data2']);
}
if ($context['member']['options'][$modSettings['CP' . $i . '_id']])
{
echo '
</tr><tr>
<td><b>' . $modSettings['CP' . $i . '_name'] . ': </b></td>
<td>' . $modSettings['CP' . $i . '_data1'] . '</td>';
}
else
{
echo '
</tr><tr>
<td><b>' . $modSettings['CP' . $i . '_name'] . ': </b></td>
<td>' . $modSettings['CP' . $i . '_data2'] . '</td>';
}
}
}
$i++;
}

echo '
</tr><tr>
<td><b>', $txt[113], ' </b></td>
<td>
<i>', $context['can_send_pm'] ? '<a href="' . $context['member']['online']['href'] . '" title="' . $context['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $context['member']['online']['image_href'] . '" alt="' . $context['member']['online']['text'] . '" border="0" align="middle" />' : $context['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $context['member']['online']['text'] . '</span>' : '', '</i>';

// Can they add this member as a buddy?
if (!empty($context['can_have_buddy']) && !$context['user']['is_owner'])
echo '
&nbsp;&nbsp;<a href="', $scripturl, '?action=buddy;u=', $context['member']['id'], ';sesc=', $context['session_id'], '">[', $txt['buddy_' . ($context['member']['is_buddy'] ? 'remove' : 'add')], ']</a>';



would you mind telling me exactly which part to delete, so I can reinstall the mod again?

~thanks
Title: Re: Custom Profile Field Mod
Post by: winrules on April 26, 2006, 07:24:35 PM
Quote from: perplexed on April 26, 2006, 05:07:46 PM
hi winrules

I got a quick question...

remember a few pages back I said the CPF on posts was showing up double on my testforum after upgrade?

Well fields are still showing up on profile and posts on display but not to edit, even though I uninstalled the mod.

Here is the section where it appears in profile template:


// Some more information.
echo '
</td>
</tr><tr>
<td><b>', $txt[96], ': </b></td>
<td><a href="', $context['member']['website']['url'], '" target="_blank">', $context['member']['website']['title'], '</a></td>';
$i = 1;
while (isset($modSettings['enable_CP' . $i . '']))
{
if ($modSettings['enable_CP' . $i . ''] && isset($context['member']['options'][$modSettings['CP' . $i . '_id']]) && $modSettings['CP' . $i . '_profile'])
{
if ($modSettings['CP' . $i . '_view'] && !$context['user']['is_admin'])
{
$i++;
continue;
}
if ($modSettings['CP' . $i . '_type']=='text' || $modSettings['CP' . $i . '_type']=='textarea')
{
$modSettings['CP' . $i . '_data1'] = preg_replace('/%1/', $context['member']['options'][$modSettings['CP' . $i . '_id']], $modSettings['CP' . $i . '_data1']);
$modSettings['CP' . $i . '_data2'] = preg_replace('/%1/', $context['member']['options'][$modSettings['CP' . $i . '_id']], $modSettings['CP' . $i . '_data2']);
if ($modSettings['CP' . $i . '_bbc'])
{
$context['member']['options'][$modSettings['CP' . $i . '_id']] = parse_bbc($modSettings['CP' . $i . '_data1'] . $context['member']['options'][$modSettings['CP' . $i . '_id']] . $modSettings['CP' . $i . '_data2']);
}
echo '
</tr><tr>
<td><b>' . $modSettings['CP' . $i . '_name'] . ': </b></td>
<td>' . $context['member']['options'][$modSettings['CP' . $i . '_id']] . '</td>';
}
if ($modSettings['CP' . $i . '_type']=='select')
{
if ($modSettings['CP' . $i . '_bbc'])
{
$field = parse_bbc($context['member']['options'][$modSettings['CP' . $i . '_id']]);
}
else
{
$field = $context['member']['options'][$modSettings['CP' . $i . '_id']];
}
echo '
</tr><tr>
<td><b>' . $modSettings['CP' . $i . '_name'] . ': </b></td>
<td>' . $field . '</td>';
}
if ($modSettings['CP' . $i . '_type']=='check')
{
if ($modSettings['CP' . $i . '_bbc'])
{
$modSettings['CP' . $i . '_data1'] = parse_bbc($modSettings['CP' . $i . '_data1']);
$modSettings['CP' . $i . '_data2'] = parse_bbc($modSettings['CP' . $i . '_data2']);
}
if ($context['member']['options'][$modSettings['CP' . $i . '_id']])
{
echo '
</tr><tr>
<td><b>' . $modSettings['CP' . $i . '_name'] . ': </b></td>
<td>' . $modSettings['CP' . $i . '_data1'] . '</td>';
}
else
{
echo '
</tr><tr>
<td><b>' . $modSettings['CP' . $i . '_name'] . ': </b></td>
<td>' . $modSettings['CP' . $i . '_data2'] . '</td>';
}
}
}
$i++;
}

echo '
</tr><tr>
<td><b>', $txt[113], ' </b></td>
<td>
<i>', $context['can_send_pm'] ? '<a href="' . $context['member']['online']['href'] . '" title="' . $context['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $context['member']['online']['image_href'] . '" alt="' . $context['member']['online']['text'] . '" border="0" align="middle" />' : $context['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $context['member']['online']['text'] . '</span>' : '', '</i>';

// Can they add this member as a buddy?
if (!empty($context['can_have_buddy']) && !$context['user']['is_owner'])
echo '
&nbsp;&nbsp;<a href="', $scripturl, '?action=buddy;u=', $context['member']['id'], ';sesc=', $context['session_id'], '">[', $txt['buddy_' . ($context['member']['is_buddy'] ? 'remove' : 'add')], ']</a>';



would you mind telling me exactly which part to delete, so I can reinstall the mod again?

~thanks

it should be:

// Some more information.
echo '
</td>
</tr><tr>
<td><b>', $txt[96], ': </b></td>
<td><a href="', $context['member']['website']['url'], '" target="_blank">', $context['member']['website']['title'], '</a></td>
</tr><tr>
<td><b>', $txt[113], ' </b></td>
<td>
<i>', $context['can_send_pm'] ? '<a href="' . $context['member']['online']['href'] . '" title="' . $context['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $context['member']['online']['image_href'] . '" alt="' . $context['member']['online']['text'] . '" border="0" align="middle" />' : $context['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $context['member']['online']['text'] . '</span>' : '', '</i>';

// Can they add this member as a buddy?
if (!empty($context['can_have_buddy']) && !$context['user']['is_owner'])
echo '
&nbsp;&nbsp;<a href="', $scripturl, '?action=buddy;u=', $context['member']['id'], ';sesc=', $context['session_id'], '">[', $txt['buddy_' . ($context['member']['is_buddy'] ? 'remove' : 'add')], ']</a>';

Title: Re: Custom Profile Field Mod
Post by: AlexJ on April 27, 2006, 06:44:37 AM
I installed the mod..but i don't know where to got to make the custom profile
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 27, 2006, 08:03:36 AM
Quote from: AlexJ on April 27, 2006, 06:44:37 AM
I installed the mod..but i don't know where to got to make the custom profile

go to your admin screen > features and options > custom profile fields will have a tab along the top of this section
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 27, 2006, 11:08:46 AM

it should be:

// Some more information.
echo '
</td>
</tr><tr>
<td><b>', $txt[96], ': </b></td>
<td><a href="', $context['member']['website']['url'], '" target="_blank">', $context['member']['website']['title'], '</a></td>
</tr><tr>
<td><b>', $txt[113], ' </b></td>
<td>
<i>', $context['can_send_pm'] ? '<a href="' . $context['member']['online']['href'] . '" title="' . $context['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $context['member']['online']['image_href'] . '" alt="' . $context['member']['online']['text'] . '" border="0" align="middle" />' : $context['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $context['member']['online']['text'] . '</span>' : '', '</i>';

// Can they add this member as a buddy?
if (!empty($context['can_have_buddy']) && !$context['user']['is_owner'])
echo '
&nbsp;&nbsp;<a href="', $scripturl, '?action=buddy;u=', $context['member']['id'], ';sesc=', $context['session_id'], '">[', $txt['buddy_' . ($context['member']['is_buddy'] ? 'remove' : 'add')], ']</a>';


[/quote]

thanks, I dont know what happened, as it only did that on the testsite, I also had to take the code out of the display template too *shrug*

Title: Re: Custom Profile Field Mod
Post by: Speedster on April 28, 2006, 06:49:44 AM
Hi all,

winrules can help me with this?:

SMF Version :1.1 RC2 bridged with Mambo
MODS Installed:
1.     SMF 1.0.7 / 1.1 RC2 Update     1.0 
2.    Custom Profile Mod    2.13

Award Mod desinstalled

Using SMF Theme © Gaia

and can´t see the tab under features and options.

Tks...
Title: Re: Custom Profile Field Mod
Post by: winrules on April 28, 2006, 12:41:07 PM
Quote from: Speedster on April 28, 2006, 06:49:44 AM
Hi all,

winrules can help me with this?:

SMF Version :1.1 RC2 bridged with Mambo
MODS Installed:
1.     SMF 1.0.7 / 1.1 RC2 Update     1.0 
2.    Custom Profile Mod    2.13

Award Mod desinstalled

Using SMF Theme © Gaia

and can´t see the tab under features and options.

Tks...
any errors on the install?
Title: Re: Custom Profile Field Mod
Post by: Speedster on April 28, 2006, 01:03:51 PM
Quote from: winrules on April 28, 2006, 12:41:07 PM
Quote from: Speedster on April 28, 2006, 06:49:44 AM
Hi all,

winrules can help me with this?:

SMF Version :1.1 RC2 bridged with Mambo
MODS Installed:
1.     SMF 1.0.7 / 1.1 RC2 Update     1.0 
2.    Custom Profile Mod    2.13

Award Mod desinstalled

Using SMF Theme © Gaia

and can´t see the tab under features and options.

Tks...
any errors on the install?

nope all clean...
Title: Re: Custom Profile Field Mod
Post by: winrules on April 28, 2006, 02:35:16 PM
Quote from: Speedster on April 28, 2006, 01:03:51 PM
Quote from: winrules on April 28, 2006, 12:41:07 PM
Quote from: Speedster on April 28, 2006, 06:49:44 AM
Hi all,

winrules can help me with this?:

SMF Version :1.1 RC2 bridged with Mambo
MODS Installed:
1.     SMF 1.0.7 / 1.1 RC2 Update     1.0 
2.    Custom Profile Mod    2.13

Award Mod desinstalled

Using SMF Theme © Gaia

and can´t see the tab under features and options.

Tks...
any errors on the install?

nope all clean...
can you pm me your modsettings.php?
Title: Re: Custom Profile Field Mod
Post by: john109 on April 29, 2006, 12:26:35 AM
Hi winrules!

I noticed I've been getting these errors whenever I add someone to a membergroup.  Do you know if it could be because of this mod?

2: Missing argument 2 for db_query()
File: /home/....../public_html/smf/Sources/Subs.php
Line: 237

2: Missing argument 3 for db_query()
File: /home/....../public_html/smf/Sources/Subs.php
Line: 237


Also when I click on Re-create field on any of the custom fields I have these errors come up in the error log.  I get this pair of errors 4 times each time I click on Re-create field.  I have 6 custom fields (4 text, 2 check boxes).

8: Undefined index: cp
File: /home/...../public_html/smf/Sources/ModSettings.php
Line: 317

8: Undefined index: CP_type
File: /home/...../public_html/smf/Sources/ModSettings.php
Line: 317


Title: Re: Custom Profile Field Mod
Post by: database404 on April 29, 2006, 07:12:48 AM
Hello, newbie popping in here  ;)

I'm using SMF 1.1RC2 and would like to find out how to display the profile fields in posts. I did the code changes in the first post but they don't work. I'm using Helios Multi and the latest version of Custom Profile Field.

Edit: I have no other mods installed.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 29, 2006, 09:45:31 AM
stupid question but did you switch them on to show on posts?
Title: Re: Custom Profile Field Mod
Post by: winrules on April 29, 2006, 11:07:17 AM
Quote from: john109 on April 29, 2006, 12:26:35 AM
Hi winrules!

I noticed I've been getting these errors whenever I add someone to a membergroup.  Do you know if it could be because of this mod?

2: Missing argument 2 for db_query()
File: /home/....../public_html/smf/Sources/Subs.php
Line: 237

2: Missing argument 3 for db_query()
File: /home/....../public_html/smf/Sources/Subs.php
Line: 237


Also when I click on Re-create field on any of the custom fields I have these errors come up in the error log.  I get this pair of errors 4 times each time I click on Re-create field.  I have 6 custom fields (4 text, 2 check boxes).

8: Undefined index: cp
File: /home/...../public_html/smf/Sources/ModSettings.php
Line: 317

8: Undefined index: CP_type
File: /home/...../public_html/smf/Sources/ModSettings.php
Line: 317



I really don't see how that could be caused by this mod, because this mod doesn't modify subs.php at all, but could you post the query on line 237 anyway?

database404, also make sure you've put some data in the field in your profile, if there's no data it won't show.
Title: Re: Custom Profile Field Mod
Post by: winrules on April 29, 2006, 02:55:18 PM
Version 2.14 has been released! This version fixes some issues with selection fields.
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 29, 2006, 03:01:36 PM
:( do I have to uninstall again *cries*
Title: Re: Custom Profile Field Mod
Post by: winrules on April 29, 2006, 03:03:07 PM
Quote from: perplexed on April 29, 2006, 03:01:36 PM
:( do I have to uninstall again *cries*
you can just upgrade...
Title: Re: Custom Profile Field Mod
Post by: perplexed on April 29, 2006, 03:07:08 PM
everything is working so well, can I upgrade with no problems or do I have to do the recreate field thing again?
Title: Re: Custom Profile Field Mod
Post by: winrules on April 29, 2006, 03:14:33 PM
Quote from: perplexed on April 29, 2006, 03:07:08 PM
everything is working so well, can I upgrade with no problems or do I have to do the recreate field thing again?
you don't have to do the recreate field thing, you should be able to upgrade with no problems. It should fix the problems reported here:

Quote from: perplexed on April 24, 2006, 05:47:28 PM
Quote from: perplexed on April 23, 2006, 10:36:52 AM
I tried using the CPF registration fields both as 'optional' and as 'forced' and everything works :)
I am only getting one error in the forum log:

http://www.mysite.com/forum/index.php?option=com_smf&amp;Itemid=83&amp;action=register
8: Undefined index: member
File: /home/mysite/public_html/forum/Themes/default/Register.template.php (before sub template - eval?)
Line: 127

This error?  I got it in the log after someone registered

Also since I had to look in the log again... it is full of

8: Undefined index: CP9
File: /home/mysite/public_html/forum/Themes/default/Profile.template.php (forumProfile sub template - eval?)
Line: 1699

for CP9 and CP10 - these are both fields for registration that also show in your profile, and they are selection boxes for selecting browser type, and OS.

CP9 shows in profile as firefox and CP10 as PC unless people change it. I have 4 fields in registration, but only these two are selection boxes and seen by the user. The other two are text fields and only seen by admin.  I wonder if it has something to do with that?




Title: Re: Custom Profile Field Mod
Post by: eckostylez on April 29, 2006, 04:29:10 PM
I get this error when trying to install:

Installations actions for "Custom Profile Mod":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    -    Modification parse error
Title: Re: Custom Profile Field Mod
Post by: eckostylez on April 29, 2006, 04:41:26 PM
Waha!, I got it to work. Thanks for the mod :)
Title: Re: Custom Profile Field Mod
Post by: winrules on April 29, 2006, 05:00:11 PM
Quote from: eckostylez on April 29, 2006, 04:41:26 PM
Waha!, I got it to work. Thanks for the mod :)
glad you got it working :)
Title: Re: Custom Profile Field Mod
Post by: john109 on April 29, 2006, 07:30:03 PM
Hi winrules thx.  I already tried getting this checked out in the General Support section and JayBachatero couldn't figure it out.  He didn't think any of my other mods could have caused it.

Does Orstio's bridge modify subs.php?

Line 237 is this one: function db_query($db_string, $file, $line)
// Do a query.  Takes care of errors too.
function db_query($db_string, $file, $line)
{
global $db_cache, $db_count, $db_connection, $modSettings;

// One more query....
$db_count = !isset($db_count) ? 1 : $db_count + 1;

// Debugging.
if (isset($GLOBALS['db_show_debug']) && $GLOBALS['db_show_debug'] === true)
{
if (!empty($_SESSION['debug_redirect']))
{
$db_cache = array_merge($_SESSION['debug_redirect'], $db_cache);
$db_count = count($db_cache) + 1;
$_SESSION['debug_redirect'] = array();
}

$db_cache[$db_count]['q'] = $db_string;
$db_cache[$db_count]['f'] = $file;
$db_cache[$db_count]['l'] = $line;
$st = microtime();
}

// First, we clean strings out of the query, reduce whitespace, lowercase, and trim - so we can check it over.
if (empty($modSettings['disableQueryCheck']))
{
$clean = '';
$old_pos = 0;
$pos = -1;
while (true)
{
$pos = strpos($db_string, '\'', $pos + 1);
if ($pos === false)
break;
$clean .= substr($db_string, $old_pos, $pos - $old_pos);

while (true)
{
$pos1 = strpos($db_string, '\'', $pos + 1);
$pos2 = strpos($db_string, '\\', $pos + 1);
if ($pos1 === false)
break;
elseif ($pos2 == false || $pos2 > $pos1)
{
$pos = $pos1;
break;
}

$pos = $pos2 + 1;
}
$clean .= '%s';

$old_pos = $pos + 1;
}
$clean .= substr($db_string, $old_pos);
$clean = trim(strtolower(preg_replace(array('~\s+~s', '~/\*!40001 SQL_NO_CACHE \*/~', '~/\*!40000 USE INDEX \([A-Za-z\_]+?\) \*/~'), array(' ', '', ''), $clean)));

// We don't use UNION in SMF, at least so far.  But it's useful for injections.
if (strpos($clean, 'union') !== false && preg_match('~(^|[^a-z])union($|[^[a-z])~s', $clean) != 0)
$fail = true;
// Comments?  We don't use comments in our queries, we leave 'em outside!
elseif (strpos($clean, '/*') > 2 || strpos($clean, '--') !== false || strpos($clean, ';') !== false)
$fail = true;
// Trying to change passwords, slow us down, or something?
elseif (strpos($clean, 'set password') !== false && preg_match('~(^|[^a-z])set password($|[^[a-z])~s', $clean) != 0)
$fail = true;
elseif (strpos($clean, 'benchmark') !== false && preg_match('~(^|[^a-z])benchmark($|[^[a-z])~s', $clean) != 0)
$fail = true;
// Sub selects?  We don't use those either.
elseif (preg_match('~\([^)]*?select~s', $clean) != 0)
$fail = true;

if (!empty($fail))
{
log_error('Hacking attempt...' . "\n" . $db_string, $file, $line);
fatal_error('Hacking attempt...', false);
}
}

$ret = mysql_query($db_string, $db_connection);
if ($ret === false && $file !== false)
$ret = db_error($db_string, $file, $line);

// Debugging.
if (isset($GLOBALS['db_show_debug']) && $GLOBALS['db_show_debug'] === true)
$db_cache[$db_count]['t'] = array_sum(explode(' ', microtime())) - array_sum(explode(' ', $st));

return $ret;
}

function db_affected_rows()
{
global $db_connection;

return mysql_affected_rows($db_connection);
}

function db_insert_id()
{
global $db_connection;

return mysql_insert_id($db_connection);
}
Title: Re: Custom Profile Field Mod
Post by: winrules on April 29, 2006, 08:24:43 PM
Quote from: john109 on April 29, 2006, 07:30:03 PM
Hi winrules thx.  I already tried getting this checked out in the General Support section and JayBachatero couldn't figure it out.  He didn't think any of my other mods could have caused it.

Does Orstio's bridge modify subs.php?

Line 237 is this one: function db_query($db_string, $file, $line)
// Do a query.  Takes care of errors too.
function db_query($db_string, $file, $line)
{
global $db_cache, $db_count, $db_connection, $modSettings;

// One more query....
$db_count = !isset($db_count) ? 1 : $db_count + 1;

// Debugging.
if (isset($GLOBALS['db_show_debug']) && $GLOBALS['db_show_debug'] === true)
{
if (!empty($_SESSION['debug_redirect']))
{
$db_cache = array_merge($_SESSION['debug_redirect'], $db_cache);
$db_count = count($db_cache) + 1;
$_SESSION['debug_redirect'] = array();
}

$db_cache[$db_count]['q'] = $db_string;
$db_cache[$db_count]['f'] = $file;
$db_cache[$db_count]['l'] = $line;
$st = microtime();
}

// First, we clean strings out of the query, reduce whitespace, lowercase, and trim - so we can check it over.
if (empty($modSettings['disableQueryCheck']))
{
$clean = '';
$old_pos = 0;
$pos = -1;
while (true)
{
$pos = strpos($db_string, '\'', $pos + 1);
if ($pos === false)
break;
$clean .= substr($db_string, $old_pos, $pos - $old_pos);

while (true)
{
$pos1 = strpos($db_string, '\'', $pos + 1);
$pos2 = strpos($db_string, '\\', $pos + 1);
if ($pos1 === false)
break;
elseif ($pos2 == false || $pos2 > $pos1)
{
$pos = $pos1;
break;
}

$pos = $pos2 + 1;
}
$clean .= '%s';

$old_pos = $pos + 1;
}
$clean .= substr($db_string, $old_pos);
$clean = trim(strtolower(preg_replace(array('~\s+~s', '~/\*!40001 SQL_NO_CACHE \*/~', '~/\*!40000 USE INDEX \([A-Za-z\_]+?\) \*/~'), array(' ', '', ''), $clean)));

// We don't use UNION in SMF, at least so far.  But it's useful for injections.
if (strpos($clean, 'union') !== false && preg_match('~(^|[^a-z])union($|[^[a-z])~s', $clean) != 0)
$fail = true;
// Comments?  We don't use comments in our queries, we leave 'em outside!
elseif (strpos($clean, '/*') > 2 || strpos($clean, '--') !== false || strpos($clean, ';') !== false)
$fail = true;
// Trying to change passwords, slow us down, or something?
elseif (strpos($clean, 'set password') !== false && preg_match('~(^|[^a-z])set password($|[^[a-z])~s', $clean) != 0)
$fail = true;
elseif (strpos($clean, 'benchmark') !== false && preg_match('~(^|[^a-z])benchmark($|[^[a-z])~s', $clean) != 0)
$fail = true;
// Sub selects?  We don't use those either.
elseif (preg_match('~\([^)]*?select~s', $clean) != 0)
$fail = true;

if (!empty($fail))
{
log_error('Hacking attempt...' . "\n" . $db_string, $file, $line);
fatal_error('Hacking attempt...', false);
}
}

$ret = mysql_query($db_string, $db_connection);
if ($ret === false && $file !== false)
$ret = db_error($db_string, $file, $line);

// Debugging.
if (isset($GLOBALS['db_show_debug']) && $GLOBALS['db_show_debug'] === true)
$db_cache[$db_count]['t'] = array_sum(explode(' ', microtime())) - array_sum(explode(' ', $st));

return $ret;
}

function db_affected_rows()
{
global $db_connection;

return mysql_affected_rows($db_connection);
}

function db_insert_id()
{
global $db_connection;

return mysql_insert_id($db_connection);
}

I looked in your thread in general english support and it looks like oristo has posted an answer.
Title: Custom Profile Field Mod
Post by: el on April 30, 2006, 09:17:47 AM
Hi winrules!

I'm using SMF 1.1 RC2 with these mods installed:

1. TinyPortal 0.86
2. SMF 1.0.7 / 1.1 RC2 Update 1.0
3. Custom Profile Mod
and Helios_Multi theme.

Well, the problems are the following:
1) Using the Helios_Multi theme, the custom fields don't show up in regular posts inside the forum but only at pm posts
2) when i uninstall the package, delete it and download and install again, the old custom fields i have created continue to exist. Is this normal? I would really like to delete some of them. As far as i searched, i couldn't find an erase field option.

I would really appreciate it if u could help me overcome the above problems.
Let me know if i you need more info.

Thanks in advance!!!!

elnismo

PS. PLS forgive me if the above problem is solved previously... let me know in that case where to search for the answer, as i wouldn't like to waste your time.
Title: Re: Custom Profile Field Mod
Post by: winrules on April 30, 2006, 09:30:05 AM
Quote from: elnismo on April 30, 2006, 09:17:47 AM
Hi winrules!

I'm using SMF 1.1 RC2 with these mods installed:

1. TinyPortal 0.86
2. SMF 1.0.7 / 1.1 RC2 Update 1.0
3. Custom Profile Mod
and Helios_Multi theme.

Well, the problems are the following:
1) Using the Helios_Multi theme, the custom fields don't show up in regular posts inside the forum but only at pm posts
2) when i uninstall the package, delete it and download and install again, the old custom fields i have created continue to exist. Is this normal? I would really like to delete some of them. As far as i searched, i couldn't find an erase field option.

I would really appreciate it if u could help me overcome the above problems.
Let me know if i you need more info.

Thanks in advance!!!!

elnismo

PS. PLS forgive me if the above problem is solved previously... let me know in that case where to search for the answer, as i wouldn't like to waste your time.

Look at the first post of this topic, it shows how to make the show in posts work with different themes.
As far as deleting fields, you currently can't, but you can just disable them. If you really wanted to you can remove the values from phpmyadmin, but you can only do the last ones and it would probly be more trouble than it's worth.
Title: Re: Custom Profile Field Mod
Post by: el on April 30, 2006, 09:43:27 AM
Thank you for your immediate responce!...
Title: Re: Custom Profile Field Mod
Post by: el on April 30, 2006, 10:38:25 AM
Unfortunately the steps you provide doesn't solve the problem...

Helios_multi has it's own display.template.php and it doesn't has the "code to be replaced".

the /themes/default/ directory has the 4 templates you say that the replacing code should be placed but only display.template.php and personalmessage.template.php has the "code to be replaced". I made the changes, but nothing changed actually.
any more ideas?
Title: Re: Custom Profile Field Mod
Post by: winrules on April 30, 2006, 10:42:20 AM
Quote from: elnismo on April 30, 2006, 10:38:25 AM
Unfortunately the steps you provide doesn't solve the problem...

Helios_multi has it's own display.template.php and it doesn't has the "code to be replaced".

the /themes/default/ directory has the 4 templates you say that the replacing code should be placed but only display.template.php and personalmessage.template.php has the "code to be replaced". I made the changes, but nothing changed actually.
any more ideas?
look for similar code...
also look here: How to make the mod work with other themes (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: Custom Profile Field Mod
Post by: el on April 30, 2006, 11:14:58 AM
well, i searched for similar code and i can't find anything similirar to the profile.template.php and to the register.template.php. i found similar code to helios_multi display.template.php, changed it, but nothing changed in the board. May i post the code of each file here so as to see if there is any problems in them?
Title: Re: Custom Profile Field Mod
Post by: winrules on April 30, 2006, 01:07:27 PM
Quote from: elnismo on April 30, 2006, 11:14:58 AM
well, i searched for similar code and i can't find anything similirar to the profile.template.php and to the register.template.php. i found similar code to helios_multi display.template.php, changed it, but nothing changed in the board. May i post the code of each file here so as to see if there is any problems in them?
all you need to find is the code in display.template.php. You need to enable fields from the admin center for it to do anything.
Title: Re: Custom Profile Field Mod
Post by: el on April 30, 2006, 01:47:47 PM
Quote from: winrules on April 30, 2006, 01:07:27 PM
all you need to find is the code in display.template.php. You need to enable fields from the admin center for it to do anything.

Both already done. Unfortunately no results.
Title: Re: Custom Profile Field Mod
Post by: winrules on April 30, 2006, 02:58:23 PM
Quote from: elnismo on April 30, 2006, 01:47:47 PM
Quote from: winrules on April 30, 2006, 01:07:27 PM
all you need to find is the code in display.template.php. You need to enable fields from the admin center for it to do anything.

Both already done. Unfortunately no results.
do they show up in the forum profile information?
Title: Re: Custom Profile Field Mod
Post by: el on April 30, 2006, 03:44:05 PM
They show up in each user profile summary and in pm (personal messages) posts.
Title: Re: Custom Profile Field Mod
Post by: winrules on April 30, 2006, 03:46:09 PM
Quote from: elnismo on April 30, 2006, 03:44:05 PM
They show up in each user profile summary and in pm (personal messages) posts.
are they set to show in the posts and have you added the code?
Title: Re: Custom Profile Field Mod
Post by: el on April 30, 2006, 03:54:14 PM
of course! both actions already taken.
Title: Re: Custom Profile Field Mod
Post by: Archy on May 01, 2006, 06:36:26 AM
hi .. i have used this mod with a text field and it works great..
but i found when i added another field..  a selection field .. that can only be edited by admin.. and not shown on the register screen.. that a new user cannot register because they havent filled in the selection field.

in other words the field is being treated as forced even though it isnt being displayed on the new user rego screen and is set to admin edit only.
has this happened to anyone else?

here are the settings..  using version 2.14 of the custom profile mod.

field type: selection box

Show in profile?  y
Show in posts?   y
Parse BBC?   y
Field ID   cp2
Add a horizontal rule before field in profile? n 
Show field on registration?  Don't Show   
Only allow admins to edit field?   y
Only allow admins to view field?   n


EDIT:  found errors in SMF error log.

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 306

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 324

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 324

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 342

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 342

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 306


etc...
Title: Re: Custom Profile Field Mod
Post by: winrules on May 01, 2006, 03:50:43 PM
Quote from: elnismo on April 30, 2006, 03:54:14 PM
of course! both actions already taken.
you added in the code wrong then.



Quote from: Archy on May 01, 2006, 06:36:26 AM
hi .. i have used this mod with a text field and it works great..
but i found when i added another field..  a selection field .. that can only be edited by admin.. and not shown on the register screen.. that a new user cannot register because they havent filled in the selection field.

in other words the field is being treated as forced even though it isnt being displayed on the new user rego screen and is set to admin edit only.
has this happened to anyone else?

here are the settings..  using version 2.14 of the custom profile mod.

field type: selection box

Show in profile?  y
Show in posts?   y
Parse BBC?   y
Field ID   cp2
Add a horizontal rule before field in profile? n 
Show field on registration?  Don't Show   
Only allow admins to edit field?   y
Only allow admins to view field?   n


EDIT:  found errors in SMF error log.

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 306

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 324

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 324

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 342

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 342

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 306


etc...
can I have a link to your site?
also with the errors when do they happen?
Title: Re: Custom Profile Field Mod
Post by: Archy on May 02, 2006, 12:52:18 AM
Quote from: winrules on May 01, 2006, 03:50:43 PM
Quote from: elnismo on April 30, 2006, 03:54:14 PM
of course! both actions already taken.
you added in the code wrong then.



Quote from: Archy on May 01, 2006, 06:36:26 AM
hi .. i have used this mod with a text field and it works great..
but i found when i added another field..  a selection field .. that can only be edited by admin.. and not shown on the register screen.. that a new user cannot register because they havent filled in the selection field.

in other words the field is being treated as forced even though it isnt being displayed on the new user rego screen and is set to admin edit only.
has this happened to anyone else?

here are the settings..  using version 2.14 of the custom profile mod.

field type: selection box

Show in profile?  y
Show in posts?   y
Parse BBC?   y
Field ID   cp2
Add a horizontal rule before field in profile? n 
Show field on registration?  Don't Show   
Only allow admins to edit field?   y
Only allow admins to view field?   n


EDIT:  found errors in SMF error log.

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 306

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 324

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 324

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 342

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 342

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 306


etc...
can I have a link to your site?
also with the errors when do they happen?

yes sure..  the link is http://gwz.no-ip.org (http://gwz.no-ip.org)

Im new at this.. and keeping an eye on the error logs is a lesson i have just learnt.
so i dont know what i was doing when they happened.
The board went for 5 or 6 days with nobody being able to register before i realised.
I have turned the offending field into a text field which has made it work properly..
of course this doesnt solve the problem of having a selection box field.

i installed the mod automatically using the package installer..  it installed clean to my knowledge.. there were no visible errors.

i look forward to your response :)
Title: Re: Custom Profile Field Mod
Post by: winrules on May 02, 2006, 04:35:23 PM
Quote from: Archy on May 02, 2006, 12:52:18 AM
Quote from: winrules on May 01, 2006, 03:50:43 PM
Quote from: elnismo on April 30, 2006, 03:54:14 PM
of course! both actions already taken.
you added in the code wrong then.



Quote from: Archy on May 01, 2006, 06:36:26 AM
hi .. i have used this mod with a text field and it works great..
but i found when i added another field..  a selection field .. that can only be edited by admin.. and not shown on the register screen.. that a new user cannot register because they havent filled in the selection field.

in other words the field is being treated as forced even though it isnt being displayed on the new user rego screen and is set to admin edit only.
has this happened to anyone else?

here are the settings..  using version 2.14 of the custom profile mod.

field type: selection box

Show in profile?  y
Show in posts?   y
Parse BBC?   y
Field ID   cp2
Add a horizontal rule before field in profile? n 
Show field on registration?  Don't Show   
Only allow admins to edit field?   y
Only allow admins to view field?   n


EDIT:  found errors in SMF error log.

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 306

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 324

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 324

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 342

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 342

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 306


etc...
can I have a link to your site?
also with the errors when do they happen?

yes sure..  the link is http://gwz.no-ip.org (http://gwz.no-ip.org)

Im new at this.. and keeping an eye on the error logs is a lesson i have just learnt.
so i dont know what i was doing when they happened.
The board went for 5 or 6 days with nobody being able to register before i realised.
I have turned the offending field into a text field which has made it work properly..
of course this doesnt solve the problem of having a selection box field.

i installed the mod automatically using the package installer..  it installed clean to my knowledge.. there were no visible errors.

i look forward to your response :)
can you try recreating the field?
Title: Re: Custom Profile Field Mod
Post by: Captain_Morrigan on May 02, 2006, 05:06:57 PM
Is there a way to have BBC parsed without ending it. What I want to do is have something that does this.

Format before code = The post formatting (Similar to a signature but before the text and the formatting stays)
Format after code = The end formatting (similar to a signature but I still want signatures)

So it shows something like

Format before code = [b][i]Morrigan Speaks...
Format after code =...she said trailing off into the night[/i][/b]

And then the post shows:

Quote
Morrigan Speaks...

This would be my immense message that said things...

...she said trailing off into the night



I forgot to mention I can get it to show in the correct places. Would I have to disable BBC and require that they use HTML?
Title: Re: Custom Profile Field Mod
Post by: winrules on May 02, 2006, 05:08:57 PM
Quote from: Captain_Morrigan on May 02, 2006, 05:06:57 PM
Is there a way to have BBC parsed without ending it. What I want to do is have something that does this.

Format before code = The post formatting (Similar to a signature but before the text and the formatting stays)
Format after code = The end formatting (similar to a signature but I still want signatures)

So it shows something like

Format before code = [b][i]Morrigan Speaks...
Format after code =...she said trailing off into the night[/i][/b]

And then the post shows:

Quote
Morrigan Speaks...

This would be my immense message that said things...

...she said trailing off into the night


doesn't it allow that by default?
Title: Re: Custom Profile Field Mod
Post by: Captain_Morrigan on May 02, 2006, 05:18:21 PM
No it shows:
Quote
Morrigan Speaks...
My immense long post.
The end of the post.

Also when you use HTML it just shows it as plain text and I don't know how to fix that.
Title: Re: Custom Profile Field Mod
Post by: winrules on May 02, 2006, 05:19:34 PM
Quote from: Captain_Morrigan on May 02, 2006, 05:18:21 PM
No it shows:
Quote
Morrigan Speaks...
My immense long post.
The end of the post.
Well you could use HTML.
Title: Re: Custom Profile Field Mod
Post by: Captain_Morrigan on May 02, 2006, 05:36:33 PM
I modified my post as I forgot to put that information in. HTML shows as plain text. I was having the same problem when trying to create my own custom profile without the mod but it happens the same with the mod. /cry
It's ok if you can't help I'm just trying to find a simple way to do a format post thing without having to create an all new mod as I would not know where to start with this one.
Title: Re: Custom Profile Field Mod
Post by: winrules on May 02, 2006, 05:41:11 PM
Quote from: Captain_Morrigan on May 02, 2006, 05:36:33 PM
I modified my post as I forgot to put that information in. HTML shows as plain text. I was having the same problem when trying to create my own custom profile without the mod but it happens the same with the mod. /cry
It's ok if you can't help I'm just trying to find a simple way to do a format post thing without having to create an all new mod as I would not know where to start with this one.
can you try disabling parse bcc, and then just putting HTML in the before and after fields?
Title: Re: Custom Profile Field Mod
Post by: Captain_Morrigan on May 02, 2006, 05:47:08 PM
That just leaves it all in plain text.

Where is it that the message pulls from to format it?
Title: Re: Custom Profile Field Mod
Post by: winrules on May 02, 2006, 06:03:10 PM
Quote from: Captain_Morrigan on May 02, 2006, 05:47:08 PM
That just leaves it all in plain text.

Where is it that the message pulls from to format it?
did you disable parse bbc?
Title: Re: Custom Profile Field Mod
Post by: Captain_Morrigan on May 02, 2006, 06:08:06 PM
I've even enabled HTML in the forum settings.

It's like there is something that does not allow HTML in that column.
Title: Re: Custom Profile Field Mod
Post by: winrules on May 02, 2006, 06:11:20 PM
Quote from: Captain_Morrigan on May 02, 2006, 06:08:06 PM
I've even enabled HTML in the forum settings.

It's like there is something that does not allow HTML in that column.
no, in the custom field settings, did you disable "Parse BBC?"?
Title: Re: Custom Profile Field Mod
Post by: Captain_Morrigan on May 02, 2006, 06:17:11 PM
Yes, I even tried enabling basic HTML to see if that was the problem.

This is what it looks like with disabled parseBBC
http://test.enchantinge.com/index.php?topic=2.0
Title: Re: Custom Profile Field Mod
Post by: timkenmaster on May 02, 2006, 06:44:26 PM
You know what I would love to see added to this mod? That would be the feilds have an option to be searchable through the member list.  If it is possible can someone please direct me as to where to start off with this little project I would like to do.
Title: Re: Custom Profile Field Mod
Post by: winrules on May 02, 2006, 08:09:52 PM
Quote from: Captain_Morrigan on May 02, 2006, 06:17:11 PM
Yes, I even tried enabling basic HTML to see if that was the problem.

This is what it looks like with disabled parseBBC
http://test.enchantinge.com/index.php?topic=2.0
I'm conffussed. Are you jusing 2 different fields?


Quote from: timkenmaster on May 02, 2006, 06:44:26 PM
You know what I would love to see added to this mod? That would be the feilds have an option to be searchable through the member list.  If it is possible can someone please direct me as to where to start off with this little project I would like to do.
I've been trying to do this, but there are still some problems wiht it.
Title: Re: Custom Profile Field Mod
Post by: Archy on May 03, 2006, 12:55:08 AM
Quote from: winrules on May 02, 2006, 04:35:23 PM
Quote from: Archy on May 02, 2006, 12:52:18 AM
Quote from: winrules on May 01, 2006, 03:50:43 PM
Quote from: elnismo on April 30, 2006, 03:54:14 PM
of course! both actions already taken.
you added in the code wrong then.



Quote from: Archy on May 01, 2006, 06:36:26 AM
hi .. i have used this mod with a text field and it works great..
but i found when i added another field..  a selection field .. that can only be edited by admin.. and not shown on the register screen.. that a new user cannot register because they havent filled in the selection field.

in other words the field is being treated as forced even though it isnt being displayed on the new user rego screen and is set to admin edit only.
has this happened to anyone else?

here are the settings..  using version 2.14 of the custom profile mod.

field type: selection box

Show in profile?  y
Show in posts?   y
Parse BBC?   y
Field ID   cp2
Add a horizontal rule before field in profile? n 
Show field on registration?  Don't Show   
Only allow admins to edit field?   y
Only allow admins to view field?   n


EDIT:  found errors in SMF error log.

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 306

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 324

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 324

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 342

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 342

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 306


etc...
can I have a link to your site?
also with the errors when do they happen?

yes sure..  the link is http://gwz.no-ip.org (http://gwz.no-ip.org)

Im new at this.. and keeping an eye on the error logs is a lesson i have just learnt.
so i dont know what i was doing when they happened.
The board went for 5 or 6 days with nobody being able to register before i realised.
I have turned the offending field into a text field which has made it work properly..
of course this doesnt solve the problem of having a selection box field.

i installed the mod automatically using the package installer..  it installed clean to my knowledge.. there were no visible errors.

i look forward to your response :)
can you try recreating the field?

yes i did that.. no good..
Title: Re: Custom Profile Field Mod
Post by: ChocoboXV on May 03, 2006, 12:46:48 PM
Don't know if you're still wanting these reports, but here's what I'm getting.

::Error::
2.     Execute Modification     ./Themes/default/Profile.template.php     Test failed

::Installed Mods::
1.     Ventrilo Mod      1.0      [ Apply Mod ]  [ List Files ]  [ Delete ]
2.    Enchanced post template    1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
3.    Custom Profile Mod    2.14    [ Uninstall ] [ List Files ] [ Delete ]
4.    SMF 1.0.7 / 1.1 RC2 Update    1.0    [ Uninstall ] [ List Files ] [ Delete ]

The Ventrilo Mod is the one that was conflicting on my setup.  I uninstalled it and then reinstalled the custrom profile mod and it worked just fine.  So you might want to look into what the ventrilo mod is doing, or post that somewhere saying it's not compatable.
Title: Re: Custom Profile Field Mod
Post by: Captain_Morrigan on May 03, 2006, 03:20:20 PM
Quote from: winrules on May 02, 2006, 08:09:52 PM
I'm conffussed. Are you jusing 2 different fields?

Yes, I need to use two different fields to open and close the information.

Field one: Open the information=[b][i]Morrigan Speaks...
Field two: Close the information=She said as she drifted off to sleep[/i][/b]

And anything in between is formatted accordingly (in this example it would be Bold and Italics) but I don't want to update the server every time (as in all of that users posts) I thnk it should just pull from their information.
Title: Re: Custom Profile Field Mod
Post by: winrules on May 03, 2006, 03:47:50 PM
Quote from: Archy on May 03, 2006, 12:55:08 AM
Quote from: winrules on May 02, 2006, 04:35:23 PM
Quote from: Archy on May 02, 2006, 12:52:18 AM
Quote from: winrules on May 01, 2006, 03:50:43 PM
Quote from: elnismo on April 30, 2006, 03:54:14 PM
of course! both actions already taken.
you added in the code wrong then.



Quote from: Archy on May 01, 2006, 06:36:26 AM
hi .. i have used this mod with a text field and it works great..
but i found when i added another field..  a selection field .. that can only be edited by admin.. and not shown on the register screen.. that a new user cannot register because they havent filled in the selection field.

in other words the field is being treated as forced even though it isnt being displayed on the new user rego screen and is set to admin edit only.
has this happened to anyone else?

here are the settings..  using version 2.14 of the custom profile mod.

field type: selection box

Show in profile?  y
Show in posts?   y
Parse BBC?   y
Field ID   cp2
Add a horizontal rule before field in profile? n 
Show field on registration?  Don't Show   
Only allow admins to edit field?   y
Only allow admins to view field?   n


EDIT:  found errors in SMF error log.

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 306

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 324

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 324

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 342

8: Undefined index: CP_type
file: c:\......\ModSettings.php
Line: 342

8: Undefined index: CP
file: c:\......\ModSettings.php
Line: 306


etc...
can I have a link to your site?
also with the errors when do they happen?

yes sure..  the link is http://gwz.no-ip.org (http://gwz.no-ip.org)

Im new at this.. and keeping an eye on the error logs is a lesson i have just learnt.
so i dont know what i was doing when they happened.
The board went for 5 or 6 days with nobody being able to register before i realised.
I have turned the offending field into a text field which has made it work properly..
of course this doesnt solve the problem of having a selection box field.

i installed the mod automatically using the package installer..  it installed clean to my knowledge.. there were no visible errors.

i look forward to your response :)
can you try recreating the field?

yes i did that.. no good..
can you try reinstalling?


Quote from: ChocoboXV on May 03, 2006, 12:46:48 PM
Don't know if you're still wanting these reports, but here's what I'm getting.

::Error::
2.     Execute Modification     ./Themes/default/Profile.template.php     Test failed

::Installed Mods::
1.     Ventrilo Mod      1.0      [ Apply Mod ]  [ List Files ]  [ Delete ]
2.    Enchanced post template    1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
3.    Custom Profile Mod    2.14    [ Uninstall ] [ List Files ] [ Delete ]
4.    SMF 1.0.7 / 1.1 RC2 Update    1.0    [ Uninstall ] [ List Files ] [ Delete ]

The Ventrilo Mod is the one that was conflicting on my setup.  I uninstalled it and then reinstalled the custrom profile mod and it worked just fine.  So you might want to look into what the ventrilo mod is doing, or post that somewhere saying it's not compatable.

It's just editing the same piece of code that this mod is looking for.


Quote from: Captain_Morrigan on May 03, 2006, 03:20:20 PM
Quote from: winrules on May 02, 2006, 08:09:52 PM
I'm conffussed. Are you jusing 2 different fields?

Yes, I need to use two different fields to open and close the information.

Field one: Open the information=[b][i]Morrigan Speaks...
Field two: Close the information=She said as she drifted off to sleep[/i][/b]

And anything in between is formatted accordingly (in this example it would be Bold and Italics) but I don't want to update the server every time (as in all of that users posts) I thnk it should just pull from their information.
sorry but you won't be able to do that with this mod.
Title: Re: Custom Profile Field Mod
Post by: Captain_Morrigan on May 03, 2006, 06:07:14 PM
I was curious if you knew how, thanks anyways.
Title: Re: Custom Profile Field Mod
Post by: Archy on May 03, 2006, 11:05:42 PM
this problem has persisted since the previous version..  i uninstalled that and installed this one (2.14)..  the problem still there..  can u tell me if im the only one with this problem?  to give me an idea if it's the software or me that has the problem...

Title: Re: Custom Profile Field Mod
Post by: Harzem on May 04, 2006, 12:18:21 PM
winrules, can you help me upgrade?

I've translated your mod, and the button labels and so are hard coded to your mod. When I want to upgrade, the package manager can't do it.

Also, you use very long parts of code in your upgrade packages. Can you more specific when you prepare an upgrade package? I need to alter almost the whole file to apply an upgrade. I usually have more than one parts of the files modified, which usually cause fails in your mod. But in fact your upgrade packages can be much smaller, and easy to upgrade for other languages or mods.

I'm trying to upgrade from 2.12 to 2.14 and I fail because of these factors.

You can see my Board Viewers Mod installation package. It searchs for very specific codes, not very long parts of codes.
Title: Re: Custom Profile Field Mod
Post by: winrules on May 04, 2006, 03:56:17 PM
Quote from: Archy on May 03, 2006, 11:05:42 PM
this problem has persisted since the previous version..  i uninstalled that and installed this one (2.14)..  the problem still there..  can u tell me if im the only one with this problem?  to give me an idea if it's the software or me that has the problem...


when do you get those errors?


Quote from: HarzeM on May 04, 2006, 12:18:21 PM
winrules, can you help me upgrade?

I've translated your mod, and the button labels and so are hard coded to your mod. When I want to upgrade, the package manager can't do it.

Also, you use very long parts of code in your upgrade packages. Can you more specific when you prepare an upgrade package? I need to alter almost the whole file to apply an upgrade. I usually have more than one parts of the files modified, which usually cause fails in your mod. But in fact your upgrade packages can be much smaller, and easy to upgrade for other languages or mods.

I'm trying to upgrade from 2.12 to 2.14 and I fail because of these factors.

You can see my Board Viewers Mod installation package. It searchs for very specific codes, not very long parts of codes.
I will put the text in language files shortly :) As far as the upgrade package, you should be able to just find and replace all the text strings in the file. I know what you are talking about with long strings in the upgrade package, but it makes it much easier for me when making upgrade packages for multiple version.
Title: Re: Custom Profile Field Mod
Post by: Harzem on May 04, 2006, 04:19:01 PM
Quote from: winrules on May 04, 2006, 03:56:17 PM
you should be able to just find and replace all the text strings in the file.

I can't, because I have modified your code for translation, so they no longer match.

And also, I can't find many codes due to template modifications. I will give a picture of my register page:
(http://img244.imageshack.us/img244/5220/login5tx.th.gif) (http://img244.imageshack.us/my.php?image=login5tx.gif)

Believe or not, this is RC2 default theme. Think about my manuel modification to the theme, and how difficult it is for me to upgrade your package now :)
Title: Re: Custom Profile Field Mod
Post by: winrules on May 04, 2006, 04:27:51 PM
Quote from: HarzeM on May 04, 2006, 04:19:01 PM
Quote from: winrules on May 04, 2006, 03:56:17 PM
you should be able to just find and replace all the text strings in the file.

I can't, because I have modified your code for translation, so they no longer match.

And also, I can't find many codes due to template modifications. I will give a picture of my register page:
(http://img244.imageshack.us/img244/5220/login5tx.th.gif) (http://img244.imageshack.us/my.php?image=login5tx.gif)

Believe or not, this is RC2 default theme. Think about my manuel modification to the theme, and how difficult it is for me to upgrade your package now :)
HarzeM, I know this would be hard to do. I will put the text in language files in the next minute version. It would be preety much impossible to implement custom fields on registration with that template without modifying the mod's code.
Title: Re: Custom Profile Field Mod
Post by: Harzem on May 04, 2006, 04:34:15 PM
Thanks for that language implementation.

The theme I sent already has your mod. The last textarea is yours, but I can't upgrade this file to 2.14 :)

Also, more specific upgrade packages would be great :) Or, can you do me a favor and make a 2.12 to last version upgrader ;)
Title: Re: Custom Profile Field Mod
Post by: winrules on May 04, 2006, 04:35:30 PM
Quote from: HarzeM on May 04, 2006, 04:34:15 PM
Thanks for that language implementation.

The theme I sent already has your mod. The last textarea is yours, but I can't upgrade this file to 2.14 :)

Also, more specific upgrade packages would be great :) Or, can you do me a favor and make a 2.12 to last version upgrader ;)
Isn't there already one?
Title: Re: Custom Profile Field Mod
Post by: Harzem on May 04, 2006, 04:40:27 PM
Quote from: winrules on May 04, 2006, 04:35:30 PM
Isn't there already one?

Yes, but it can't upgrade my template, since it can't find the codes.

Anyway, can you use more specific upgrade instructions for your new version, or only for 2.12 upgrader? :) Am I driving you mad?

Title: Re: Custom Profile Field Mod
Post by: winrules on May 04, 2006, 08:24:06 PM
Quote from: HarzeM on May 04, 2006, 04:40:27 PM
Quote from: winrules on May 04, 2006, 04:35:30 PM
Isn't there already one?

Yes, but it can't upgrade my template, since it can't find the codes.

Anyway, can you use more specific upgrade instructions for your new version, or only for 2.12 upgrader? :) Am I driving you mad?


You know what, I think I might just rewrite the entire mod (almost) and put everything in one file, so in the templates all I have to have is a call to the function (and a foreach loop). That will make things a heck of a lot easier for both of us.
Title: Re: Custom Profile Field Mod
Post by: NEOhidra on May 05, 2006, 07:48:48 AM
i have 1 question. my custom Fields cannot show right cyrillic alphabet. Example - Kiril (Кирил) is shown as Кир&#. Is this problem from my host or?
Title: Re: Custom Profile Field Mod
Post by: timkenmaster on May 05, 2006, 02:36:02 PM
How the heck do you delete a field?
Title: Re: Custom Profile Field Mod
Post by: winrules on May 05, 2006, 03:39:08 PM
Quote from: NEOhidra on May 05, 2006, 07:48:48 AM
i have 1 question. my custom Fields cannot show right cyrillic alphabet. Example - Kiril (Кирил) is shown as Кир&#. Is this problem from my host or?
Is "Кирил" in the name field of a cutom profile field or in the data a user enters?



Quote from: timkenmaster on May 05, 2006, 02:36:02 PM
How the heck do you delete a field?
You can't delete them, just disable them.
Title: Re: Custom Profile Field Mod
Post by: Teknomancer on May 06, 2006, 03:06:07 AM
Is there no way to restrict the number of characters that is entered in the "Text" field through this mod?

Since i'm showing the text in Posts it would be nice if I could restrict the length...
Title: Re: Custom Profile Field Mod
Post by: winrules on May 06, 2006, 08:07:45 AM
Quote from: Teknomancer on May 06, 2006, 03:06:07 AM
Is there no way to restrict the number of characters that is entered in the "Text" field through this mod?

Since i'm showing the text in Posts it would be nice if I could restrict the length...

not right now.
Title: Re: Custom Profile Field Mod
Post by: winrules on May 07, 2006, 10:41:47 AM
Version 3.0 has been released! Although there are no new features in it from 2.14, upgrading is strongly recommended. In this release, a bug is fixed with check boxes, everything is moved into a central file for easier upgrades, and language files are now used. Since so many things have changed there is no upgrade package, so you will have to uninstall your current version and install 3.0. You won't lose any data.
Title: Re: Custom Profile Field Mod
Post by: NEOhidra on May 07, 2006, 10:43:21 AM
Кирил is data that users enter. It look like this:
(http://img509.imageshack.us/img509/8185/customfields8kg.png) (http://imageshack.us)
Title: Re: Custom Profile Field Mod
Post by: winrules on May 07, 2006, 10:49:38 AM
Quote from: NEOhidra on May 07, 2006, 10:43:21 AM
Кирил is data that users enter. It look like this:
(http://img509.imageshack.us/img509/8185/customfields8kg.png) (http://imageshack.us)
That looks like a problem  in the way SMF handles profile fields, not in this mod, because I tried it in different fields and it didn't work either. I know there are some internationalization issues with RC2.
Title: Re: Custom Profile Field Mod
Post by: Harzem on May 07, 2006, 11:38:34 AM
Great job, winrules. The mod is much better coded now :)
Title: Re: Custom Profile Field Mod
Post by: NEOhidra on May 07, 2006, 01:16:02 PM
Ok winrules - thank you for the quick reply
Title: Re: Custom Profile Field Mod
Post by: Søren Bjerg on May 07, 2006, 01:49:11 PM
Getting a couple of entires in the error log:

Quote[...]
http://forums.runehordes.info/index.php?action=featuresettings;sa=profile;sesc

8: Use of undefined constant CustomProfile - assumed 'CustomProfile'
File: /customers/xxx/httpd.www/forums/Sources/CustomProfile.php
Line: 327


Quote[...]
http://forums.runehordes.info/index.php?action=featuresettings;sa=profile;cp=<id>

8: Use of undefined constant CustomProfile - assumed 'CustomProfile'
File: /customers/xxx/httpd.www/forums/Sources/CustomProfile.php
Line: 327

Doubt it's anything critical, but just for good measure :).
Title: Re: Custom Profile Field Mod
Post by: Harzem on May 07, 2006, 02:02:57 PM
The line

loadLanguage(CustomProfile);

should be

loadLanguage('CustomProfile');

There are two lines containing this code. I think winrules will update it soon :)
Title: Re: Custom Profile Field Mod
Post by: winrules on May 07, 2006, 02:29:22 PM
Quote from: HarzeM on May 07, 2006, 02:02:57 PM
The line

loadLanguage(CustomProfile);

should be

loadLanguage('CustomProfile');

There are two lines containing this code. I think winrules will update it soon :)
err wops...will release update ASAP :)
Title: Re: Custom Profile Field Mod
Post by: winrules on May 07, 2006, 02:36:16 PM
Version 3.01 has been released! This version fixes a bug which results in "8: Use of undefined constant CustomProfile - assumed 'CustomProfile'" errors in the error log.
Title: Re: Custom Profile Field Mod
Post by: GJ-tje on May 07, 2006, 07:23:30 PM
As I have requested before, is it possible to make a (adjustable) fixed width for the text(area) type for custom profile fields? Because they can now sometime screw a profile up...

And about my other request, about the 'editor' for BBC? I really think it would make a needo feature for the mod itself and I also think that more users will try your mod!
I meant this 'editor':
(http://www.flipdesign.nl/aKC/editbox.png)
Title: Re: Custom Profile Field Mod
Post by: winrules on May 07, 2006, 07:44:22 PM
Quote from: GJ-tje on May 07, 2006, 07:23:30 PM
As I have requested before, is it possible to make a (adjustable) fixed width for the text(area) type for custom profile fields? Because they can now sometime screw a profile up...

And about my other request, about the 'editor' for BBC? I really think it would make a needo feature for the mod itself and I also think that more users will try your mod!
I meant this 'editor':
(http://www.flipdesign.nl/aKC/editbox.png)
There were no new features in 3.0. I will consider all of those things for 3.1.
Title: Re: Custom Profile Field Mod
Post by: Søren Bjerg on May 08, 2006, 08:47:08 AM
Not to continually be a pest :(, but is anyone else having problems with getting the fields shown in posts?

Just noticed the one field I had set such no longer displays... only in profile.

Tried toggling display on/off and recreating it, but to no avail.

Seems to work joyfully otherwise ;) 8).
Title: Re: Custom Profile Field Mod
Post by: Harzem on May 08, 2006, 01:40:51 PM
winrules, many users (also in my own language support board) keep asking how to delete a field. I don't want to keep saying "you can't!"

Can you put a simple button near the fields to "delete" them and also a checkbox to "empty already filled user settings"? If you want, I can still help you on these :) Not because you can't do, but in a case you don't have enough time yet :)
Title: Re: Custom Profile Field Mod
Post by: dracomiconia on May 08, 2006, 03:00:50 PM
A version for 1.0x has been definitely forgotten?

Just to know.... :-\
Title: Re: Custom Profile Field Mod
Post by: winrules on May 08, 2006, 04:41:18 PM
Quote from: Søren Bjerg on May 08, 2006, 08:47:08 AM
Not to continually be a pest :(, but is anyone else having problems with getting the fields shown in posts?

Just noticed the one field I had set such no longer displays... only in profile.

Tried toggling display on/off and recreating it, but to no avail.

Seems to work joyfully otherwise ;) 8).
Do you use a custom theme?


Quote from: HarzeM on May 08, 2006, 01:40:51 PM
winrules, many users (also in my own language support board) keep asking how to delete a field. I don't want to keep saying "you can't!"

Can you put a simple button near the fields to "delete" them and also a checkbox to "empty already filled user settings"? If you want, I can still help you on these :) Not because you can't do, but in a case you don't have enough time yet :)
I could just do a dbquery to delete the fields, but then it would be broken (since I use a while (isset($modSettings['enable_CPx'])) after the field you deleted. There's several ways to get around it, I could put a counter and it would loop through each value up to that (but that would be slower), I could bump everything down, but that woudl be hard and might confuse users (unless I totally dropped the field number from the interface, how do you thing I should do it?


Quote from: dracomiconia on May 08, 2006, 03:00:50 PM
A version for 1.0x has been definitely forgotten?

Just to know.... :-\
I don't think I'm going to port it, and nobody else has voulontered to do it, so for now there's not going to be one. :(
Title: Re: Custom Profile Field Mod
Post by: Søren Bjerg on May 08, 2006, 05:06:56 PM
Quote from: winrules on May 08, 2006, 04:41:18 PM
Quote from: Søren Bjerg on May 08, 2006, 08:47:08 AM
Not to continually be a pest :(, but is anyone else having problems with getting the fields shown in posts?

Just noticed the one field I had set such no longer displays... only in profile.

Tried toggling display on/off and recreating it, but to no avail.

Seems to work joyfully otherwise ;) 8).
Do you use a custom theme? [...]
I use the default one (the one also used here).

Just struck me as odd it suddenly didn't work after installing v3.0.

Hmm... hang on, will check the Template and see if changes were actually made to it.
EDIT: Was not an issue... the inclusion of the CustomProfile Source file is present as is the DisplayFieldPosts call.
Title: Re: Custom Profile Field Mod
Post by: Harzem on May 08, 2006, 05:09:41 PM
I've also got a report from a user about not being able to show a field in posts. I've looked at it as an admin, and the settings were proper.
Title: Re: Custom Profile Field Mod
Post by: winrules on May 08, 2006, 05:13:14 PM
Quote from: HarzeM on May 08, 2006, 05:09:41 PM
I've also got a report from a user about not being able to show a field in posts. I've looked at it as an admin, and the settings were proper.
I'll look into it.
Title: Re: Custom Profile Field Mod
Post by: Harzem on May 08, 2006, 05:13:53 PM
It was a text field (not textarea), if you need it.
Title: Re: Custom Profile Field Mod
Post by: winrules on May 08, 2006, 05:16:44 PM
Quote from: HarzeM on May 08, 2006, 05:13:53 PM
It was a text field (not textarea), if you need it.
Doesn't matter, nothing will work, $message isn't getting parsed through to the customprofile.php, will release update ASAP :)
Title: Re: Custom Profile Field Mod
Post by: winrules on May 08, 2006, 05:43:24 PM
Version 3.02 has been released! This version fixes a bug with fields not being able to be displayed on posts.
Title: Re: Custom Profile Field Mod
Post by: Deadpool on May 08, 2006, 05:51:30 PM
Would there be a way to enable HTML parsing for a field?
Title: Re: Custom Profile Field Mod
Post by: winrules on May 08, 2006, 05:54:36 PM
Quote from: Deadpool on May 08, 2006, 05:51:30 PM
Would there be a way to enable HTML parsing for a field?
wouldn't that be a security risk?
Title: Re: Custom Profile Field Mod
Post by: Deadpool on May 08, 2006, 05:57:27 PM
If everyone was able to do yes, but I just want the admin to be able to do it. So I could just make that field to be edited by admins only right?
Title: Re: Custom Profile Field Mod
Post by: winrules on May 08, 2006, 05:58:10 PM
if you enable bbc parsing and [html] use tags I think it might work
Title: Re: Custom Profile Field Mod
Post by: Deadpool on May 08, 2006, 06:00:15 PM
Well, the code I want to use isn't available in bbcode.
Title: Re: Custom Profile Field Mod
Post by: winrules on May 08, 2006, 06:01:46 PM
Quote from: Deadpool on May 08, 2006, 06:00:15 PM
Well, the code I want to use isn't available in bbcode.
arg, I meant to say [html] tags but it got edited out of my post because I forgot to put [nobbc] tags around it :P
Title: Re: Custom Profile Field Mod
Post by: Deadpool on May 08, 2006, 06:05:47 PM
Oh, I've already tried that as well. The html bbcode only allows certain html.
Title: Re: Custom Profile Field Mod
Post by: winrules on May 08, 2006, 08:39:14 PM
Quote from: Deadpool on May 08, 2006, 06:05:47 PM
Oh, I've already tried that as well. The html bbcode only allows certain html.
not when your admin...try[html]<insertadvancedhtmlhere>[/html]
Title: Re: Custom Profile Field Mod
Post by: NEOhidra on May 09, 2006, 03:21:50 AM
i solved my problem custom fields - just change type of encoding in Themes\default\languages\Install.english.php. I use English translation but write with Cyrillic and when encoding is cp-1251 everything is fine - Kiril is shown as Кирил.
Title: Re: Custom Profile Field Mod
Post by: Søren Bjerg on May 09, 2006, 07:40:04 AM
Quote from: winrules on May 08, 2006, 05:43:24 PM
Version 3.02 has been released! This version fixes a bug with fields not being able to be displayed on posts.
Good work 8).
Title: Re: Custom Profile Field Mod
Post by: devdevil on May 11, 2006, 02:51:45 AM
any chance for 1.0.7 ??
Title: Re: Custom Profile Field Mod
Post by: JamesA on May 12, 2006, 06:33:57 AM
Great Mod this, keep up the good work!

Just wondering where the data is stored, ive had a look through the database and nothing jumps out at me. The reason i wanted to know was i have someone writing an add-on for my site and i want it to be able to update one of the custom fields without going through the normal edit profile screens.

Cheers!
Title: Re: Custom Profile Field Mod
Post by: winrules on May 12, 2006, 03:38:39 PM
Quote from: devdevil on May 11, 2006, 02:51:45 AM
any chance for 1.0.7 ??

probly not.


Quote from: JamesA on May 12, 2006, 06:33:57 AM
Great Mod this, keep up the good work!

Just wondering where the data is stored, ive had a look through the database and nothing jumps out at me. The reason i wanted to know was i have someone writing an add-on for my site and i want it to be able to update one of the custom fields without going through the normal edit profile screens.

Cheers!
in the themes table. Also look in profile.php, there are a few functions you might look into there also.
Title: Re: Custom Profile Field Mod
Post by: winrules on May 15, 2006, 05:16:57 PM
Version 3.1 has been release! This version adds an option to reorder and delete fields, makes some small changes in the admin interface, adds field descriptions, makes the text for the admin tab be stored in language files, adds some more options for horizontal rules, and makes fields enabled by default when you create them.

Note to people wanting to update translated version s:
-$txt['co_optinput'] has been renamed to $txt['cp_optinput']
-$txt['cp_enable'] has changed
-$txt['cp_hrule'] has changed
-All strings after $txt['cp_regerror'] are new
Title: Re: Custom Profile Field Mod
Post by: Harzem on May 15, 2006, 06:07:11 PM
Nice to hear the new version, winrules :)
Title: Re: Custom Profile Field Mod
Post by: Søren Bjerg on May 16, 2006, 07:03:28 AM
Great new version - good work!
Title: Re: Custom Profile Field Mod
Post by: Søren Bjerg on May 16, 2006, 10:43:28 AM
One thing; when clicking 'Add an option' you are redirected to...

/.index.php?action=featuresettings;sa=profile;cp=

...with nothing but a 'Save' button (an option is still added).
Title: Re: Custom Profile Field Mod
Post by: winrules on May 16, 2006, 04:49:43 PM
Quote from: Søren Bjerg on May 16, 2006, 10:43:28 AM
One thing; when clicking 'Add an option' you are redirected to...

/.index.php?action=featuresettings;sa=profile;cp=

...with nothing but a 'Save' button (an option is still added).
Will release bug fix ASAP :)
Title: Re: Custom Profile Field Mod
Post by: winrules on May 16, 2006, 04:59:45 PM
Version 3.11 has been released! This version fixes a bug with adding options and a bug with moving selection box fields.
Title: Re: Custom Profile Field Mod
Post by: borbosha on May 18, 2006, 01:18:56 PM
I have added the correct code to my theme template file and am getting the fields in my profile but they won't show up on posts. Could anyone explain why this is happening?

I am using 1.1RC2 with TP0.8.6 and a custom theme (with modified display.template.php).
Title: Re: Custom Profile Field Mod
Post by: winrules on May 18, 2006, 03:51:11 PM
Quote from: borbosha on May 18, 2006, 01:18:56 PM
I have added the correct code to my theme template file and am getting the fields in my profile but they won't show up on posts. Could anyone explain why this is happening?

I am using 1.1RC2 with TP0.8.6 and a custom theme (with modified display.template.php).
Could you pm me your theme's display.template.php? Also note that you have to set them to display in posts in the field settings.
Title: Re: Custom Profile Field Mod
Post by: domipedro on May 18, 2006, 09:44:11 PM
hi winrules

First of all, cheer for this MOD.
I it board translated into French,and it functions perfectly.
I board right summer to oblige to change in the file "english.php", FIELDNUMBER by FIELDNAME.
Because in the panel of administration, I had "Enable Custom Profile Field FIELNUMBER" instead of "Enable Custom Profile Field 1"

I would like to know if in "Selection Box" it is possible to make view a choice of images instead of the text?
thank
Title: Re: Custom Profile Field Mod
Post by: winrules on May 19, 2006, 03:45:57 PM
Quote from: domipedro on May 18, 2006, 09:44:11 PM
hi winrules

First of all, cheer for this MOD.
I it board translated into French,and it functions perfectly.
I board right summer to oblige to change in the file "english.php", FIELDNUMBER by FIELDNAME.
Because in the panel of administration, I had "Enable Custom Profile Field FIELNUMBER" instead of "Enable Custom Profile Field 1"

I would like to know if in "Selection Box" it is possible to make view a choice of images instead of the text?
thank
I don't quite understand what you mean with the language files.

With the selection boxes, you could use <img> tags in the options but I'm not sure if that will work.
Title: Re: Custom Profile Field Mod
Post by: taucher on May 23, 2006, 04:12:31 PM
I have some custom fields in 1.0.7 made with the tutorial of [unknown].
is it possible to convert this fields into this mod? so that all the profiles are up to date when i use our mod?
(i will upgrade to smf 1.1 RC2 soon and want do keep my custom fields)
Title: Re: Custom Profile Field Mod
Post by: winrules on May 23, 2006, 04:25:19 PM
Quote from: taucher on May 23, 2006, 04:12:31 PM
I have some custom fields in 1.0.7 made with the tutorial of [unknown].
is it possible to convert this fields into this mod? so that all the profiles are up to date when i use our mod?
(i will upgrade to smf 1.1 RC2 soon and want do keep my custom fields)
Sure, just give the field ID whatever you were using for the tutorial.

Example:
If you are using

default_options[real_name]

you would make the field ID "real_name" (without quotes).
Title: Re: Custom Profile Field Mod
Post by: taucher on May 24, 2006, 03:34:07 AM
Thanks - thats wonderful and easy ;)
Title: Re: Custom Profile Field Mod
Post by: john109 on May 24, 2006, 08:37:12 AM
Hi Winrules,

I currently have v2.13 installed of this mod and haven't had any problems so should I upgrade to the current version?  Do I have to uninstall 2.13 and then install 3.11 or can I just upgrade?

Thanks
Title: Re: Custom Profile Field Mod
Post by: taucher on May 24, 2006, 12:35:58 PM
now i have installed the mod on a local testsite, install caused no problem, but i cant insert any data in the fields, because they are not shown. what could be the problem? in the admincenter i´m able to create the fields but they are not shown to fill in in the profile fields. somebody knows the reason?
Title: Re: Custom Profile Field Mod
Post by: winrules on May 24, 2006, 04:04:00 PM
Quote from: john109 on May 24, 2006, 08:37:12 AM
Hi Winrules,

I currently have v2.13 installed of this mod and haven't had any problems so should I upgrade to the current version?  Do I have to uninstall 2.13 and then install 3.11 or can I just upgrade?

Thanks
You could stay with 2.13, but there are many bug fixes and new features in 3.11. You would have to uninstall and then install, as there is no upgrade package, but you wouldn't lose any data.


Quote from: taucher on May 24, 2006, 12:35:58 PM
now i have installed the mod on a local testsite, install caused no problem, but i cant insert any data in the fields, because they are not shown. what could be the problem? in the admincenter i´m able to create the fields but they are not shown to fill in in the profile fields. somebody knows the reason?
Are you usre the fields are enabled? Also, do you use a custom theme?
Title: Re: Custom Profile Field Mod
Post by: NND on May 24, 2006, 06:14:38 PM
I' ve installed this mod and it worked excellent untill today :( :(

I deleted it and I tried to intall it again, but this is happening:

   Type     Action     Description
1.    Execute Modification    modification.xml    Modification parse error
2.    Execute Modification    -    Modification parse error
3.    Extract File    ./Sources/CustomProfile.php    
4.    Extract File    ./Themes/default/languages/CustomProfile.english.php

Other moods, I' ve installed:

   Mod Name     Version     
1.    Custom Profile Field Mod    3.11    [ Apply Mod ] [ List Files ] [ Delete ]
2.    Award Mod    1.1    [ Uninstall ] [ List Files ] [ Delete ]
3.    Password Protect Boards    0.1    [ Uninstall ] [ List Files ] [ Delete ]
4.    nwsw.nwswAdminAttachAnything    1.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    Attachments Mod    1.1    [ Uninstall ] [ List Files ] [ Delete ]
6.    More HTML tags    1.0.3    [ Uninstall ] [ List Files ] [ Delete ]
7.    Enhanced Quick Reply    TBA    [ Uninstall ] [ List Files ] [ Delete ]
Title: Re: Custom Profile Field Mod
Post by: winrules on May 24, 2006, 07:51:29 PM
Can you try re-downloading it?
Title: Re: Custom Profile Field Mod
Post by: NND on May 25, 2006, 10:07:22 AM
I have already tried that  :( :(

Now I see that I cannot install any other mod or theme

WHAT' S HAPPENING?
Title: Re: Custom Profile Field Mod
Post by: Kindred on May 25, 2006, 10:28:31 AM
NND...   if you just deleted the package without UNINSTALLING the mod first, then that would explain your errors...   the modifications are still present in your code. Deleting the package does not remove the mod. Only "Uninstall" removes the mod...  and only if no further mods have made changes to the same code.
Title: Re: Custom Profile Field Mod
Post by: NND on May 25, 2006, 02:20:00 PM
Yes, I know this. First, I' ve unistalled the mod and then I deleted it...

I think that I will upload the forum again
Title: Re: Custom Profile Field Mod
Post by: NND on May 25, 2006, 04:00:04 PM
Does anyone know where the packages are stored in the database?

(http://i78.photobucket.com/albums/j97/nndth/phpmyadmin.gif)

look at the left column

------------------------------------

Or, I have to download again the forum and upload again the files?
Title: Re: Custom Profile Field Mod
Post by: winrules on May 25, 2006, 04:01:48 PM
Quote from: NND on May 25, 2006, 04:00:04 PM
Does anyone know where the packages are stored in the database?

(http://i78.photobucket.com/albums/j97/nndth/phpmyadmin.gif)

look at the left column

------------------------------------

Or, I have to download again the forum and upload again the files?
Packages aern't stored in the database...There stored in the /Packages directory.
Title: Re: Custom Profile Field Mod
Post by: NND on May 25, 2006, 04:25:03 PM
ok, thanx, I' ll fix it tomorrow..
Title: Re: Custom Profile Field Mod
Post by: taucher on May 26, 2006, 03:10:44 AM
Quote from: winrules on May 24, 2006, 04:04:00 PM
Quote from: taucher on May 24, 2006, 12:35:58 PM
now i have installed the mod on a local testsite, install caused no problem, but i cant insert any data in the fields, because they are not shown. what could be the problem? in the admincenter i´m able to create the fields but they are not shown to fill in in the profile fields. somebody knows the reason?
Are you usre the fields are enabled? Also, do you use a custom theme?
This was the problem - i used a custom thema (a copy of the default) and i did not see it. now it runs perfectly ;)
Title: Re: Custom Profile Field Mod
Post by: Piwaille on May 28, 2006, 03:52:30 PM
Hello

I've got a lot of error like :
Quote8: Undefined index: CP3
Fichier: /..../www/forum/Themes/default/Profile.template.php (eval?)
Ligne: 1636


also the error Undefined index: member

does the new version fixe that ?

I'm using 1.1RC2 + Custom Profile Mod      2.13
Nothing seems wrong (the custom field work fine) but the mod is listed twice in my control panel.
Title: Re: Custom Profile Field Mod
Post by: winrules on May 28, 2006, 04:56:38 PM
Quote from: piwaille on May 28, 2006, 03:52:30 PM
Hello

I've got a lot of error like :
Quote8: Undefined index: CP3
Fichier: /..../www/forum/Themes/default/Profile.template.php (eval?)
Ligne: 1636


also the error Undefined index: member

does the new version fixe that ?

I'm using 1.1RC2 + Custom Profile Mod      2.13
Nothing seems wrong (the custom field work fine) but the mod is listed twice in my control panel.
Yes, that was a bug in versions <2.14, upgradeing to the current version will fix it.
Title: Re: Custom Profile Field Mod
Post by: Piwaille on May 29, 2006, 06:50:48 AM
Quote from: winrules on May 28, 2006, 04:56:38 PM
Yes, that was a bug in versions <2.14, upgradeing to the current version will fix it.

tx very much

I upgraded this morning so I can't tell you the result
But I can give you my translation to CustomProfile.french.php if you'r interested in ?
Title: Re: Custom Profile Field Mod
Post by: winrules on May 29, 2006, 11:05:32 AM
Sure, I'll make a multi-langual version of the mod.
Title: Re: Custom Profile Field Mod
Post by: Piwaille on May 29, 2006, 12:20:56 PM
Quote from: winrules on May 29, 2006, 11:05:32 AM
Sure, I'll make a multi-langual version of the mod.

How can I send you the file ?

I've got a problem.. I think it's because the old version did not uninstall right : on the profil screen every CP field is shown twice :
one before the online/offline button
the second just after

how can I remove this ? (searched in theme/default/profile.template.php but not founded)
which one do I have to remove ?
Title: Re: Custom Profile Field Mod
Post by: winrules on May 29, 2006, 01:29:26 PM
Quote from: piwaille on May 29, 2006, 12:20:56 PM
Quote from: winrules on May 29, 2006, 11:05:32 AM
Sure, I'll make a multi-langual version of the mod.

How can I send you the file ?

I've got a problem.. I think it's because the old version did not uninstall right : on the profil screen every CP field is shown twice :
one before the online/offline button
the second just after

how can I remove this ? (searched in theme/default/profile.template.php but not founded)
which one do I have to remove ?
Can you pm me your profile.template.php?

With the language file you can just paste the contents right here.
Title: Re: Custom Profile Field Mod
Post by: Piwaille on May 29, 2006, 01:58:30 PM
here is my translation :
<?php
// Don't translate FIELDNAME in the below string.
$txt['cp_enable'] = 'activer FIELDNAME';
$txt['cp_text'] = 'Texte';
$txt['cp_textarea'] = 'Zone Texte';
$txt['cp_checkbox'] = 'Check Box';
$txt['cp_selectbox'] = 'Selection';
$txt['cp_type'] = 'Type';
$txt['cp_addfield'] = 'Ajouter un champ';
$txt['cp_name'] = 'Nom';
$txt['cp_profileshow'] = 'Afficher dans le profile ?';
$txt['cp_dontshow'] = 'Ne pas afficher';
$txt['cp_underpostcount'] = 'Afficher sous le compteur de message';
$txt['cp_underimages'] = 'afficher sous l\'image';
$txt['cp_showposts'] = 'Afficher dans les messages ?';
$txt['cp_parsebbc'] = 'traiter BBC?';
$txt['cp_before'] = 'Texte à afficher avant le champ (BBC acceptable)';
$txt['cp_after'] = 'Texte à afficher aprés le champ (BBC acceptable)';
$txt['cp_fieldid'] = 'Champ n°';
$txt['cp_hrule'] = 'ajouter une ligne horizontale avant le champ ?';
$txt['co_optinput'] = 'Saisie facultative';
$txt['cp_forceinput'] = 'Saisie forcée';
$txt['cp_showreg'] = 'Afficher le champ lors de l\'enregistrement';
$txt['cp_adminedit'] = 'Seuls les admins peuvent modifier ?';
$txt['cp_adminview'] = 'Seuls les admins peuvent voir ??';
$txt['cp_recreate'] = 'Re-créer le champ';
$txt['cp_checked'] = 'Texte à afficher lorsque coché';
$txt['cp_notchecked'] = 'Texte à afficher lorsque PAS coché';
$txt['cp_show'] = 'afficher';
// Don't translate OPTIONNUMBER in the below string
$txt['cp_option'] = 'Option OPTIONNUMBER';
$txt['cp_addoption'] = 'Ajouter une option';
$txt['cp_cpfields'] = 'Champ de profile personnalisé';
// Don't translate FIELDNUMBER in the below string
$txt['cp_fieldsettings'] = 'Réglage du champ personalisé n° FIELDNUMBER';
// Don't translate FIELDNAME in the below string
$txt['cp_regerror'] = 'Vous n\'avez pas rempli le champ "FIELDNAME" .';
$txt['cp_moveup'] = '[ vers le Haut ]';
$txt['cp_movedown'] = '[ vers le Bas ]';
$txt['cp_delete'] = '[ Effacer ]';
$txt['cp_unnamed'] = 'Champs sans nom';
$txt['cp_settings'] = '[ Réglages ]';
$txt['cp_hrsummary'] = 'Sur le résumé du Profil';
$txt['cp_hredit'] = 'Sur l\'écran de modification du profil';
$txt['cp_onboth'] = 'Sur les deux';
$txt['cp_desc'] = 'Description du champ';
?>


I've noticed that I haven't seen the 3 last messages... I'll search them


QuoteCan you pm me your profile.template.php?
no I can't... it exceed the max size allowed (65530 cars) :o
Title: Re: Custom Profile Field Mod
Post by: winrules on May 29, 2006, 02:04:50 PM
Quote from: piwaille on May 29, 2006, 01:58:30 PM
here is my translation :
<?php
// Don't translate FIELDNAME in the below string.
$txt['cp_enable'] = 'activer FIELDNAME';
$txt['cp_text'] = 'Texte';
$txt['cp_textarea'] = 'Zone Texte';
$txt['cp_checkbox'] = 'Check Box';
$txt['cp_selectbox'] = 'Selection';
$txt['cp_type'] = 'Type';
$txt['cp_addfield'] = 'Ajouter un champ';
$txt['cp_name'] = 'Nom';
$txt['cp_profileshow'] = 'Afficher dans le profile ?';
$txt['cp_dontshow'] = 'Ne pas afficher';
$txt['cp_underpostcount'] = 'Afficher sous le compteur de message';
$txt['cp_underimages'] = 'afficher sous l\'image';
$txt['cp_showposts'] = 'Afficher dans les messages ?';
$txt['cp_parsebbc'] = 'traiter BBC?';
$txt['cp_before'] = 'Texte à afficher avant le champ (BBC acceptable)';
$txt['cp_after'] = 'Texte à afficher aprés le champ (BBC acceptable)';
$txt['cp_fieldid'] = 'Champ n°';
$txt['cp_hrule'] = 'ajouter une ligne horizontale avant le champ ?';
$txt['co_optinput'] = 'Saisie facultative';
$txt['cp_forceinput'] = 'Saisie forcée';
$txt['cp_showreg'] = 'Afficher le champ lors de l\'enregistrement';
$txt['cp_adminedit'] = 'Seuls les admins peuvent modifier ?';
$txt['cp_adminview'] = 'Seuls les admins peuvent voir ??';
$txt['cp_recreate'] = 'Re-créer le champ';
$txt['cp_checked'] = 'Texte à afficher lorsque coché';
$txt['cp_notchecked'] = 'Texte à afficher lorsque PAS coché';
$txt['cp_show'] = 'afficher';
// Don't translate OPTIONNUMBER in the below string
$txt['cp_option'] = 'Option OPTIONNUMBER';
$txt['cp_addoption'] = 'Ajouter une option';
$txt['cp_cpfields'] = 'Champ de profile personnalisé';
// Don't translate FIELDNUMBER in the below string
$txt['cp_fieldsettings'] = 'Réglage du champ personalisé n° FIELDNUMBER';
// Don't translate FIELDNAME in the below string
$txt['cp_regerror'] = 'Vous n\'avez pas rempli le champ "FIELDNAME" .';
$txt['cp_moveup'] = '[ vers le Haut ]';
$txt['cp_movedown'] = '[ vers le Bas ]';
$txt['cp_delete'] = '[ Effacer ]';
$txt['cp_unnamed'] = 'Champs sans nom';
$txt['cp_settings'] = '[ Réglages ]';
$txt['cp_hrsummary'] = 'Sur le résumé du Profil';
$txt['cp_hredit'] = 'Sur l\'écran de modification du profil';
$txt['cp_onboth'] = 'Sur les deux';
$txt['cp_desc'] = 'Description du champ';
?>


I've noticed that I haven't seen the 3 last messages... I'll search them


QuoteCan you pm me your profile.template.php?
no I can't... it exceed the max size allowed (65530 cars) :o
Thanks for the translation, I will package it up in a little bit.

Can you just pm me the template_summary()  function in profile.templte.php?
Title: Re: Custom Profile Field Mod
Post by: Jixx on June 05, 2006, 04:14:55 AM
Hi!

I've got a problem which makes me perplexed.

I've installed this mod, the latest update, through the packet installer, and it installed just fine, no worry at all. But when I go to the settings and options page, nothing appears, I do not have a new tab like I have seen in screenshots.

Here's what it looks for me:
http://i6.tinypic.com/11ruly0.jpg

I've looked up the code source of the page and a new link does appear in the source, but with no code to make it appear:


<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_first">&nbsp;</td>
<td class="maintab_active_first">&nbsp;</td>
<td valign="top" class="maintab_active_back">
<a href="http://forum.ftmvariations.org/index.php?action=featuresettings;sa=basic;sesc=06da6ba85388baafb356d9d98a8c72e3">Caract&eacute;ristiques du Forum</a>
</td>
<td class="maintab_active_last">&nbsp;</td>
<td valign="top" class="maintab_back">
<a href="http://forum.ftmvariations.org/index.php?action=featuresettings;sa=layout;sesc=06da6ba85388baafb356d9d98a8c72e3">Affichage et Options</a>
</td>
<td valign="top" class="maintab_back">
<a href="http://forum.ftmvariations.org/index.php?action=featuresettings;sa=profile;sesc=06da6ba85388baafb356d9d98a8c72e3"></a>
</td>
<td valign="top" class="maintab_back">
<a href="http://forum.ftmvariations.org/index.php?action=featuresettings;sa=karma;sesc=06da6ba85388baafb356d9d98a8c72e3">Karma</a>
</td>
<td class="maintab_last">&nbsp;</td>
</tr>


And when I copy and paste this new link in my browser, it looks like this:
http://i5.tinypic.com/11ruoac.jpg
Basically nothing.

I've tried uninstalling all my mods, save for the RC2 update, installing the custom profile mod, then all the others, but to no avail.
Here are my installed mods:
http://i6.tinypic.com/11ruop3.jpg

I'm running the SMF Default Theme 1.1 RC2.
Title: Re: Custom Profile Field Mod
Post by: Piwaille on June 05, 2006, 04:53:35 AM
hello

this is because it misses you the french translation....
you have to make a french files and it will appear !  8)
Title: Re: Custom Profile Field Mod
Post by: Jixx on June 05, 2006, 05:12:34 AM
Ooooh ok, thanks!
I had simply updated my language files, didn't look any further duh.

Yeah indeed if I switch the forum to english I can now see the custom profile options in the CP, sweet!

What I did for now was to switch to english to create new fields, then to go back to french.



Title: Re: Custom Profile Field Mod
Post by: taucher on June 07, 2006, 06:40:36 AM
With this mod, i´m able to define custom fields also for the registration. Is it also able to make SMF-Standard-User-Fields necassarry for registration?
Sorry for my bad english.
Title: Re: Custom Profile Field Mod
Post by: winrules on June 07, 2006, 10:38:27 AM
Quote from: taucher on June 07, 2006, 06:40:36 AM
With this mod, i´m able to define custom fields also for the registration. Is it also able to make SMF-Standard-User-Fields necassarry for registration?
Sorry for my bad english.
No, you will have to add them manually in register.template.php.
Title: Re: Custom Profile Field Mod
Post by: Piwaille on June 07, 2006, 02:52:02 PM
Hello

I've got an idea for the next improvement :
It would be to replace "only admin can see" by a select with more choices (or complete with an other check box) for choosing a field being only visible by members
Title: Re: Custom Profile Field Mod
Post by: winrules on June 07, 2006, 03:44:51 PM
Quote from: piwaille on June 07, 2006, 02:52:02 PM
Hello

I've got an idea for the next improvement :
It would be to replace "only admin can see" by a select with more choices (or complete with an other check box) for choosing a field being only visible by members
That will be in next version :)
Title: Re: Custom Profile Field Mod
Post by: GJ-tje on June 09, 2006, 01:51:33 PM
I can't find if it's added, so that's why I am asking this...

Some time I ago, I asked to add a feature for textfields where users can use the editbox, so that they don't have to know the BB code...

(http://www.flipdesign.nl/aKC/editbox.png)
This is an image of what I mean...
Is this added, if not, could it be added, because I think it would make a lot easier for a lot of users!

Many thanks in advance!
Title: Re: Custom Profile Field Mod
Post by: winrules on June 09, 2006, 03:44:49 PM
Quote from: GJ-tje on June 09, 2006, 01:51:33 PM
I can't find if it's added, so that's why I am asking this...

Some time I ago, I asked to add a feature for textfields where users can use the editbox, so that they don't have to know the BB code...

(http://www.flipdesign.nl/aKC/editbox.png)
This is an image of what I mean...
Is this added, if not, could it be added, because I think it would make a lot easier for a lot of users!

Many thanks in advance!
Sorry, but I just don't think many people would use that. If I get requests for it from other users I may add it, but I just don't see many people using it.
Title: Re: Custom Profile Field Mod
Post by: GJ-tje on June 09, 2006, 03:59:28 PM
Quote from: winrules on June 09, 2006, 03:44:49 PM
Quote from: GJ-tje on June 09, 2006, 01:51:33 PM
I can't find if it's added, so that's why I am asking this...

Some time I ago, I asked to add a feature for textfields where users can use the editbox, so that they don't have to know the BB code...

(http://www.flipdesign.nl/aKC/editbox.png)
This is an image of what I mean...
Is this added, if not, could it be added, because I think it would make a lot easier for a lot of users!

Many thanks in advance!
Sorry, but I just don't think many people would use that. If I get requests for it from other users I may add it, but I just don't see many people using it.

I think that many users will use it... Especially the users without much knowledge of BB code... ;)
You can't expect from users that they know any BB code as well... :)
Title: Re: Custom Profile Field Mod
Post by: winrules on June 09, 2006, 04:05:24 PM
You could put a link to the BBC help page in the description.
Title: Re: Custom Profile Field Mod
Post by: GJ-tje on June 09, 2006, 04:09:03 PM
Quote from: winrules on June 09, 2006, 04:05:24 PM
You could put a link to the BBC help page in the description.
Yes, but I don't think that users will click on it -> users are lazy, keep that in mind... ;)
Title: Re: Custom Profile Field Mod
Post by: winrules on June 09, 2006, 04:11:10 PM
Quote from: GJ-tje on June 09, 2006, 04:09:03 PM
Quote from: winrules on June 09, 2006, 04:05:24 PM
You could put a link to the BBC help page in the description.
Yes, but I don't think that users will click on it -> users are lazy, keep that in mind... ;)
They don't even have to use BBC in the first place, so If they are lazy they wouldn't use BBC in the first place.
Title: Re: Custom Profile Field Mod
Post by: GJ-tje on June 09, 2006, 04:14:54 PM
Quote from: winrules on June 09, 2006, 04:11:10 PM
Quote from: GJ-tje on June 09, 2006, 04:09:03 PM
Quote from: winrules on June 09, 2006, 04:05:24 PM
You could put a link to the BBC help page in the description.
Yes, but I don't think that users will click on it -> users are lazy, keep that in mind... ;)
They don't even have to use BBC in the first place, so If they are lazy they wouldn't use BBC in the first place.

Why did you made it possible to set an option to parse BB code or not? ;)
So in order to make it easier for the least advanced users or the somewhat advanced users, I think it would be great to add it... :) I also think that a lot more users will use the mod and give more positive feedback about it... ;)
Title: Re: Custom Profile Field Mod
Post by: winrules on June 09, 2006, 04:23:18 PM
Quote from: GJ-tje on June 09, 2006, 04:14:54 PM
Quote from: winrules on June 09, 2006, 04:11:10 PM
Quote from: GJ-tje on June 09, 2006, 04:09:03 PM
Quote from: winrules on June 09, 2006, 04:05:24 PM
You could put a link to the BBC help page in the description.
Yes, but I don't think that users will click on it -> users are lazy, keep that in mind... ;)
They don't even have to use BBC in the first place, so If they are lazy they wouldn't use BBC in the first place.

Why did you made it possible to set an option to parse BB code or not? ;)
So in order to make it easier for the least advanced users or the somewhat advanced users, I think it would be great to add it... :) I also think that a lot more users will use the mod and give more positive feedback about it... ;)
If I have other people request it I may make it but otherwise I probobally won't. You could always use [Unknown]'s tutorial and put a call to theme_postbox().
Title: Re: Custom Profile Field Mod
Post by: GJ-tje on June 09, 2006, 04:27:18 PM
Quote from: winrules on June 09, 2006, 04:23:18 PM
Quote from: GJ-tje on June 09, 2006, 04:14:54 PM
Quote from: winrules on June 09, 2006, 04:11:10 PM
Quote from: GJ-tje on June 09, 2006, 04:09:03 PM
Quote from: winrules on June 09, 2006, 04:05:24 PM
You could put a link to the BBC help page in the description.
Yes, but I don't think that users will click on it -> users are lazy, keep that in mind... ;)
They don't even have to use BBC in the first place, so If they are lazy they wouldn't use BBC in the first place.

You're the author of the mod, you know what the code does... And I don't... I really would appreciate it if you would add it... :)

I also have another question...
Can you add a feature to it, that also users with Global Moderator rights can view a field on a profile and also for editing?

If it would be possible, you could a 'user behaviour' field, a personal note about a user... So the mods and admins can see if it is a terrible user or not?

Reason I ask this is because I have a chat, which does everything with SMF / SSI.php... If a user comes into helpdesk and a mod or admin sees that the user (can be very annoying, the mod / admin helping him can keep in mind that the user can be annoying...
Why did you made it possible to set an option to parse BB code or not? ;)
So in order to make it easier for the least advanced users or the somewhat advanced users, I think it would be great to add it... :) I also think that a lot more users will use the mod and give more positive feedback about it... ;)
If I have other people request it I may make it but otherwise I probobally won't. You could always use [Unknown]'s tutorial and put a call to theme_postbox().

Can you make it also possible to make it possible for global moderators to view / edit a custom profile field?

I am askin this, because I run a chat, based on SMF and if someone joins our Helpdesk, the mod or admin helping a user can see in the profile from that user is that is annoying or not...

Kind like of personal notes... :) Just like it is now for the admins, but then also for Global Moderators... ;)
Title: Re: Custom Profile Field Mod
Post by: winrules on June 09, 2006, 04:31:46 PM
More options for who can view and edit fields have been requested before and will be in the next version :).
Title: Re: Custom Profile Field Mod
Post by: timkenmaster on June 15, 2006, 08:10:27 PM
Any luck on adding this to the memberlist?
Title: Re: Custom Profile Field Mod
Post by: itsacoaster on June 16, 2006, 12:23:44 AM
Quote from: winrules on June 09, 2006, 04:31:46 PM
More options for who can view and edit fields have been requested before and will be in the next version :).
Awesome.  That's what I was hoping. :)
Title: Re: Custom Profile Field Mod
Post by: winrules on June 16, 2006, 08:28:21 AM
Quote from: timkenmaster on June 15, 2006, 08:10:27 PM
Any luck on adding this to the memberlist?
I'm working on it, but I keep having trouble adding sortabillity.
Title: Re: Custom Profile Field Mod
Post by: PrizeLive.com on June 30, 2006, 11:10:36 AM
I installed this mod and adding a custom field but nothing is showing up on any page.

I have version 1.1 RC2 if that matters.

Can someone help?
Title: Re: Custom Profile Field Mod
Post by: winrules on June 30, 2006, 11:15:29 AM
Are you using a custom theme?
Title: Re: Custom Profile Field Mod
Post by: PrizeLive.com on June 30, 2006, 11:50:21 AM
Quote from: winrules on June 30, 2006, 11:15:29 AM
Are you using a custom theme?

No I'm not. I'm just using the default theme.

What does this mod do anyway?

I want to be able to edit/add/change values for a specific member and have it show on their profile page. Can this value also be entered into the smf_members table?
Title: Re: Custom Profile Field Mod
Post by: winrules on June 30, 2006, 01:44:33 PM
Quote from: SurfExcelerator.com on June 30, 2006, 11:50:21 AM
Quote from: winrules on June 30, 2006, 11:15:29 AM
Are you using a custom theme?

No I'm not. I'm just using the default theme.

What does this mod do anyway?

I want to be able to edit/add/change values for a specific member and have it show on their profile page. Can this value also be entered into the smf_members table?
The mod adds fields to the forum profile information part of the profile. The data is stored in the themes table.
Title: Re: Custom Profile Field Mod
Post by: PrizeLive.com on June 30, 2006, 01:48:31 PM
Quote from: winrules on June 30, 2006, 01:44:33 PM
The mod adds fields to the forum profile information part of the profile. The data is stored in the themes table.

Thanks, I just got it working.

Say for example I enter in the value, 100, for a custom field. How can I get the # of posts to subtract the number I enter in the custom field?
Title: Re: Custom Profile Field Mod
Post by: winrules on June 30, 2006, 01:50:35 PM
Quote from: SurfExcelerator.com on June 30, 2006, 01:48:31 PM
Quote from: winrules on June 30, 2006, 01:44:33 PM
The mod adds fields to the forum profile information part of the profile. The data is stored in the themes table.

Thanks, I just got it working.

Say for example I enter in the value, 100, for a custom field. How can I get the # of posts to subtract the number I enter in the custom field?
Can't you just edit the post count for that?
Title: Re: Custom Profile Field Mod
Post by: PrizeLive.com on June 30, 2006, 02:01:46 PM
Quote from: winrules on June 30, 2006, 01:50:35 PM
Can't you just edit the post count for that?

I don't really want to edit the post count.

I'm awarding members 4 points per post and say someone has earned 100 points and each point is worth $0.01. So once I pay this member $1.00, I want to enter in "100" for Points Paid, and have the Total Points Earned value subtract the value I enter into the custom field.

Does that make sense, or do you need more info?
Title: Re: Custom Profile Field Mod
Post by: benjaminkeith on July 01, 2006, 02:28:02 PM
Help me out, because I'm not sure I'm understanding this concept:

Why is the extraneous information, such as custom profile fields, placed in the "smf_themes" table in the database?

Wouldn't it be easier (and more easy to manage) if the information for member profile fields were kept in the "smf_Member" table?

Most of the basic member information is kept there now, such as Member Name, aim, yahoo, msn, website, etc. etc.

If the custom profile information was inserted into the "smf_Members" table, wouldn't coding for additions, modifications, and SEARCHES of that information be easier?

I'm not a coder (but I play one on TV), so I may just be shooting in the dark here.  I also understand that the code for the SMF is pretty concrete in nature, so modifying the base is generally harder than just "adding code" to it.

Tell me why I'm wrong... so that I may understand.

Thanks!
Title: Re: Custom Profile Field Mod
Post by: Harzem on July 01, 2006, 02:45:57 PM
Since you are not a experienced coder, there is not much clear way we can explain it to you but,

1. creating a new row in the database for each individual profile field is not feasible. The best thing is, an admin shouldn't be able to alter the database structure.

2. Searching in themes table is easier and faster for MySQL, because every data is in the same row.
Title: Re: Custom Profile Field Mod
Post by: nermeen_elhelw on July 06, 2006, 08:27:54 PM
why don't you guys modify the "custom profile field mod" so that it:
1- shows the custom field on members list
2- give the ability to search using that custom field

i hope to see this here soon

keep up the good work

SMF is really good value !!
Title: Re: Custom Profile Field Mod
Post by: winrules on July 06, 2006, 09:44:26 PM
Quote from: nermeen_elhelw on July 06, 2006, 08:27:54 PM
why don't you guys modify the "custom profile field mod" so that it:
1- shows the custom field on members list
2- give the ability to search using that custom field

i hope to see this here soon

keep up the good work

SMF is really good value !!
I am working on those.
Title: Re: Custom Profile Field Mod
Post by: GJ-tje on July 07, 2006, 08:01:51 AM
WinRules, as you posted here (http://www.simplemachines.org/community/index.php?topic=79004.msg605546#msg605546) I can try to edit your mod a bit by doing something with theme_postbox() function.

Can you give me the URL to that posting, or give me the tutorial for it?
Many thanks in advance!
Title: Re: Custom Profile Field Mod
Post by: j.kay on July 12, 2006, 10:49:56 AM
Hi, There is news for the search function for the custom field ?
;)
Title: Re: Custom Profile Field Mod
Post by: winrules on July 12, 2006, 10:51:12 AM
Quote from: j.kay on July 12, 2006, 10:49:56 AM
Hi, There is news for the search function for the custom field ?
;)
Not yet.
Title: Re: Custom Profile Field Mod
Post by: Alan S on July 12, 2006, 10:59:58 AM
winrules , you know how it gives the option to display in a post , would i be able to get it to display a picture instead of text??? like the msn pic or aim??? and could i turn the profile field into a link so when you type in say smithalan2 into the field it links to smithalan2.bebo.com????
Title: Re: Custom Profile Field Mod
Post by: winrules on July 12, 2006, 11:12:43 AM
Yeah, you can use the "show by pictures" option for that. For what you want to do, you could put <a href="in the before the field spot and .bebo.com"><img src="yourimage.gif" /></a> in the after spot.
Title: Re: Custom Profile Field Mod
Post by: Alan S on July 12, 2006, 11:37:03 AM
thanks! eveything there works except that when you look at the link then in your profile it says www.theteenzone.net/smithalan2.bebo.com? how would i get rid of the www.theteenzone.net from it?
Title: Re: Custom Profile Field Mod
Post by: Alan S on July 12, 2006, 11:38:55 AM
never mind got it thanks! i just added a http:// after the <a href='
Title: Re: Custom Profile Field Mod
Post by: nermeen_elhelw on July 12, 2006, 02:22:20 PM
i was wondering, if i installed the custom profile mod on my board, and then you created another version, will i be able to update?? or will i have to uninstall the mod first, then install the new one?? and would doing this delete the data saved from the custom field??


HOPE THE UPDATE IS UP HERE SOON
Title: Re: Custom Profile Field Mod
Post by: winrules on July 12, 2006, 02:23:39 PM
You should be able to just upgrade. But if you are using a really old version, you will need to uninstall and reinstall. You won't lose any data either way though.
Title: Re: Custom Profile Field Mod
Post by: perplexed on July 15, 2006, 11:33:06 AM
Quote from: winrules on July 12, 2006, 02:23:39 PM
You should be able to just upgrade. But if you are using a really old version, you will need to uninstall and reinstall. You won't lose any data either way though.

I just came here to ask about this too lol

I havent updated for a little while, Im on 2.13 and using joomla/smf bridge, so can I just click on the upgrade option in package manager and everything will be ok?  *nervous*

Title: Re: Custom Profile Field Mod
Post by: winrules on July 15, 2006, 12:25:25 PM
Quote from: perplexed on July 15, 2006, 11:33:06 AM
Quote from: winrules on July 12, 2006, 02:23:39 PM
You should be able to just upgrade. But if you are using a really old version, you will need to uninstall and reinstall. You won't lose any data either way though.

I just came here to ask about this too lol

I havent updated for a little while, Im on 2.13 and using joomla/smf bridge, so can I just click on the upgrade option in package manager and everything will be ok?  *nervous*


I don't have an upgrade package from that version. You will have to uninstall your current version, and install the new version. You won't lose any data.
Title: Re: Custom Profile Field Mod
Post by: perplexed on July 15, 2006, 04:31:01 PM
ok thanks, so will I then have to do that recreate fields thing?  or will it just work straight away?
Title: Re: Custom Profile Field Mod
Post by: winrules on July 15, 2006, 06:00:04 PM
Quote from: perplexed on July 15, 2006, 04:31:01 PM
ok thanks, so will I then have to do that recreate fields thing?  or will it just work straight away?
You might have to. If you get errors in your error log or something doesn't work you will have to recreate them.
Title: Re: Custom Profile Field Mod
Post by: Webrunner on July 15, 2006, 06:33:14 PM
I have a question: I have a theme in which i completely changed the profile using Unknown's tutorial. A lot of members entered information in the fields.
If i use your mod will i be able to see and change the information or convert it in some way?
Title: Re: Custom Profile Field Mod
Post by: winrules on July 15, 2006, 09:28:35 PM
Quote from: Webrunner on July 15, 2006, 06:33:14 PM
I have a question: I have a theme in which i completely changed the profile using Unknown's tutorial. A lot of members entered information in the fields.
If i use your mod will i be able to see and change the information or convert it in some way?
Yes, just when you install the mod just add fields for all the fields you are already using and set the field ID for the fields you created to the ID you were using before. So if you were using "default_options[real_name]" you would set the field ID to "real_name".
Title: Re: Custom Profile Field Mod
Post by: Webrunner on July 16, 2006, 07:28:59 AM
That rocks!
but won't it create duplicate fields in my profile.template.php?
Title: Re: Custom Profile Field Mod
Post by: perplexed on July 16, 2006, 03:34:43 PM
I found a little problem when you move fields about, but I will post in detail on your board winrules.  It's something thats easy to fix and nothing to worry about.
Title: Re: Custom Profile Field Mod
Post by: RoarinRow on July 18, 2006, 06:51:03 PM
Quote from: winrules on July 12, 2006, 11:12:43 AM
Yeah, you can use the "show by pictures" option for that. For what you want to do, you could put <a href="in the before the field spot and .bebo.com"><img src="yourimage.gif" /></a> in the after spot.

How did you get this to work exactly?  Mine came out empty.
Title: Re: Custom Profile Field Mod
Post by: frodaddy on July 20, 2006, 10:15:44 AM
I posted on winrules site a couple of days ago but I thought I'd post here as well to see if anyone else knew:
Hi,

First off, sweet mod. Second I'm having trouble getting the mod to work properly. I saw in the instructions that you can use the code %1 to call the information for linking. I have it so the information put in the field is being parsed into a URL. Unfortunately it seems to not take unique data and the "%1" is just using the first parsed information.

Here is the example:
http://www.azgalor.org/index.php?topic=2.0

As you can see there is a field for Alla and CT Profile. If you notice the first post by Inwe has a
Alla Profile: 471968
CT Profile: 909889
and the second post has
Alla Profile: 5995
CT Profile: 81221

However both use the same links.

Hope someone can help!

Thanks
Title: Re: Custom Profile Field Mod
Post by: perplexed on July 20, 2006, 04:51:26 PM
could you post an example of what exactly you are putting in the before and after fields and what you want to achieve?  ie what you want them to be linking to? :)

Title: Re: Custom Profile Field Mod
Post by: Larathiel on July 22, 2006, 12:33:27 AM
What a great mod!

I was actually looking for a MySpace field mod but the one I found left a lot to be desired. This, however, does the job almost perfectly.

I only have two suggestions:

1: When the option to make the field appear in each post is selected, have a drop-down box and an optional text field to specify what is displayed:
2: Make an option for this field to be displayed as a column in the Memberlist. When You do this, repeat the display options fields I just outlined above in case the forum admin wishes to have an alternate representation here. You'll also want to let them specify whether the contents (and column header) should be left, center or right-justified. Might also allow them to specify what they want as the column header (and perhaps column width) while You're at it.

Continuing the MySpace example, by implementing both of these features, the forums might show a MySpace icon in each post whereas on the member list, there's a left-justified column that shows the MySpace nickname/link for each user.

That would take this mod from being a 9 to a 10 in my book. :)

Thanks for the great mod and keep up the good work!
Title: Re: Custom Profile Field Mod
Post by: frodaddy on July 24, 2006, 02:24:35 AM
Quote from: perplexed on July 20, 2006, 04:51:26 PM
could you post an example of what exactly you are putting in the before and after fields and what you want to achieve?  ie what you want them to be linking to? :)



Sorry should have included that.

Anyway here is how it is setup:
Text to display before field (BBC is ok if enabled above): [url=http://www.ctprofiles.net/%1]
Text to display after field (BBC is ok if enabled above): [/url]
Parse BB is checked.

Essentially a person will enter their CTProfle #. It will then parse it so that the link of their profile shows up (the link works a lot like myspace, but instead is just a number) I want to achieve the link: http://www.ctprofiles.net/2930293  < whatever their number that they inputed into their profile field.

As you can see on that post the link that is generated via BBcode is used for every persons profile. I need it so it parses the right data for the individuals profile.

Thanks
Title: Re: Custom Profile Field Mod
Post by: Greycloak on July 27, 2006, 11:29:43 PM
Someone asked about this on page 26 of this thread, so her it is:

I have figured out how to add in permission for moderators as well as admins to edit the custom fields when the field is locked for admin only.

In CustomProfile.php at line 14, replace:

if ($modSettings['CP' . $i . '_edit'] && !$context['user']['is_admin'])

with

if ($modSettings['CP' . $i . '_edit'] && ! in_array(1, $GLOBALS['user_info']['groups']) && ! in_array(2, $GLOBALS['user_info']['groups']) && ! in_array(3, $GLOBALS['user_info']['groups']))


Same change needs to be done on line 266, replacing '_edit' with '_view' (thanks to redline7366 for pointing that out...I would have missed it)

For some reason the is_mod comparison would not work, so it had to be replaced with the above code.

Title: Re: Custom Profile Field Mod
Post by: perplexed on July 29, 2006, 05:00:43 PM
Quote from: frodaddy on July 24, 2006, 02:24:35 AM
Quote from: perplexed on July 20, 2006, 04:51:26 PM
could you post an example of what exactly you are putting in the before and after fields and what you want to achieve?  ie what you want them to be linking to? :)



Sorry should have included that.

Anyway here is how it is setup:
Text to display before field (BBC is ok if enabled above): [url=http://www.ctprofiles.net/%1]
Text to display after field (BBC is ok if enabled above): [/url]
Parse BB is checked.

Essentially a person will enter their CTProfle #. It will then parse it so that the link of their profile shows up (the link works a lot like myspace, but instead is just a number) I want to achieve the link: http://www.ctprofiles.net/2930293  < whatever their number that they inputed into their profile field.

As you can see on that post the link that is generated via BBcode is used for every persons profile. I need it so it parses the right data for the individuals profile.

Thanks

Hi

I just recreated this on my test site using these from your first post:

As you can see there is a field for Alla and CT Profile. If you notice the first post by Inwe has a

CT Profile: 909889
and the second post has

CT Profile: 81221

and got links to two different profiles - one for knight lieutenant I and one for knight captain M, which is want you want to achieve, right?

If so, it seems to work fine :)

Title: Re: Custom Profile Field Mod
Post by: clearly on July 29, 2006, 05:52:52 PM
Hey guys,

how can i add a break after

global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();


?

I does not work on my way lol

Thanks
Title: Re: Custom Profile Field Mod
Post by: GJ-tje on July 29, 2006, 07:08:38 PM
Just a curiosity posting...
WinRules, when will the new version be available? ;D
Title: Re: Custom Profile Field Mod
Post by: winrules on July 30, 2006, 09:40:18 PM
Quote from: clearly on July 29, 2006, 05:52:52 PM
Hey guys,

how can i add a break after

global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();


?

I does not work on my way lol

Thanks
What do you mean by a break?

Quote from: GJ-tje on July 29, 2006, 07:08:38 PM
Just a curiosity posting...
WinRules, when will the new version be available? ;D
When it is ready.
Title: Re: Custom Profile Field Mod
Post by: frodaddy on July 31, 2006, 09:29:10 AM
perplexed...u think i should recreate the fields then?
Title: Re: Custom Profile Field Mod
Post by: perplexed on August 03, 2006, 10:58:54 AM
Quote from: frodaddy on July 31, 2006, 09:29:10 AM
perplexed...u think i should recreate the fields then?

yeah you could try that, :)



Winrules:

hi, I posted over on your site about a strange problem I have, do you want me to post it here instead?
Title: Re: Custom Profile Field Mod
Post by: winrules on August 04, 2006, 05:33:32 PM
Quote from: Stüldt Håjt on July 31, 2006, 10:08:49 AM
I removed this mod because I realized that I really don't need it. What info this mod added to the database and how is it safest to remove? Because don't want to keep my database bloated.
Delete all the fields before you uninstall, and then go to the themes table and delete all rows with 'variable' being something you've used as a field ID. Proboally juse CP1, CP2, CP3, etc, unless you changed the Field ID.
Title: Re: Custom Profile Field Mod
Post by: buRn| on August 08, 2006, 01:56:08 PM
this mod seems to be mad with my forum. Once istalled and configured I filled the profile.

The problem is that the people fills the profile but the first post that they do, the link is wrong.

sample:

(http://img348.imageshack.us/img348/4084/lolaw0.jpg)

all the profiles are mad!!!  :'(



update: the link inside the profile works well
Title: Re: Custom Profile Field Mod
Post by: winrules on August 08, 2006, 02:37:19 PM
What are you using for the before the field code and the after the field code?
Title: Re: Custom Profile Field Mod
Post by: buRn| on August 08, 2006, 03:00:18 PM
[url=http://www.ctprofiles.net/%1]
and
[/url]

I use perplexed post info :S
Title: Re: Custom Profile Field Mod
Post by: winrules on August 08, 2006, 03:51:33 PM
What version are you using?
Title: Re: Custom Profile Field Mod
Post by: buRn| on August 08, 2006, 04:24:54 PM
Customprofiles 3.11 and SMF 1.1 RC2
Title: Re: Custom Profile Field Mod
Post by: Enders on August 08, 2006, 04:42:48 PM
How do you create a display name field (already available) in the registration form? I don't want to enable "users to edit their display name" and don't no how to create this. Also adding profile fields already available to registration?
Title: Re: Custom Profile Field Mod
Post by: winrules on August 08, 2006, 04:56:28 PM
Quote from: buRn| on August 08, 2006, 04:24:54 PM
Customprofiles 3.11 and SMF 1.1 RC2
Hmm.. Can you pm me the contents of your Display.template.php and CustomProfile.php?

Quote from: Enders on August 08, 2006, 04:42:48 PM
How do you create a display name field (already available) in the registration form? I don't want to enable "users to edit their display name" and don't no how to create this. Also adding profile fields already available to registration?
in Register.template.php create a input field with the name "realname".
Title: Re: Custom Profile Field Mod
Post by: buRn| on August 08, 2006, 06:13:31 PM
thanks for the help winrules  :D

I send you the files.

sorry 4 my crappy english. I cant give u thanks better.

Title: Re: Custom Profile Field Mod
Post by: winrules on August 08, 2006, 06:14:57 PM
Quote from: buRn| on August 08, 2006, 06:13:31 PM
thanks for the help winrules  :D

I send you the files.

sorry 4 my crappy english. I cant give u thanks better.


Can you try what I told you to do?
Title: Re: Custom Profile Field Mod
Post by: buRn| on August 08, 2006, 07:19:28 PM
it doesnt work.

all the url's are the same, the url of the first poster

1st poster: CTprofiles: 027 / url: 027
2nd poster: CTprofiles: 231 / url: 027
XXX post: CTprofiles: XXX / url: 027


really strange    >:(
Title: Re: Custom Profile Field Mod
Post by: winrules on August 08, 2006, 07:59:41 PM
Quote from: buRn| on August 08, 2006, 07:19:28 PM
it doesnt work.

all the url's are the same, the url of the first poster

1st poster: CTprofiles: 027 / url: 027
2nd poster: CTprofiles: 231 / url: 027
XXX post: CTprofiles: XXX / url: 027


really strange    >:(
Ah, figured it out. I'll be gone for a few days so I might not have time to update the package, but here's the code for a quick fix:
CustomProfile.php
Find:

$modSettings['CP' . $i . '_data1'] = preg_replace('/%1/', $messagevars['member']['options'][$modSettings['CP' . $i . '_id']], $modSettings['CP' . $i . '_data1']);
$modSettings['CP' . $i . '_data2'] = preg_replace('/%1/', $messagevars['member']['options'][$modSettings['CP' . $i . '_id']], $modSettings['CP' . $i . '_data2']);
if ($modSettings['CP' . $i . '_bbc'])
{
$field = parse_bbc($modSettings['CP' . $i . '_data1'] . $messagevars['member']['options'][$modSettings['CP' . $i . '_id']] . $modSettings['CP' . $i . '_data2']);
}
else
{
$field = $modSettings['CP' . $i . '_data1'] . $messagevars['member']['options'][$modSettings['CP' . $i . '_id']] . $modSettings['CP' . $i . '_data2'];
}

And Replace With:

$before = preg_replace('/%1/', $messagevars['member']['options'][$modSettings['CP' . $i . '_id']], $modSettings['CP' . $i . '_data1']);
$after = preg_replace('/%1/', $messagevars['member']['options'][$modSettings['CP' . $i . '_id']], $modSettings['CP' . $i . '_data2']);
if ($modSettings['CP' . $i . '_bbc'])
{
$field = parse_bbc($before . $messagevars['member']['options'][$modSettings['CP' . $i . '_id']] . $after);
}
else
{
$field = $before . $messagevars['member']['options'][$modSettings['CP' . $i . '_id']] . $after;
}
Title: Re: Custom Profile Field Mod
Post by: winrules on August 08, 2006, 08:50:36 PM
Version 3.12 has been released! This version fixes some bugs with the before and after the field options.
Title: Re: Custom Profile Field Mod
Post by: buRn| on August 09, 2006, 08:09:16 AM
thanks! 3.12 works well! :D
Title: Re: Custom Profile Field Mod
Post by: Harzem on August 09, 2006, 08:20:39 AM
winrules, may I request a few feature for text fields:

1. Max number of characters.
2. Only numeric input.
3. (if 2), min and max value of the number.

They are all optional of course.
Title: Re: Custom Profile Field Mod
Post by: Assistance on August 09, 2006, 11:35:08 PM
Quote from: winrules on July 12, 2006, 11:12:43 AM
Yeah, you can use the "show by pictures" option for that.

I'm using the newest version and it dont have that as an option
anyways....
I'm trying to get a choice for the member to choose from, two images
its working to show on the thread view, but in the profile, it shows the link of the two images, when it should be the two images

hardly a rush fix, but to make it look better would be nice to show the images from selector and not this huge link
Title: Re: Custom Profile Field Mod
Post by: Spidy on August 10, 2006, 09:38:13 AM
ok, stupid noobie dumbass question  :-\

i've got the new version, 7 files, what do i do with them th get them to work?

dont laugh u were new once lol...
Title: Re: Custom Profile Field Mod
Post by: Assistance on August 10, 2006, 10:09:25 AM
selection box

Add an option 5 times (total 7)
Title: Re: Custom Profile Field Mod
Post by: Spidy on August 10, 2006, 10:13:41 AM
??? errr say what?

that makes no sense at all sorry...

i want to know what to do with the files, where to upload them to, how to activete the mod ect...

some help PLEASE...
Title: Re: Custom Profile Field Mod
Post by: Assistance on August 10, 2006, 10:17:21 AM
lol?

use the package manager to install it
are you to green to use the package manager? ( i was before )


Admin > Main- Packages >Download Packages > Browse > find your mod > upload

enjoy      
Title: Re: Custom Profile Field Mod
Post by: Spidy on August 10, 2006, 10:21:56 AM
lol yupp it looks like i am yeah...

not installed any mods yet so i didnt know how to tut...

cheers  :P
Title: Re: Custom Profile Field Mod
Post by: Assistance on August 10, 2006, 10:27:27 AM
and now you do..... gl
Title: Re: Custom Profile Field Mod
Post by: Kaylan on August 12, 2006, 06:45:58 AM
Hi, I'm getting an error when I try to install this mod.

QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I've uninstalled my other mods and there's no custom themes or anything - any ideas why this is happening?

Thanks,
Kaylan
Title: Re: Custom Profile Field Mod
Post by: Arbalot on August 12, 2006, 06:47:37 AM
Kaylan what is your SMF version?
this mod run only 1.1 RC2!
Title: Re: Custom Profile Field Mod
Post by: Kaylan on August 12, 2006, 06:51:31 AM
Ahh, thanks. I'm using 1.0.7
Title: Re: Custom Profile Field Mod
Post by: Arbalot on August 12, 2006, 06:58:20 AM
Quote from: Kaylan on August 12, 2006, 06:51:31 AM
Ahh, thanks. I'm using 1.0.7

maybe this tutorial to be advantageous for you
http://www.unknownbrackets.com/tutorials/custom-profile
Title: Re: Custom Profile Field Mod
Post by: Kaylan on August 12, 2006, 07:04:15 AM
Thank you!
Title: Re: Custom Profile Field Mod
Post by: SteveD on August 14, 2006, 11:16:32 AM
Well I've searched here and the mod site but I can't find anyway to do this.

I have SMF 1.1 RC2 with the following mods installed:

1.     SMF 1.0.7 / 1.1 RC2 Update     1.0     
2.    Custom Profile Field Mod    3.11    
3.    Ignore user    1.2

What I am trying to do is allow members to search profiles using custom fields as search criteria.

Is this possible?
Title: Re: Custom Profile Field Mod
Post by: Bradkaz96 on August 15, 2006, 09:15:37 AM
Help, I am getting this error with the package manager

1. Execute Modification ./Sources/ModSettings.php Test successful
2. Execute Modification ./Themes/default/Profile.template.php [b]Test failed [/b]
3. Execute Modification ./Themes/default/Display.template.php Test successful
4. Execute Modification ./Themes/default/PersonalMessage.template.php Test successful
5. Execute Modification ./Themes/default/Register.template.php Test successful
6. Execute Modification ./Sources/Register.php Test successful
7. Extract File ./Sources/CustomProfile.php 
8. Extract File ./Themes/default/languages/CustomProfile.english.php


I have no other mods installed and have replaced the Profile.template.php file with the one right out of the 1.1 RC2 package.  I really want this mod to work but I'm ot sure why it is failing this test.  My permissions are set right as well.

Thanks in advance!
Title: Re: Custom Profile Field Mod
Post by: winrules on August 15, 2006, 10:50:23 PM
Quote from: buRn| on August 09, 2006, 08:09:16 AM
thanks! 3.12 works well! :D
Glad you got it working :)

Quote from: HarzeM on August 09, 2006, 08:20:39 AM
winrules, may I request a few feature for text fields:

1. Max number of characters.
2. Only numeric input.
3. (if 2), min and max value of the number.

They are all optional of course.
I will be expanding onthe options for text fields. I will add 1 + 2 in the next version, along with a optional regular expression that the input must match.

Quote from: SteveD on August 14, 2006, 11:16:32 AM
Well I've searched here and the mod site but I can't find anyway to do this.

I have SMF 1.1 RC2 with the following mods installed:

1.     SMF 1.0.7 / 1.1 RC2 Update     1.0     
2.    Custom Profile Field Mod    3.11    
3.    Ignore user    1.2

What I am trying to do is allow members to search profiles using custom fields as search criteria.

Is this possible?
Not in the current version, sorry.

Quote from: Bradkaz96 on August 15, 2006, 09:15:37 AM
Help, I am getting this error with the package manager

1. Execute Modification ./Sources/ModSettings.php Test successful
2. Execute Modification ./Themes/default/Profile.template.php [b]Test failed [/b]
3. Execute Modification ./Themes/default/Display.template.php Test successful
4. Execute Modification ./Themes/default/PersonalMessage.template.php Test successful
5. Execute Modification ./Themes/default/Register.template.php Test successful
6. Execute Modification ./Sources/Register.php Test successful
7. Extract File ./Sources/CustomProfile.php 
8. Extract File ./Themes/default/languages/CustomProfile.english.php


I have no other mods installed and have replaced the Profile.template.php file with the one right out of the 1.1 RC2 package.  I really want this mod to work but I'm ot sure why it is failing this test.  My permissions are set right as well.

Thanks in advance!

Can you pm me your profile.template.php?
Title: Re: Custom Profile Field Mod
Post by: Jerri Blank on August 16, 2006, 12:48:47 AM
I'm having some trouble.  I'm running 1.1 RC2 with the Mercury theme applied.  I installed this mod successfully:

1.     Execute Modification     ./Sources/ModSettings.php     Test successful
2.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
3.    Execute Modification    ./Themes/default/Display.template.php    Test successful
4.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
5.    Execute Modification    ./Themes/default/Register.template.php    Test successful
6.    Execute Modification    ./Sources/Register.php    Test successful
7.    Extract File    ./Sources/CustomProfile.php    
8.    Extract File    ./Themes/default/languages/CustomProfile.english.php

The package was installed successfully. You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes.

But then when I hit "Features and Options" in the admin menu, I got the following error:

Fatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/refugee/public_html/forum/Sources/ModSettings.php:300) in /home/refugee/public_html/forum/Sources/ModSettings.php on line 305

I went in and made (or tried to make) the changes you suggested to my Display.template.php file, and now the error message is this:

Fatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/refugee/public_html/forum/Sources/ModSettings.php:307) in /home/refugee/public_html/forum/Sources/ModSettings.php on line 312

Any ideas?  Is this mod perhaps incompatible with my theme?  My only other mod is the security update.

Thanks!

jb
Title: Re: Custom Profile Field Mod
Post by: SteveD on August 16, 2006, 05:05:55 AM
Quote from: winrules on August 15, 2006, 10:50:23 PM

Quote from: SteveD on August 14, 2006, 11:16:32 AM
Well I've searched here and the mod site but I can't find anyway to do this.

I have SMF 1.1 RC2 with the following mods installed:

1.     SMF 1.0.7 / 1.1 RC2 Update     1.0     
2.    Custom Profile Field Mod    3.11    
3.    Ignore user    1.2

What I am trying to do is allow members to search profiles using custom fields as search criteria.

Is this possible?
Not in the current version, sorry.


Thanks for the reply winrules :)
Is there any chance of this feature being available in a future version?
Title: Re: Custom Profile Field Mod
Post by: winrules on August 16, 2006, 10:48:02 AM
Quote from: Jerri Blank on August 16, 2006, 12:48:47 AM
I'm having some trouble.  I'm running 1.1 RC2 with the Mercury theme applied.  I installed this mod successfully:

1.     Execute Modification     ./Sources/ModSettings.php     Test successful
2.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
3.    Execute Modification    ./Themes/default/Display.template.php    Test successful
4.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
5.    Execute Modification    ./Themes/default/Register.template.php    Test successful
6.    Execute Modification    ./Sources/Register.php    Test successful
7.    Extract File    ./Sources/CustomProfile.php    
8.    Extract File    ./Themes/default/languages/CustomProfile.english.php

The package was installed successfully. You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes.

But then when I hit "Features and Options" in the admin menu, I got the following error:

Fatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/refugee/public_html/forum/Sources/ModSettings.php:300) in /home/refugee/public_html/forum/Sources/ModSettings.php on line 305

I went in and made (or tried to make) the changes you suggested to my Display.template.php file, and now the error message is this:

Fatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/refugee/public_html/forum/Sources/ModSettings.php:307) in /home/refugee/public_html/forum/Sources/ModSettings.php on line 312

Any ideas?  Is this mod perhaps incompatible with my theme?  My only other mod is the security update.

Thanks!

jb
It seems like somehow you've installed the mod twice. Can you uninstall, reupload fresh copies of all the files that the mod modifys, and reinstall?

Quote from: SteveD on August 16, 2006, 05:05:55 AM
Quote from: winrules on August 15, 2006, 10:50:23 PM

Quote from: SteveD on August 14, 2006, 11:16:32 AM
Well I've searched here and the mod site but I can't find anyway to do this.

I have SMF 1.1 RC2 with the following mods installed:

1.     SMF 1.0.7 / 1.1 RC2 Update     1.0     
2.    Custom Profile Field Mod    3.11    
3.    Ignore user    1.2

What I am trying to do is allow members to search profiles using custom fields as search criteria.

Is this possible?
Not in the current version, sorry.


Thanks for the reply winrules :)
Is there any chance of this feature being available in a future version?
It will be in 4.0.
Title: Re: Custom Profile Field Mod
Post by: vkot on August 17, 2006, 05:47:17 AM
winrules, can you put an option to have a multiple select box for the custom fields?

For example, in my forum I want to have a field "musical instrument that you play". There are many users that play more than one instrument.
Title: Re: Custom Profile Field Mod
Post by: Assistance on August 17, 2006, 09:14:16 AM
Quote from: winrules on July 12, 2006, 11:12:43 AM

    Yeah, you can use the "show by pictures" option for that.

so this is where?



Quote from: Assistance on August 09, 2006, 11:35:08 PM

    I'm using the newest version and it dont have that as an option
    anyways....
    I'm trying to get a choice for the member to choose from, two images
    its working to show on the thread view, but in the profile, it shows the link of the two images,       
    when it should be the two images

    hardly a rush fix, but to make it look better would be nice to show the images from selector and not       
    this huge link

  EDIT*

where a member goes to edit the profile it shows the link to the image, not the image itself
it does parse after they save

Title: Re: Custom Profile Field Mod
Post by: gadiandi on August 17, 2006, 11:08:46 AM
Quote from: vkot on August 17, 2006, 05:47:17 AM
winrules, can you put an option to have a multiple select box for the custom fields?

I would also like this feature.  I actually need it soon though so I may just try to add it myself.  Thanks for making a great mod!
Title: Re: Custom Profile Field Mod
Post by: winrules on August 17, 2006, 11:24:35 AM
Quote from: vkot on August 17, 2006, 05:47:17 AM
winrules, can you put an option to have a multiple select box for the custom fields?

For example, in my forum I want to have a field "musical instrument that you play". There are many users that play more than one instrument.
I'll consider that.


Quote from: Assistance on August 17, 2006, 09:14:16 AM
Quote from: winrules on July 12, 2006, 11:12:43 AM

    Yeah, you can use the "show by pictures" option for that.

so this is where?



Quote from: Assistance on August 09, 2006, 11:35:08 PM

    I'm using the newest version and it dont have that as an option
    anyways....
    I'm trying to get a choice for the member to choose from, two images
    its working to show on the thread view, but in the profile, it shows the link of the two images,      
    when it should be the two images

    hardly a rush fix, but to make it look better would be nice to show the images from selector and not      
    this huge link

  EDIT*

where a member goes to edit the profile it shows the link to the image, not the image itself
it does parse after they save


The show by pictures is an option for displaying in posts.
You can't display pictures in a selection box.
Title: Re: Custom Profile Field Mod
Post by: DCB on August 17, 2006, 01:59:32 PM
I'm running 1.1.rc2 and I've insalled the profile mod fine. The problem is when I try to add custom fields to registration they show up twice. So for each custom field I add it appears twice. I tried to search for this but didn't find anything. Can anyone help?
Title: Re: Custom Profile Field Mod
Post by: winrules on August 17, 2006, 03:08:35 PM
Quote from: HopHead on August 17, 2006, 01:59:32 PM
I'm running 1.1.rc2 and I've insalled the profile mod fine. The problem is when I try to add custom fields to registration they show up twice. So for each custom field I add it appears twice. I tried to search for this but didn't find anything. Can anyone help?
Can you me me your modSettings.php?
Title: Re: Custom Profile Field Mod
Post by: DCB on August 17, 2006, 04:22:02 PM
Quote from: winrules on August 17, 2006, 03:08:35 PM
Quote from: HopHead on August 17, 2006, 01:59:32 PM
I'm running 1.1.rc2 and I've insalled the profile mod fine. The problem is when I try to add custom fields to registration they show up twice. So for each custom field I add it appears twice. I tried to search for this but didn't find anything. Can anyone help?
Can you me me your modSettings.php?

PM sent
Title: Re: Custom Profile Field Mod
Post by: winrules on August 17, 2006, 08:08:43 PM
Quote from: HopHead on August 17, 2006, 04:22:02 PM
Quote from: winrules on August 17, 2006, 03:08:35 PM
Quote from: HopHead on August 17, 2006, 01:59:32 PM
I'm running 1.1.rc2 and I've insalled the profile mod fine. The problem is when I try to add custom fields to registration they show up twice. So for each custom field I add it appears twice. I tried to search for this but didn't find anything. Can anyone help?
Can you me me your modSettings.php?

PM sent
Sorry,wrong file, could you send me your register.template.php?
Title: Re: Custom Profile Field Mod
Post by: nermeen_elhelw on August 20, 2006, 07:15:58 AM
i've been waiting for an update to this mod for a long time, coz i wished that "search using custom profile field" would be added to it.

i guess i will have to wait again

I know you are doing real effort in this mod

thanks anyway
Title: Re: Custom Profile Field Mod
Post by: winrules on August 20, 2006, 10:18:19 AM
Quote from: nermeen_elhelw on August 20, 2006, 07:15:58 AM
i've been waiting for an update to this mod for a long time, coz i wished that "search using custom profile field" would be added to it.

i guess i will have to wait again

I know you are doing real effort in this mod

thanks anyway
Do you want to be able to search using the memberlist, or just search. Because I maybe could make a little utillity for just searching the field.
Title: Re: Custom Profile Field Mod
Post by: SteveD on August 20, 2006, 10:39:57 AM
For my site just being able to search using the custom fields would be great :)
Title: Re: Custom Profile Field Mod
Post by: mossimo on August 21, 2006, 07:19:38 AM
hi!
i do not know if its bug or what!
i would like to ask some question.

I installed this module and everything fine i try to add a field and its wqorking.
But when i change the language to arabic its not working.
When i click setting the field remove instead of editng

I hope somebody can help me!
Title: Re: Custom Profile Field Mod
Post by: winrules on August 21, 2006, 10:54:08 AM
Quote from: SteveD on August 20, 2006, 10:39:57 AM
For my site just being able to search using the custom fields would be great :)
I'll try to get something for you.


Quote from: mossimo on August 21, 2006, 07:19:38 AM
hi!
i do not know if its bug or what!
i would like to ask some question.

I installed this module and everything fine i try to add a field and its wqorking.
But when i change the language to arabic its not working.
When i click setting the field remove instead of editng

I hope somebody can help me!
Is that the only thing that isn't working?
Title: Re: Custom Profile Field Mod
Post by: ArkServer on August 21, 2006, 11:55:26 AM
For some reason when i install this mod no one can register on our forum even when no fields are required to fill in.
Title: Re: Custom Profile Field Mod
Post by: winrules on August 21, 2006, 02:41:49 PM
Quote from: ArkServer on August 21, 2006, 11:55:26 AM
For some reason when i install this mod no one can register on our forum even when no fields are required to fill in.
Could you pm me your register.template.php?
Title: Re: Custom Profile Field Mod
Post by: mossimo on August 21, 2006, 03:31:05 PM


Quote
Is that the only thing that isn't working?
This is only the test i made for now!
i try to add field when my languange is arabic but instead of setting the field it was deleted!
i want you to know i cannot read or write arabic i am a filipina
Title: Re: Custom Profile Field Mod
Post by: winrules on August 21, 2006, 03:33:55 PM
Quote from: mossimo on August 21, 2006, 03:31:05 PM


Quote
Is that the only thing that isn't working?
This is only the test i made for now!
i try to add field when my languange is arabic but instead of setting the field it was deleted!
i want you to know i cannot read or write arabic i am a filipina
Are you sure youdidn't click on the wrong button?
Title: Re: Custom Profile Field Mod
Post by: mossimo on August 21, 2006, 03:37:24 PM
 
Quote from: winrules on August 21, 2006, 03:33:55 PM

Are you sure youdidn't click on the wrong button?
I am sure i click the right button because its still in english sir!
so i am sure for that!
Title: Re: Custom Profile Field Mod
Post by: winrules on August 21, 2006, 03:40:15 PM
What link does it take you too?
Title: Re: Custom Profile Field Mod
Post by: mossimo on August 21, 2006, 03:59:52 PM
Quote from: winrules on August 21, 2006, 03:40:15 PM
What link does it take you too?
when i click "SETTING or MOVE UP" it always delete the field.
i am using the default template
i hope sir you can help me!!! :D :)
Title: Re: Custom Profile Field Mod
Post by: winrules on August 21, 2006, 04:02:36 PM
Quote from: mossimo on August 21, 2006, 03:59:52 PM
Quote from: winrules on August 21, 2006, 03:40:15 PM
What link does it take you too?
when i click "SETTING or MOVE UP" it always delete the field.
i am using the default template
i hope sir you can help me!!! :D :)
What is the URL that those links point to?
Title: Re: Custom Profile Field Mod
Post by: mossimo on August 21, 2006, 04:28:03 PM
http://192.168.0.200:8080/cms_j10/index.php?option=com_smf&Itemid=28&action=featuresettings;sa=profile;delete=2
all link for settings or move up the same sir!!!(http://192.168.0.200:8080/cms_j10/index.php?option=com_smf&Itemid=28&action=featuresettings;sa=profile;delete=2)
Title: Re: Custom Profile Field Mod
Post by: winrules on August 21, 2006, 04:34:06 PM
Can you pm me your ModSettings.php?
Title: Re: Custom Profile Field Mod
Post by: nermeen_elhelw on August 22, 2006, 06:35:30 AM
Quote from: winrules on August 20, 2006, 10:18:19 AM
Quote from: nermeen_elhelw on August 20, 2006, 07:15:58 AM
i've been waiting for an update to this mod for a long time, coz i wished that "search using custom profile field" would be added to it.

i guess i will have to wait again

I know you are doing real effort in this mod

thanks anyway
Do you want to be able to search using the memberlist, or just search. Because I maybe could make a little utillity for just searching the field.

i want to add a custom profile field, and search in the memberlist by this field, is this possible??
Title: Re: Custom Profile Field Mod
Post by: winrules on August 22, 2006, 09:43:46 AM
Quote from: nermeen_elhelw on August 22, 2006, 06:35:30 AM
Quote from: winrules on August 20, 2006, 10:18:19 AM
Quote from: nermeen_elhelw on August 20, 2006, 07:15:58 AM
i've been waiting for an update to this mod for a long time, coz i wished that "search using custom profile field" would be added to it.

i guess i will have to wait again

I know you are doing real effort in this mod

thanks anyway
Do you want to be able to search using the memberlist, or just search. Because I maybe could make a little utillity for just searching the field.

i want to add a custom profile field, and search in the memberlist by this field, is this possible??
Not right now.
Title: Re: Custom Profile Field Mod
Post by: winrules on August 22, 2006, 12:13:59 PM
Version 3.13 has been released! This version adds support for 1.1 RC3!
Title: Re: Custom Profile Field Mod
Post by: swtxgrl on August 24, 2006, 04:44:37 PM
Hi I upgraded to 1.1RC3 (default theme) and this is my first time installing a mod. I think i have to do it manually..but i have no clue how to do it..

i saw the online manual for installing a mod manually, but i'm confused. After I unzip, these are the files that are inside:

Customprofile.php
Customprofile.english.php
fixpostsbug.xml
modification.xml
package-info.xml
readme.txt
tablanguageissue.xml

i don't know what coding to change (or where or in what file) and im not sure if i'm supposed to upload the unzipped mod files or where to upload them to...

please help! i'm a newbie at this  :'(
Title: Re: Custom Profile Field Mod
Post by: winrules on August 24, 2006, 05:35:06 PM
Quote from: swtxgrl on August 24, 2006, 04:44:37 PM
Hi I upgraded to 1.1RC3 (default theme) and this is my first time installing a mod. I think i have to do it manually..but i have no clue how to do it..

i saw the online manual for installing a mod manually, but i'm confused. After I unzip, these are the files that are inside:

Customprofile.php
Customprofile.english.php
fixpostsbug.xml
modification.xml
package-info.xml
readme.txt
tablanguageissue.xml

i don't know what coding to change (or where or in what file) and im not sure if i'm supposed to upload the unzipped mod files or where to upload them to...

please help! i'm a newbie at this  :'(
Have you tried using the package manager?
Title: Re: Custom Profile Field Mod
Post by: swtxgrl on August 24, 2006, 05:54:59 PM
oops you're right. i didnt know that i could upload and install mods using the forum :x thank you!

btw, i just realized that the theme is "Babylon". Do i have to do anything to any of the forum files?
Title: Re: Custom Profile Field Mod
Post by: winrules on August 24, 2006, 05:57:00 PM
Quote from: swtxgrl on August 24, 2006, 05:54:59 PM
oops you're right. i didnt know that i could upload and install mods using the forum :x thank you!

btw, i just realized that the theme is "Babylon". Do i have to do anything to any of the forum files?
Look at the first post of this topic and it will tell you what you need to find and replace.
Title: Re: Custom Profile Field Mod
Post by: swtxgrl on August 24, 2006, 07:23:24 PM
Quote from: winrules on August 24, 2006, 05:57:00 PM
Quote from: swtxgrl on August 24, 2006, 05:54:59 PM
oops you're right. i didnt know that i could upload and install mods using the forum :x thank you!

btw, i just realized that the theme is "Babylon". Do i have to do anything to any of the forum files?
Look at the first post of this topic and it will tell you what you need to find and replace.

hmm i did just like the first post said: finding the display.template.php and replacing the two codes with the ones given.

but when I went to "features and options" in the admin control panel, there wasnt any custom profile option. also, when i went to "profile" to check my own profile, it said this:

Current Status:   Online
Fatal error: Call to undefined function: displayfieldsprofile() in /home/cukappas/domains/cornellkpl.org/public_html/forum/Sources/Load.php(1702) : eval()'d code on line 252



Title: Re: Custom Profile Field Mod
Post by: winrules on August 24, 2006, 07:48:01 PM
Can you make sure there is a CustomProfile.php in your sources directory and a CustomProfile.english.php in your languages directory?
Title: Re: Custom Profile Field Mod
Post by: swtxgrl on August 24, 2006, 07:55:26 PM
Quote from: winrules on August 24, 2006, 07:48:01 PM
Can you make sure there is a CustomProfile.php in your sources directory and a CustomProfile.english.php in your languages directory?

yay thank you so much, it works now! i was missing the CustomProfile.english.php in my languages directory  ::)
Title: Re: Custom Profile Field Mod
Post by: Proleter on August 25, 2006, 09:59:53 AM
Quote from: HopHead on August 17, 2006, 01:59:32 PM
I'm running 1.1.rc2 and I've insalled the profile mod fine. The problem is when I try to add custom fields to registration they show up twice. So for each custom field I add it appears twice. I tried to search for this but didn't find anything. Can anyone help?

I installed and uninstalled the mod 4 times. I noticed that uninstaler doesn't deletes the old declarations and the code it puts in the Profile.template.php, so I had custom fields 4 times shown in the Profile. I deleted them manualy and left only one copy. Now everything is ok.
Title: Re: Custom Profile Field Mod
Post by: winrules on August 27, 2006, 06:26:46 PM
Version 3.14 has been released! This version fixes a security hole. All users are strongly encouraged to upgrade. Big Thanks to HarzeM for discovering the hole.
Title: Re: Custom Profile Field Mod
Post by: Skipdawg on August 27, 2006, 06:50:17 PM
Quote from: winrules on August 27, 2006, 06:26:46 PM
Version 3.14 has been released! This version fixes a security hole. All users are strongly encouraged to upgrade. Big Thanks to HarzeM for discovering the hole.

Yes indeed very big thanks. And thanks again for this awesome Mod.  ;D ;)
Title: Re: Custom Profile Field Mod
Post by: Harzem on August 28, 2006, 01:38:51 AM
Nice to see the immediate update :) Thanks winrules!
Title: Re: Custom Profile Field Mod
Post by: vkot on August 28, 2006, 03:41:23 AM
I cannot install Version 3.14 (while Version 3.12 has no problem).
The package manager says that the mod is damaged or not compatible.
Title: Re: Custom Profile Field Mod
Post by: winrules on August 28, 2006, 10:36:27 AM
Quote from: vkot on August 28, 2006, 03:41:23 AM
I cannot install Version 3.14 (while Version 3.12 has no problem).
The package manager says that the mod is damaged or not compatible.

I only have a update for the RC3 version. when you install it add ";version_emulate=1.1 RC3" to the end of the URL.
Title: Re: Custom Profile Field Mod
Post by: winrules on August 29, 2006, 11:50:48 AM
Version 3.15 has been released! This version fixes a bug with moving and deleting fields.
Title: Re: Custom Profile Field Mod
Post by: Mr. Doug on August 29, 2006, 11:52:07 AM
I keep getting "Modification Error" in red when applying the mod.

It'll say that it completed the installation, but I don't get the option in my "Features and Options" for the fields.

I may be missing something...it's been a long week already.


EDIT: And the 3.15 update didn't help...same thing.

I'm looking through the "modification.xml" file and I didn't mess with any of the files that it touches. I'll also say that it worked fine on my 'beta site" Just not the live one.
Title: Re: Custom Profile Field Mod
Post by: winrules on August 29, 2006, 11:58:02 AM
What file does it give the error in and what other mods do you have installed?
Title: Re: Custom Profile Field Mod
Post by: Mr. Doug on August 29, 2006, 12:04:18 PM
No other mods at all...this was the first one I was putting in.

Install Actions
Installations actions for "Custom Profile Field Mod":
Installing this package will perform the following actions:
Type   Action   Description
1.   Execute Modification   -   Modification parse error
2.   Extract File   ./Sources/CustomProfile.php   
3.   Extract File   ./Themes/default/languages/CustomProfile.english.php   
Title: Re: Custom Profile Field Mod
Post by: winrules on August 29, 2006, 12:11:45 PM
Quote from: CptTripps on August 29, 2006, 12:04:18 PM
No other mods at all...this was the first one I was putting in.

Install Actions
Installations actions for "Custom Profile Field Mod":
Installing this package will perform the following actions:
Type   Action   Description
1.   Execute Modification   -   Modification parse error
2.   Extract File   ./Sources/CustomProfile.php   
3.   Extract File   ./Themes/default/languages/CustomProfile.english.php   
Can you try installing a different mod and see if it gives you the same error?
Title: Re: Custom Profile Field Mod
Post by: Mr. Doug on August 29, 2006, 12:30:22 PM
Yup...same error...

Time for a permissions check I guess.
Title: Re: Custom Profile Field Mod
Post by: Mr. Doug on August 29, 2006, 12:53:17 PM
Permissions on the Sources directory...

I'm sorry for the stupid posts. One of those days...
Title: Re: Custom Profile Field Mod
Post by: winrules on August 29, 2006, 02:33:12 PM
Did you get it fixed?
Title: Re: Custom Profile Field Mod
Post by: Mr. Doug on August 30, 2006, 11:10:15 AM
Yup...got it running. I'm not exactly using it for it's intended purpose, so I've had to mod a few things.

I'm using it to give 'badges' to people. KINDA like your Award mod, but a step or two further. Here is an example..

http://www.cameroncollector.com/forum/index.php/topic,10873.0.html

I'm using them like Military ribbons. I give them out for attending events, being good members, and even a few for other random things (Like being my first member, being a Lucky SOB, Being my Dad...)

I'd LOVE a way to tie it in to member-groups, but I think that's asking a lot, and I can do it this way for now.

What I'm doing is making them checkboxes, and having HTML code to put an image in when it's checked. I modified the code to get rid of the "Definition: Value" stuff on the post-show.

Title: Re: Custom Profile Field Mod
Post by: winrules on August 30, 2006, 11:14:19 AM
You could use the stars in membergroups and the Show multiple badges mod.
Title: Re: Custom Profile Field Mod
Post by: Mr. Doug on August 30, 2006, 11:21:33 AM
I thought about that...but I liked your mod better. ;D

Its easier to do them next to each other with yours.
Title: Re: Custom Profile Field Mod
Post by: Rictor on August 30, 2006, 06:10:52 PM
I installed the mod (3.15), and it simply doesn't show up in the Features and Options section. Installation seems to have gone fine: I uploaded the zip, says it extracted it successfully, then installed it successfully. No errors that I could see. The only time I get an error is when I go to unistall it. Then, I get

" Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF. "

The only change from vanilla SMF that I'm running is the SlickPro Graphite theme. But even when I switch to the default theme, still nothing shows up. I'm a newbie to SMF, and installing mods in particular, so I might have overlooked something basic.
Title: Re: Custom Profile Field Mod
Post by: Rictor on September 01, 2006, 10:18:20 AM
Tried all sorts of things with folder and file permission, but to no avail. Has anyone had similar problems?
Title: Re: Custom Profile Field Mod
Post by: winrules on September 01, 2006, 10:51:05 AM
Can you pm me your modsettings.php?
Title: Re: Custom Profile Field Mod
Post by: Bluebair on September 01, 2006, 12:56:02 PM
Hi,

I'm looking for this mod a long time, just upgraded to SMF 1.08
Any options for installation on 1.08 in the near future, or know another mod of this kind?


Thanks.
Title: Re: Custom Profile Field Mod
Post by: winrules on September 01, 2006, 02:37:30 PM
No, but you can follow [Unknown]'s tutorial. (http://www.unknownbrackets.com/tutorials/custom-profile).
Title: Re: Custom Profile Field Mod
Post by: fiver on September 02, 2006, 01:43:14 PM
Hi winrules,

Many thanks for creating this extremely useful mod.

I have an idea which I don't know whether is it possible with Custom Profile Fields, ie. besides text box, check box and selection box, is it possible to add a 4th box for maths?

This can be used for any points system. It can contain a selection fields on the left, [x/+-] selection in the middle and points box to the right. For example

[Total Time Spent Online]            [x] [ ]points
[Total Posts]                              [x] [ ] points
[Total Topics Started]                  [x] [ ]points
[Number of Votes Cast]               [x] [ ]points
[Total Time Online]                     [x] [ ]points
[Total number of days registered] [x] [ ]points
[Manually add]                           [+] [ ]points
[Manually minus]                        [-] [ ]points

All the points are added up and a figure shown in members profile (and/or) under their name in the posts as points (or any name to be worded by admin) - just like the other custom profile fields.

:D

Title: Re: Custom Profile Field Mod
Post by: winrules on September 02, 2006, 04:45:02 PM
Quote from: fivearts on September 02, 2006, 01:43:14 PM
Hi winrules,

Many thanks for creating this extremely useful mod.

I have an idea which I don't know whether is it possible with Custom Profile Fields, ie. besides text box, check box and selection box, is it possible to add a 4th box for maths?

This can be used for any points system. It can contain a selection fields on the left, [x/+-] selection in the middle and points box to the right. For example

[Total Time Spent Online]            [x] [ ]points
[Total Posts]                              [x] [ ] points
[Total Topics Started]                  [x] [ ]points
[Number of Votes Cast]               [x] [ ]points
[Total Time Online]                     [x] [ ]points
[Total number of days registered] [x] [ ]points
[Manually add]                           [+] [ ]points
[Manually minus]                        [-] [ ]points

All the points are added up and a figure shown in members profile (and/or) under their name in the posts as points (or any name to be worded by admin) - just like the other custom profile fields.

:D


Do you mean so you could ajust the value?
Title: Re: Custom Profile Field Mod
Post by: Theberge43 on September 02, 2006, 05:43:02 PM
Ok, I've read about 20 pages in this topic and haven't seen it so here is my request :

Could you make it possible for the custom field to be displayed in the member list ?
Title: Re: Custom Profile Field Mod
Post by: winrules on September 02, 2006, 08:01:33 PM
Quote from: Theberge43 on September 02, 2006, 05:43:02 PM
Ok, I've read about 20 pages in this topic and haven't seen it so here is my request :

Could you make it possible for the custom field to be displayed in the member list ?
That is planned for future versions :)
Title: Re: Custom Profile Field Mod
Post by: Theberge43 on September 02, 2006, 08:13:04 PM
Sweet ... and what's the projected time frame on this specific setting ?
Title: Re: Custom Profile Field Mod
Post by: winrules on September 02, 2006, 08:21:08 PM
Quote from: Theberge43 on September 02, 2006, 08:13:04 PM
Sweet ... and what's the projected time frame on this specific setting ?
I don't know.
Title: Re: Custom Profile Field Mod
Post by: Theberge43 on September 02, 2006, 08:23:58 PM
Oh ...  :(
Title: Re: Custom Profile Field Mod
Post by: S1L1C0N on September 03, 2006, 02:56:30 AM
Quote from: winrules on September 02, 2006, 08:21:08 PM
Quote from: Theberge43 on September 02, 2006, 08:13:04 PM
Sweet ... and what's the projected time frame on this specific setting ?
I don't know.

LOL
Title: Re: Custom Profile Field Mod
Post by: oneway on September 03, 2006, 04:53:19 AM
HELP! :)

Winrules, I've just installed Awards1-1(RC2.zip on SMF1.1RC2, TP0.86, Epsilon Theme. Had to do it manually as auto install didn't work.

After manual, the Award works in Profile, but NOTHING in posts.

Groan... I've now seen here that Epsilon has its own Display.template.php.

Quote from: 2inrulesHow to Make "Show in posts?" Work With Custom Themes (last updated for version 3.15):

In Display.template.php
Find:

Code:
         // Show how many posts they have made.
And Replace With:

Code:
         global $sourcedir, $messagevars;
         $messagevars = $message;
         require_once($sourcedir . '/CustomProfile.php');
         DisplayFieldPosts();
         
         // Show how many posts they have made.

Find:

Code:
                        <a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
And Replace With:

Code:
                        <a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
            DisplayFieldPostsPictures();
Note: If your theme has it's own Profile.template.php or PersonalMessage.template.php or Register.template.php you will have to make changes to those but most themes don't. Also note that this isn't necessary on all themes, but most have their own Display.template.php.

Okay, I've put the mods in the default Display.template.php. Please, what do I do now? I simply don't know whether to:

1. Take the default Display.template.php back to where it was, or leave it as modified.

2. Then maybe install Awards in Epsilon's Display.template.php?

3. And if so, do I still have to do your 'How to Make "Show in posts?" Work With Custom Themes' instructions above in Epsilon's Display.template.php?

Man am I confused?!!!!!

Maybe there's an easier way to do all that I'm trying to do - which is simply to be able to put BBC code into 'Personal Text' to go into members' Profiles! (I tried copying some of your code to do this, but it didn't work.) *sigh*
Title: Re: Custom Profile Field Mod
Post by: winrules on September 03, 2006, 10:45:50 AM
Did you install the awards mod or custom profile field mod. Also in niether of the two mods will you be able to put BBC in personal text.
Title: Re: Custom Profile Field Mod
Post by: oneway on September 03, 2006, 12:21:31 PM
Quote from: winrules on September 03, 2006, 10:45:50 AM
Did you install the awards mod or custom profile field mod. Also in niether of the two mods will you be able to put BBC in personal text.

Thankyou for your reply winrules! Your Mods are great! (I use Custom Actions all the time and it is SO 'well behaved' so far as html is concerned - far better than using Articles with my version of TP). Okay...

1. I did Awards. I just this minute decided to put the Awards code into the Epsilon Display.template - and Awards now works! Wow!! (wish I'd done that last night).

2. But further to the matter of Personal Text, for it could I use 'parse_bbc' code like I saw in one of your in Mods, for example:

if (!empty($context['member']['blurb']))
{
$blurb = parse_bbc($context['member']['blurb']);
echo '' . $blurb . '';
}


Should that work? Or is other code needed elsewhere to enable 'parse_bbc' to function. I'd much appreciate your comments on that.

Thanks again!
Title: Re: Custom Profile Field Mod
Post by: winrules on September 03, 2006, 12:52:00 PM
That should work. You can just use echo $blurb; instead of echo '' . $blurb . '';
Title: Re: Custom Profile Field Mod
Post by: Bluebair on September 03, 2006, 03:55:16 PM
Quote from: winrules on September 01, 2006, 02:37:30 PM
No, but you can follow [Unknown]'s tutorial. (http://www.unknownbrackets.com/tutorials/custom-profile).

Thanks for the tip, and special thanks to [unknown] who's tutorial was very clear and most helpfull.

I do have one last question, when you customize big parts of the Profile.template.php how does this behave with upgrades? I did make a copy of the default theme's files and saved them under a different name, but does this mean that an upgrade changes the default files and that I have to upgrade my theme manually?
Title: Re: Custom Profile Field Mod
Post by: winrules on September 03, 2006, 05:18:53 PM
Yes, you will have to redo the changes to the theme.
Title: Re: Custom Profile Field Mod
Post by: fiver on September 04, 2006, 10:04:38 AM
Quote from: winrules on September 02, 2006, 04:45:02 PM
Quote from: fivearts on September 02, 2006, 01:43:14 PM
Hi winrules,

Many thanks for creating this extremely useful mod.

I have an idea which I don't know whether is it possible with Custom Profile Fields, ie. besides text box, check box and selection box, is it possible to add a 4th box for maths?

---- snip ----

All the points are added up and a figure shown in members profile (and/or) under their name in the posts as points (or any name to be worded by admin) - just like the other custom profile fields.

:D

Do you mean so you could ajust the value?


I've created a html mockup, covering as much as I can think of, at this link
http://fivearts.net/temp/autopoints.htm

Perhaps Use existing forum Karma feature can be left out to keep things simple.

Also Setting 5. Use Live autopoints (like Gmail's megabytes count.) is just my imagination. It will be fascinating if that is possible. :D

What do you think?



Title: Re: Custom Profile Field Mod
Post by: Harzem on September 04, 2006, 10:10:40 AM
Currently I'm working on a point system (infraction system, advanced karma system, awards system etc...) and if nobody works on your ideas before me, I can seriously consider implementing this type of features to the system.

My system is currently live at http://www.harzem.com/test/rc3/index.php , which is constanly being developed (even right now).
Title: Re: Custom Profile Field Mod
Post by: oneway on September 04, 2006, 12:10:39 PM
Quote from: winrules on September 03, 2006, 12:52:00 PM
That should work. You can just use echo $blurb; instead of echo '' . $blurb . '';

I've tried that code for Personal Text. In profile.template.php, the original code was:

// Now print the second column where the members avatar/text is shown.
echo '
<td class="windowbg" valign="middle" align="center" width="150">
', $context['member']['avatar']['image'], '<br /><br />';
', $context['member']['blurb'], '


The new code I've tried is:

// Now print the second column where the members avatar/text is shown.
echo '
<td class="windowbg" valign="middle" align="center" width="150">
', $context['member']['avatar']['image'], '<br /><br />';

if (!empty($context['member']['blurb']))
{
$blurb = parse_bbc($context['member']['blurb']);
echo $blurb;
}


but to my suprise BBC still doesn't work for me after that change??
Title: Re: Custom Profile Field Mod
Post by: winrules on September 04, 2006, 12:30:00 PM
Try

// Now print the second column where the members avatar/text is shown.
echo '
<td class="windowbg" valign="middle" align="center" width="150">
', $context['member']['avatar']['image'], '<br /><br />';
', parse_bbc($context['member']['blurb']), '
Title: Re: Custom Profile Field Mod
Post by: oneway on September 04, 2006, 01:01:27 PM
Quote from: winrules on September 04, 2006, 12:30:00 PM
Try

// Now print the second column where the members avatar/text is shown.
echo '
<td class="windowbg" valign="middle" align="center" width="150">
', $context['member']['avatar']['image'], '<br /><br />';
', parse_bbc($context['member']['blurb']), '


No, php doesn't seem to like that (throws up an error on the parse_bbc line)

I thought this would be easy enough to do, but seems I was wrong. *sighs* How amazing.
Title: Re: Custom Profile Field Mod
Post by: winrules on September 04, 2006, 05:26:52 PM
What error does it give?
Title: Re: Custom Profile Field Mod
Post by: oneway on September 05, 2006, 04:01:50 AM
Quote from: winrules on September 04, 2006, 05:26:52 PM
What error does it give?

Oops, sorry winrules, that was badly misleading. Doesn't give an error as such. Just doesn't work, e.g., to bold the word FIRST I put

[b]FIRST[/b]

The result was no bolding: it just displayed as:

[b]FIRST[/b]
Title: Re: Custom Profile Field Mod
Post by: winrules on September 05, 2006, 01:17:32 PM
WHat file is that code above in and where are you looking at it?
Title: Re: Custom Profile Field Mod
Post by: oneway on September 05, 2006, 01:56:33 PM
Quote from: winrules on September 05, 2006, 01:17:32 PM
WHat file is that code above in and where are you looking at it?

The code is in profile.template.php, and with your 'parse_bbc' addition, is:

// Now print the second column where the members avatar/text is shown.
echo '
<td class="windowbg" valign="middle" align="center" width="150">
', $context['member']['avatar']['image'], '<br /><br />
                                        ', parse_bbc($context['member']['blurb']), '


Say I go into Profile and write this as Personal text:

Sometimes it's good to just [b]relax![/b]

it will then display as:

Sometimes it's good to just [b]relax![/b]

You can see this here, straight under the Avatar:

http://connect.twm.cc/index.php?topic=3.msg60#msg60 (http://connect.twm.cc/index.php?topic=3.msg60#msg60)

Edit: it kind of looks to me like this is not the right file to be doing the modifications in - but my search program finds
($context['member']['blurb'])only in profile.template. So it beats me (and I spose I must be missing something somewhere...)
Title: Re: Custom Profile Field Mod
Post by: winrules on September 05, 2006, 03:19:41 PM
look for $message['member']['blurb'].
Title: Re: Custom Profile Field Mod
Post by: oneway on September 06, 2006, 01:15:36 AM
Quote from: winrules on September 05, 2006, 03:19:41 PM
look for $message['member']['blurb'].

Okay, found that in display.template.php and personalmessage.template.php - completely identical coding so far as I can see. So I now have this in both files:

        // Show their personal text?
        if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
        echo '
            ', parse_bbc($message['member']['blurb']), '<br />
        <br />';


but the problem remains: BCC code is ignored as I showed in above post. I've got the code right haven't I? Weird...

Thanks for your help and patience with this, winrules. Greatly appreciated.
Title: Re: Custom Profile Field Mod
Post by: winrules on September 06, 2006, 05:36:18 PM
Did you make those changes to the theme you are using too?
Title: Re: Custom Profile Field Mod
Post by: oneway on September 06, 2006, 11:11:06 PM
Quote from: winrules on September 06, 2006, 05:36:18 PM
Did you make those changes to the theme you are using too?

SORTED! (after being caught yet again by display.template.php...) Can't believe I let that happen!

Question: with Tinyportal Epsilon having it's own display.template.php, do you know if that means I only need to do modifications in IT, ignoring the default one?

THANKYOU, winrules, you are 'magic'!!!
Title: Re: Custom Profile Field Mod
Post by: Bigguy on September 08, 2006, 02:08:13 AM
Ok, I have searched this thread and for some reason I can't find it. When I have a custom profile field set so they have to add something during registration, nobody can see the field they are suppose to type in so they can't register. Any help. ???
Title: Re: Custom Profile Field Mod
Post by: winrules on September 08, 2006, 03:50:44 PM
What theme are you using?
Title: Re: Custom Profile Field Mod
Post by: Bigguy on September 08, 2006, 04:05:42 PM
I'm using the default_modern theme and the only template file it has is the index.template.php which I have renamed so it is not being used. I think the only thing being used from the theme I am running is the javascript and the css file. Thats why I can't figure it out why it won't work. When trying to register the custom fields do not show upon registration and nobody can register because they get an error saying that the registrations wasn't filled out.
Title: Re: Custom Profile Field Mod
Post by: winrules on September 08, 2006, 08:34:55 PM
Can I have a link to your site?
Title: Re: Custom Profile Field Mod
Post by: Bigguy on September 09, 2006, 12:44:16 PM
I'll have to reinstall it. I'll do that when I see you online but the link is in my sig.

www.smfhelper.com
Title: Re: Custom Profile Field Mod
Post by: winrules on September 09, 2006, 03:33:38 PM
OK if you don't get it working could you send my your register.template.php?
Title: Re: Custom Profile Field Mod
Post by: Bigguy on September 09, 2006, 03:36:25 PM
Ok, I will try to install it again in a bit I just installed the new TP so I have to configure it still and all. This mod works with TP right ??? (I hope)
Title: Re: Custom Profile Field Mod
Post by: winrules on September 09, 2006, 03:38:14 PM
Yeah it works with TP.
Title: Re: Custom Profile Field Mod
Post by: Bigguy on September 09, 2006, 03:45:14 PM
Ok, I'll get on this in a bit then. If I can't get it to work I'll post my template file for you, thanks.
Title: Re: Custom Profile Field Mod
Post by: oneway on September 09, 2006, 10:43:01 PM
Winrules I just HAD to tell you, after all your help to me with 'parse_bbc' for Personal Text, that I found a part of my forum where Personal Text wasn't displaying properly (a page to show 'The Team'), but I was able to figure out what to do to make it work. The little piece of code I modified was simply:

parse_bbc($row['personalText'])

Wow it works! And all thanks to you! :)
Title: Re: Custom Profile Field Mod
Post by: Jim R on September 12, 2006, 12:13:37 PM
Just a note, I have a lot of mods installed.  I had the Custom Profile mod installed and hadn't tested it recently.  It worked in the past, but when I tested it today it didn't work.  I tried uninstalling and reinstallint but got this error:

QuoteFatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/jwrbloom/public_html/smf/Sources/ModSettings.php:309) in /home/jwrbloom/public_html/smf/Sources/ModSettings.php on line 452

I tried downloading the most recent version for 1.1 rc2, but I still get that error.  It only shows when I click on the Features and Options link in the Admin panel.  It does uninstall cleanly, but I would now like to see what I can really do with this mod.

Any thoughts?

Thanks.
Title: Re: Custom Profile Field Mod
Post by: Bigguy on September 12, 2006, 04:34:50 PM
Ok. I have re-installed this and added a field to the registration I have set it to force it on registration and the field still will not show:

www.smfhelper.com

(Sorry for the wait)
Title: Re: Custom Profile Field Mod
Post by: winrules on September 12, 2006, 04:53:05 PM
Could you pm me details for a test account permission to manage custom profile fields.
Title: Re: Custom Profile Field Mod
Post by: Bigguy on September 12, 2006, 04:54:39 PM
Ok give me a minute to create one.
Title: Re: Custom Profile Field Mod
Post by: slystryd on September 17, 2006, 02:21:35 PM
Exactly the same issue here - I'd be interested to know what you find...
Title: Re: Custom Profile Field Mod
Post by: slystryd on September 17, 2006, 02:27:12 PM
Ahhh... I can see why it's happening for me.  The registration screen is different when using the Joomla-SMF bridge, and this mod isn't hooking into that screen...
Title: Re: Custom Profile Field Mod
Post by: winrules on September 17, 2006, 05:25:09 PM
You will have to use SMF Registration for it to work if you have Joomla/Mambe bridged with SMF.
Title: Re: Custom Profile Field Mod
Post by: alphacaveman on September 18, 2006, 01:23:18 PM
I can't get the fields to show up on the profiles. I've got them in my admin area all set up, but they don't show up.

Any suggestions?
Title: Re: Custom Profile Field Mod
Post by: winrules on September 18, 2006, 04:17:48 PM
Are you using a custom theme?
Title: Re: Custom Profile Field Mod
Post by: BitBass on September 20, 2006, 08:59:03 PM
Any word on when more view options will be included?

And thanks very much for the mod!  It's a whole lot easier than me editing files.
Title: Will this work w/ v1.08?
Post by: 1web on September 21, 2006, 03:09:07 PM
I was just given a link here from the "Request Mods" board, and it sounds like a perfect solution... but I'm reading down the list of posts and it looks like everybody's having failures. Will this mod work for 1.08? I have everything default otherwise since I just installed the forum yesterday.
Title: Re: Custom Profile Field Mod
Post by: winrules on September 21, 2006, 03:48:59 PM
Quote from: BitBass on September 20, 2006, 08:59:03 PM
Any word on when more view options will be included?

And thanks very much for the mod!  It's a whole lot easier than me editing files.
Soon.

Quote from: 1web on September 21, 2006, 03:09:07 PM
I was just given a link here from the "Request Mods" board, and it sounds like a perfect solution... but I'm reading down the list of posts and it looks like everybody's having failures. Will this mod work for 1.08? I have everything default otherwise since I just installed the forum yesterday.
It doesn't work on 1.0.8, and I won't port it to it.
Title: Re: Custom Profile Field Mod
Post by: dracomiconia on September 25, 2006, 04:46:55 AM
Where is stored the fields?
Title: Re: Custom Profile Field Mod
Post by: winrules on September 25, 2006, 03:56:20 PM
Quote from: dracomiconia on September 25, 2006, 04:46:55 AM
Where is stored the fields?
In the themes table.
Title: Re: Custom Profile Field Mod
Post by: Aravot on September 28, 2006, 04:30:33 PM
Quote from: winrules on September 25, 2006, 03:56:20 PM
Quote from: dracomiconia on September 25, 2006, 04:46:55 AM
Where is stored the fields?
In the themes table.

I was just about to ask the same question, anyway I created 4 custom fields but I don't see those fields in 'smf_themes' and another question this might have been asked apologies in advance it is 38 pages and I can't read all, does uninstalling and reinstalling the custom profile mod delete the custom created fields, thanks.
Title: Re: Custom Profile Field Mod
Post by: winrules on September 28, 2006, 04:32:37 PM
No it won't remove any data.
Title: Re: Custom Profile Field Mod
Post by: JPDeni on October 16, 2006, 10:16:11 AM
I'm going to be converting my Invision Board to SMF, once I get my SMF the way I want it. There are two fields in IB that I want to be able to transfer -- an "Interests" field and a "Notes" field. I can create the fields in SMF, using the Custom Fields mod, but I need to also import the data that the users have already entered.

I can figure out the syntax for the query I need to use to transfer the data, but I'm not sure of the values I need to use. Obviously there's the ID_MEMBER, the variable (which would be "Interests" or "Notes") and the value that I'm transferring. What about the theme? Is that value always 1? Or would I have to have an entry for every theme that I use?
Title: Re: Custom Profile Field Mod
Post by: pyko on October 16, 2006, 10:38:48 AM
hihi!
need some help here.
I've updated my SMF to 1.1RC3, and then downloaded the latest version of this mod.
When I go apply/install this mod this is what I get:
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/ModSettings.php Test successful
2. Execute Modification ./Themes/default/Profile.template.php Test successful
3. Execute Modification ./Themes/default/Display.template.php Test successful
4. Execute Modification ./Themes/default/PersonalMessage.template.php Test successful
5. Execute Modification ./Themes/default/Register.template.php Test successful
6. Execute Modification ./Sources/Register.php Test successful
7. Extract File ./Sources/CustomProfile.php
8. Extract File ./Themes/default/languages/CustomProfile.english.php


The package was installed successfully. You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes.

So all seems to be good.

But when I go to 'Features and Options' there is nothing new there...and when I got o 'Installed Packages' I get: No mods currently installed

Any help/suggestion?
thanks!
pyko

edit: fixed prev. error...new problem :S
Title: Re: Custom Profile Field Mod
Post by: Bigguy on October 16, 2006, 10:50:06 AM
After it says all that do you press install again ??? There is a test stage before it installs anything then you have to proceed by pressing install once more.
Title: Re: Custom Profile Field Mod
Post by: pyko on October 16, 2006, 10:57:08 AM
hmm..didn't work :(

When I press 'Apply Mod' I get all the 'test successful' ... then press "Install now" and get told "successful install"

But nothing has changed and it isn't listed in the "installed packages"

Also, when i try to "apply mod" again, i get this error:
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

edit: I'm using joomla bridge and also a different theme(long_blue) - would that matter?
Title: Re: Custom Profile Field Mod
Post by: Bigguy on October 16, 2006, 11:28:29 AM
It shouldn't. Make sure the permissions on your "Packages" folder are 777, also make sure there is a temp directory inside it that is also chmodded to 777.
Title: Re: Custom Profile Field Mod
Post by: pyko on October 16, 2006, 11:43:54 AM
I have a folder named 'backups' - is that the temp folder you are referring to?

I only get the permissione rror if i try to apply twice while logged in the same session. If i log out, log in again, the problem goes away. I can "intsall" again, but despite all the success message, nothing changes.

thanks!
pyko
Title: Re: Custom Profile Field Mod
Post by: Bigguy on October 16, 2006, 12:09:38 PM
No "backups" is not the folder I am referring to. Try making a temp folder in the "Packages" folder and chmodding both to 777.
Title: Re: Custom Profile Field Mod
Post by: pyko on October 16, 2006, 08:38:04 PM
no :( unfortunately that doesn't seem to work either. I've created a directory called "temp" with permission set to 777.

Just to confirm...I am doing all the steps right?
1. Login as admin
2. Go to Pacakges
3. Browse/Upload to the mod zip file --> upload it
4. In 'Browse Packages' tab, click on 'Apply Mod' for Custom Profile Field Mod 3.15a
5. Enter the FTP info required
6. See the screen telling me about "Install Actions" (all test successful)
7. Click on "Install Now"
8. New screen about 'Extracting Package' with the message The package was installed successfully. You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes.

That is all I should have to do to install the package right?
Because after doing this there is no new tab in 'Features and Options' and also if I go to 'Installed Packages' it says No mods currently installed.


And i think this information might be relevent
SMF version: 1.1RC3
Using Joomla/SMF Bridge
Using theme: longBlue
Packages folder permission set to 777
Temp folder in packages also set to 777

please help!
thanks!
pyko

edit: it seems like each time i try to apply the mod the 'temp' folder gets deleted...is this correct?
Title: Re: Custom Profile Field Mod
Post by: ISOX on October 17, 2006, 03:52:05 PM
I've got this error when Apply-ing the mod:

(http://img76.imageshack.us/img76/3585/naamloos3232ox5.th.jpg)
click to enlarge (http://img76.imageshack.us/my.php?image=naamloos3232ox5.jpg)
Title: Re: Custom Profile Field Mod
Post by: Bigguy on October 17, 2006, 03:54:30 PM
Looks like your server is running in safe mod.
Title: Re: Custom Profile Field Mod
Post by: JPDeni on October 17, 2006, 04:18:35 PM
QuoteI can figure out the syntax for the query I need to use to transfer the data, but I'm not sure of the values I need to use. Obviously there's the ID_MEMBER, the variable (which would be "Interests" or "Notes") and the value that I'm transferring. What about the theme? Is that value always 1? Or would I have to have an entry for every theme that I use?
I was able to answer my own question. In case someone else wonders about this, I found it in Profile.php, which is where the values get saved to the database.

The answer is, yes, that the value of the theme -- field "ID_THEME" -- is always 1. It's hard-coded into Profile.php.
Title: Re: Custom Profile Field Mod
Post by: pyko on October 17, 2006, 08:18:03 PM
anyone know why my installation isn't working?

i'd really like to get this custom mod to work asap - seems like it is exactly what i need.

thanks heaps!
pyko
Title: Re: Custom Profile Field Mod
Post by: winrules on October 17, 2006, 09:33:36 PM
Quote from: pyko on October 17, 2006, 08:18:03 PM
anyone know why my installation isn't working?

i'd really like to get this custom mod to work asap - seems like it is exactly what i need.

thanks heaps!
pyko
Do you see a tab in Features and Settings?
Title: Re: Custom Profile Field Mod
Post by: pyko on October 18, 2006, 12:12:19 AM
No, I don't see a tab in the 'Features and Options' page :(

It seems like even though it says the installation is successful, there is no actual change.
Title: Re: Custom Profile Field Mod
Post by: dracomiconia on October 18, 2006, 04:48:08 AM
I'm having a little problem....

If I create a Selection box field, I can add the options....

If I create a checkbox field, I have no option to add fields!!!!

Version 3.15
Forum 1.1 RC3

http://www.dracomiconia.com/forob/
Title: Re: Custom Profile Field Mod
Post by: dracomiconia on October 18, 2006, 04:54:52 AM
I have just seen that it is a "simple check box....."

Two Features it could be great to add....


Multiple Checkbox

Is it possible to add a "multiple selection field?"

For example:

Games in which you are playing in the web:

  Football
x Soccer
  Basket
x Wargame

Specific Board Field

Imagine I have a lot of games in the web. Some RPG, for exmple....

If the Character Sheet could be inserted only in the forum of that game, it could be great.

A question

Selections are stored in themes table.... but where are stored the field configurations?

Answering to myself..... Settings table
Title: Re: Custom Profile Field Mod
Post by: tL0z on October 18, 2006, 08:05:33 AM
Hello,

What is the difference between text and text area?

It's it possible to make some "Field Categories" which would be delimited be top and bottom horizontal rules?
I'm asking for this because I'm having a "problem". I've made some Custom Fields where the members can put their friend code for each game. However, some members don't have the game I defined as "first" and has the top horizontal rule.
Take a look please:
http://www.nintendopt.com/forum/index.php?action=profile;u=325
http://www.nintendopt.com/forum/index.php?action=profile;u=353

The custom fields of the second member aren't separated with the rule since he hasn't the game. Categories would be nice :P

Also, is it possible to make a "url field". For example, I have a board for Game Collections. The members would put the link for the collection in the field.


Congrats, the mod is excelent  ;)
Title: Re: Custom Profile Field Mod
Post by: Bigguy on October 18, 2006, 08:11:08 AM
No body can view because you must have guest viewing off.
Title: Re: Custom Profile Field Mod
Post by: tL0z on October 18, 2006, 09:13:41 AM
Take a look now.
Title: Re: Custom Profile Field Mod
Post by: ISOX on October 18, 2006, 09:49:56 AM
Quote from: pyko on October 18, 2006, 12:12:19 AM
No, I don't see a tab in the 'Features and Options' page :(

It seems like even though it says the installation is successful, there is no actual change.

i've have that same problem now! :( H-E-L-P plz ;)
Title: Re: Custom Profile Field Mod
Post by: tL0z on October 18, 2006, 10:09:51 AM
Are you using English? If not, you have to translate the CustomProfile.english.php and create a CustomProfile.yourlanguage.php file with the translation, in the Themes/default/languages/ folder.
Title: Re: Custom Profile Field Mod
Post by: winrules on October 18, 2006, 03:56:41 PM
dracomiconia - Couldn't you just use multiple checkboxes?

With the specific board thing, I don't think many people would use it.
Title: Re: Custom Profile Field Mod
Post by: tL0z on October 18, 2006, 04:33:52 PM
What about me (http://www.simplemachines.org/community/index.php?topic=79004.msg773383#msg773383)? :(
Title: Re: Custom Profile Field Mod
Post by: winrules on October 18, 2006, 04:37:40 PM
tl0z, text is one line and text area is multiple lines. In the next version of the mod horizantal rules will be done differently and not be attached to fields like they are now. You can make a URL field by using the before and after the field options.
Title: Re: Custom Profile Field Mod
Post by: tL0z on October 18, 2006, 04:46:10 PM
Will the next version solve my problem? When are you going to release it? :)
Title: Re: Custom Profile Field Mod
Post by: dracomiconia on October 18, 2006, 04:54:36 PM
Well, I think it could be used.... but I understand.....

If u could find time to add... I'd thank u. But first of all, the most used features...

Thanks for your answer
Title: Re: Custom Profile Field Mod
Post by: pyko on October 19, 2006, 05:38:44 AM
Quote from: tL0z on October 18, 2006, 10:09:51 AM
Are you using English? If not, you have to translate the CustomProfile.english.php and create a CustomProfile.yourlanguage.php file with the translation, in the Themes/default/languages/ folder.

hi tL0z
is this referring to the no extra tabs/functionality showing after installation? Because I am using English, but i am using a different theme...but I think earlier in the thread someone said that the theme used doesn't matter.

please help!
Thanks :)
pyko
Title: Re: Custom Profile Field Mod
Post by: winrules on October 19, 2006, 03:39:46 PM
pyko could you PM me your modsettings.php?
Title: Re: Custom Profile Field Mod
Post by: CraftyLion on October 19, 2006, 08:57:40 PM
Quote from: pyko on October 18, 2006, 12:12:19 AM
No, I don't see a tab in the 'Features and Options' page :(

It seems like even though it says the installation is successful, there is no actual change.

I'm having the same problem unless the answers already been given somewhere  else ...
Title: Re: Custom Profile Field Mod
Post by: Megiddo on October 19, 2006, 11:31:52 PM
Hey, I'm having the same problem as everyone else, the mod won't install... I click install, it says it's successful, but no changes. I did this on a completely fresh install of SMF. Any ideas how to fix it?
Title: Re: Custom Profile Field Mod
Post by: CraftyLion on October 20, 2006, 02:20:51 AM
My main problem was that I hadn't placed my CustomProfile.english.php file in the Themes/Default/Languages directory. Now it works - sort of. I can customize my profile fields but it comes up as a text area in the profile itself and won't let me edit the actual field.  ???
Title: Re: Custom Profile Field Mod
Post by: pyko on October 20, 2006, 03:01:17 AM
Quote from: kimba on October 20, 2006, 02:20:51 AM
My main problem was that I hadn't placed my CustomProfile.english.php file in the Themes/Default/Languages directory. Now it works - sort of. I can customize my profile fields but it comes up as a text area in the profile itself and won't let me edit the actual field.  ???

hmm, my CustomProfile.english.php is in the Themes/Default/langauges directory, except the permission is set to 666 and it is an empty file.

could this be the problem i'm having? should i set the permissions to 755?

thanks!
pyko

edit: tried changing the permissions for that file to 755 - still no luck :(
Title: Re: Custom Profile Field Mod
Post by: Pedja on October 20, 2006, 03:02:29 AM
This is excellent mod and one of the most valueble for the forum.

Here are some suggestions:

- in custom fileds administration, present custom fields list in tabular form, instead of current. That would allow better space usage, and make field lists more readable. Current presentation is quite confusing.

- we cannot enter field description in several languages, but that is not your fault

- show in posts options offer show under post count and show next to images. The second option is usable only if we show inage based on field contents. If we show text it would be better if it is shown under the images.

- some fields can have longer contents so when showed in post, it can take two or mode lines. Problem is that filed contents is swown next to field description. OPtion to force fiedl contents to show in next line below field descripotion would be very good

- some option to set validatin on field contensts would be good. For instance, we could have space where to put php code that accepts field contents and returns true or false regarding if contents is valid.

- edit and view privilege is hardcoded only to admins. it would be great if we could set those privileges on any user group. For instance I need moderators to see some fields by not ordinary users. Also, some custom fileds may contain more personal info, so i would liek to allow them to be presented only to more thrusry users (based on user group)

- it would be good if we are able to set default value for the custom field.

- for selection box we should be able to set both description and value for each list item
Title: Re: Custom Profile Field Mod
Post by: Pedja on October 20, 2006, 03:05:17 AM
Quote from: pyko on October 20, 2006, 03:01:17 AM
hmm, my CustomProfile.english.php is in the Themes/Default/langauges directory, except the permission is set to 666 and it is an empty file.

could this be the problem i'm having? should i set the permissions to 755?

permissions are ok, but file should not be empty. That is actualy known misbehaviopur of SMF - if tehre is no definition for language item, it would not be presented. Result is that you have no options displayed. This actually affects people who use languages different from english, but in your cess, language definiton is missing so you ended up in problem.
Title: Re: Custom Profile Field Mod
Post by: Megiddo on October 20, 2006, 10:01:13 AM
Quote from: Megiddo on October 19, 2006, 11:31:52 PM
Hey, I'm having the same problem as everyone else, the mod won't install... I click install, it says it's successful, but no changes. I did this on a completely fresh install of SMF. Any ideas how to fix it?

Let me mention I'm using the default theme and English.
Title: Re: Custom Profile Field Mod
Post by: winrules on October 20, 2006, 04:08:27 PM
Quote from: Megiddo on October 20, 2006, 10:01:13 AM
Quote from: Megiddo on October 19, 2006, 11:31:52 PM
Hey, I'm having the same problem as everyone else, the mod won't install... I click install, it says it's successful, but no changes. I did this on a completely fresh install of SMF. Any ideas how to fix it?
Have you successfully installed any other mods?



Let me mention I'm using the default theme and English.

Pedja, I'm considering many of those suggestions for the next version of the mod.
Title: Re: Custom Profile Field Mod
Post by: pyko on October 21, 2006, 06:06:30 AM
hihi
i got the install to work :) I ended up uploading CustomProfile.english.php and CustomProfile.php, and then going through the xml and manually editing ModSettings.php... and now I can see/use the interface :)

except the problem is despite adding a new field, it doesn't show up in the profiles/posts :(

I have a suspicion that it might be because i'm using LongBlue instead of the default SMF theme... or would it be a similar problem I had with the install where it was unsuccessfully writing to the files? (if so, what permissions would i have to change?)

Also, a question...is the info for the extra field stored in the 'members' table? or is it stored elsewhere?
edit: realised it was in smf_themes :)

thanks heaps!!
pyko

edit: found that the extra field is displayed when you view the person's profile (and can also be added/changed in profile control panel). But it doesn't show under post count - the display setting i have chosen (i've populated the smf_themes table, so all users have some value in the table)

and another ques...will the extra field be visible in the members list? and be searchable?
thanks!
Title: Re: Custom Profile Field Mod
Post by: winrules on October 21, 2006, 12:46:49 PM
Look on the first post of this topic to see how to make shoing in posts work on custom themes.

The fields aern't currently shown in the memberlist of searchable.
Title: Re: Custom Profile Field Mod
Post by: pyko on October 22, 2006, 12:23:57 AM
Quote from: winrules on October 21, 2006, 12:46:49 PM
Look on the first post of this topic to see how to make shoing in posts work on custom themes.

The fields aern't currently shown in the memberlist of searchable.

thanks winrules!!! didn't think of looking at the start of the thread...just kept clicking 'last unread' link.

would it be possible to add the listing/search function in members list in the next version?
thanks heaps again :D
pyko
Title: Re: Custom Profile Field Mod
Post by: winrules on October 22, 2006, 10:40:32 AM
Yes.
Title: Re: Custom Profile Field Mod
Post by: Stype on October 22, 2006, 10:48:05 PM
Hey,

first, sorry for my english... and thanks a lot for your work on this great mod.

I Have 1 question, I've put this mod without checking the difference between the original files and the mod files and i'm not very good in php language, so I just want to know where are the customs informations in the database ? what table ? (Cause I want to use this field for a website wich is linked to the forum where member can see there profil )

Thanks for your answer and your job.

Title: Re: Custom Profile Field Mod
Post by: winrules on October 23, 2006, 04:04:10 PM
The data is stored in the themes table.
Title: Re: Custom Profile Field Mod
Post by: perplexed on October 23, 2006, 05:39:38 PM
I recently upgraded to RC3 and so installed 3-15 custom profile mod, but there seems to be a problem with some of the fields.  I have two fields that appear on registration and they have text before and after the field but since I upgraded both sets of text are appearing IN the field along with the info that people type in the field.

I tried recreating the field but it made no difference, any ideas?
Title: Re: Custom Profile Field Mod
Post by: winrules on October 23, 2006, 06:32:42 PM
They are appearing in the input box right?
Title: Re: Custom Profile Field Mod
Post by: perplexed on October 24, 2006, 05:34:22 AM
yeah if you look at someone profile instead of it saying:

Who Referred you:     perplexed

it says


Who Referred you:    please give the name of the member who referred you Perplexed thank you

same goes for location

Location:    UK


is now


Location:   Please tell us what country you are from UK 
Title: Re: Custom Profile Field Mod
Post by: winrules on October 24, 2006, 03:53:36 PM
Can I have a link to your site and a test account?
Title: Re: Custom Profile Field Mod
Post by: resakse on October 26, 2006, 08:32:29 AM
currently I've succesfully modify it so that "Only allow admins to edit/view field?" can also be view/edit by specific usergroup, and also succeed in showing selected field in memberlist page and able to sort it. But I cant figure it out on how to modify it so I can search it. Can you help me on this pls? already destroyed my smf a couple times :P. I rly need this function since I have waited for updates from last month.


Thanks.
Title: Re: Custom Profile Field Mod
Post by: winrules on October 26, 2006, 03:44:46 PM
I'm sorry but that's just not possible at the moment.
Title: Re: Custom Profile Field Mod
Post by: resakse on October 26, 2006, 04:01:34 PM
sorry, but by "not possible"..did you mean that It cant be done or I should try it harder? heheh confuse :P
Title: Re: Custom Profile Field Mod
Post by: winrules on October 26, 2006, 04:06:16 PM
Many things have to be changed to do that.
Title: Re: Custom Profile Field Mod
Post by: Aaryn015 on October 27, 2006, 01:48:13 AM
Hi,

I'm having a problem which I'm sure has to do with permissions.

I've installed a fresh RC3 on a local computer, installed the mod, and it works perfectly.

Now, on the live server, Install RC3, Install the package, and it even though it says success, the mod is nowhere to be seen.

So I go to un-install, and get this message:

QuoteYou cannot download or install new packages because the Packages directory or one of the files in it are not writable!

So no-can-do. I log out and back in as admin.

This time, when I uninstall, I don't get that message. Instead it just tells me that all tests have failed.

I've gone as far to CHMOD my entire Themes dir to 777 and still no worky.

Any ideas?

Aaryn
Title: Re: Custom Profile Field Mod
Post by: Aaryn015 on October 27, 2006, 01:56:26 AM
Cancel that. All working now.

I also CHMOD the Packages and Source Dir (and everything inside) to 777.

But the obvious next question is, how safe is this? Not very I imagine.

Is there a list of files that must be writable for this installation to be successfull?
Title: Re: Custom Profile Field Mod
Post by: Eastwood on October 27, 2006, 11:04:38 AM
Hello Winrules, thanks for the mod!!

First of all, sorry for my english, is not my normal language. :(

I have a question, Iwould like to use it for to put a image before de messages in the posts (only the image, without name text), and I thought use text field with BBC, like...

[img]http://pathtoimage/image...[/img]

Then, I don´t put any name for the field, and put the image in the text. But the result is that in the posts appairs two points before the image. ": (image)"

Something like:

[Avatar]
Gender: man
: [image custom field]
Messages: 320
Etc...

How can I cancel the two points of the field in the post? If I would want that two points I could put it in the FieldName anycase...


Other question, when I create a field by checkbox, If checkbox is activated I can see the text that I wrote in "Text to display when box is checked", but if the user uncheck the box, nobody can see the text I wrote in "Text to display when box isn't checked"... Why?


Thanks for all

Eastwood
Title: Re: Custom Profile Field Mod
Post by: Sofadia on October 29, 2006, 12:25:13 AM
I installed this mod. It seemed to install correctly. I was able to add fields, but they're not coming up in the profile to see.

Any ideas?
Title: Re: Custom Profile Field Mod
Post by: winrules on November 01, 2006, 09:58:30 AM
Eastwood - You can't put it in a post. Could I have a link to your site and a test account?


Sofadia - are you using a custom theme?
Title: Re: Custom Profile Field Mod
Post by: resakse on November 01, 2006, 10:22:10 AM
so, will there be any new version of custom profile mod? (the one that can be search by custom profile on memberlist).
Title: Re: Custom Profile Field Mod
Post by: winrules on November 01, 2006, 10:44:40 AM
Yes, but I'm not giving any timetables.
Title: Possible Bug
Post by: Nomina on November 01, 2006, 06:40:19 PM
I've found that the "Add a horizontal rule before field?" option only differentiates properly if I make the following change to CustomProfile.php at line 269:

Code (original) Select
if ($modSettings['CP' . $i . '_hr'] == 'edit' || $modSettings['CP' . $i . '_hr'] == 'summary_edit')


Code (modified) Select
if ($modSettings['CP' . $i . '_hr'] == 'summary' || $modSettings['CP' . $i . '_hr'] == 'summary_edit')


Am I alone in this?  Without the change, horizontal rules only appear on the Profile Summary if I select the "On both" option.  I had to make this change in both the 3.13 release, as well as after I upgraded to 3.15.  The above seems to work (all three options display as expected), but if there's a better change, or something is amiss with my version of the mod, please let me know.

Title: Re: Custom Profile Field Mod
Post by: Eastwood on November 05, 2006, 09:50:51 AM
Quote from: winrules on November 01, 2006, 09:58:30 AM
Eastwood - You can't put it in a post. Could I have a link to your site and a test account?

Sorry, Winrules, I think I don´t explain myself very good  :(  I want to say "in the left of the posts, when avatars, user info and number of messages are", not in the posts. I can´t give you a link or test account for now because I´ve got my web in local mode. In a few weeks it will be up, but not for now.

Is there anyway to do what I say?  :-\


Thanks anyway

Eastwood
Title: Re: Custom Profile Field Mod
Post by: winrules on November 05, 2006, 10:28:39 AM
Nomina - you shouldn't have to do that. Are you sure you selected on both?

Eastwood - do you mean just displaying it without the title?
Title: Re: Custom Profile Field Mod
Post by: Nomina on November 05, 2006, 10:52:32 AM
Quote from: winrules on November 05, 2006, 10:28:39 AM
Nomina - you shouldn't have to do that. Are you sure you selected on both?

/me nods.

I can undo the change to test again, if that would help, but prior to the edit I recall getting the following behavior with fields displayed on the Summary page:

On Profile Summary => no HR on any pages.
On Profile Edit Screen => behaved as expected: HR only on Edit Screen.
On Both => behaved as expected: HR on both pages.

The edit made sense when I made it, as the conditional in question was the same for both the Edit and Summary pages, whereas (I figured) the first part of the disjunction ought to coincide with the section it was being applied to...  Sorry if I'm not making any sense.  I'm a bit goofy from lack of sleep at the moment.  What I do know, however, is that my coding skills probably pale in comparison to 90% of the posters on these boards, and so I'm happy to defer to you (in particular) on such matters.  So no big surprise if my "fix" was wrong (although it did work... ::))

Let me know if you'd like me to go back and double-check the before and after versions of the script.  I'm guessing from your reaction and the lack of replies that I'm alone in experiencing this condition.

Best,
n.
Title: Re: Custom Profile Field Mod
Post by: Eastwood on November 05, 2006, 02:59:40 PM
Quote from: winrules on November 05, 2006, 10:28:39 AM
Eastwood - do you mean just displaying it without the title?

Yes, that´s what I mean  :) It´s possible? If I let the title in blank, always display the sign ---> :  And I want only displays the text that users write in the text box, without title. :(


Eastwood
Title: Re: Custom Profile Field Mod
Post by: winrules on November 05, 2006, 05:36:04 PM
In CustomProfile.php Find:

echo '
' . $modSettings['CP' . $i . '_name'] . ': ' . $field . '<br />';

And replace with (several times)

echo '
' . $modSettings['CP' . $i . '_name'] , !empty($modSettings['CP' . $i . '_name']) ? ': ' : '' , $field . '<br />';
Title: Re: Custom Profile Field Mod
Post by: Panzer- on November 05, 2006, 07:35:38 PM
Cant wait to use it :)
Title: Re: Custom Profile Field Mod
Post by: Assistance on November 06, 2006, 07:45:43 AM
some reason the custom fields do not show under post count infact they show above

in display.temp it shows it under the post count, what am i missing?
Title: Re: Custom Profile Field Mod
Post by: winrules on November 06, 2006, 03:47:26 PM
Are you using a custom theme?
Title: Re: Custom Profile Field Mod Help????
Post by: cc4digital on November 07, 2006, 03:48:00 AM
I would like to download one of my custom fields from the Custom Profile Field.
I looked in the mysql database.  I looked at the tables, but do not see the field I created.  Anyone know how I can find the data from one of the custom fields?
Title: Re: Custom Profile Field Mod
Post by: winrules on November 07, 2006, 09:43:19 AM
It's in the themes table.
Title: Re: Custom Profile Field Mod
Post by: eriktm on November 07, 2006, 11:33:27 AM
I can't install it, it comes up with "Modification parse error"  :'( :'(

Can anyone help me?
I need this mod, right now...

PS: Version 3.15
Title: Re: Custom Profile Field Mod
Post by: winrules on November 07, 2006, 11:36:29 AM
Can you try redownloading it in a different browser? It might be a corrupt download.
Title: Re: Custom Profile Field Mod
Post by: BakerLee on November 07, 2006, 04:11:00 PM
Quote from: winrules on November 05, 2006, 05:36:04 PM
In CustomProfile.php Find:

echo '
' . $modSettings['CP' . $i . '_name'] . ': ' . $field . '<br />';

And replace with (several times)

echo '
' . $modSettings['CP' . $i . '_name'] , !empty($modSettings['CP' . $i . '_name']) ? ': ' : '' , $field . '<br />';


Where is this CustomProfile.php file located?  Is this in the install package, or in my SMF directory?  I see CustomProfile.english.php  Is that it?
Title: Re: Custom Profile Field Mod
Post by: winrules on November 07, 2006, 04:16:20 PM
In the Sources directory.
Title: Re: Custom Profile Field Mod
Post by: Eastwood on November 10, 2006, 03:02:52 PM
Quote from: winrules on November 05, 2006, 05:36:04 PM
In CustomProfile.php Find:

echo '
' . $modSettings['CP' . $i . '_name'] . ': ' . $field . '<br />';

And replace with (several times)

echo '
' . $modSettings['CP' . $i . '_name'] , !empty($modSettings['CP' . $i . '_name']) ? ': ' : '' , $field . '<br />';


Thanks for the answer, Winrules, I´ll try it ;)

Do you know the answer for the other question I asked? When I create a field by checkbox, If checkbox is activated I can see the text that I wrote in "Text to display when box is checked", but if the user uncheck the box, nobody can see the text I wrote in "Text to display when box isn't checked"... Do you know why?   :(


Eastwood
Title: Re: Custom Profile Field Mod
Post by: Assistance on November 10, 2006, 05:15:52 PM
Quote from: Assistance on November 06, 2006, 07:45:43 AM
some reason the custom fields do not show under post count infact they show above

in display.temp it shows it under the post count, what am i missing?
Quote from: winrules on November 06, 2006, 03:47:26 PM
Are you using a custom theme?
nope
Title: Re: Custom Profile Field Mod
Post by: Greengoat on November 11, 2006, 08:40:31 PM
Running 1.1 RC3 with security update and it's working perfectly.

Great mod.  Looks and works beautifully.  Only thing I wished for would be more definition between the different fields inside the post.  However by simply changing the color of each field does the trick.

Thanks again for the nice mod.
Title: Re: Custom Profile Field Mod
Post by: Lill-Micke on November 12, 2006, 05:23:00 AM
Hi!

If I use i custom theme and want to install this grate mod.
Can I alter all install files so it install it to the custom theme?
Is it this lines that have to bee altered:


<file name="$themedir/xxxxxxxxxxxxxx.template.php">


My theme's name is: pdx-dk03 RC3
Hove do I alter the code so it install the mod to pdx-dk03 RC3 theme?

//Micke
Title: Re: Custom Profile Field Mod
Post by: Jim R on November 12, 2006, 07:07:12 AM
Winrules,

If I'm understanding this correctly, the information for the Custom Profile Fields is stored in the _themes database.  Each entry is stored separately as opposed to being stored within each Member's database entry in _members.  Correct?

I know it's linked to a Member's profile by ID_Member, but is there a way to change how that is stored within the database?

As I'm learning more about how to query a database, I'm looking for ways to change the layout of each person's Profile, including where the information farmed by the Custom Profile Fields are positioned.  I just assumed this information would be stored as part of each Member's entry into the database, instead of separately (then linked back to it).

How would I query that to put relevant data on a Member's profile?

Thanks.

Title: Re: Custom Profile Field Mod
Post by: Calimarina on November 12, 2006, 12:38:51 PM
I use the default theme and SMF v1.1 RC3.

It showed everything went ok but I would get an error when I clicked on Features and Options. So I uninstalled Custom Profile and deleted the files. Now when I go to click on a forum thread, any thread, I get this error

Fatal error: template_main() [function.require]: Failed opening required '/home/kamikaze/public_html/Joomla/smf/Sources/CustomProfile.php' (include_path='.:/usr/lib/php:/usr/local
/lib/php') in /home/kamikaze/public_html/Joomla/smf/Sources/Load.php(1709) : eval()'d code on line 322

Can someone please help me to get my site working correctly again. I tried reinstalling and uninstalling the mod but that doesn't work.




Okay I reinstalled the mod and got my forum back. If I uninstall it I'm screwed. However installed I get this error when accessing the Features and Options portion of the admin area:

Fatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/kamikaze/public_html/Joomla/smf/Sources/ModSettings.php:300) in /home/kamikaze/public_html/Joomla/smf/Sources/ModSettings.php on line 305

I'd still like to either get this mod to work correctly or have it completely gone from my site. Any ideas? Any help would be greatly appreciated.
Title: Re: Custom Profile Field Mod
Post by: winrules on November 12, 2006, 03:07:39 PM
Lill-Micke - Look at the first post in this topic.

Jim R - Try something like this:

SELECT value
FROM {$db_prefix}themes
WHERE variable = 'fieldID'
AND ID_MEMBER = $ID_MEMBER


Calimarina - Look in ModSettings.php. You will find two blocks of code like this:

function ModifyProfileSettings()
{
[...]
}

Delete one of them.
Title: Re: Custom Profile Field Mod
Post by: Jim R on November 12, 2006, 05:44:40 PM
So Winrules, if I want to change the DB it writes to I just change the DB and make sure the tables are set up accordingly?

I'm interested in having the custom profile information in the same table as the rest of the member information.  Can that be easily changed?  I have everything backed up, so if I screw up it's no big deal.

:)
Title: Re: Custom Profile Field Mod
Post by: Xarcell on November 12, 2006, 09:21:08 PM
I was wonder if you would be interested in adding a feature to it.

The ability to allow a user with permissions to add field only to those of the same membergroup.

If it's possiable and you have time, can you add it, or post instruction here so some of us can use it if we wish?
Title: Re: Custom Profile Field Mod
Post by: winrules on November 12, 2006, 09:29:28 PM
Quote from: Jim R on November 12, 2006, 05:44:40 PM
So Winrules, if I want to change the DB it writes to I just change the DB and make sure the tables are set up accordingly?

I'm interested in having the custom profile information in the same table as the rest of the member information.  Can that be easily changed?  I have everything backed up, so if I screw up it's no big deal.

:)
You mean move the fields to the members table?

Xarcell, But what about higher membergroups?
Title: Re: Custom Profile Field Mod
Post by: Jim R on November 12, 2006, 09:34:30 PM
Winrules, yes.  I've looked, and I can't really find where it writes the information to any table.  I see where it is sits in my database.  I'd just like to have it with the rest of my Member information.

I also have a very nice query set up to print Member information.  I was lucky to get my brain wrapped around that.
Title: Re: Custom Profile Field Mod
Post by: Mikal D. Huber on November 13, 2006, 08:28:05 AM
I have passed this info along to my techie. Hopefully he will be able to figure out how to implement it.
Title: Re: Custom Profile Field Mod
Post by: Calimarina on November 13, 2006, 09:55:26 AM
Don't know why but after I entered in the fields it shows up in the posts as double info.

CLASS: WARRIOR
RACE: HUMAN
GENDER: FEMALE
LEVEL: 60
CLASS: WARRIOR
RACE: HUMAN
GENDER: FEMALE
LEVEL: 60
Title: Re: Custom Profile Field Mod
Post by: winrules on November 13, 2006, 04:10:49 PM
Calimarina what version are you using?
Title: Re: Custom Profile Field Mod
Post by: Lill-Micke on November 14, 2006, 03:23:08 AM
Hi!

I have in my custom theme (pdx-dk04rc3) Profile.template.php and PersonalMessage.template.php.
Where can I find the code to add in this two files?

The code to my Display.template.php I find in the first post in this topic but not to the other two files.

Plz help me so I can install this great mod.
//Micke
Title: Re: Custom Profile Field Mod
Post by: Calimarina on November 14, 2006, 09:57:07 AM
Quote from: winrules on November 13, 2006, 04:10:49 PM
Calimarina what version are you using?

I'm using Joomla v1.0.10 with SMF v1.1 RC3. I'm also using SMF v1.1 RC3 Joomla Bridge v1.1.6. SMF is using Community Builder v1.0 RC 2. For Custom Profile Field Mod I'm using v3.15.
Title: Re: Custom Profile Field Mod
Post by: NotNice on November 17, 2006, 05:07:57 AM
I am using 1.1 RC3 with the Terra Incognita template v1.0.1
I installed the mod without problems, I can make fields in the admin-center, but the fields do not show up in the profiles.

I added
global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();

// Show how many posts they have made.

in the Display.template.php and in the Display.template.php but nothing changed


thank you in advance for your help!
Title: Re: Custom Profile Field Mod
Post by: Lewo on November 17, 2006, 05:23:50 AM
tnx nice mod
Title: Re: Custom Profile Field Mod
Post by: Lill-Micke on November 17, 2006, 09:41:55 AM
Hi!
I think you NotNice need help whit same problem that I need help whit.


Quote from: NotNice on November 17, 2006, 05:07:57 AM
I am using 1.1 RC3 with the Terra Incognita template v1.0.1
I installed the mod without problems, I can make fields in the admin-center, but the fields do not show up in the profiles.

I added
global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();

// Show how many posts they have made.

in the Display.template.php and in the Display.template.php but nothing changed


thank you in advance for your help!



Quote from: Lill-Micke
Hi!

I have in my custom theme (pdx-dk04rc3) Profile.template.php and PersonalMessage.template.php.
Where can I find the code to add in this two files?

The code to my Display.template.php I find in the first post in this topic but not to the other two files.

Plz help me so I can install this great mod.
//Micke

Only we can do i wait for help from the great master winrules  ;)

Thx for this great mod!!!
Title: Re: Custom Profile Field Mod
Post by: NotNice on November 17, 2006, 09:44:00 AM
you are right, same problem...
we will wait patiently and without complaining  :D
Title: Re: Custom Profile Field Mod
Post by: winrules on November 17, 2006, 04:11:00 PM
Quote from: Calimarina on November 14, 2006, 09:57:07 AM
Quote from: winrules on November 13, 2006, 04:10:49 PM
Calimarina what version are you using?

I'm using Joomla v1.0.10 with SMF v1.1 RC3. I'm also using SMF v1.1 RC3 Joomla Bridge v1.1.6. SMF is using Community Builder v1.0 RC 2. For Custom Profile Field Mod I'm using v3.15.
Did you upgrade from a previous version?

NotNice and Lill-Micke, read this (http://docs.simplemachines.org/index.php?topic=402.0).
Title: Re: Custom Profile Field Mod
Post by: Mazeman on November 21, 2006, 11:19:36 AM
I have a prob.
I'm trying to print some data out of the Custom Profile field with ssi.
My code:
$testi = $context['member']['options']['CP1'];
if ($testi){$testi = $testi;}else{$testi = "Nope";}

And when I echo $testi it prints Nope
So it doesn't work right...
Title: Re: Custom Profile Field Mod (need help with joomla bridge)
Post by: imrich on November 21, 2006, 12:14:39 PM
Hi winrules, thanks so much for this wonderuful mod.

I'm using SMF 1.1-RC3 with Joomla (1.0.11) and using the 1.1.6 bridge.
I just installed your custom profile mod.

It seems to be working perfectly.

However, I have a field which I need my users to fill out when they register.

As you may know, when using this 1.1.6 bridge when a user selects the register function there is a bridge component which displays the 'agreement' and then the profile fields below it.  Unfortunately, the custom field which I added with your mod does not display.  It will display if I select the register or edit profile field on SMF.

Is there an easy way to get my custom field (there is just one at this time) to show up on the bridge com_smf_register component?

Thanks again for any help you can provide.

Title: Re: Custom Profile Field Mod
Post by: winrules on November 21, 2006, 05:05:17 PM
Mazeman - Use $user_info['options']['CP1'].

imrich - What type of registration do you have the brdige set to use?
Title: Re: Custom Profile Field Mod
Post by: imrich on November 21, 2006, 05:38:19 PM
Quote from: winrules on November 21, 2006, 05:05:17 PM
imrich - What type of registration do you have the brdige set to use?

I have it set to "Use Bridge Registration". Per the documentation for the bridge, I thought that was the only reliable setting to use.

If I set it to "SMF registration" it works ok.  Will everything work ok if I leave it set to "use SMF registration"?

I'm looking forward to your advice!
Title: Re: Custom Profile Field Mod
Post by: winrules on November 21, 2006, 06:50:34 PM
I don't know enough about the bridge to know if that settingw will work for you, but I know it has worked for others. The mod will only work with SMF registration.
Title: Re: Custom Profile Field Mod
Post by: imrich on November 21, 2006, 06:54:44 PM
Quote from: winrules on November 21, 2006, 06:50:34 PM
I don't know enough about the bridge to know if that settingw will work for you, but I know it has worked for others. The mod will only work with SMF registration.

Ouch!

Thank you for your quick reply!

I did some testing and see that if I have the bridge set for "Use Bridge Registration" then users are created in both the Joomla and SMF when they register. To me this is what I need as it will allow users to use Joomla and SMF equally.


If I set it to "use SMF Registration" then users are only created in SMF and they do not get a Joomla account.  I'm too new to know how this will affect their abilities to use Joomla.

Thanks again!
Title: Re: Custom Profile Field Mod
Post by: winrules on November 21, 2006, 07:44:15 PM
I don't know much about the bridge. I'd recommend you ask on the Bridge Support Board.
Title: Re: Custom Profile Field Mod
Post by: Mazeman on November 22, 2006, 12:43:21 AM
Quote from: winrules on November 21, 2006, 05:05:17 PM
Mazeman - Use $user_info['options']['CP1'].
Nope, it didn't work.
Title: Re: Custom Profile Field Mod
Post by: winrules on November 22, 2006, 01:16:37 PM
Did you add $user_info to the globals?
Title: Re: Custom Profile Field Mod
Post by: Mazeman on November 22, 2006, 01:27:20 PM
Quote from: winrules on November 22, 2006, 01:16:37 PM
Did you add $user_info to the globals?
Where should I add?
Title: Re: Custom Profile Field Mod
Post by: Kalika on November 23, 2006, 01:13:43 PM
edit:  Yay, I have RC3 installed... but I can't get this mod to install.  It needs my FTP info to do file creation and chmod, but when I enter the info it doesn't work, it just sends me right back to the same page.  Is there any way I can install this mod manually?  Thanks for any advice! :)
Title: Re: Custom Profile Field Mod
Post by: winrules on November 24, 2006, 11:53:09 AM
Quote from: Mazeman on November 22, 2006, 01:27:20 PM
Quote from: winrules on November 22, 2006, 01:16:37 PM
Did you add $user_info to the globals?
Where should I add?
Can you post the script you're using?

Quote from: Kalika on November 23, 2006, 01:13:43 PM
edit:  Yay, I have RC3 installed... but I can't get this mod to install.  It needs my FTP info to do file creation and chmod, but when I enter the info it doesn't work, it just sends me right back to the same page.  Is there any way I can install this mod manually?  Thanks for any advice! :)
http://docs.simplemachines.org/index.php?topic=402.0
Title: Re: Custom Profile Field Mod
Post by: Mazeman on November 24, 2006, 01:00:19 PM
<?php require("/home/vhosts/markohosting.net/httpdocs/forum/SSI.php");
$koko_nimi $user_info['options']['CP1'];
echo 
$koko_nimi?>


that's the test script of mine :D
Title: Re: Custom Profile Field Mod
Post by: Splatt19 on November 28, 2006, 11:27:45 PM
ok, I have tried many thing to try to get this mod to work with the custom theme I downloaded from here, so I was curious if you could possibly let me know why this mod does not work with the theme WoW-DK f (for 1.1 RC3) I have done the script changes you listed at the begining of this post and none of the custom fields appear on the profile page or on the boards.
Title: Re: Custom Profile Field Mod
Post by: DenDen60 on November 29, 2006, 11:45:08 AM
Just a simple question, do they appear with other themes?

Denis
Title: Re: Custom Profile Field Mod and SMF 1.1 - will it work or will we need to make
Post by: DenDen60 on November 29, 2006, 11:47:06 AM
corrections (other then those mention about the templates of course)

Denis
Title: Re: Custom Profile Field Mod
Post by: supert8ch on November 29, 2006, 09:24:08 PM
will this work on latest CB and Joomla install? Need more fields to have and don't have any idea if thesse mess with the CB link.
Title: Re: Custom Profile Field Mod
Post by: Splatt19 on November 29, 2006, 11:35:13 PM
Quote from: denden60 on November 29, 2006, 11:45:08 AM
Just a simple question, do they appear with other themes?

Denis

Yes they appear on all of the default themes as I have not installed any other custom themes than that one.
Title: Re: Custom Profile Field Mod
Post by: Amicus on December 04, 2006, 05:19:15 AM
Hello to all,

Would it be possible to exclude the title (name) of a field in the thread-view?

I would like to have a checkbox-field for "Realmembers". So i created a new field named "Realmember",
with the text "Realmember" in "Text to display when box is checked". Text for "isn't checked" stays empty.

This text should appear besides each post for evry users, that has this field activated, BUT without a leading "Realmember : " oder " : " tag.

Even if that field doesn't have a name, the " : " appears before "Realmember", so at the moment it shows:
" : Realmember"

Any chance of getting this?

Thanks in advance,
Amicus
Title: Re: Custom Profile Field Mod
Post by: imrich on December 04, 2006, 07:21:52 AM
I was using SMF 1.1 RC3 and just installed the 1.1 update so now I'm at SMF 1.1 (final).

I noticed my custom profile fields were gone.

When I checked my "Installed packaged" it shows none.

I can see "custom profile field mod v3.15" in my list of packaged, but when I click "apply mod" I recieve a

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF"

Can you suggest a fix or do you have one coming for SMF 1.1 (final) soon?

Thanks!
Title: Re: Custom Profile Field Mod
Post by: winrules on December 04, 2006, 04:59:26 PM
Please read my signature...I will do it soon. Probobally tomorrow.

Amicus, You will have to wait for the next version. You can't do that in the current version.
Title: Re: Custom Profile Field Mod
Post by: Hexjackal on December 04, 2006, 05:39:36 PM
It's a freaking conundrum.

The name field says the field is displayed in posts, but it isn't.  I deleted the field and made a new one, didn't work. I'm using the modification with SMF 1.1
Title: Re: Custom Profile Field Mod
Post by: winrules on December 04, 2006, 06:00:54 PM
Quote from: Hexjackal on December 04, 2006, 05:39:36 PM
It's a freaking conundrum.

The name field says the field is displayed in posts, but it isn't.  I deleted the field and made a new one, didn't work. I'm using the modification with SMF 1.1
Read the first post on this topic.
Title: Re: Custom Profile Field Mod
Post by: Hexjackal on December 04, 2006, 06:30:03 PM
Quote from: winrules on December 04, 2006, 06:00:54 PM
Quote from: Hexjackal on December 04, 2006, 05:39:36 PM
It's a freaking conundrum.

The name field says the field is displayed in posts, but it isn't.  I deleted the field and made a new one, didn't work. I'm using the modification with SMF 1.1
Read the first post on this topic.

Okay, now it shows the name of the field twice.
Title: Re: Custom Profile Field Mod
Post by: tipiyano on December 05, 2006, 03:13:24 PM
Hello. I am using SMF 1.1RC3 and have installed customprofile3-15 successfully. However, I am unable to add anything except the text field. I select "text area from the type" and then click settings and enter all the relevant information. However, when i click save, it create the field but with the type "text". I have tried other options (check box, selection) but none of them work. Also, I do not see any option1, option2, etc for selection which makes me think that for some reason it is only creating text fields.

I have seen this question posted alteast once before but was unable to find the answer. Please advice what I should do. Thank you for your help.

Rahul
Title: Re: Custom Profile Field Mod
Post by: winrules on December 05, 2006, 05:23:56 PM
Quote from: tipiyano on December 05, 2006, 03:13:24 PM
Hello. I am using SMF 1.1RC3 and have installed customprofile3-15 successfully. However, I am unable to add anything except the text field. I select "text area from the type" and then click settings and enter all the relevant information. However, when i click save, it create the field but with the type "text". I have tried other options (check box, selection) but none of them work. Also, I do not see any option1, option2, etc for selection which makes me think that for some reason it is only creating text fields.

I have seen this question posted alteast once before but was unable to find the answer. Please advice what I should do. Thank you for your help.

Rahul
I'm not sure what's going wrong. Try recreating the field. If that doesn't work then can you please pm me a test account with permissions to mannage custom profile fields?
Title: Re: Custom Profile Field Mod
Post by: Deb on December 05, 2006, 06:36:16 PM
Can the custom profile fields also show up in Admin CP when register new members from there.

I know it doesn't now, but is it easy to add some code in the file ManageRegistration.php ( think that must be the file ) so it works from there too?
Title: Re: Custom Profile Field Mod
Post by: jsdoyle on December 06, 2006, 10:50:05 PM
Watching for the update for 1.1  Thanks for making this mod!  It worked great with my 1.1 RC3 forum.

This should be built into SMF 1.1

Thanks again,

Scott Doyle
Title: Re: Custom Profile Field Mod
Post by: imrich on December 07, 2006, 08:03:23 AM
Winrules,

Thanks for this mod and your updates.

Someone posted a workaround for the SMF 1.1 issue in the review (http://mods.simplemachines.org/index.php?mod=319) section of the mod download page, do you think this is a reasonable thing to do?  If it's that simple, I can do this, but if you know of other things that should be addressed I can wait.

I have a new forum which was just coming online, so new members are getting confused as I ask people to input data in custom fields which are no longer there.

Thanks for your help and mods!
Title: Re: Custom Profile Field Mod
Post by: shumilica on December 07, 2006, 09:48:49 AM
I also wait for the update of this mod for SMF 1.1 version!
All my considerations to you, winrules!
If what twister909 is saying in reviews of your mod is correct and enough then just tell us and we will make the modification necessary  8)
Title: Re: Custom Profile Field Mod
Post by: sager on December 07, 2006, 01:27:48 PM
waiting for 1.1
Title: Re: Custom Profile Field Mod
Post by: KGIII on December 07, 2006, 01:46:28 PM
Quote from: winrules signature
I will update my mods for 1.1 final soon, so there's no need to ask.

Patience. :) They're probably really busy seeing as 1.1 just came out a wee bit ago.
Title: Re: Custom Profile Field Mod
Post by: S1L1C0N on December 07, 2006, 01:57:35 PM
Quote from: sager on December 07, 2006, 01:27:48 PM
waiting for 1.1

DOT.

Thanks for a fantastic mod that I miss having installed at update time.
Title: Its missing!
Post by: Soulgirl on December 07, 2006, 02:40:14 PM
Hi.. installed this today and removed the RC3 from the xml file - its installed fine but doesnt show in the admin panel... see screenshot below.  Ive tried with both the default skin and my light yellow one and theyre both the same :(
Title: Re: Custom Profile Field Mod
Post by: shumilica on December 07, 2006, 07:41:40 PM
Adapt this link to your website url:
http://yourwebsite.yourdomain/forum/index.php?action=featuresettings;sa=profile;
Does this link shows the mod?
Title: Re: Custom Profile Field Mod
Post by: Soulgirl on December 08, 2006, 01:04:50 AM
Hi there :)

No, it gives an error

QuoteFatal error: Call to undefined function: customfieldsettings() in /home/dancetal/public_html/smf/Sources/ModSettings.php on line 309

:(
Title: Re: Custom Profile Field Mod
Post by: sager on December 08, 2006, 07:27:47 AM
by the way when u make this mod wud it be possible so tht it comes in the search feature also ??
Title: Re: Custom Profile Field Mod
Post by: winrules on December 08, 2006, 04:19:53 PM
Quote from: Soulgirl on December 07, 2006, 02:40:14 PM
Hi.. installed this today and removed the RC3 from the xml file - its installed fine but doesnt show in the admin panel... see screenshot below.  Ive tried with both the default skin and my light yellow one and theyre both the same :(
That's why you don't change the version number unless you really know what you're doing. You'll need to upload CustomProfile.php and CustomProfile.english.php from the mod file.
Title: Re: Custom Profile Field Mod
Post by: Soulgirl on December 08, 2006, 04:22:52 PM
I followed the instructions on the Mod download page about getting it to work with the new smf version... I didn't make it up as I went along  :P
Title: Re: Custom Profile Field Mod
Post by: winrules on December 08, 2006, 04:25:02 PM
What instructions on the mod download page?
Title: Re: Custom Profile Field Mod
Post by: classixuk on December 08, 2006, 04:26:46 PM
Hi there, can you tell me where on earth I need to look in order to add some custom fields? It does not show up for me at all.

I'm using SMF 1.1RC3 and the lastest release of the mod. It installed fine.
I must admit that my template is not the default template, but Orange-lt.

However, what I have done is selected the regular default theme for myself (as webmaster) and logged in to prepare the custom fields.
I have looked all over in the features and options panel but cannot see anywhere to add custom fields.

Could you help me out please?
Title: Re: Custom Profile Field Mod
Post by: Soulgirl on December 08, 2006, 04:28:24 PM
Quote* December 03, 2006, 04:56:53 PM twister909 wrote:
    For 1.1 compatibility

    Unpack the theme, open package-info.xml

    in line 8 change
    <install for="1.1 RC3">
    with
    <install for="1.1">
    in line 18 change
    <uninstall for="1.1 RC3">
    with
    <uninstall for="1.1">

    Rebuild the pack and install as usual

http://mods.simplemachines.org/index.php?mod=319
Title: Re: Custom Profile Field Mod
Post by: imrich on December 08, 2006, 04:37:51 PM
Quote from: winrules on December 08, 2006, 04:25:02 PM
What instructions on the mod download page?

See what 'soulgirl' wrote above! :)
Title: Re: Custom Profile Field Mod
Post by: winrules on December 09, 2006, 08:35:38 PM
Version 3.16 adds 1.1 final compatibillity.
Title: Re: Custom Profile Field Mod
Post by: RoarinRow on December 09, 2006, 09:44:28 PM
Quote from: winrules on December 09, 2006, 08:35:38 PM
Version 3.16 adds 1.1 final compatibillity.

Thank you winrules!  I was really waiting for this update.  I had a failure on display.template.php, but I manually made the update and uploaded via FTP.    8)
Title: Re: Custom Profile Field Mod
Post by: adynis on December 09, 2006, 09:47:20 PM
thaanks ;)
Title: Re: Custom Profile Field Mod
Post by: Lill-Micke on December 10, 2006, 12:54:15 AM
Thanks my friend!  :)
Title: Re: Custom Profile Field Mod
Post by: Soulgirl on December 10, 2006, 04:08:12 AM
Thank you very much Winrules (http://www.thesoulgirl.com/emote/Happy/bigcuddleee.gif)
Title: Re: Custom Profile Field Mod
Post by: KGIII on December 10, 2006, 01:19:21 PM
Much thanks. ;)
Title: Re: Custom Profile Field Mod
Post by: Bigguy on December 10, 2006, 02:09:51 PM
I couldn' t get this mod to work on RC3 but on 1.1 Final it installed and is working without a hitch, thanks man. :)
Title: Re: Custom Profile Field Mod
Post by: YamiKaitou on December 10, 2006, 05:06:42 PM
Where does it save the field data? I wish to tie my site into these fields.
Title: Re: Custom Profile Field Mod
Post by: winrules on December 10, 2006, 05:59:35 PM
Quote from: YamiKaitou on December 10, 2006, 05:06:42 PM
Where does it save the field data? I wish to tie my site into these fields.
In the themes table.
Title: Re: Custom Profile Field Mod
Post by: YamiKaitou on December 10, 2006, 06:11:09 PM
Quote from: winrules on December 10, 2006, 05:59:35 PM
Quote from: YamiKaitou on December 10, 2006, 05:06:42 PM
Where does it save the field data? I wish to tie my site into these fields.
In the themes table.

Thanks, I found it. Awesome mod also
Title: Re: Custom Profile Field Mod
Post by: Deb on December 10, 2006, 06:14:53 PM
Quote from: Deb on December 05, 2006, 06:36:16 PM
Can the custom profile fields also show up in Admin CP when register new members from there.

I know it doesn't now, but is it easy to add some code in the file ManageRegistration.php ( think that must be the file ) so it works from there too?

I'll try my question again and hope for some help or a hint how to do this.  Now for SMF 1.1
Title: Re: Custom Profile Field Mod
Post by: Bigguy on December 10, 2006, 06:37:54 PM
I guess I shouldn't talk so quick. It seems I am the only one that can see these fields. Well, I created 2 fields and forced them at registration and they both show there but they can not be edited or even show up in the users profile.
Title: Re: Custom Profile Field Mod
Post by: winrules on December 10, 2006, 07:39:43 PM
Quote from: Bigguy on December 10, 2006, 06:37:54 PM
I guess I shouldn't talk so quick. It seems I am the only one that can see these fields. Well, I created 2 fields and forced them at registration and they both show there but they can not be edited or even show up in the users profile.
Are you using a custom theme? If yes you will have to manually install the changes in Profile.template.php (if your theme has one) and Post.template.php.

Deb, that might be a possibilly in future versions, although you could always just go and edit the user's profile afterwards.
Title: Re: Custom Profile Field Mod
Post by: Bigguy on December 10, 2006, 08:15:15 PM
nah it was me, had a setting wrong. It works fine just like it should. :)
Title: Re: Custom Profile Field Mod
Post by: mark7144 on December 10, 2006, 09:50:39 PM
I'm on SMF1.1 final and everything seems to be working but if you have someone as a 'buddy', when viewing their profile the 'Remove Buddy' text moves all the way to the top.

My only additional profile field is the 'Bebo' one.

Can someone help please?
Title: Re: Custom Profile Field Mod
Post by: Lady Ambrosia on December 11, 2006, 02:55:27 PM
Is there away that you can have the Custom Profile stuff under the Display images?  I don't want them next to the images, I want them under them, if that makes any sense.



EDIT:  Nevermind I figured it out, I just needed to add some <br> in the Text to display before field (BBC is ok if enabled above) and in the Text to display after field (BBC is ok if enabled above) fields.  Okay I feel dumb  :P
Title: Re: Custom Profile Field Mod
Post by: winrules on December 11, 2006, 08:35:17 PM
mark7144 - I'll look into that.
Title: Re: Custom Profile Field Mod
Post by: mark7144 on December 11, 2006, 08:37:06 PM
Thanks!

I used your mod with the YouTube one to create this:

http://www.murraysworld.com/talk/index.php?action=profile;u=2

Hope you like it ;)
Title: Re: Custom Profile Field Mod
Post by: Kalika on December 12, 2006, 03:20:31 PM
Can anyone please tell me what files need to be set writeable in order for this mod to install, so I can set them writeable manually?  I haven't been able to get this installed to save my life.   :-[  thanks!
Title: Re: Custom Profile Field Mod
Post by: winrules on December 12, 2006, 04:51:45 PM
Kalika - just chmod all the files that are lsited to be modified to 777.
Title: Re: Custom Profile Field Mod
Post by: Kalika on December 13, 2006, 12:13:07 AM
That's the thing, I don't know which files need to be modified.. it doesn't tell me when it tries to install, it just asks for my FTP information and when I enter it, it takes me back to the very same page.   :)
Title: Re: Custom Profile Field Mod
Post by: vaulot on December 13, 2006, 01:59:16 AM
I got the exact same problem with the supposedly new verions for SM 1.1....  ???
Title: Re: Custom Profile Field Mod
Post by: mark7144 on December 13, 2006, 09:56:37 AM
I really love this mod but it could just be me but the administration side of it seems very buggy (on my non-default theme).

Adding a new field doesn't happen unless I first click 'Add Field' then uncheck one of the other fields, then click save and then I assume I should have them all checked again.

The same process has to happen if I try and move the position up or down.

Also once getting it to move up or down, all of my profiles used the same description from another one.

Title: Re: Custom Profile Field Mod
Post by: 0897jhPEFUOIyG90 on December 13, 2006, 03:11:58 PM
I have noticed that more than one user has lost functionality of this mod when upgrading to 1.1 final.

You may want to have a look at the code in "upgrade_1-1.sql" in the "smf_1-1_update.zip" package.

Particularly the code commented:

/******************************************************************************/
--- Installing new default theme...
/******************************************************************************/

---# Installing theme settings...
---{
// This is Grudge's secret "I'm not a developer" theme install code - keep this quiet ;)


;) shhhhh! (maybe it wasn't such a good idea...)


I'm not quite sure about it yet, but I suspect that these changes to the default theme in the update will adversely affect the function of the custom profile field mod and its derivatives.

I will advise once I get a look at a site that has had a derivative of this mod borked by updating to 1.1 final.
Title: Re: Custom Profile Field Mod
Post by: winrules on December 13, 2006, 03:59:24 PM
Kalika, vaulot - Have you installed any other mods successfully?

mark7144 - Yes, I know that there are many bugs. The problem is really the backend of it - it uses a system that is designed for individual static options. I'm currently rewriting it using a much better system.

0897jhPEFUOIyG90 - You will have to reinstall the mod after upgrading.
Title: Re: Custom Profile Field Mod
Post by: Kalika on December 14, 2006, 12:21:26 AM
winrules - No, I can't get any mod on any of my versions of SMF to install.  They all do the same thing.  I know it's not a problem with your mod.   :)  I just thought that if I could manually set the files writeable, I could skip the whole 'enter your FTP info' screen and advance to get the mod installed.. that's what I had to do to install SMF to begin with.  It wouldn't install or accept my FTP info, so I set the necessary files writeable and it went on with the install.
Title: Re: Custom Profile Field Mod
Post by: mark25 on December 14, 2006, 10:55:04 PM
Quote from: mark7144 on December 10, 2006, 09:50:39 PM
I'm on SMF1.1 final and everything seems to be working but if you have someone as a 'buddy', when viewing their profile the 'Remove Buddy' text moves all the way to the top.

My only additional profile field is the 'Bebo' one.

Can someone help please?


same problem.
Title: Re: Custom Profile Field Mod
Post by: mark7144 on December 14, 2006, 11:50:02 PM
Quote from: mark25 on December 14, 2006, 10:55:04 PM
Quote from: mark7144 on December 10, 2006, 09:50:39 PM
I'm on SMF1.1 final and everything seems to be working but if you have someone as a 'buddy', when viewing their profile the 'Remove Buddy' text moves all the way to the top.

My only additional profile field is the 'Bebo' one.

Can someone help please?


same problem.

And we're both called mark... SPOOKY!  :P
Title: Re: Custom Profile Field Mod
Post by: tarsia on December 15, 2006, 04:42:07 AM
Hello,

I'm using the mod in SMF 1.1. It's working fine and i'm using some custom-field on the register-page. But i have a question:

Is it possible that the custom-fields would appear above and not under the "Visual verification" on the register page?

If yes, what do i have to change?

Many thanks
tarsia
Title: Re: Custom Profile Field Mod
Post by: Kindred on December 16, 2006, 06:49:04 PM
WOW!!!!   I seem to have found a BIG oversight here...

if you add a custom text field, there is no limit to the number of characters that can be added...

in other words, in the display screen, a person can have 300 lines of text added...

I think you need to add a maxlength stat in the field settings... 
(the current "size" of the field is set to 50, but that should probably be the same size as "maxlength", especially if you make it into a settable variable.)

for the moment, I have change the field size and maxlength (in my set up) to 25...
If anyone else is interested in 'fixing" this:

line 31 in CustomProfile.php

<td><b>' . $modSettings['CP' . $i . '_name'] . ': </b>' , !empty($modSettings['CP' . $i . '_desc']) ? '<div class="smalltext">' . $modSettings['CP' . $i . '_desc'] . '</div>' : '' , '</td><td><input type="text" name="default_options[' . $modSettings['CP' . $i . '_id'] . ']" size="25" maxlength="25" value="', @$context['member']['options'][$modSettings['CP' . $i . '_id']], '" /></td>
Title: Re: Custom Profile Field Mod
Post by: Dem0n on December 16, 2006, 07:31:15 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I get the following error when trying to install on 1.1 Final.
Title: Re: Custom Profile Field Mod
Post by: mark7144 on December 16, 2006, 10:35:13 PM
Quote from: Kindred on December 16, 2006, 06:49:04 PM
WOW!!!!   I seem to have found a BIG oversight here...

if you add a custom text field, there is no limit to the number of characters that can be added...

in other words, in the display screen, a person can have 300 lines of text added...

I think you need to add a maxlength stat in the field settings... 
(the current "size" of the field is set to 50, but that should probably be the same size as "maxlength", especially if you make it into a settable variable.)

for the moment, I have change the field size and maxlength (in my set up) to 25...
If anyone else is interested in 'fixing" this:

line 31 in CustomProfile.php

<td><b>' . $modSettings['CP' . $i . '_name'] . ': </b>' , !empty($modSettings['CP' . $i . '_desc']) ? '<div class="smalltext">' . $modSettings['CP' . $i . '_desc'] . '</div>' : '' , '</td><td><input type="text" name="default_options[' . $modSettings['CP' . $i . '_id'] . ']" size="25" maxlength="25" value="', @$context['member']['options'][$modSettings['CP' . $i . '_id']], '" /></td>

Thanks, I also was worried over this issue.

maxlength="70" was much more appropriate for my forum btw.
Title: Re: Custom Profile Field Mod
Post by: tarsia on December 18, 2006, 03:26:58 AM
Hi,

if you insert the maxlenght and are using a customfield on the register page, i think it makes to change line 88 (function RegistrationFields), too

tarsia
Title: Re: Custom Profile Field Mod
Post by: mgaidia on December 20, 2006, 06:49:08 AM
Can you please add statistics.
so we can see how many members chose a specific option.
Title: Re: Custom Profile Field Mod
Post by: Livethefire on December 20, 2006, 06:16:36 PM
Ok I am setting up a forum and I have Mambo version: 4.6.1

I have downloaded and installed SMF 1.1
I have downloaded and installed (the mod doesnt install successfully) "1.3.2 beta 1 [SMF 1.1]" >  MamboSMFForum_1.3.2b1.zip
which has the component and the mod.

the component works perfect, but the mod brings back a few test failures:

1.     Execute Modification     ./index.php     Test successful
2.    Execute Modification    ./Themes/default/script.js           Test failed
3.    Execute Modification    ./Sources/Post.php                    Test successful
4.    Execute Modification    ./Sources/Subs-Post.php         Test failed
5.    Execute Modification    ./Sources/Profile.php                     Test successful
6.    Execute Modification    ./Sources/Subs.php                    Test failed
7.    Execute Modification    ./Sources/LogInOut.php                   Test successful
8.    Execute Modification    ./Sources/QueryString.php          Test successful


I have tried several other components and mod packages, but this one brigns back less test failed, all other ones bring back more than three.
I have no other mods installed and these results where tested STRAIGHT after i uploaded and installed the SMF 1.1


What will I do to get the mod working?

thanks.
Title: Re: Custom Profile Field Mod
Post by: sparky33 on December 22, 2006, 12:10:47 PM
Just installed, and it "seems" to be working, I can't tell at the moment as it doesn't show in profiles of already registered members, as a retrospective, but if I go to my forum as a guest and open the registration page, it does ask me to fill in the fields??? I'm using Babylon theme and SMF 1.1.1
Title: Re: Custom Profile Field Mod
Post by: !Hachi! on December 24, 2006, 09:16:52 AM
i am unable to delete fields after adding new one and fields number getting mix up..any idea guys like 2 fields have same field id....ah
Title: Re: Custom Profile Field Mod
Post by: sparky33 on December 24, 2006, 01:16:44 PM
All sorted now.
Title: Re: Custom Profile Field Mod
Post by: mark7144 on December 24, 2006, 03:39:31 PM
Has anyone worked out a fix for the 'Remove Buddy' text going to the top of the profile?
Title: Re: Custom Profile Field Mod
Post by: !Hachi! on December 25, 2006, 08:59:27 AM
error is in sources/manageserver.php
  and line number 487 which is         
updateSettings
      updateSettings($setArray);
and whole code for this is
// Helper function for saving database settings.
function saveDBSettings(&$config_vars)
{
foreach ($config_vars as $var)
{
if (!isset($var[1]) || !isset($_POST[$var[1]]))
continue;

// Checkboxes!
elseif ($var[0] == 'check')
$setArray[$var[1]] = !empty($_POST[$var[1]]) ? '1' : '0';
// Select boxes!
elseif ($var[0] == 'select' && in_array($_POST[$var[1]], array_keys($var[2])))
$setArray[$var[1]] = $_POST[$var[1]];
// Integers!
elseif ($var[0] == 'int')
$setArray[$var[1]] = (int) $_POST[$var[1]];
// Floating point!
elseif ($var[0] == 'float')
$setArray[$var[1]] = (float) $_POST[$var[1]];
// Text!
elseif ($var[0] == 'text' || $var[0] == 'large_text')
$setArray[$var[1]] = $_POST[$var[1]];
// Passwords!
elseif ($var[0] == 'password')
{
if (isset($_POST[$var[1]][1]) && $_POST[$var[1]][0] == $_POST[$var[1]][1])
$setArray[$var[1]] = $_POST[$var[1]][0];
}
}

updateSettings($setArray);
}

any suggestions?
Title: Re: Custom Profile Field Mod
Post by: avas on December 27, 2006, 12:04:24 AM
Hello,   :(

I upgraded to SMF 1.1 Final and use the Custom Profile Field Mod (won't live without it).
However when I updated to 1.1.1 the  Custom Profile Fields disappeared!  I freaked out and
immediately deleted the new 1.1.1 (which took me 3-4 hours to copy into my account, not being
able to figure out the webinstall thing) and reverted to the 1.1 final backup.

Is this mod going to be updated to run with 1.1.1?  how will I know when?  Does it have to be reinstalled or do I just wait til you tell me it works, then I re-do the update?

Thank you.  (I am not a programmer, so please keep it simple for me.)
Title: Re: Custom Profile Field Mod
Post by: sparky33 on December 27, 2006, 12:37:49 AM
I'm running 1.1.1 and it works for me
Title: Re: Custom Profile Field Mod
Post by: Tapsa2 on December 28, 2006, 03:18:59 PM
Just a simple question.
Is there a limit to the number of "select box" options?
I would need at least 114 options to select from. (all the cities in Finland)
This mod seems to work fine with SMF 1.1.1 and is just what i need.
Title: Re: Custom Profile Field Mod
Post by: !Hachi! on December 28, 2006, 06:40:06 PM
why i am unable to update CPF settings?any guess?
Title: Re: Custom Profile Field Mod
Post by: Gwydion Frost on January 01, 2007, 04:08:51 AM
Fatal error: template_main(): Failed opening required '/hsphere/local/home/gwydionf/thirdworldnetwork.org/devcom/Sources/CustomProfile.php' (include_path='.:/usr/local/lib/php:/usr/local/lib/php/PEAR:/usr/local/share/pear') in /hsphere/local/home/gwydionf/thirdworldnetwork.org/devcom/Sources/Load.php(1724) : eval()'d code on line 343

This is what it gives me...when I go to look at a post, after the install. SMF 1.1.1.
Title: Re: Custom Profile Field Mod
Post by: mgaidia on January 01, 2007, 04:26:49 AM
Quote from: mgaidia on December 20, 2006, 06:49:08 AM
Can you please add statistics.
so we can see how many members chose a specific option.
please
Title: Re: Custom Profile Field Mod
Post by: Vaidy on January 01, 2007, 06:26:27 PM
Hi,

I am running version 1.1.1 with a template neutron. I was able to install this mod alright. It shows during register. However, it doesnt show in the profile, when I review the profile before deciding to approve a registration.

Has anyone else had this problem?

Non appearance of the information defeats the purpose of this mod.
Title: Re: Custom Profile Field Mod
Post by: sparky33 on January 01, 2007, 07:21:33 PM
I installed a couple of extra mods, and now this one isn't diplaying in posts, even though I've selected it to, I uninstalled the later mods but it didn't fix it?
Title: Re: Custom Profile Field Mod
Post by: mark7144 on January 01, 2007, 07:50:11 PM
Quote from: winrules on December 11, 2006, 08:35:17 PM
mark7144 - I'll look into that.
Any luck?
Title: Re: Custom Profile Field Mod
Post by: winrules on January 01, 2007, 09:45:37 PM
First off, sorry for letting this thread kind of get out of hand.
Second off, it should install fine on 1.1.1.
Now, for individual support:

Regarding all feature requests - I plan to include many of these in a new version that will hopefully come out in not too, too long.

Kindred - There will be a limit in the next version of the mod. Your solution won't do that much, as users can always remove that maxlenght and it isn't validated on the server side.

Livethefire - That is a different mod.

hassan - What is the exact error you are getting?

Tapsa2 - No there isn't a limit.

Gwydion Frost - When do you get that error (the URL)?

Vaidy - Look at the first post of this topic.

sparky33 - Look at the first post of this topic.

mark7144 - I might patch that in a few days.
Title: Re: Custom Profile Field Mod
Post by: Vaidy on January 01, 2007, 11:00:13 PM
Quote from: winrules on March 30, 2006, 02:21:25 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=319)

.......
How to Make "Show in posts?" Work With Custom Themes (last updated for version 3.16):

In Display.template.php
Find:

// Show how many posts they have made.

And Replace With:

global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();

// Show how many posts they have made.


Find:

<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';

And Replace With:

<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
DisplayFieldPostsPictures();

Note: If your theme has it's own Profile.template.php or PersonalMessage.template.php or Register.template.php you will have to make changes to those but most themes don't. Also note that this isn't necessary on all themes, but most have their own Display.template.php.


Download Latest Version (3.16) (http://mods.simplemachines.org/index.php?action=download;mod=319;id=22176)

I now understand that I have to edit a couple of individual files in the template I am using.

err, sorry to be such a newbie. Are these suggested changes are applicable only to "Show in Posts" or are they applicable to when I view the profile of the person who has registered and waiting for approval. If I indeed have to change the code for all the 3 files, do I make the same changes or is the code different for different pages (display.template, profile.php and register.template.php)?
Title: Re: Custom Profile Field Mod
Post by: winrules on January 02, 2007, 10:31:44 AM
You'll need to also manually apply the changes to Profile.template.php.
Title: Re: Custom Profile Field Mod
Post by: sparky33 on January 02, 2007, 11:45:04 AM
Sorted, tried to apply this before asking the question but must have done something wrong.
Title: Re: Custom Profile Field Mod
Post by: Gwydion Frost on January 03, 2007, 05:12:19 AM
Ok, so... figured out one of the problems... The CustomProfile.php file was a name only... reloaded it, no problem...except one.

My avatars have all disappeared.
Title: Re: Custom Profile Field Mod
Post by: Adamzon on January 03, 2007, 08:32:44 AM
This mod is great...

One question: Is it posible to make one of the fields bigger?

(See my modded picture)
Title: Re: Custom Profile Field Mod
Post by: drhamad on January 03, 2007, 09:40:13 AM
Out of curiosity, any reason you chose to store the data in smf_themes, instead of smf_members?
Title: Re: Custom Profile Field Mod
Post by: winrules on January 03, 2007, 02:53:26 PM
Gwydion Frost - Where did they disappear from?

Adamzon - Use a textarea.

drhamad - Because if they were stored in the members table, columns would have to dynamically added and removed when you add and remove fields, which is a bad idea and can take forever on large forums.
Title: Re: Custom Profile Field Mod
Post by: Gwydion Frost on January 03, 2007, 05:08:57 PM
Well, When you look at a message or a profile, SMF 1.1.1 no longer acknowledges that they are there, in either the Core theme, or Helios (which I modded to also apply this mod).

Matter of fact, even though I have not changed any settings, and the jpgs are still in the proper folder, with everything pointing to it, SMF told me that there were NONE. When I attempted to reload an avatar, it shows a lovely [ x ]... and nothing else.
Title: Re: Custom Profile Field Mod
Post by: winrules on January 03, 2007, 05:10:20 PM
Can I have a link to your site?
Title: Re: Custom Profile Field Mod
Post by: Gwydion Frost on January 03, 2007, 05:14:06 PM
www.thirdworldnetwork.org
Title: Re: Custom Profile Field Mod
Post by: winrules on January 03, 2007, 05:34:17 PM
Strange. It doesn't seem to have anything to do with this mod though. Do you have any attachments? Can you tell me if they work?
Title: Re: Custom Profile Field Mod
Post by: Gwydion Frost on January 03, 2007, 06:00:57 PM
Sigs work.

Smilies work.

Nope, it dropped all the attachments.

Reason I think its this mod is because it only happened once I installed this mod.

The only other mod I have installed is the Member Color Link... and things were still there when I added that.
Title: Re: Custom Profile Field Mod
Post by: Gwydion Frost on January 03, 2007, 06:28:40 PM
"1 attachments/avatars have an entry but no longer exist on disk"

This is the message I get on the File Maintenance option for the Avatars.

Problem is, I am staring at the directory on my FTP and I clearly see all of them, attachments and avatars, still sitting there, quite alive and well.
Title: Re: Custom Profile Field Mod
Post by: Gwydion Frost on January 03, 2007, 06:49:44 PM
Also, when go to the browse files option, I see the lone avatar listed, but when I click on the link to see it, I get a 404 page... its unable to display it.
Title: Re: Custom Profile Field Mod
Post by: winrules on January 03, 2007, 07:29:59 PM
So all of the files are intact in the attachment/avatar directory?
Title: Re: Custom Profile Field Mod
Post by: Gwydion Frost on January 04, 2007, 03:00:54 AM
Yeah, they are there, taking up space... ;)

It just seems like SMF isn't aware of them being there at all...
Title: Re: Custom Profile Field Mod
Post by: winrules on January 04, 2007, 11:33:47 AM
Have you done anything related to avatars recently?
Title: Re: Custom Profile Field Mod
Post by: Gwydion Frost on January 04, 2007, 03:35:59 PM
Nope.

Never touched them.
Title: Re: Custom Profile Field Mod
Post by: winrules on January 04, 2007, 04:50:22 PM
If you reupload an avatar, does it appear again?
Title: Re: Custom Profile Field Mod [Correction of some "bugs"]
Post by: @ngel on January 04, 2007, 05:45:02 PM
Two questions :

1. Why the routine "DisplayFieldPosts" and "DisplayFieldPostsPictures" are not the same in the file "customprofile.php" because there is a misplaced display ?  I think these routines must be the same except in "DisplayFieldPostsPictures" : if ($modSettings['CP' . $i . '_post']!='image')
{
$i++;
continue;
}
in "DisplayFieldPosts" : if ($modSettings['CP' . $i . '_post']!='text')
{
$i++;
continue;
}


However a single routine with a parameter can do the same : DisplayFields($display)  with $display = 'image' or 'text'

2. A misplacement of the custom field if SMF Arcade is used (see image "custom misplaced.png".  I think this is a normal thing because the Arcade informations are not included in the main SMF file but in "ArcadeSigsStats.php", so I used the BBC {b} in before field and after field (see image "custom corrected").

BUT I think it's better to place it after avatar. So, i adapted the source code (file "display.template.php" in /Themes/default) as follows :

Previous
Quote // Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
DisplayFieldPostsPictures();
}
}
// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '
<br />
<br />
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';


//-- start champ in post profile --------------
arcade_champs_post_profile($message);
//--  end champ in post profile ---------------
// Done with the information about the poster... on to the post itself.

New
Quote // Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
}
}
// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '
<br />
<br />
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';


//-- start champ in post profile --------------
arcade_champs_post_profile($message);
//--  end champ in post profile ---------------
//-- start show custom profile ----------------
echo '<br/>';
DisplayFieldPostsPictures();
//--  end show custome profile ----------------
// Done with the information about the poster... on to the post itself.

Title: Re: Custom Profile Field Mod
Post by: winrules on January 04, 2007, 06:27:09 PM
1. It will be done completly differently in the next version.

2. That feature is actually designed to show an image, and in that case it would work correctly.
Title: Re: Custom Profile Field Mod
Post by: @ngel on January 04, 2007, 06:29:52 PM
Thanks for answer and the great job.
Title: Re: Custom Profile Field Mod
Post by: Gwydion Frost on January 05, 2007, 04:45:53 AM
Quote from: winrules on January 04, 2007, 04:50:22 PM
If you reupload an avatar, does it appear again?

No.

In fact, the only avatars I can seem to get access to are the preassigned ones that come with SMF, unless I take everyone's custom avatar and load it into that folder with the pre-loads.

Another interesting note... the little pop-up windows where a '?' is found on the avatar and attachment pages...? They don't pop up ANYTHING... as if I wasn't even hitting them...howver I can adjust the profile as I see fit.

So long as I don't let them upload an attachment or avatar.
Title: Re: Custom Profile Field Mod
Post by: sparky33 on January 05, 2007, 07:46:54 PM
I installed this, and with the help of others it worked a treat, had no effect on other mods?
Title: Re: Custom Profile Field Mod
Post by: Exsharaen on January 07, 2007, 09:28:46 AM
I'm sorry for being silly. I installed your mod on SMF 1.1.1 and it was successful, but I don't see any configurations in Features and Options. What is it called and where exactly can I find it?

Thank you.
Title: Re: Custom Profile Field Mod
Post by: winrules on January 07, 2007, 10:05:27 AM
sparky33 - Can you try to explain your problem more?

Exsharaen - It should be a tab at the top. Are you using a language other than english?
Title: Re: Custom Profile Field Mod
Post by: henri.bourme on January 07, 2007, 10:44:59 AM
Hello,
I have a little problem,

I want to put a profile field in a other page of my web site, (Intranet, portail), this portail is in relation with smf, so I would like to put a Field for example the number 4 (CP4). Is there a person that can give me the php code for this?


Thant you!
:P
Title: Re: Custom Profile Field Mod
Post by: sparky33 on January 07, 2007, 11:33:50 AM
Quote from: winrules on January 07, 2007, 10:05:27 AM
sparky33 - Can you try to explain your problem more?

Exsharaen - It should be a tab at the top. Are you using a language other than english?
Problems sorted
Title: Re: Custom Profile Field Mod
Post by: Halorne on January 07, 2007, 07:03:47 PM
Hello there.  First off, let me say I truly appreciate this modification - it has been working for us flawlessly for some time now.

I wanted to add another custom field that could be edited by a specific membergroup.  The purpose would be to allow my "leadership staff" to modify comments on particular users, without the users being able to see or modify their own comments. 

I realize that there is another modification that will do this, but it only allows the comments to be seen in the user's profile page.  Having the comments next to the user name (as Custom Profile Field Mod does) would be a great benefit, since we could go through posts in a certain forum and know "at a glance" particular data on each user.

I am, understandably I hope, a bit leery of assigning about two dozen staff members will full administration rights.  Therefore, I believe that this would be doable by simply making the whole "Is this user an administrator, if so then allow them to view the field / edit the field" check against a field other than administrator.  I could then assign that membergroup as an additional membergroup to each staff member, which would allow them to change/update and view each user's "hidden" profile field. 

I am comfortable with backing up and changing the code in my forum, but I don't know what in particular to change.

Thank you for your time and, again, thank you for this excellent modification.

H
Title: Re: Custom Profile Field Mod
Post by: henri.bourme on January 08, 2007, 12:20:10 PM
Quote from: henri.bourme on January 07, 2007, 10:44:59 AM
Hello,
I have a little problem,

I want to put a profile field in a other page of my web site, (Intranet, portail), this portail is in relation with smf, so I would like to put a Field for example the number 4 (CP4). Is there a person that can give me the php code for this?


Thant you!
:P
Don't forget this message, please!! :P


bye
Title: Re: Custom Profile Field Mod
Post by: Lotti on January 08, 2007, 01:01:38 PM
Hello. We can show a custom field in the member list page?
Title: Re: Custom Profile Field Mod
Post by: Kindred on January 08, 2007, 01:11:34 PM
only with some modification to the member-list table...    and adding a variable number of fields to that table is problematic, at best.
Title: Re: Custom Profile Field Mod
Post by: winrules on January 08, 2007, 04:15:54 PM
henri.bourme - Can you please try searching this thread for SSI.

Halorne - In the next version of the mod it will be absed on permissions.

Lotti, Kindred - That will be in the next version. You don't have to store the data in the members table to display it on the memberlist.
Title: Re: Custom Profile Field Mod
Post by: Saladin on January 09, 2007, 11:41:51 AM
Hi!
First of all: Great mod!
Secon: can You tell me where mod is storing data inputed by users? I have little problems with encoding and i must check that file.
Title: Re: Custom Profile Field Mod
Post by: Kindred on January 09, 2007, 12:06:54 PM
it's not storing it in a file. It is storing it in the database, under the themes table.
Title: Re: Custom Profile Field Mod
Post by: Saladin on January 09, 2007, 12:22:08 PM
Thx, i was searching in db, but i wouldn't ever imagined that it will be in smf_thmes.
Thx again
Title: Re: Custom Profile Field Mod
Post by: wilsy on January 10, 2007, 01:09:28 PM
Hi Winrules,

I am planning on launching another forum and have a list of mods that I will be applying to it. This one is at the top of the list.

If I get going today, with custom profile fields based on the current mod, will the next version upgrade the current one or will it be a completely new mod?

If the answer is 'upgrade' then that's excellent and I can get going right away. Either way is there a timescale for the next release?

Regards and best wishes,

Wilsy.
Title: Re: Custom Profile Field Mod
Post by: henri.bourme on January 10, 2007, 02:10:19 PM
Quote from: winrules on January 08, 2007, 04:15:54 PM
henri.bourme - Can you please try searching this thread for SSI.

Halorne - In the next version of the mod it will be absed on permissions.

Lotti, Kindred - That will be in the next version. You don't have to store the data in the members table to display it on the memberlist.
Excuse me, but I don't understand you, can you explain to me ? please?

henri.bourme - Can you please try searching this thread for SSI.

I have SSI, but I can't put this for example
echo @$context['member']['options'][$modSettings['CP5_id']]; to
echo @$context['user']['options'][$modSettings['CP5_id']];

can you help me please? ??? ??? ??? ???
Title: Re: Custom Profile Field Mod
Post by: winrules on January 10, 2007, 06:08:47 PM
wilsy - The next version will be a complete rewrite, although you will be able to upgrade your current fields and member data to the new version. So yes and no. And no there is not a timescale for release currently.

henri.bourme - http://www.simplemachines.org/community/index.php?topic=79004.msg539409#msg539409
Title: Re: Custom Profile Field Mod
Post by: henri.bourme on January 11, 2007, 12:47:34 PM
Thank you very much


++
Title: Re: Custom Profile Field Mod
Post by: henri.bourme on January 11, 2007, 01:38:47 PM
Aïe,

I have a error message,

Notice: Undefined index: is_owner in /home.10.2/badmintosa/www/smf/Sources/Profile.php on line 2846

The script is very good, but this message is very tedious!


Can you help me, please?  ???

++
Quote from: winrules on January 10, 2007, 06:08:47 PM
wilsy - The next version will be a complete rewrite, although you will be able to upgrade your current fields and member data to the new version. So yes and no. And no there is not a timescale for release currently.

henri.bourme - http://www.simplemachines.org/community/index.php?topic=79004.msg539409#msg539409
Title: Re: Custom Profile Field Mod
Post by: winrules on January 11, 2007, 04:29:47 PM
Well I wasn't able to find the corrected code in this topic, but it was posted here:
http://www.simplemachines.org/community/index.php?topic=92854.msg608875#msg608875
Title: Re: Custom Profile Field Mod
Post by: Beatrix on January 12, 2007, 02:38:34 AM
I don't have the file Display.template.php in the theme I am currently using..

What can I do about it? How can I make the custom fields visible on my site?
Title: Re: Custom Profile Field Mod
Post by: Kindred on January 12, 2007, 08:28:49 AM
if you do not have a display.template.php, then the theme will use the default file...   so you should be all set.
Title: Re: Custom Profile Field Mod
Post by: Beatrix on January 12, 2007, 09:39:30 AM
Well.. it doesn't work. What are the other possibilities for a problem?
I didn't have any installation problems. I am using SMF 1.1.1.
Title: Re: Custom Profile Field Mod
Post by: henri.bourme on January 12, 2007, 02:59:17 PM
 :D  ;D

Thank you, now I haven't got a error message,

I put
Quote// Load the current user's permissions....
loadPermissions();

   $memberResult = loadMemberData($ID_MEMBER, false, 'profile');


   // If all went well, we have a valid member ID!
   list ($memID) = $memberResult;

   // Is this the profile of the user himself or herself?
   $context['user']['is_owner'] = $memID == $ID_MEMBER;

// Load the stuff like the menu bar, etc.
if (isset($ssi_layers))
{
   $context['template_layers'] = $ssi_layers;
   template_header();
}
else
   setupThemeContext();
require_once($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);
Title: Re: Custom Profile Field Mod
Post by: winrules on January 12, 2007, 04:04:35 PM
Beatrix - Are you sure the fields are set to display in posts (in the field settings)?
Title: Re: Custom Profile Field Mod
Post by: entwistlej on January 13, 2007, 01:38:10 PM
Yes My custom fields don't appear in posts even when configured to do so. I'm running 1.1.1
Title: Re: Custom Profile Field Mod
Post by: winrules on January 13, 2007, 07:46:38 PM
entwistlej - Look at the first post in this topic.
Title: Re: Custom Profile Field Mod
Post by: nolageek on January 14, 2007, 01:30:21 AM
Great mod.  Any chance you could add an field where users can pick multiple items? (Say, from a list of 10 options, they can pick however many apply to them.)

Also, I'd like a "Label" field, which will let us add a label (without giving the user anything to choose from) so we can separate our fields into groups. (This would also add a horizontal rule.)

Also, not sure if this as has been reported, but I've noticed a odd bug when creating multiple selection type fields.  If I create several fields, they all have the same amount of options after saving. What I mean is, if I create a field with say, 5 options... then create a second field with 2 options, the one with 2 options gets saved with 5 options, with the remaining 3 options filled from the first field.

Example...

if I create a few fields that ask:

What is your favorite color?
Options: red, orange, blue, green, black, yellow

What is your favorite Number?
Options: one, two three, four

What is your favorite game?
Options: Hopscotch, Badminton, Checkers


When I go to answer them in my profile, I get the following:

What is your favorite color?
Options: red, orange, blue, green, black, yellow

What is your favorite Number?
Options: one, two three, four, black, yellow

What is your favorite game?
Options: Hopscotch, Badminton, Checkers, green, black, yellow



After I go back, and open each field and delete the incorrect options, everything seems ok.. just wanted to bring it to your attention.
Title: Re: Custom Profile Field Mod
Post by: abc-survivors.net on January 14, 2007, 09:59:09 PM
I loved this mod, had it running with my RC2 forum.  I've finally updated my forum to 1.1.1. I uninstalled this mod before I did the upgrade.

Now I and am wondering how do I get the new mod version and keep the old custom profile fields and data that were in my forum?

Thanks!
Mary
Title: Installing the mod
Post by: DenDen60 on January 15, 2007, 09:08:08 PM
For one reason or another, when  I want to install this mod, it doesn't give me the right directory. I think it's because I imported the database. Where is the information for the uploade drectory stored so that I can change them

This is what is tells me now. I should change 2,3,4 and 5

1. Execute Modification ./Sources/ModSettings.php Test successful
2. Execute Modification /home/denis/public_html/....../Themes/default/Profile.template.php Test successful
3. Execute Modification /home/denis/public_html/... .../Themes/default/Display.template.php Test successful
4. Execute Modification /home/denis/public_html/... .../Themes/default/PersonalMessage.template.php Test successful
5. Execute Modification /home/denis/public_html/... .../Themes/default/Register.template.php Test successful
6. Execute Modification ./Sources/Register.php Test successful
7. Extract File ./Sources/CustomProfile.php 
8. Extract File /home/denis/public_html/... .../Themes/default/languages/CustomProfile.english.php 


Title: Re: Custom Profile Field Mod
Post by: SvenJTD on January 16, 2007, 02:05:46 AM
Sorry to bulge in like this, but is there any way I can use Custom Profile so I can make birthday mandatory but so it is linked to the calendar - so it can display when someone has a Bday ?

Thanks
Title: Re: Custom Profile Field Mod
Post by: gemigene on January 16, 2007, 05:55:48 PM
For some strange reason, I can only input text boxes. I want to add dropdown fields and checkboxes but to no avail.

Installation went without a glitch.

SMF 1.1.1 with Dilber theme (I also tried it with the default theme and ditto)

???
Title: Re: Custom Profile Field Mod
Post by: neskiairti on January 17, 2007, 05:21:00 AM
im having an odd problem, im trying to add a large field..
2000 characters possible.. but when i do, i hit submit in the edit profile screen.. and, it just hangs there.. then gets a simple "page cannot be displayed" error.. as if the server sits there, not noticing..

this is likely a problem with the settings, or SMF, but, is there a way to circumnavigate it?

I do have annother problem though..
i am trying to make a selection field.. >.> and i accidentally made to many.. well, so i go to re-create.. and it says "Session verification failed. Please try logging out and back in again, and then try again."
so i delete it.. and try to remake it.. well its stuck.. every selection field i make (and move up) ends up with the same options, and imputs, as if they are all the same one, -.- its pissing me off, cause even if i use it, it doesnt work! its an empty dropdown menu..
Title: Re: Custom Profile Field Mod
Post by: Tanix on January 17, 2007, 07:43:39 AM
If I create a custom profile field for 'City', say - how would I get it to show in Profile Forum Information after the 'Location' field?

Also, say I create a number of custom profile fields, what would I need to do to have them all show on a new tab instead of at the bottom of Profile Forum Information?
Title: Re: Custom Profile Field Mod
Post by: szinski on January 18, 2007, 09:17:47 AM
Quote from: mark7144 on December 13, 2006, 09:56:37 AM
I really love this mod but it could just be me but the administration side of it seems very buggy (on my non-default theme).

Adding a new field doesn't happen unless I first click 'Add Field' then uncheck one of the other fields, then click save and then I assume I should have them all checked again.

The same process has to happen if I try and move the position up or down.

Also once getting it to move up or down, all of my profiles used the same description from another one.

Same problem here. Sometimes it takes multiple clicks to get a new field added. Reordering is also giving me major headaches.
Title: Re: Custom Profile Field Mod
Post by: webvision on January 18, 2007, 10:02:20 AM
Really very nice Mod
Title: Re: Custom Profile Field Mod
Post by: Cookiemonster on January 18, 2007, 01:19:13 PM
hi i've got a problem too, i just downloaded the new version of custom profile field mod from the smf mod site
i installed it without problems on smf1.1.1
but normally i should see this mod under features and options,
well here's my problem you see, i don't see this at all...
so i can't add any extra fields to the profiles...

should i reïnstall it????
btw: i'm using smf 1.1.1 in dutch
Title: Re: Custom Profile Field Mod
Post by: bruce marusich on January 18, 2007, 01:23:35 PM
This is a great mod and works fine on my board. I do have a question though, about how to search for the data held in the custom fields. The custom fields I have are first name and last name. How can I search in the admin area for these custom fields? What do I have to mod, so that just  the admins can see the real
first and last names, or any other custom field info?

Thanks for a great mod!
Title: Re: Custom Profile Field Mod
Post by: Cookiemonster on January 18, 2007, 02:58:21 PM
ok kinda solved it, if i change my settings to english i can use it, so problem solved, btw: great product!!!
Title: Re: Custom Profile Field Mod
Post by: neskiairti on January 18, 2007, 04:50:55 PM
so anyone want to give me a solution to my problem here? i mean, i cant add anything with a drop down select now!
Title: Re: Custom Profile Field Mod
Post by: JamesWC on January 18, 2007, 06:36:56 PM
I'm using 1.1.1, and it seems that when I reorder my custom fields they lose their descriptions.
Title: Re: Custom Profile Field Mod
Post by: samames on January 20, 2007, 01:35:56 PM
I think this may be related to calimarinas post but am not sure, i have this mod now uninstalled and i cannot see my posts, instead i get this error:

Fatal error: template_main() [function.require]: Failed opening required '/x/x/x/forums/Sources/CustomProfile.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in
/x/x/x/forums/Sources/Load.php(1744) : eval()'d code on line 372

thanx in advanxce

ps: smf 1.1.1
Title: Re: Custom Profile Field Mod
Post by: Snape on January 20, 2007, 11:00:54 PM
Quote from: gemigene on January 20, 2007, 06:22:32 PM
Kinda looks like the developer lost interest in this project, doesn't seem to visit this thread much.

I asked a simple question and even sent a PM but to no avail:

QuoteFor some strange reason, I can only input text boxes. I want to add dropdown fields and checkboxes but to no avail.

Installation went without a glitch.

SMF 1.1.1 with Dilber theme (I also tried it with the default theme and ditto)

Update, I reinstalled SMF and wonder if I should give this MOD another try but using the default template only...

I don't like to criticize but look at how many questions are left unanswered, what gives?
Gemigene
???
His last post is only a page back...he's answered a ton of questions to date, I'm sure he'll get back to you eventually.  You sure you PM'ed the right guy (winrules)?
Title: Re: Custom Profile Field Mod
Post by: winrules on January 20, 2007, 11:09:35 PM
I'll try to answer the unanswered questions tomorrow.

Please understand that I have not lost intrest in this project. I am currently developing a new version of the mod (4.0) which is a complete rewrite. I am also planning on starting a support site for my mods (though this might not happen so no guarantees). I know the current verison of this mod is quite buggy. That is why I am rewriting the entire mod and how it stores its data. I won't be making any more bug patches or adding new features (with the exception of security patches if issues arise) to the 3.x line.
Title: Re: Custom Profile Field Mod
Post by: Tanix on January 20, 2007, 11:45:42 PM
Quote from: winrules on January 20, 2007, 11:09:35 PM
I am currently developing a new version of the mod (4.0) which is a complete rewrite.

Looking forward to it. Do you have a list of new features you're currently planning to include in 4.0?
Title: Re: Custom Profile Field Mod
Post by: gemigene on January 21, 2007, 02:41:17 PM
Quote from: winrules on January 20, 2007, 11:09:35 PM
I'll try to answer the unanswered questions tomorrow.

Please understand that I have not lost intrest in this project. I am currently developing a new version of the mod (4.0) which is a complete rewrite. I am also planning on starting a support site for my mods (though this might not happen so no guarantees). I know the current verison of this mod is quite buggy. That is why I am rewriting the entire mod and how it stores its data. I won't be making any more bug patches or adding new features (with the exception of security patches if issues arise) to the 3.x line.

Good stuff!

May I suggest that you have a look at a similar MOD for phpBB at:
http://www.phpbb.com/phpBB/viewtopic.php?t=415352&postdays=0&postorder=asc&start=0
I suggest that if you were to give it a try, install it using Easymod.

It's called the Xdata_CPF (Custom Profile Field) and really works well, you can even rearrange and modify the default fields.

Sorry for mentioning the "competition" but at this moment, I'm trying out SMF, phpBB2 and Joomla! with Community Builder (with other modules) to know which one suits my purpose.

Regards,
Raygene (AKA Gemigene)
Title: Re: Custom Profile Field Mod
Post by: Tanix on January 21, 2007, 03:00:32 PM
I'd second what gemigene said. Being able to rearrange and modify the default fields would be extremely useful.
Title: Re: Custom Profile Field Mod
Post by: Torch on January 21, 2007, 03:03:03 PM
Just one question...where in the database are values of custom fields stored (for each individual user)? :/
Title: Re: Custom Profile Field Mod
Post by: Kindred on January 21, 2007, 05:27:41 PM
in the themes table
Title: Re: Custom Profile Field Mod
Post by: moraidh on January 21, 2007, 07:22:44 PM
I have never managed to get package manage to work, so I installed this mod:

http://custom.simplemachines.org/mods/index.php?mod=319

manually and all seems ok.

However, one question I have about the installation.  In the file tablanguageissue in the unzipped files, the first bit of code is the following:


<file name="$sourcedir/ModSettings.php">
      <operation>
         <search position="replace"><![CDATA[
            'title' => 'Custom Profile Fields',
]]></search>
         <add><![CDATA[
            'title' => $txt['cp_cpfields'],
]]></add>
      </operation>   

I searched the ModSettings.php file in the source directory, but found no such entry to replace.  Have I done something wrong?  Will it work ok without this addition?

Also, by default it places custom fields after the "online status".

Is it possible to edit the order of custom fields, so that they appear before the online status?
Title: Re: Custom Profile Field Mod
Post by: neskiairti on January 22, 2007, 02:33:54 AM
you can eddit the other fields, you just have to hack the forum up a bit.. they have details about it.. for instance, i used one of the suggestion tips on here, and made it so all my aim/yim/whatever fields, as well as some others, dont show up unless there is data in them.. (much smaller profiles, and much more room for my other information that i would prefer far more to have on the forum)
Title: Re: Custom Profile Field Mod
Post by: akheir on January 22, 2007, 07:11:51 AM
Has the Admin register issue been integrated so that the admin can use the custom fields when registering? 

Is there a way to modify the ManageRegistration.php file manually to accommodate?

Thanks
Title: Re: Custom Profile Field Mod
Post by: samames on January 22, 2007, 07:42:28 AM
Quote from: samames on January 20, 2007, 01:35:56 PM
I think this may be related to calimarinas post but am not sure, i have this mod now uninstalled and i cannot see my posts, instead i get this error:

Fatal error: template_main() [function.require]: Failed opening required '/x/x/x/forums/Sources/CustomProfile.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in
/x/x/x/forums/Sources/Load.php(1744) : eval()'d code on line 372

thanx in advanxce

ps: smf 1.1.1
Please help me I really need to get my forum back up and in action
Title: Re: Custom Profile Field Mod
Post by: topmmc on January 22, 2007, 07:14:01 PM
I am trying to install this mod on v 1.108 (mod v 3.16) and got following errors.

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/ModSettings.php Failure
2. Execute Modification ./Themes/default/Profile.template.php Failure
3. Execute Modification ./Themes/default/Display.template.php Success
4. Execute Modification ./Themes/default/PersonalMessage.template.php File not found
5. Execute Modification ./Themes/default/Register.template.php Failure
6. Execute Modification ./Sources/Register.php Failure
7. Extract File ./Sources/CustomProfile.php 
8. Extract File ./Themes/default/languages/CustomProfile.english.php 

Any suggestions?
Title: Re: Custom Profile Field Mod
Post by: Davey D. on January 23, 2007, 02:13:50 AM
Worked with two issues.

1st -  My 2 custom fields appear well below the CAPTCHA, and even though I have these fields triggered to alert the registrant that they missed filling them in, I would really like to replace the single "username" field with these new "First Name" and "Last Name" fields, and as such, placing them right at the beginning of the registration.

Can this mod replace the single "username" field that is now on the SMF registration page, and if so, would someone be so kind as to explain how?

2nd - The First name and Last name are not appearing under the Username within posts even though I have selected this when I created the two fields. Again, I would really prefer these two fields to just replace the username field, thus making this issue moot.
Title: Re: Custom Profile Field Mod
Post by: Kindred on January 23, 2007, 08:06:56 AM
Username (aka display name) is a critical field in the user's record. It is required in various palces throughout the SMF code and can not be replaced.

However, setting the template for messages to display first/last rather than username is easy. Just modify display.template.php to display the fields you want rather than username.
(of course, you would have to modify messageindex.template.php and boardindex.template.php as well..)
Title: Re: Custom Profile Field Mod
Post by: neskiairti on January 23, 2007, 09:30:18 AM
i think what hes suggesting is an interesting idea.. not necisarily getting rid of username.. instead.. splitting it in to two parts.. (both with a check value to make sure they are filled) so you have to put the first part of the username (the first name) then the second part of the username (the last name) with a space added between on entering, and they are conjoined.
Title: Re: Custom Profile Field Mod
Post by: Davey D. on January 23, 2007, 11:09:45 AM
I'm willing to get dirty so if someone could give me some direction I would appreciate it.

This Web site is for professionals collaborating from all over the country, and I've already realized most of them never used a message board and don't understand (funny) "username" only. A small problem that will have to be fixed later is some have entered, "john smith" or "John Smith" or just "John" or "J. Smith."

This mod works because it will force them to realize they must enter First and Last name and a company or organization name. Unfortunately, and I realize the "username" is a required input, some have complained about the redundant field, and why is the "First" and "Last" name fields at the bottom of the form (under the CAPTCHA).

The screenshot shows how it looks right now.

Any help with this please?

UPDATE:

Okay. Can I rename "username" to "First and Last Name" and change the description under this to read, "Please enter your full name, ie., Jane Smith?"

The only issue then would be how to get the "Company/Organization" field moved up to under the name field.
Title: Re: Custom Profile Field Mod
Post by: Kindred on January 23, 2007, 11:28:48 AM
at this point, I think you are going beyond what this mod was intended to do and you are looking for a specific mod that will do something different....

You are looking for a mod that is a HUGE change.
I did a little looking, and if your users do not understand usernames, then you are going to have some major problems... 
(but seriously, what person in today's computer world does not understand the concept of username?)

For example:
PMs are sent to people by using username...
messages are stored using username...
users online are displayed using username...

the list goes on.

the EASIEST thing to do is to modify the use of "username" in your language files to be "first and last name" or something similar...
that way your users will enter their first and last name as their username...

Title: Re: Custom Profile Field Mod
Post by: Davey D. on January 23, 2007, 11:53:25 AM
I understand.

I made some changes (screenshot), however I would like to know, is it possible to at least move the last two fields, "Company" and "Position" under the name field?
Title: Re: Custom Profile Field Mod
Post by: samames on January 23, 2007, 12:23:50 PM
this mod is not working i reinstalled it and then went into features and settings and got this error:
Fatal error: Cannot redeclare modifyprofilesettings() (previously declared in /x/x/x/forums/Sources/ModSettings.php:344) in /x/x/x/forums/Sources/ModSettings.php on line 349
Title: Re: Custom Profile Field Mod
Post by: Kindred on January 23, 2007, 06:24:17 PM
looks like you attempted to install the mod twice.
Title: Re: Custom Profile Field Mod
Post by: Chriss Cohn on January 23, 2007, 06:58:05 PM
I Hope that in the new 4.0 Version, it it possible to show the custom fields under the Avatar and over the images, also with a little formatting.

Regards Christian
Title: Re: Custom Profile Field Mod
Post by: samames on January 24, 2007, 05:36:29 AM
I'm sure I didn't try to install it twice. musta been some truble wiv d theme
Title: Re: Custom Profile Field Mod
Post by: Tanix on January 24, 2007, 11:16:06 AM
Look at the files. If the code has been duplicated you installed it twice. It's happened to me.
Title: Re: Custom Profile Field Mod
Post by: Davey D. on January 24, 2007, 11:20:35 AM
Reply #835 - any help here?
Title: Re: Installing the mod
Post by: DenDen60 on January 24, 2007, 07:31:49 PM
Quote from: denden60 on January 15, 2007, 09:08:08 PM
For one reason or another, when  I want to install this mod, it doesn't give me the right directory. I think it's because I imported the database. Where is the information for the uploade drectory stored so that I can change them

This is what is tells me now. I should change 2,3,4 and 5

1. Execute Modification ./Sources/ModSettings.php Test successful
2. Execute Modification /home/denis/public_html/....../Themes/default/Profile.template.php Test successful
3. Execute Modification /home/denis/public_html/... .../Themes/default/Display.template.php Test successful
4. Execute Modification /home/denis/public_html/... .../Themes/default/PersonalMessage.template.php Test successful
5. Execute Modification /home/denis/public_html/... .../Themes/default/Register.template.php Test successful
6. Execute Modification ./Sources/Register.php Test successful
7. Extract File ./Sources/CustomProfile.php 
8. Extract File /home/denis/public_html/... .../Themes/default/languages/CustomProfile.english.php 

I found the problem. Rectification, support found the problem. :-)

I was able to change the directories by using the Repair Settings tool
http://www.simplemachines.org/download/?tools


Title: Re: Custom Profile Field Mod
Post by: samames on January 25, 2007, 10:00:52 AM
okay, how do i correct this issue
Title: Re: Custom Profile Field Mod
Post by: JamesWC on January 25, 2007, 02:42:38 PM
winrules, how do I access one of the user's own custom profile fields on another page?

I've tried things like this, but they return nothing:

$context['user']['favecolor']
$context['user']['options']['favecolor']

What should I be using?

I actually want to use it on a Custom Action page (using your other mod), if that makes any difference.

Thanks.
Title: Re: Custom Profile Field Mod
Post by: gemigene on January 26, 2007, 02:42:24 PM
Quote from: Tanix on January 24, 2007, 11:16:06 AM
Look at the files. If the code has been duplicated you installed it twice. It's happened to me.

Happened to me too, LOL
Title: Re: Custom Profile Field Mod
Post by: Celtland on January 27, 2007, 08:03:07 PM
Thanks so much for this mod - it rocks!  I'm not a coder by any means, but would like to add one more setting in the admin area - to have a custom field appear only in the profile of certain membergroups.  We have a few members who are supervisors at work - I would like to be able to have a field only for them to show their seniority and the date they became supervisors.  Thanks for any help or advice - and thanks again for this mod.  :)
Title: Re: Custom Profile Field Mod
Post by: frax0 on January 31, 2007, 04:09:24 PM
hi  :D,why after to have created a profile in registration two windows appear me? tks
Title: Re: Custom Profile Field Mod
Post by: Davey D. on January 31, 2007, 04:28:50 PM
Reply #835 - any help here?
Title: Re: Custom Profile Field Mod
Post by: Compton on January 31, 2007, 08:31:41 PM
Is there a way to create a custom field that has no name in the post area.  I want to insert a small image and I don't want the ":" in front of it.
Title: Re: Custom Profile Field Mod
Post by: andr2 on February 01, 2007, 01:05:30 AM
Any plans to add functionality in customprofile_mod to hide and rename fields in the main profile of SMF?

If "no" is there any mod that already allows to do that?
Title: Re: Custom Profile Field Mod
Post by: Kindred on February 01, 2007, 08:10:11 AM
edit profile.english.php (or maby it is in index.english.php)
Title: Re: Custom Profile Field Mod
Post by: Compton on February 01, 2007, 09:54:41 AM
Quote from: Kindred on February 01, 2007, 08:10:11 AM
edit profile.english.php (or maby it is in index.english.php)

What is this in responce to?
Title: Re: Custom Profile Field Mod
Post by: extremehikers on February 01, 2007, 07:56:03 PM
How do I install a mod? 

*nevermind i looked around again and found out how to upload and install a mod.  Thanks..great mod!*
Title: Re: Custom Profile Field Mod
Post by: apis on February 01, 2007, 10:50:59 PM
How to make the fields appear on those members who have registered?
Title: Re: Custom Profile Field Mod
Post by: andr2 on February 02, 2007, 12:57:08 AM
How to add fields to the user list page (URL ends with action=mlist) and delete unused (ex. YIM or ICQ)?

P.S. I mean fields added in Custom Profile Field Mod.
Title: pdk_dx06
Post by: apis on February 02, 2007, 12:59:03 AM
I've installed this mod but it doesent appear on users profile. Wat do i need to edit? my theme is pdk_dx06.
Title: Re: Custom Profile Field Mod
Post by: apis on February 02, 2007, 01:23:05 AM
Quote from: winrules on March 30, 2006, 02:21:25 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=319)

Note: If your theme has it's own Profile.template.php or PersonalMessage.template.php or Register.template.php you will have to make changes to those but most themes don't. Also note that this isn't necessary on all themes, but most have their own Display.template.php.


Download Latest Version (3.16) (http://mods.simplemachines.org/index.php?action=download;mod=319;id=22176)

My theme has got all those. What do i need to edit. Pls help Me...
Title: Re: Custom Profile Field Mod
Post by: gemigene on February 02, 2007, 09:30:36 AM
Quote from: Snape on January 20, 2007, 11:00:54 PM
Quote from: gemigene on January 20, 2007, 06:22:32 PM
Kinda looks like the developer lost interest in this project, doesn't seem to visit this thread much.

I asked a simple question and even sent a PM but to no avail:

QuoteFor some strange reason, I can only input text boxes. I want to add dropdown fields and checkboxes but to no avail.

Installation went without a glitch.

SMF 1.1.1 with Dilber theme (I also tried it with the default theme and ditto)

Update, I reinstalled SMF and wonder if I should give this MOD another try but using the default template only...

I don't like to criticize but look at how many questions are left unanswered, what gives?
Gemigene
???
His last post is only a page back...he's answered a ton of questions to date, I'm sure he'll get back to you eventually.  You sure you PM'ed the right guy (winrules)?

Hmm, that would be the last time he answered a post, 12 days have passed and still no answer. I also see a lot of questions left unanswered (some users are trying to help others) but I believe that if a modder releases something, the support issues are also his to rectify. So, where the heck is Winrules?

Also, are MODs approved by competent Community members before officially released (like phpBB) or is it "free for all and try at your own risk"?

Gene
Title: Re: Custom Profile Field Mod
Post by: Davey D. on February 02, 2007, 10:35:45 AM
In defense of the "Support" staff, they have tried to help me in the past with other issues. I imagine like anyone else they get tired and frustrated or have their own projects to follow.

I have bumped my question three times now with no response from the author so I feel the pain. A simple "No, get lost!" would have been good enough for me.  
Title: Re: Custom Profile Field Mod
Post by: sparky33 on February 02, 2007, 03:19:57 PM
try asking for help on phpBB forums, you wont get very far, and tiny portal are just as bad.
Title: Re: Custom Profile Field Mod
Post by: gemigene on February 03, 2007, 07:30:33 PM
Quote from: davidkirk on February 02, 2007, 10:35:45 AM
In defense of the "Support" staff, they have tried to help me in the past with other issues. I imagine like anyone else they get tired and frustrated or have their own projects to follow.

True, but I still feel that it's the Mod author's responsability to follow up on his work.

QuoteI have bumped my question three times now with no response from the author so I feel the pain. A simple "No, get lost!" would have been good enough for me.

Ditto, if the author isn't interested in persuing his work, he should hand it over to someone else to finish, pull it off the MOD database or like you said, tell people to get lost. I know that these authors are working for free but why start something then just drop it? Better off not letting people down...

Gemigene
::)
Title: Re: Custom Profile Field Mod
Post by: gemigene on February 03, 2007, 07:45:24 PM
Quote from: sparky33 on February 02, 2007, 03:19:57 PM
try asking for help on phpBB forums, you wont get very far, and tiny portal are just as bad.

I wouldn't say that, I'm constantly in contact with 2 MOD authors on phpBB and they are quite responsive and helpful. As a matter of fact, I applied certain MODs which interfered with others thus "messing-up" my board that I almost started from scratch until one of these authors went into my site (gave him Admin privileges and FTP access) and he worked on my installation, corrected every error, fine tuned all pages and even installed certain MOD's which I wanted but was afraid to install due to past mistakes.

And as I mentioned before, phpBB's custom profile fields MOD is just fantastic, not only that you can add all kinds of fields (text, textboxes, radio buttons, drop-down boxes) but you can also change the behaviour of the phpBB default fields (turn them on or off, change the order of those fields, etc.).

Wouldn't you like that kind of Community spirit and help? We're not all coders and it's good to know that some experienced people are ready to lend a hand until we learn enough about php so that we don't need a little "hand holding" once in a while.

Gemigene
Title: Re: Custom Profile Field Mod
Post by: Alderson Arts on February 03, 2007, 10:16:31 PM
Great mod. Using it on SMF 1.1.1. Since BB Code can be used would you consider adding the BBC buttons like this MOD did? Signature BBCode (http://custom.simplemachines.org/mods/index.php?mod=450)
Title: Re: Custom Profile Field Mod
Post by: gemigene on February 03, 2007, 10:19:41 PM
Quote from: Alderson Arts on February 03, 2007, 10:16:31 PM
Great mod. Using it on SMF 1.1.1. Since BB Code can be used would you consider adding the BBC buttons like this MOD did? Signature BBCode (http://custom.simplemachines.org/mods/index.php?mod=450)

Hmm, hope you get an answer, some of us have been waiting for 2 weeks, read the above posts...

Gemigene
:(
Title: Re: Custom Profile Field Mod
Post by: Snape on February 04, 2007, 11:28:42 AM
Quote from: gemigene on February 03, 2007, 10:19:41 PM
Quote from: Alderson Arts on February 03, 2007, 10:16:31 PM
Great mod. Using it on SMF 1.1.1. Since BB Code can be used would you consider adding the BBC buttons like this MOD did? Signature BBCode (http://custom.simplemachines.org/mods/index.php?mod=450)

Hmm, hope you get an answer, some of us have been waiting for 2 weeks, read the above posts...

Gemigene
:(
Maybe if you supplied some details- what other mods you have installed, what errors you have in the error log when creating fields, whether you're using the default theme or a custom theme- someone would be able to help you.  Continued complaining isn't going to get your answer any sooner.

As for features, winrules said he's working on a complete rewrite in 4.0- the SMF codebase just went final about 2 months ago so you can't expect the mod featureset to compete with an older product like phpbb right out of the gate.

There are a number of creators here that also go as far as logging into peoples' boards to fix their problems- it just depends on the person's workload and where they are in their current state of development.
Title: Re: Custom Profile Field Mod
Post by: Tick on February 04, 2007, 12:43:14 PM
I am thinking about installing this mod.   I was wondering if it would have any problems with the mods I allready have installed.  I am using the YaBB SE theme.  with these mods

   Mod Name     Version     
1.    Ultimate Shoutbox    1.39    [ Uninstall ] [ List Files ] [ Delete ]
2.    Users Online Today Mod    1.4.0    [ Uninstall ] [ List Files ] [ Delete ]
3.    Profile Comments    1.2.1    [ Uninstall ] [ List Files ] [ Delete ]
4.    Display Age and Location next to posts    1.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    Signature Option Post    1.1

and do I have to edit the templates on  the first page of this topic?
Title: Re: Custom Profile Field Mod
Post by: gemigene on February 04, 2007, 05:30:20 PM
Quote from: Buddha480 on February 04, 2007, 12:43:14 PM
I am thinking about installing this mod.   I was wondering if it would have any problems with the mods I allready have installed.  I am using the YaBB SE theme.  with these mods

   Mod Name     Version     
1.    Ultimate Shoutbox    1.39    [ Uninstall ] [ List Files ] [ Delete ]
2.    Users Online Today Mod    1.4.0    [ Uninstall ] [ List Files ] [ Delete ]
3.    Profile Comments    1.2.1    [ Uninstall ] [ List Files ] [ Delete ]
4.    Display Age and Location next to posts    1.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    Signature Option Post    1.1

and do I have to edit the templates on  the first page of this topic?

If I were you, I'd wait for the new version, it'll be a complete rewrite...

Gene
Title: Re: Custom Profile Field Mod
Post by: Tick on February 04, 2007, 05:46:46 PM
Any idea when that may be coming .  I will definitely wait on it.
Title: Re: Custom Profile Field Mod
Post by: gemigene on February 04, 2007, 07:24:27 PM
Quote from: Buddha480 on February 04, 2007, 05:46:46 PM
Any idea when that may be coming .  I will definitely wait on it.

Seems that no one knows, try sending him a PM, if you're lucky, he might answer you. I tried but to no avail...

If you follow the thread, seems that this version is quite buggy and I sure as heck wouldn't want to mess up a live board with it. Tried it on a fresh install with no other MODs using the default template and had problems.

Patience my friend... We're all waiting for it.
Gene
???
Title: Re: Custom Profile Field Mod
Post by: Tick on February 04, 2007, 07:42:23 PM
Thank you I was about to install it when I got your first message.  I am very new to all this so I need it to be as trouble free as possible.   Thanks for the info.
Title: Re: Custom Profile Field Mod
Post by: picture on February 05, 2007, 01:29:49 AM
hey winrules, whats up.

a while back, a few of us posted this:

http://www.simplemachines.org/community/index.php?topic=112606.msg745151#msg745151

in regard to a new version of your mod that would allow custom searches of any profile field that admins might have added to user profiles.

any word on your plans with that? i know you were planning on adding such a feature, just don't know when.

i.e. if someone wants to search all users from "mexico" or all users that are 45 years old etc.

thanks! peace.  ;)
Title: Re: Custom Profile Field Mod
Post by: tones_ie on February 05, 2007, 05:32:33 AM
excellant mod...thanks...

I used it to add a Real name on registration...I have it set for admin approval when a new member signs up but how do i get it to email admin the real name (new custom field) along with the normal email it sends out...

thanks in advance

Title: Re: Custom Profile Field Mod
Post by: Davey D. on February 05, 2007, 10:00:00 AM
For those patiently waiting - the last post from the author of this MOD appears to be Reply #819 on January 20, 2007. His post read he might be busy with a rework but has not answered any post here since then. Additionally his signature emphasizes not to PM him for support.

We live in a fast-food society, but as I have come to realize, these folks get distracted just like us and patience is usually the order of the day here.
Title: Re: Custom Profile Field Mod
Post by: gemigene on February 05, 2007, 11:57:05 AM
Quote from: davidkirk on February 05, 2007, 10:00:00 AM
For those patiently waiting - the last post from the author of this MOD appears to be Reply #819 on January 20, 2007. His post read he might be busy with a rework but has not answered any post here since then. Additionally his signature emphasizes not to PM him for support.

We live in a fast-food society, but as I have come to realize, these folks get distracted just like us and patience is usually the order of the day here.

How right you are, just hang tight and wait for the new version.

But I still say that Winrules should post some kind of progress report so people would stop asking questions and wait for it to come out, it only takes a few minutes to write a post...

Gene
Title: Re: Custom Profile Field Mod
Post by: perplexed on February 07, 2007, 08:17:17 AM
Quote from: Buddha480 on February 04, 2007, 12:43:14 PM
I am thinking about installing this mod.   I was wondering if it would have any problems with the mods I allready have installed.  I am using the YaBB SE theme.  with these mods

   Mod Name     Version     
1.    Ultimate Shoutbox    1.39    [ Uninstall ] [ List Files ] [ Delete ]
2.    Users Online Today Mod    1.4.0    [ Uninstall ] [ List Files ] [ Delete ]
3.    Profile Comments    1.2.1    [ Uninstall ] [ List Files ] [ Delete ]
4.    Display Age and Location next to posts    1.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    Signature Option Post    1.1

and do I have to edit the templates on  the first page of this topic?

Quote from: gemigene on February 04, 2007, 07:24:27 PM
Quote from: Buddha480 on February 04, 2007, 05:46:46 PM
Any idea when that may be coming .  I will definitely wait on it.

If you follow the thread, seems that this version is quite buggy and I sure as heck wouldn't want to mess up a live board with it. Tried it on a fresh install with no other MODs using the default template and had problems. <snip>

I am using it on a very active live board with no problems.  Been using this mod since version 2.11, current version for me 3.15 but I'm about to upgrade to 1.1.1 so I will install the latest version of this 3.16 when I do.

I have 28 mods installed and they all work fine together.  This one installs and uninstalls with no problems. 

I had one little issue when moving a field up and down on a previous version now fixed, but apart from that everything is cool.  It also displays on all my themes without me having to change anything *shrug*

The 4.0 version sounds interesting.  I guess if he's not here posting,then you could assume there are no updates/news as yet.
Title: Re: Custom Profile Field Mod
Post by: crackeyes on February 07, 2007, 11:59:48 AM
i am using your mod on SMF 1.1.1 and i am getting double showing in the post and on the profiles say i make a feild called Fighters it will show it twice here is a list of mods i have can you help please


Global Announcements  1.0   
Reason For Editing Mod 1.14
Sticky First Post (extends sticky topic) 1.2.2
Merge Double Posts 1.0.6
Tagging System 1.0.3
SMF Staff Page 1.2
SMF Ranks 1.1
User Email System 1.1.3
Board Viewers Mod 1.1
Additional Membergroups on Profile 1.0
Award Mod 1.11
Board Registration Password 1.1
Karma Description Mod 2.0
SMF 1.1.1 Update Package 1.1.1
Custom Profile Field Mod 3.16
Title: Re: Custom Profile Field Mod
Post by: Sarke on February 07, 2007, 12:21:13 PM
Hi, great mod, thanks.

Just one bug to report.  When a field is moved and is a selection box, it leaves the date behind, making a duplicate entry every time it's moved to a new one.  E.g. CP2_data1, CP2_data2, CP2_data3, etc are left behind if CP2 is moved.
Title: Re: Custom Profile Field Mod
Post by: Tanix on February 07, 2007, 12:23:52 PM
Quote from: crackeyes on February 07, 2007, 11:59:48 AM
i am using your mod on SMF 1.1.1 and i am getting double showing in the post and on the profiles say i make a feild called Fighters it will show it twice

You may have installed the mod twice. Check your files to see if the code has been duplicated.
Title: Re: Custom Profile Field Mod
Post by: perplexed on February 07, 2007, 01:42:41 PM
Quote from: Sarke on February 07, 2007, 12:21:13 PM
Hi, great mod, thanks.

Just one bug to report.  When a field is moved and is a selection box, it leaves the date behind, making a duplicate entry every time it's moved to a new one.  E.g. CP2_data1, CP2_data2, CP2_data3, etc are left behind if CP2 is moved.

depends on the version but that is either a known bug or something that was fixed - have a look on the mod page to see what's been fixed  
Title: Re: Custom Profile Field Mod
Post by: Tick on February 07, 2007, 03:47:26 PM
I just installed this mod.    Now when I try to acess my post I get this message   
Fatal error: Call to undefined function: displayfieldpostspictures() in /home2/ibewfrie/public_html/Sources/Load.php(1735) : eval()'d code on line 655


Can somebody please help  My members cant get into any of the post
Title: Re: Custom Profile Field Mod
Post by: drhamad on February 07, 2007, 04:05:12 PM
I don't see that error on your forum?  I just posted fine.
Title: Re: Custom Profile Field Mod
Post by: Tick on February 07, 2007, 04:37:48 PM
well  when I try to read it it says the above error
Title: Re: Custom Profile Field Mod
Post by: DTDestroyer on February 07, 2007, 06:01:28 PM
Great mod, realy fills in the blanks! I just have a few simple newbie questions;

1.   What BBC code would I place in Text to display before field to have the entered e-mail address displayed as an a href="mailto: link

2.   Where would I enter the code to reduce the size of the font in the profile? Found It

3.   Is it possible to break up the fields to show in different areas of the profile and not all grouped together?

Thanks for your help!
Title: Re: Custom Profile Field Mod
Post by: Sarke on February 07, 2007, 08:31:45 PM
Quote from: perplexed on February 07, 2007, 01:42:41 PM
Quote from: Sarke on February 07, 2007, 12:21:13 PM
Hi, great mod, thanks.

Just one bug to report.  When a field is moved and is a selection box, it leaves the date behind, making a duplicate entry every time it's moved to a new one.  E.g. CP2_data1, CP2_data2, CP2_data3, etc are left behind if CP2 is moved.

depends on the version but that is either a known bug or something that was fixed - have a look on the mod page to see what's been fixed 

I'm using the latest version.
Title: Re: Custom Profile Field Mod
Post by: perplexed on February 08, 2007, 07:18:34 AM
Quote from: DTDestroyer on February 07, 2007, 06:01:28 PM
Great mod, realy fills in the blanks! I just have a few simple newbie questions;

1.   What BBC code would I place in Text to display before field to have the entered e-mail address displayed as an a href="mailto: link

2.   Where would I enter the code to reduce the size of the font in the profile? Found It

3.   Is it possible to break up the fields to show in different areas of the profile and not all grouped together?

Thanks for your help!


I think the answer to #1 is somewhere in these 59 pages, I'm pretty sure someone asked before
Title: Re: Custom Profile Field Mod
Post by: kaype on February 08, 2007, 06:23:13 PM
Hey guys I am not sure if this is answered before, but what I am looking for is a condition during registration. That is, if the user enters [email protected] they they are shown a set of reg details/fields, but if they enter any other domain than abc.com then the are shown a different reg details/fields. There is also a catch here, there are few mandatory fields which change depending on the email, so that also needs to be taken care.

Thanks in advance
Title: Re: Custom Profile Field Mod
Post by: skoozee on February 08, 2007, 06:38:16 PM
hi everyone :)


i just installed this and guess i shouldnt have really, as now i have an error i cant fix.

if the mods installed i get this error when i click on features and options in the admin panel:
Fatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/backy4/public_html/forum/Sources/ModSettings.php:314) in /home/backy4/public_html/forum/Sources/ModSettings.php on line 319

if i uninstall the mod i get this error on all of the posts on the forum:
Fatal error: template_main() [function.require]: Failed opening required '/home/backy4/public_html/forum/Sources/CustomProfile.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/backy4/public_html/forum/Sources/Load.php(1724) : eval()'d code on line 318

so i cant win eitherway lol


SMF 1.1.1 fresh install no other mods or themes

anyone any ideas on fixing this please ?
Title: Re: Custom Profile Field Mod
Post by: DTDestroyer on February 08, 2007, 08:10:55 PM
Quote from: perplexed on February 08, 2007, 07:18:34 AM
Quote from: DTDestroyer on February 07, 2007, 06:01:28 PM
Great mod, realy fills in the blanks! I just have a few simple newbie questions;

1.   What BBC code would I place in Text to display before field to have the entered e-mail address displayed as an a href="mailto: link

2.   Where would I enter the code to reduce the size of the font in the profile? Found It

3.   Is it possible to break up the fields to show in different areas of the profile and not all grouped together?

Thanks for your help!


I think the answer to #1 is somewhere in these 59 pages, I'm pretty sure someone asked before

I got through about 30 of them before i gave up and decided to ask!  lol
Title: Re: Custom Profile Field Mod
Post by: kmik on February 09, 2007, 12:10:52 PM
Sorry... I'm TOTALLY new at this... so I need a little hand holding.

Brand new install of SMF... this is the FIRST mod I attempted to install, haven't even done so much as a test post, or change themes...

After attempting to install this mod, I got:

Error in Package Installation
At least one error was encountered during a test installation of this package...

and:

1.     Execute Modification     ././Sources/ModSettings.php     File not found
2.    Execute Modification    ././Themes/default/Profile.template.php    File not found
3.    Execute Modification    ././Themes/default/Display.template.php    File not found
4.    Execute Modification    ././Themes/default/PersonalMessage.template.php    File not found
5.    Execute Modification    ././Themes/default/Register.template.php    File not found
6.    Execute Modification    ././Sources/Register.php    File not found
7.    Extract File    ./Sources/CustomProfile.php    
8.    Extract File    ./Themes/default/languages/CustomProfile.english.php    

when I attempt to install anyway, well, no surprise, it's not there :(

Can anyone suggest (in layman's terms) how I can overcome this?
Title: Re: Custom Profile Field Mod
Post by: perplexed on February 09, 2007, 05:46:49 PM
Quote from: DTDestroyer on February 08, 2007, 08:10:55 PM
Quote from: perplexed on February 08, 2007, 07:18:34 AM
Quote from: DTDestroyer on February 07, 2007, 06:01:28 PM
Great mod, realy fills in the blanks! I just have a few simple newbie questions;

1.   What BBC code would I place in Text to display before field to have the entered e-mail address displayed as an a href="mailto: link

2.   Where would I enter the code to reduce the size of the font in the profile? Found It

3.   Is it possible to break up the fields to show in different areas of the profile and not all grouped together?

Thanks for your help!


I think the answer to #1 is somewhere in these 59 pages, I'm pretty sure someone asked before

I got through about 30 of them before i gave up and decided to ask!  lol

ok I looked but I couldnt find it on here either...

however I managed to work it out :)

try this

Text to display before field (BBC is ok if enabled above)

[url=http://mailto:

Text to display after field (BBC is ok if enabled above)

]Email Me[/url]

remember to check the parse BBC box :)

If someone enters an email address it will display 'email me' as the link or whatever else you put there.  You could also add an image instead.
Title: Re: Custom Profile Field Mod
Post by: DTDestroyer on February 09, 2007, 06:00:52 PM
Sick, that works great, is it possable to display the email address instead of e-mail me?

Thanks again........
Title: Re: Custom Profile Field Mod
Post by: perplexed on February 09, 2007, 06:05:32 PM
lol sorry I misunderstood, I thought you didnt want the email address to show up?

If you just want an email field just create a field called email address, no need for special code, and then an email address will be displayed
Title: Re: Custom Profile Field Mod
Post by: DTDestroyer on February 09, 2007, 06:14:27 PM
We are close, looking to display link and have it clickable!
Title: Re: Custom Profile Field Mod
Post by: perplexed on February 09, 2007, 06:19:36 PM
lol what exactly to you want to happen?
Title: Re: Custom Profile Field Mod
Post by: DTDestroyer on February 09, 2007, 06:53:18 PM
[email protected]

If I just enter the email address alone in the field, it show the address, but not as a link.

With your help it is now a link that says e-mail me, I just want to display the address (instead of email me) and have it as a clickable link.

Sorry if I was not clear....

and a pain in the ass......lol
Title: Re: Custom Profile Field Mod
Post by: WxChat.com on February 09, 2007, 07:48:29 PM
[url=http://mailto:[email protected]][email protected][/url]
Title: Re: Custom Profile Field Mod
Post by: DTDestroyer on February 09, 2007, 07:52:38 PM
That wouldent work,
I'm trying to do it with the users email address in a custom profile field
Title: Re: Custom Profile Field Mod
Post by: WxChat.com on February 09, 2007, 07:58:52 PM
ah I see you want their email to echo in between the [url] tags
Title: Re: Custom Profile Field Mod
Post by: WxChat.com on February 09, 2007, 08:00:21 PM
I don't think it is possible unless you can assign variables (PHP)
Title: Re: Custom Profile Field Mod
Post by: DTDestroyer on February 09, 2007, 08:00:37 PM
you got it, any idea's?
Title: Re: Custom Profile Field Mod
Post by: WxChat.com on February 09, 2007, 08:03:15 PM
I need to install this mod and hack at it
Title: Re: Custom Profile Field Mod
Post by: DTDestroyer on February 09, 2007, 08:20:06 PM
thank you....
Title: Re: Custom Profile Field Mod
Post by: perplexed on February 10, 2007, 07:47:04 AM
Quote from: DTDestroyer on February 09, 2007, 06:53:18 PM
[email protected]

If I just enter the email address alone in the field, it show the address, but not as a link.

With your help it is now a link that says e-mail me, I just want to display the address (instead of email me) and have it as a clickable link.

Sorry if I was not clear....

and a pain in the ass......lol


oh that's easy :)

just do what you did above

Text to display before field (BBC is ok if enabled above)

[email]


Text to display after field (BBC is ok if enabled above)

[/email]

that will show as

[email protected]

remember to check the parse BBC box


Most people want to hide the email address, so I thought that's what you wanted lol
Title: Re: Custom Profile Field Mod
Post by: DTDestroyer on February 10, 2007, 03:06:39 PM
How did I not figure that out on my own, I must have tried everything but that, lol. That did the trick, thanks so much for your help!  
Title: Re: Custom Profile Field Mod
Post by: naitram on February 10, 2007, 04:09:21 PM
i have been playing this mod, and i added a new field CP4 that i want to display on the top of every page

i have the follwing code in my index.template.php


        if ($context['user']['is_logged']) {
        global $sourcedir;
        require($sourcedir . '/CustomProfile.php');

                        if ($context['member']['options']['CP4']){


this works when i'm on the profile screen but not on any other screen, i'm sure i'm missing something simple but i can't seem to find it
Title: Re: Custom Profile Field Mod
Post by: perplexed on February 10, 2007, 05:36:25 PM
Quote from: DTDestroyer on February 10, 2007, 03:06:39 PM
How did I not figure that out on my own, I must have tried everything but that, lol. That did the trick, thanks so much for your help! 
lol no probs, you did really figure it out, you just didnt know it :)
Title: Re: Custom Profile Field Mod
Post by: kaype on February 11, 2007, 12:25:42 AM
Quote from: kaype on February 08, 2007, 06:23:13 PM
Hey guys I am not sure if this is answered before, but what I am looking for is a condition during registration. That is, if the user enters [email protected] they they are shown a set of reg details/fields, but if they enter any other domain than abc.com then the are shown a different reg details/fields. There is also a catch here, there are few mandatory fields which change depending on the email, so that also needs to be taken care.

Thanks in advance


I guess...none have done this in SMF!
Title: Re: Custom Profile Field Mod
Post by: perplexed on February 11, 2007, 08:04:33 AM
dunno, might be beyond the scope of this mod since this adds fields to profiles, which can also appear on posts and at registration time.  
Title: Re: Custom Profile Field Mod
Post by: tfischer on February 11, 2007, 11:50:21 PM
I'm having trouble installing this mod:

1. Execute Modification ./Sources/ModSettings.php Test failed
2. Execute Modification ./Themes/default/Profile.template.php Test successful
3. Execute Modification ./Themes/default/Display.template.php Test successful
4. Execute Modification ./Themes/default/PersonalMessage.template.php Test successful
5. Execute Modification ./Themes/default/Register.template.php Test successful
6. Execute Modification ./Sources/Register.php Test successful
7. Extract File ./Sources/CustomProfile.php 
8. Extract File ./Themes/default/languages/CustomProfile.english.php


Here's what I currently have installed:
Mod Name Version 
1. Gallery 2 Integration 1.0beta3 [ Uninstall ]
2. Add PM Info To header (v1.0) 1.0 [ Uninstall ]
3. SMF Links 1.6.3 [ Uninstall ]
4. Reason For Editing Mod 1.14 [ Uninstall ]


Thanks!
-Tim
Title: Re: Custom Profile Field Mod
Post by: renxokuken on February 12, 2007, 09:35:36 AM
great mod. but when will the version that support SMF 1.1.2 be out ?
Title: Re: Custom Profile Field Mod
Post by: tfischer on February 12, 2007, 11:13:18 PM
Quote from: tfischer on February 11, 2007, 11:50:21 PM
I'm having trouble installing this mod:

1. Execute Modification ./Sources/ModSettings.php Test failed
2. Execute Modification ./Themes/default/Profile.template.php Test successful
3. Execute Modification ./Themes/default/Display.template.php Test successful
4. Execute Modification ./Themes/default/PersonalMessage.template.php Test successful
5. Execute Modification ./Themes/default/Register.template.php Test successful
6. Execute Modification ./Sources/Register.php Test successful
7. Extract File ./Sources/CustomProfile.php 
8. Extract File ./Themes/default/languages/CustomProfile.english.php


Here's what I currently have installed:
Mod Name Version 
1. Gallery 2 Integration 1.0beta3 [ Uninstall ]
2. Add PM Info To header (v1.0) 1.0 [ Uninstall ]
3. SMF Links 1.6.3 [ Uninstall ]
4. Reason For Editing Mod 1.14 [ Uninstall ]


Thanks!
-Tim


Sorry to bump this -- anyone have any info?  I'm getting pressure from the outside to get this working...

I do apologize if the answer is somewhere in the 61(!) pages of responses here -- I did read through some of them and didn't see anything related.

-Tim
Title: Re: Custom Profile Field Mod
Post by: Bigguy on February 12, 2007, 11:20:19 PM
If you open up the .xml file (not the package-info.xml) that comes with the package you will see the edits that need to be done to the file that fails. You would need to install the mod then download the modsettings.php file and edit it manually in an editor. Then re-upload that file (saving the original modsettings.php file and backing up first) and all should be good.

If you do attempt something like this Please backup first. What is more than likely happening is another package that is installed is interferring with the installation of this one.
Title: Re: Custom Profile Field Mod
Post by: tfischer on February 12, 2007, 11:30:13 PM
Thanks for the reply.

I was actually able to get this to install by uninstalling all my other mods, installing this one, then reinstalling the others (which worked).

The conflict was with the Gallery integration mod.  But that mod allowed itself to install after this mod without error.  Not sure if there's a bug in there somewhere but if so, consider it reported  :).

I've played with this mod for a few minutes now and it seems like it does exactly what I want.  Thanks!

-Tim
Title: Re: Custom Profile Field Mod
Post by: Bigguy on February 12, 2007, 11:35:41 PM
Glad you got it to work. ;)
Title: Re: Custom Profile Field Mod
Post by: Jauhari on February 13, 2007, 04:33:28 AM
I got this error:
Parse error: syntax error, unexpected $end in /home/umm/public_html/Sources/ModSettings.php on line 335

My SMF is 1.1 and how to fix it?
Title: Re: Custom Profile Field Mod
Post by: URPG on February 13, 2007, 05:46:58 AM
compatible with 1.1.2. ?
Title: Re: Custom Profile Field Mod
Post by: SunilDVR on February 13, 2007, 06:43:12 AM
I may be asking this in the wrong place, but as it's to do with this mod I thought it'd be a good place to start!

Firstly - the mod is excellent - I'm using it on a forum which is restricted to membership of an organisation, so I've implemented "Name" and "Membership Number" fields - the first is visible to all, the second is only visible to moderators - and required that they are both completed on signing up to the forum. This means that new users no longer have to e-mail me with these details to request access - saving a lot of effort!

However, we already have 270-odd users, and although some will add the info, others probably won't and we'll have to chase them up about it (I don't fancy going through 18 months of e-mails finding all of the members details and adding them manually...)

I need a way of viewing members who have not yet filled this field in... Either by searching for them, or by viewing a list of all members, and organising it by the appropriate column ascending/descending to have the "blank" fields at the top. The custom fields are not displayed in the Admin member list or search functions... and I don't really wish to start modifying these files, as 1) I don't know enough about how SMF works, and 2) I want to make it easy to upgrade the forum in future so I try to avoid changing the main code base.

Does anyone have any suggestions, please? I thought about running a search on the DB (using PHPMyAdmin, or writing a custom PHP script) which would just return all usernames, e-mails, and custom profile fields. However, SMF is quite a complex application, and to make things more complicated, the custom fields are kept in smf_settings, whilst the rest of the member information is in smf_members (and I'm not sure how they're linked, precisely...)

Any help would be greatly appreciated!

Thanks,

Sunil
Title: Re: Custom Profile Field Mod
Post by: perplexed on February 13, 2007, 06:46:15 AM
I think that is planned for the next version.  You might be able to do something in sql but I don't know.
Title: Re: Custom Profile Field Mod
Post by: winrules on February 13, 2007, 05:15:48 PM
My sincere apologies for neglecting this topic. Luckily I should have more time now :). As I said in my previous reply, I am currently working on a new version. I will include many new features (such as permissions for viewing/editing fields, displaying (and searching for) fields on the memberlist, possibly (though please don't give me a headache for saying this if it doesn't end up happening) being able to rearrange, disable, and edit default fields, and will use a much stabler backend (hence fixing bugs that have to go with flaws in the current backend). I also won't be patching and bugs in this version (with the possible exception of a security hole or other major bug). If I missed anyone here please just let me know and I will reply (with the exception of feature requests and bug reports, the former I have read and will consider, the later see my note above about patching bugs in the current version).


abc-survivors.net - Just recreate the fields and make sure to give them the same data ID.

gemigene - Do you see the type dropdown menu? Or is it that there is only the text option?

samames - Can you make sure all files with uploading correctly?

moraidh - That file is for upgrading from previous versions. Ignore it.

JamesWC - Try $user_info['options']['CP1'].

frax0 - Do you get any other errors?

apis - You'll have to manually install the changes for those files to your theme.

crackeyes - Do you get any other errors?

Buddha480 - Are you sure all the files were uploaded correctly?

skoozee - Are you sure the files got uploaded corrently?

Jauhari - Can you attach your ModSettings.php?

URPG - Yes, it is compatible with 1.1.2.
Title: Re: Custom Profile Field Mod
Post by: JamesWC on February 13, 2007, 05:57:25 PM
Quote from: winrules on February 13, 2007, 05:15:48 PMJamesWC - Try $user_info['options']['CP1'].

That doesn't seem to work, unfortunately. I'm happy to wait for the new version though, so if you could keep this issue in mind when writing it then maybe the solution will become straightforward. Thanks. :)
Title: Re: Custom Profile Field Mod
Post by: winrules on February 13, 2007, 06:32:01 PM
1. Have you added $user_info to the globals (global $user_info)?
2. Are you still using it on a custom action page or just with SSI?
Title: Re: Custom Profile Field Mod
Post by: SunilDVR on February 13, 2007, 06:37:00 PM
Hi winrules,

Excellent mod - many thanks! Great to hear it's still under development, too.

When you do release a new version, will this migrate existing data? I just have visions of writing it all down... hehe.

Cheers,

Sunil
Title: Re: Custom Profile Field Mod
Post by: JamesWC on February 13, 2007, 06:47:21 PM
Quote from: winrules on February 13, 2007, 06:32:01 PM1. Have you added $user_info to the globals (global $user_info)?
2. Are you still using it on a custom action page or just with SSI?

I'm using it on a custom action page. I've just tried adding the line "global $user_info;" at the start of the custom action, to no avail. Where should I be adding it?
Title: Re: Custom Profile Field Mod
Post by: winrules on February 13, 2007, 06:51:30 PM
SunilDVR - Don't worrk, there you will be able to upgrade :).

JamesWC - Can you post (or attach if it is large) the code you are using for the custom action page?
Title: Re: Custom Profile Field Mod
Post by: JamesWC on February 13, 2007, 06:56:49 PM
Quote from: winrules on February 13, 2007, 06:51:30 PMJamesWC - Can you post (or attach if it is large) the code you are using for the custom action page?

At the moment I'm only testing so the code is short:

global $user_info;

echo $user_info['options']['CP1'];


It displays nothing.
Title: Re: Custom Profile Field Mod
Post by: winrules on February 13, 2007, 07:01:24 PM
CP1 is the data ID of the field you are trying to display, right?
Title: Re: Custom Profile Field Mod
Post by: JamesWC on February 13, 2007, 07:02:52 PM
Yes, and it's a single-line text field.
Title: Re: Custom Profile Field Mod
Post by: winrules on February 13, 2007, 07:07:20 PM
Do you get any errors in your error log?

Like "Undefined Index" ones?
Title: Re: Custom Profile Field Mod
Post by: JamesWC on February 13, 2007, 07:11:27 PM
Now that you mention it, yes. For the custom action:

8: Undefined index: options
File: /home/mysite/public_html/forums/Themes/default/CustomAction.template.php (eval?)
Line: 3
Title: Re: Custom Profile Field Mod
Post by: winrules on February 13, 2007, 07:40:13 PM
Can you replace the echo line with this:


print_r($user_info);


And PM me what it says? If you want you can astrick out some of the information if you don't want me to know. All I really need is the keys.
Title: Re: Custom Profile Field Mod
Post by: JamesWC on February 13, 2007, 07:50:14 PM
Okay, PM sent. Thanks for taking the time to look into this.
Title: Re: Custom Profile Field Mod
Post by: Weird1993 on February 13, 2007, 10:41:17 PM
Before I install this, I want to ask, is there an option that lets admins select groups able to view and edit and hide from other groups?
Title: Re: Custom Profile Field Mod
Post by: perplexed on February 14, 2007, 07:38:32 AM
hi Winrules

were is the custom profile field information stored?  I want to start again with different fields, have uninstalled and reinstalled the mod, and deleted all the CP Fields that were there previously, but when I create CP1 again, the information that used to be in the old CP1 is there (and obviously doesnt make any sense as the name of the field is different)

If there was a way to delete all of the information entered previously by users, that would be great as I am basically starting again.

any help appreciated
Title: Re: Custom Profile Field Mod
Post by: Kindred on February 14, 2007, 07:58:56 AM
it's stored in the themes table...
Title: Re: Custom Profile Field Mod
Post by: perplexed on February 14, 2007, 08:23:16 AM
thanks Kindred, I couldnt find anything in themes table though.  I looked at the mod files and it mentioned settings, so I looked in smf_settings and found this:

     Edit      Delete      CP1_hr     summary_edit
     variable    value
   Edit    Delete    CP1_id    CP1
   Edit    Delete    CP1_data2    
   Edit    Delete    CP1_data1    
   Edit    Delete    CP1_bbc    0
   Edit    Delete    CP1_profile    1
   Edit    Delete    CP1_name    My Interests
   Edit    Delete    enable_CP1    1
   Edit    Delete    CP1_post    0
   Edit    Delete    CP1_edit    0
   Edit    Delete    CP1_reg    0
   Edit    Delete    CP1_type    text
   Edit    Delete    CP1_desc    List your Hobbies here
   Edit    Delete    CP1_view    0

but I can't find where the member entered info is, as even though that CP1 field is now called 'my interests'  (after reinstalling the mod and deleting and recreating the field) in the member profile it still displays the text from the old CP1 field which was called 'education' and therefore doesnt make sense.  I need to delete all the previously entered member information from the 10 or so CP fields I had so I can create new ones, but the old info keeps coming back :(
Title: Re: Custom Profile Field Mod
Post by: Sarke on February 14, 2007, 02:46:49 PM
The information about the profile fields, such as it's name, type, desc, etc are in settings, while the information that each user inputs are in the themes table.   
Title: Re: Custom Profile Field Mod
Post by: Gantry on February 14, 2007, 11:27:42 PM
I downloaded the mod twice today, I'm missing something but it just won't install.  My environment is:

Joomla! version 1.0.12
SMF version is 1.1.2
Orstio's bridge is 1.1.7

"ERROR: Could not find a Joomla! XML setup file in the package."

...

PS - safemode is OFF, as well my folders are writeable.

What am I doing wrong?

PPS - Just solved the problem: not enough sleep.  Was trying to install it thru my Joomla mod installer *doh!* instead of SMF.....  :'(
Title: Re: Custom Profile Field Mod
Post by: beeeee on February 15, 2007, 01:48:14 AM
I have the same problem like naitram
Quote from: naitram on February 10, 2007, 04:09:21 PM
i have been playing this mod, and i added a new field CP4 that i want to display on the top of every page

i have the follwing code in my index.template.php


        if ($context['user']['is_logged']) {
        global $sourcedir;
        require($sourcedir . '/CustomProfile.php');

                        if ($context['member']['options']['CP4']){


this works when i'm on the profile screen but not on any other screen, i'm sure i'm missing something simple but i can't seem to find it
Where's my fault?
Title: Re: Custom Profile Field Mod
Post by: perplexed on February 15, 2007, 07:10:40 AM
Quote from: Sarke on February 14, 2007, 02:46:49 PM
The information about the profile fields, such as it's name, type, desc, etc are in settings, while the information that each user inputs are in the themes table.   

thanks I'll check again but I couldnt see it yesterday in themes table :)
Title: Re: Custom Profile Field Mod
Post by: apis on February 15, 2007, 09:36:36 AM
what are the files that i need to modify??
Title: Re: Custom Profile Field Mod
Post by: Kindred on February 15, 2007, 11:51:30 AM
look in the mod package...   find the installation xml and follow the instructions for each of the named files.
Title: Re: Custom Profile Field Mod
Post by: cloudee1 on February 16, 2007, 03:21:27 AM
Quote from: perplexed on February 15, 2007, 07:10:40 AM
Quote from: Sarke on February 14, 2007, 02:46:49 PM
The information about the profile fields, such as it's name, type, desc, etc are in settings, while the information that each user inputs are in the themes table.  

thanks I'll check again but I couldnt see it yesterday in themes table :)
I've looked in settings and found nothing about the cp1 or 2 that I've got. and I looked in themes and found no long text corresponding to any cp1 or 2. I am creating a members sites page for my main site and I need to know what tables everything is in and I sure don't see it any either of those.

Title: Re: Custom Profile Field Mod
Post by: Sarke on February 16, 2007, 06:03:54 AM
Quote from: cloudee1 on February 16, 2007, 03:21:27 AM
Quote from: perplexed on February 15, 2007, 07:10:40 AM
Quote from: Sarke on February 14, 2007, 02:46:49 PM
The information about the profile fields, such as it's name, type, desc, etc are in settings, while the information that each user inputs are in the themes table.   

thanks I'll check again but I couldnt see it yesterday in themes table :)
I've looked in settings and found nothing about the cp1 or 2 that I've got. and I looked in themes and found no long text corresponding to any cp1 or 2. I am creating a members sites page for my main site and I need to know what tables everything is in and I sure don't see it any either of those.


Try

SELECT * FROM smf_settings WHERE variable LIKE 'CP%'

and

SELECT * FROM smf_themes WHERE variable LIKE 'CP%'
Title: Re: Custom Profile Field Mod
Post by: mediainvita.de on February 17, 2007, 10:30:41 AM
hi

First things first: Thumbs up! Great Mod :-)

Anyway it misses a feature i really would like to see. I could program it myself, but i need some information first...

How could i realize a multiple selection Box with different ( alphabetically sorted ) Options.

I need it to realize something like a "my offer" selection. Admin offers some options and the user can select several points from the list. ( Normal users are shopowners which offer a wide variety of goods, which need to be selectable )

Any Idea?
 
Title: Re: Custom Profile Field Mod
Post by: Bigguy on February 17, 2007, 09:31:30 PM
Would the shop mod not be better suited for this. ???

Quote from: mediainvita.de on February 17, 2007, 10:30:41 AM
hi

First things first: Thumbs up! Great Mod :-)

Anyway it misses a feature i really would like to see. I could program it myself, but i need some information first...

How could i realize a multiple selection Box with different ( alphabetically sorted ) Options.

I need it to realize something like a "my offer" selection. Admin offers some options and the user can select several points from the list. ( Normal users are shopowners which offer a wide variety of goods, which need to be selectable )

Any Idea?
 
Title: Re: Custom Profile Field Mod
Post by: drossman on February 17, 2007, 09:59:46 PM
Quote from: JamesWC on February 13, 2007, 05:57:25 PM
Quote from: winrules on February 13, 2007, 05:15:48 PMJamesWC - Try $user_info['options']['CP1'].

That doesn't seem to work, unfortunately. I'm happy to wait for the new version though, so if you could keep this issue in mind when writing it then maybe the solution will become straightforward. Thanks. :)

This works for me ..
global $sourcedir;
$p_id=$_GET['u'];

require($sourcedir . '/Profile.php');

loadThemeOptions($p_id);

echo "CP1 = " . $context['member']['options']['CP1'];


http://www.simplemachines.org/community/index.php?topic=86793.msg966176#msg966176

Title: Re: Custom Profile Field Mod
Post by: cloudee1 on February 18, 2007, 03:14:50 AM
But I want to do it from outside of the forum folder. So I can't use all of the context stuff. Assuming I have the user id, which I will from pulling the website title and url from the members table, what would the sql using the member id  need to be to pull the information for CP1.

SELECT CP1 FROM ?????? WHERE ?????? ='9'

I figured asking this way would solve the trouble of convincing me it's where everyone says it is.  
Title: Re: Custom Profile Field Mod
Post by: mediainvita.de on February 18, 2007, 05:05:58 AM
Quote from: Bigguy on February 17, 2007, 09:31:30 PM
Would the shop mod not be better suited for this. ???

Quote from: mediainvita.de on February 17, 2007, 10:30:41 AM<