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)
Will this do links to other sites too, like blogs, or blog profiles, etc ?
Thanks
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
some errors for me too in RC2
nice mod! fix it please
What about 1.07 users.....?
:'( :'( :'(
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.
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 ]
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.
OK, try version 1.01 i just uploaded, that should atleast fix the Sources/ModSettings.php error.
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 failed3. 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
OK, now try 1.02, i just uploaded it, it might fix the other problem.
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 failed3. 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 ?
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.
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 !!!
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.
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]
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. :)
I will try it right now :D
Version 1.11 has been released, which fixes a bug with using the "%1" feature and displaying the field in posts.
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
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.
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 :)
That's what I was looking for....installed on 1.1RC2 and it works great! Thank you!
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
Very nice I like this allot. The possibilities with this Mod. Very kewl ;D ;) 8)
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?
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.
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?
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.
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.
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
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.
winrules, you rock! Love the mod!! Know of any way we can do a search based on these custom fields? Thank you so much!
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.
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).
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.
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.
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?
Quote[...] Compatible With: 1.1 RC2 [...]
Ah too bad. It would have been fun for 1.0.7... anyone interested in porting it for us?
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
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 :)
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?
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
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.
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
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. :(
Could you pm me your profile.template.php?
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.
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?
http://%1.livehournal.com
http://s6.photobucket.com.albums/y245/%1
You can put the %1 where ever you want :)
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?
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.
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!
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?
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.
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?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi2.tinypic.com%2Fv2zcdy.png&hash=2bb163a0db8b35a482b15e0f5d1604960b900051)
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.
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?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi2.tinypic.com%2Fv2zcdy.png&hash=2bb163a0db8b35a482b15e0f5d1604960b900051)
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.
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?
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.
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'
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg356.imageshack.us%2Fimg356%2F2237%2Fcustomfields4ak.jpg&hash=d36a761ed04bfaa36a552b579215e94ab880abd9) (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?
><" 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
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?
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.
thanks I'm really having fun with this one lol
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?
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.
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
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?
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
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?
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. :-[
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?
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...
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.
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?
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.
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 :)
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.
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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg132.imageshack.us%2Fimg132%2F2549%2Fcapture16xd.jpg&hash=f0305fea653b8045e44e9ac45fa3e273f1cfb7b8)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg69.imageshack.us%2Fimg69%2F1028%2Fcapture27eq.jpg&hash=393b27ce7f79c5366c26f7b027a72e9102baf6b9)
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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg132.imageshack.us%2Fimg132%2F2549%2Fcapture16xd.jpg&hash=f0305fea653b8045e44e9ac45fa3e273f1cfb7b8)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg69.imageshack.us%2Fimg69%2F1028%2Fcapture27eq.jpg&hash=393b27ce7f79c5366c26f7b027a72e9102baf6b9)
Is the problem that the error message is in english or that it isn't supposed to give an error message?
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?
hi
this is the same problem of Sapphire_H
bye
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?
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.....
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.
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
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.
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
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...
@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?
how do i update this to the latest version without loosing the info my members have put into their fields?
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.
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
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?
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?
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?
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
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.
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.
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?
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
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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi24.photobucket.com%2Falbums%2Fc1%2Fdyinfree%2Fcustomprofile1.jpg&hash=dd9c100c1f7e04b78e9d7dc32010af99561712b3)
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.
Quote from: john109 on April 13, 2006, 05:36:09 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi24.photobucket.com%2Falbums%2Fc1%2Fdyinfree%2Fcustomprofile1.jpg&hash=dd9c100c1f7e04b78e9d7dc32010af99561712b3)
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.
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
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.
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....
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.worlddatabase.com%2Fexample.gif&hash=fbd2ae701acb6a669dc39f3e5ceda80483115c2c)
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!
The fields doesnt show up in the registration field
1.1 rc2
www.happyserver.be
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!
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&Itemid=43&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&Itemid=43&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 :(
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
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.
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
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?
profiles yes, registration no
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?
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.
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?
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.
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?
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
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. ;)
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?
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.
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 :)
could you take a look? i have no idea how to fix or change it
http://arkserver.servehttp.com/test/
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
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.
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.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi24.photobucket.com%2Falbums%2Fc1%2Fdyinfree%2Fcustomprofile2.jpg&hash=66a25c1cf6ea3f6db12a1eff8e5d18d80cd1b8cc)
But in posts it shows like this. What can I add to get it starting on its own line?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi24.photobucket.com%2Falbums%2Fc1%2Fdyinfree%2Fcustomprofile3.jpg&hash=d6d77c4ccadeafcfb1d9db325ad8ad5c6679737d)
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?
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!
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?
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):
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.flipdesign.nl%2FaKC%2Feditbox.png&hash=9d8b74640c23d422b43a844ba9e45fdb27c05417)
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...
[/quQuote 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.
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...
[/quQuote 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...
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...
[/quQuote 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.
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...
[/quQuote 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... ;)
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...
[/quQuote 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.
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...
[/quQuote 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
Anyone know how to solve my problems? if you want i can send the file for you to edit..
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
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?
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.
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
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.
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
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.
ok, that's great stuff, thanks :)
Update! kewl I very much like this Mod ;D ;)
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.
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)
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']))
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
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." :'(
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 :)
*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
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
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.
YAY! thanks btw what other mod are you working on ;)
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
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
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?
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
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
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.
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.
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 :)
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
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.
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?
I was going to uninstall 2.12 so that I could install 2.13 but I got this message.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi24.photobucket.com%2Falbums%2Fc1%2Fdyinfree%2Fcustomprofile4.jpg&hash=68906f918f8db8f841fedb4b72b2e50ace989f11)
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
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: );
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.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi24.photobucket.com%2Falbums%2Fc1%2Fdyinfree%2Fcustomprofile4.jpg&hash=68906f918f8db8f841fedb4b72b2e50ace989f11)
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?
I experienced similar troubles regarding the ModSettings.php changes. Has the install package been updated, or should I wait for the next release?
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. :)
I've upgraded to 2.13 thanks. My forum becomes unwrapped whenever I click on Add a field however. Any ideas?
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.
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
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.
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
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.
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.
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
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.
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
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?
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
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.
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 :(
Does anyone using joomla have registration problems? I just want to check its a joomla problem and not a CPF problem?
Does this mod work on SMF 1.0.7?
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.
Oh this thing is wonderful!
Thanks alot! ^_^
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&Itemid=83&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?
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)
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
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 :)
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...
Once you tick a checkbox in your profile it's impossible to untick it.
SMF: RC 2
MOD: 2.13
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?
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.
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.
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.
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??
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
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!
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.
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!!!
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&Itemid=83&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?
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&Itemid=83&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?
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*
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.
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
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.
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
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.
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.
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;">
;)
Hi,
Where exactly are the values of the custom profile fields stored? I can't find them in the members table...
They are stored in the smf_themes table.
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
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!!!
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.
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
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.
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 '
<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
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 '
<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 '
<a href="', $scripturl, '?action=buddy;u=', $context['member']['id'], ';sesc=', $context['session_id'], '">[', $txt['buddy_' . ($context['member']['is_buddy'] ? 'remove' : 'add')], ']</a>';
I installed the mod..but i don't know where to got to make the custom profile
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
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 '
<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*
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...
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?
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...
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?
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
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.
stupid question but did you switch them on to show on posts?
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.
Version 2.14 has been released! This version fixes some issues with selection fields.
:( do I have to uninstall again *cries*
Quote from: perplexed on April 29, 2006, 03:01:36 PM
:( do I have to uninstall again *cries*
you can just upgrade...
everything is working so well, can I upgrade with no problems or do I have to do the recreate field thing again?
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&Itemid=83&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?
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
Waha!, I got it to work. Thanks for the mod :)
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 :)
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);
}
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.
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.
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.
Thank you for your immediate responce!...
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?
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)
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?
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.
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.
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?
They show up in each user profile summary and in pm (personal messages) posts.
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?
of course! both actions already taken.
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...
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?
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 :)
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?
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?
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?
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.
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.
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.
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?
That just leaves it all in plain text.
Where is it that the message pulls from to format it?
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?
I've even enabled HTML in the forum settings.
It's like there is something that does not allow HTML in that column.
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?"?
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
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.
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.
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..
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.
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.
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.
I was curious if you knew how, thanks anyways.
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...
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.
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.
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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg244.imageshack.us%2Fimg244%2F5220%2Flogin5tx.th.gif&hash=00a1af8d0705fc91156b54f577e8c0931d73c4d9) (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 :)
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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg244.imageshack.us%2Fimg244%2F5220%2Flogin5tx.th.gif&hash=00a1af8d0705fc91156b54f577e8c0931d73c4d9) (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.
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 ;)
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?
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?
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.
i have 1 question. my custom Fields cannot show right cyrillic alphabet. Example - Kiril (Кирил) is shown as Кир&#. Is this problem from my host or?
How the heck do you delete a field?
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.
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...
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.
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.
Кирил is data that users enter. It look like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg509.imageshack.us%2Fimg509%2F8185%2Fcustomfields8kg.png&hash=504a47a66d3052b532909937bc270e3cb2490694) (http://imageshack.us)
Quote from: NEOhidra on May 07, 2006, 10:43:21 AM
Кирил is data that users enter. It look like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg509.imageshack.us%2Fimg509%2F8185%2Fcustomfields8kg.png&hash=504a47a66d3052b532909937bc270e3cb2490694) (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.
Great job, winrules. The mod is much better coded now :)
Ok winrules - thank you for the quick reply
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 :).
The line
loadLanguage(CustomProfile);
should be
loadLanguage('CustomProfile');
There are two lines containing this code. I think winrules will update it soon :)
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 :)
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.
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':
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.flipdesign.nl%2FaKC%2Feditbox.png&hash=9d8b74640c23d422b43a844ba9e45fdb27c05417)
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':
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.flipdesign.nl%2FaKC%2Feditbox.png&hash=9d8b74640c23d422b43a844ba9e45fdb27c05417)
There were no new features in 3.0. I will consider all of those things for 3.1.
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).
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 :)
A version for 1.0x has been definitely forgotten?
Just to know.... :-\
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. :(
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.
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.
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.
It was a text field (not textarea), if you need it.
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 :)
Version 3.02 has been released! This version fixes a bug with fields not being able to be displayed on posts.
Would there be a way to enable HTML parsing for a field?
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?
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?
if you enable bbc parsing and [html] use tags I think it might work
Well, the code I want to use isn't available in bbcode.
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
Oh, I've already tried that as well. The html bbcode only allows certain html.
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]
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 Кирил.
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).
any chance for 1.0.7 ??
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!
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.
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
Nice to hear the new version, winrules :)
Great new version - good work!
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).
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 :)
Version 3.11 has been released! This version fixes a bug with adding options and a bug with moving selection box fields.
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).
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.
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
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.
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)
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).
Thanks - thats wonderful and easy ;)
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
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?
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?
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 ]
Can you try re-downloading it?
I have already tried that :( :(
Now I see that I cannot install any other mod or theme
WHAT' S HAPPENING?
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.
Yes, I know this. First, I' ve unistalled the mod and then I deleted it...
I think that I will upload the forum again
Does anyone know where the packages are stored in the database?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi78.photobucket.com%2Falbums%2Fj97%2Fnndth%2Fphpmyadmin.gif&hash=dde479536991918a528d1c441319cdf291916f3d)
look at the left column
------------------------------------
Or, I have to download again the forum and upload again the files?
Quote from: NND on May 25, 2006, 04:00:04 PM
Does anyone know where the packages are stored in the database?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi78.photobucket.com%2Falbums%2Fj97%2Fnndth%2Fphpmyadmin.gif&hash=dde479536991918a528d1c441319cdf291916f3d)
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.
ok, thanx, I' ll fix it tomorrow..
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 ;)
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.
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.
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 ?
Sure, I'll make a multi-langual version of the mod.
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 ?
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.
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
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?
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"> </td>
<td class="maintab_active_first"> </td>
<td valign="top" class="maintab_active_back">
<a href="http://forum.ftmvariations.org/index.php?action=featuresettings;sa=basic;sesc=06da6ba85388baafb356d9d98a8c72e3">Caractéristiques du Forum</a>
</td>
<td class="maintab_active_last"> </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"> </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.
hello
this is because it misses you the french translation....
you have to make a french files and it will appear ! 8)
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.
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.
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.
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
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 :)
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...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.flipdesign.nl%2FaKC%2Feditbox.png&hash=9d8b74640c23d422b43a844ba9e45fdb27c05417)
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!
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...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.flipdesign.nl%2FaKC%2Feditbox.png&hash=9d8b74640c23d422b43a844ba9e45fdb27c05417)
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.
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...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.flipdesign.nl%2FaKC%2Feditbox.png&hash=9d8b74640c23d422b43a844ba9e45fdb27c05417)
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... :)
You could put a link to the BBC help page in the description.
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... ;)
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.
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... ;)
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().
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... ;)
More options for who can view and edit fields have been requested before and will be in the next version :).
Any luck on adding this to the memberlist?
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. :)
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.
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?
Are you using a custom theme?
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?
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.
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?
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?
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?
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!
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.
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 !!
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.
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!
Hi, There is news for the search function for the custom field ?
;)
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.
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????
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.
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?
never mind got it thanks! i just added a http:// after the <a href='
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
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.
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*
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.
ok thanks, so will I then have to do that recreate fields thing? or will it just work straight away?
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.
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?
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".
That rocks!
but won't it create duplicate fields in my profile.template.php?
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.
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.
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
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? :)
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:
- Contents of the custom field (i.e. the user's MySpace nickname)
- Name of the custom field (i.e. MySpace)
- Text (i.e. "MyS" might be entered in the optional text field)
- Image (i.e. the URL of a user-specified image is entered in the optional text field)
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!
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
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.
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 :)
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
Just a curiosity posting...
WinRules, when will the new version be available? ;D
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.
perplexed...u think i should recreate the fields then?
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?
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.
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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg348.imageshack.us%2Fimg348%2F4084%2Flolaw0.jpg&hash=7491bcfb634a2b648350ca5edf03647faa8cbb81)
all the profiles are mad!!! :'(
update: the link inside the profile works well
What are you using for the before the field code and the after the field code?
[url=http://www.ctprofiles.net/%1]
and
[/url]
I use perplexed post info :S
What version are you using?
Customprofiles 3.11 and SMF 1.1 RC2
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?
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".
thanks for the help winrules :D
I send you the files.
sorry 4 my crappy english. I cant give u thanks better.
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?
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 >:(
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;
}
Version 3.12 has been released! This version fixes some bugs with the before and after the field options.
thanks! 3.12 works well! :D
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.
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
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...
selection box
Add an option 5 times (total 7)
??? 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...
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
lol yupp it looks like i am yeah...
not installed any mods yet so i didnt know how to tut...
cheers :P
and now you do..... gl
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
Kaylan what is your SMF version?
this mod run only 1.1 RC2!
Ahh, thanks. I'm using 1.0.7
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
Thank you!
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?
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!
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?
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
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?
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.
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.
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
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!
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.
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?
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?
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
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?
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
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.
For my site just being able to search using the custom fields would be great :)
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!
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?
For some reason when i install this mod no one can register on our forum even when no fields are required to fill in.
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?
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
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?
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!
What link does it take you too?
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 :)
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?
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)
Can you pm me your ModSettings.php?
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??
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.
Version 3.13 has been released! This version adds support for 1.1 RC3!
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 :'(
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?
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?
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.
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
Can you make sure there is a CustomProfile.php in your sources directory and a CustomProfile.english.php in your languages directory?
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 ::)
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.
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.
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 ;)
Nice to see the immediate update :) Thanks winrules!
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.
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.
Version 3.15 has been released! This version fixes a bug with moving and deleting fields.
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.
What file does it give the error in and what other mods do you have installed?
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
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?
Yup...same error...
Time for a permissions check I guess.
Permissions on the Sources directory...
I'm sorry for the stupid posts. One of those days...
Did you get it fixed?
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.
You could use the stars in membergroups and the Show multiple badges mod.
I thought about that...but I liked your mod better. ;D
Its easier to do them next to each other with yours.
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.
Tried all sorts of things with folder and file permission, but to no avail. Has anyone had similar problems?
Can you pm me your modsettings.php?
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.
No, but you can follow [Unknown]'s tutorial. (http://www.unknownbrackets.com/tutorials/custom-profile).
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
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?
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 ?
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 :)
Sweet ... and what's the projected time frame on this specific setting ?
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.
Oh ... :(
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*
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.
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!
That should work. You can just use echo $blurb;
instead of echo '' . $blurb . '';
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?
Yes, you will have to redo the changes to the theme.
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?
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).
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??
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']), '
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.
What error does it give?
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]
WHat file is that code above in and where are you looking at it?
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...)
look for $message['member']['blurb'].
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.
Did you make those changes to the theme you are using too?
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'!!!
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. ???
What theme are you using?
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.
Can I have a link to your site?
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
OK if you don't get it working could you send my your register.template.php?
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)
Yeah it works with TP.
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.
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! :)
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.
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)
Could you pm me details for a test account permission to manage custom profile fields.
Ok give me a minute to create one.
Exactly the same issue here - I'd be interested to know what you find...
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...
You will have to use SMF Registration for it to work if you have Joomla/Mambe bridged with SMF.
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?
Are you using a custom theme?
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.
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.
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.
Where is stored the fields?
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.
No it won't remove any data.
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?
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
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.
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?
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.
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
No "backups" is not the folder I am referring to. Try making a temp folder in the "Packages" folder and chmodding both to 777.
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?
I've got this error when Apply-ing the mod:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg76.imageshack.us%2Fimg76%2F3585%2Fnaamloos3232ox5.th.jpg&hash=e9059ea70a1e022c341512e30ea0961bd77c8360)
click to enlarge (http://img76.imageshack.us/my.php?image=naamloos3232ox5.jpg)
Looks like your server is running in safe mod.
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.
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
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?
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 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/
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
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 ;)
No body can view because you must have guest viewing off.
Take a look now.
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 ;)
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.
dracomiconia - Couldn't you just use multiple checkboxes?
With the specific board thing, I don't think many people would use it.
What about me (http://www.simplemachines.org/community/index.php?topic=79004.msg773383#msg773383)? :(
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.
Will the next version solve my problem? When are you going to release it? :)
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
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
pyko could you PM me your modsettings.php?
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 ...
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?
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. ???
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 :(
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
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.
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.
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.
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!
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.
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
Yes.
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.
The data is stored in the themes table.
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?
They are appearing in the input box right?
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
Can I have a link to your site and a test account?
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.
I'm sorry but that's just not possible at the moment.
sorry, but by "not possible"..did you mean that It cant be done or I should try it harder? heheh confuse :P
Many things have to be changed to do that.
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
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?
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
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?
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?
so, will there be any new version of custom profile mod? (the one that can be search by custom profile on memberlist).
Yes, but I'm not giving any timetables.
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:
if ($modSettings['CP' . $i . '_hr'] == 'edit' || $modSettings['CP' . $i . '_hr'] == 'summary_edit')
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.
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
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?
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.
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
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 />';
Cant wait to use it :)
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?
Are you using a custom theme?
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?
It's in the themes table.
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
Can you try redownloading it in a different browser? It might be a corrupt download.
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?
In the Sources directory.
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
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
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.
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
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.
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.
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.
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.
:)
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?
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?
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.
I have passed this info along to my techie. Hopefully he will be able to figure out how to implement it.
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
Calimarina what version are you using?
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
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.
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!
tnx nice mod
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!!!
you are right, same problem...
we will wait patiently and without complaining :D
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).
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...
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.
Mazeman - Use $user_info['options']['CP1'].
imrich - What type of registration do you have the brdige set to use?
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!
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.
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!
I don't know much about the bridge. I'd recommend you ask on the Bridge Support Board.
Quote from: winrules on November 21, 2006, 05:05:17 PM
Mazeman - Use $user_info['options']['CP1'].
Nope, it didn't work.
Did you add $user_info to the globals?
Quote from: winrules on November 22, 2006, 01:16:37 PM
Did you add $user_info to the globals?
Where should I add?
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! :)
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
<?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
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.
Just a simple question, do they appear with other themes?
Denis
corrections (other then those mention about the templates of course)
Denis
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.
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.
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
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!
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.
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
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.
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.
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
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?
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?
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
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!
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)
waiting for 1.1
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.
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.
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 :(
Adapt this link to your website url:
http://yourwebsite.yourdomain/forum/index.php?action=featuresettings;sa=profile;
Does this link shows the mod?
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
:(
by the way when u make this mod wud it be possible so tht it comes in the search feature also ??
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.
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
What instructions on the mod download page?
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?
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
Quote from: winrules on December 08, 2006, 04:25:02 PM
What instructions on the mod download page?
See what 'soulgirl' wrote above! :)
Version 3.16 adds 1.1 final compatibillity.
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)
thaanks ;)
Thanks my friend! :)
Thank you very much Winrules (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thesoulgirl.com%2Femote%2FHappy%2Fbigcuddleee.gif&hash=78cc890d812bd5acfeb464bafd43910732c173f1)
Much thanks. ;)
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. :)
Where does it save the field data? I wish to tie my site into these fields.
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.
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
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
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.
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.
nah it was me, had a setting wrong. It works fine just like it should. :)
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?
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
mark7144 - I'll look into that.
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 ;)
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!
Kalika - just chmod all the files that are lsited to be modified to 777.
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. :)
I got the exact same problem with the supposedly new verions for SM 1.1.... ???
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.
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.
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.
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.
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.
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
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
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>
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.
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.
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
Can you please add statistics.
so we can see how many members chose a specific option.
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.
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
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
All sorted now.
Has anyone worked out a fix for the 'Remove Buddy' text going to the top of the profile?
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?
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.)
I'm running 1.1.1 and it works for me
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.
why i am unable to update CPF settings?any guess?
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.
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
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.
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?
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.
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)?
You'll need to also manually apply the changes to Profile.template.php.
Sorted, tried to apply this before asking the question but must have done something wrong.
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.
This mod is great...
One question: Is it posible to make one of the fields bigger?
(See my modded picture)
Out of curiosity, any reason you chose to store the data in smf_themes, instead of smf_members?
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.
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.
Can I have a link to your site?
www.thirdworldnetwork.org
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?
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.
"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.
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.
So all of the files are intact in the attachment/avatar directory?
Yeah, they are there, taking up space... ;)
It just seems like SMF isn't aware of them being there at all...
Have you done anything related to avatars recently?
Nope.
Never touched them.
If you reupload an avatar, does it appear again?
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 :
PreviousQuote // 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.
NewQuote // 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.
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.
Thanks for answer and the great job.
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.
I installed this, and with the help of others it worked a treat, had no effect on other mods?
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.
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?
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
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
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
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
Hello. We can show a custom field in the member list page?
only with some modification to the member-list table... and adding a variable number of fields to that table is problematic, at best.
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.
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.
it's not storing it in a file. It is storing it in the database, under the themes table.
Thx, i was searching in db, but i wouldn't ever imagined that it will be in smf_thmes.
Thx again
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.
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? ??? ??? ??? ???
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
Thank you very much
++
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
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
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?
if you do not have a display.template.php, then the theme will use the default file... so you should be all set.
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.
: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']);
Beatrix - Are you sure the fields are set to display in posts (in the field settings)?
Yes My custom fields don't appear in posts even when configured to do so. I'm running 1.1.1
entwistlej - Look at the first post in this topic.
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.
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
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
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
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)
???
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..
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?
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.
Really very nice Mod
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
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!
ok kinda solved it, if i change my settings to english i can use it, so problem solved, btw: great product!!!
so anyone want to give me a solution to my problem here? i mean, i cant add anything with a drop down select now!
I'm using 1.1.1, and it seems that when I reorder my custom fields they lose their descriptions.
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
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)?
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.
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?
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)
I'd second what gemigene said. Being able to rearrange and modify the default fields would be extremely useful.
Just one question...where in the database are values of custom fields stored (for each individual user)? :/
in the themes table
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?
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)
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
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
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?
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.
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..)
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.
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.
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...
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?
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
looks like you attempted to install the mod twice.
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
I'm sure I didn't try to install it twice. musta been some truble wiv d theme
Look at the files. If the code has been duplicated you installed it twice. It's happened to me.
Reply #835 - any help here?
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
okay, how do i correct this issue
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.
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
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. :)
hi :D,why after to have created a profile in registration two windows appear me? tks
Reply #835 - any help here?
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.
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?
edit profile.english.php (or maby it is in index.english.php)
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?
How do I install a mod?
*nevermind i looked around again and found out how to upload and install a mod. Thanks..great mod!*
How to make the fields appear on those members who have registered?
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.
I've installed this mod but it doesent appear on users profile. Wat do i need to edit? my theme is pdk_dx06.
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...
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
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.
try asking for help on phpBB forums, you wont get very far, and tiny portal are just as bad.
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
::)
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
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)
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
:(
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.
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: 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
Any idea when that may be coming . I will definitely wait on it.
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
???
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.
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. ;)
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
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.
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
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.
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
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.
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.
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 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
I don't see that error on your forum? I just posted fine.
well when I try to read it it says the above error
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!
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.
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
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
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 ?
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
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?
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.
Sick, that works great, is it possable to display the email address instead of e-mail me?
Thanks again........
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
We are close, looking to display link and have it clickable!
lol what exactly to you want to happen?
[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
That wouldent work,
I'm trying to do it with the users email address in a custom profile field
ah I see you want their email to echo in between the [url] tags
I don't think it is possible unless you can assign variables (PHP)
you got it, any idea's?
I need to install this mod and hack at it
thank you....
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
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!
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
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 :)
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!
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.
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
great mod. but when will the version that support SMF 1.1.2 be out ?
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
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.
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
Glad you got it to work. ;)
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?
compatible with 1.1.2. ?
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
I think that is planned for the next version. You might be able to do something in sql but I don't know.
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.
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. :)
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?
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
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?
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?
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.
CP1 is the data ID of the field you are trying to display, right?
Yes, and it's a single-line text field.
Do you get any errors in your error log?
Like "Undefined Index" ones?
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
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.
Okay, PM sent. Thanks for taking the time to look into this.
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?
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
it's stored in the themes table...
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 :(
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.
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..... :'(
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?
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 :)
what are the files that i need to modify??
look in the mod package... find the installation xml and follow the instructions for each of the named files.
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.
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%'
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?
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?
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
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.
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
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?
Actually the site i am developing is not a shop. It is a shoplist. The Users are Shopowners with a wide variety of goods and services. And i need to offer them a possibility to fill in their shopoffers into their profile? I dont know if this works with the shopmodule...as most of the things i need are already within the custom profile mod.
Quote from: 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
That gives me the following error in my custom action:
QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 4
File: /home/mysite/public_html/forums/Sources/Profile.php
Line: 3263
I feel fairly stupid, but I cannot figure out why they wont show in the profile area. I would like to update my "character's" profile, but when I go to fill out the profile fields I just added, they aren't showing up in the profile to be filled out. It also isn't showing up on my registration page, for my users to fill out when they sign up. I hope this makes sense to whomever reads it. Please let me know what I'm doing wrong.
Thanks!
Quote from: 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.
select value from smf_themes where variable='CP1' and ID_MEMBER=the id of the member
I'm also doing things outside of the forum folder. I'm creating a separate library that sources in the smf include files, so that I can use all of the smf variables. Really all you have to do is require the smf php include files that you want to use.
Quote from: JamesWC on February 18, 2007, 07:14:11 AM
Quote from: 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
That gives me the following error in my custom action:
QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 4
File: /home/mysite/public_html/forums/Sources/Profile.php
Line: 3263
:shrug:
Have you modified Profile.php? What is the content of CP1 ??
Quote from: drossman on February 18, 2007, 11:06:49 AM
Quote from: JamesWC on February 18, 2007, 07:14:11 AM
Quote from: 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
That gives me the following error in my custom action:
QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 4
File: /home/mysite/public_html/forums/Sources/Profile.php
Line: 3263
:shrug:
Have you modified Profile.php? What is the content of CP1 ??
CP1 is a text field - in my account it contains "2".
I have a few packages that may have altered Profile.php:
Custom Profile Field
MySpace Field (redundant now of course)
Profile Comments
Profile User Action
I have no trouble retrieving non-custom profile fields though.
My example is assuming that you add ;u=ID_MEMBER (as a number) to the query string, so that the action knows which user to get the context for. I believe you'll get that error if you don't add it.
So, try this.. http://yoursite/index.php?action=youraction;u=yourmember
Problem solved, thanks a lot! :)
sweet...and thanks winrules for the great mods... (linuxrules)!
Decided to update my issue, in the hopes that maybe someone would understand by looking at screenshots of what is going on.
I have no errors at all, but basically when I make a custom profile field nothing happens in the profile itself.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv219%2FxxPinner%2Fsmf%2Fprofile1.gif&hash=4000fbee5ad90dad64c9d73cd6a3d6d31792a9f8)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv219%2FxxPinner%2Fsmf%2Fprofile2.gif&hash=0596ef5440722e904476bc5882ee89fcaf26df2d)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv219%2FxxPinner%2Fsmf%2Fprofile3.gif&hash=82aa7c1d99635ddadd02b9446289abb42438c688)
You can tell by looking at a copy of my profile that they aren't showing up. Could it be because of my template?
More Information
Template Name: Endar
Website URL: http://www.winterlok.com
Version: 1.1.2
Did you apply the mod changes to your template?
I'm real new to SMF, I generally use Invision Power Boards, but my license ran out, so I'm not sure how all of it works. I had the template installed and in use when I uploaded this mod, but I don't know if I applied them to my template. If I haven't, how would I go about doing so?
Switch to the default theme and verify that it works, then do a search on adding mods to other themes :) I use the default template, so I haven't had to aply changes manually.
Yeah it works on the default theme. Blah, I am so new, this is gonna be quite the messy adventure. If anyone reads this while I'm looking to figure out how to install it manually. If you know how, please PM me!
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?
Hmm...anyone an idea? I still dont know how to realize it? Where is the data stored in the db?
Okay I am manually installing this, and I'd like to say it's going great (and it was for a time) but now its starting to suck a bit.
In the picture below you'll notice that the options aren't one under the other, and I can't figure out where in the coding I messed that up.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv219%2FxxPinner%2Fsmf%2Fprofile4.gif&hash=364d6c97341e4a88d9435ab0e6ee152cf21b5e69)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv219%2FxxPinner%2Fsmf%2Fprofile5.gif&hash=090f7b070f778468e10a3479d0aca9edad16c693)
Also the coding below doesn't match up to either of the files they're supposed to correspond to. If anyone can help me with that, that would be great.
<file name="$themedir/Display.template.php">
<operation>
<search position="replace"><![CDATA[
<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>';
]]></search>
<add><![CDATA[
<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();
]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
// Show how many posts they have made.
]]></search>
<add><![CDATA[
global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();
// Show how many posts they have made.
]]></add>
</operation>
</file>
<file name="$themedir/PersonalMessage.template.php">
<operation>
<search position="replace"><![CDATA[
<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'] . '" />' : $message['member']['online']['label'], '</a>';
]]></search>
<add><![CDATA[
<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'] . '" />' : $message['member']['online']['label'], '</a>';
DisplayFieldPostsPictures();
]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
// Show how many posts they have made.
]]></search>
<add><![CDATA[
global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();
// Show how many posts they have made.
]]></add>
</operation>
</file>
Does anyone have the version I can use w/smf 1.1.1 - or should this new version work w/1.1.1 ? Thanks a lot.
-nevermind guys. sorry bout this.
Quote from: JamesWC on February 18, 2007, 11:55:01 AMProblem solved, thanks a lot! :)
I think I spoke too soon, lol...
I can access the fields the way you described, drossman, but it seems I can't edit them this way. In my custom action, I have the following code:
global $sourcedir;
require($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);
echo 'Before: ', $context['member']['options']['CP1'];
echo '<br />';
$context['member']['options']['CP1'] = '0';
echo 'After: ', $context['member']['options']['CP1'];
The output on the page is:
QuoteBefore: 2
After: 0
...which seems fine, until you refresh the page and get exactly the same output. The custom profile field is not saved as '0', it only changes for the purpose of loading this page - in reality it seems to remain as '2'. How can I make it save changes in the database?
using the info from the last page or 2 in this thread i have added the following to index.template.php
global $sourcedir;
require($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);
echo '<td>CP4 = ' . $context['member']['options']['CP4']. '</td>';
this now prints on all pages of the site but i get the following errors in the error log
8: Undefined index: 2
File: /home/.sites/28/site1/web/smf/Sources/Profile.php
Line: 2855
8: Undefined index: is_owner
File: /home/.sites/28/site1/web/smf/Sources/Profile.php
Line: 2848
2 is my user_id
The current version worked without any trouble for 1.1.2. + TinyPortal.
Quote from: naitram on February 19, 2007, 03:20:45 PM
using the info from the last page or 2 in this thread i have added the following to index.template.php
global $sourcedir;
require($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);
echo '<td>CP4 = ' . $context['member']['options']['CP4']. '</td>';
this now prints on all pages of the site but i get the following errors in the error log
8: Undefined index: 2
File: /home/.sites/28/site1/web/smf/Sources/Profile.php
Line: 2855
8: Undefined index: is_owner
File: /home/.sites/28/site1/web/smf/Sources/Profile.php
Line: 2848
2 is my user_id
naitram. the example that i gave as for accessing a custom profile field inside of a custom action. this code won;t work inside your templates.
Quote from: JamesWC on February 19, 2007, 06:36:44 AM
Quote from: JamesWC on February 18, 2007, 11:55:01 AMProblem solved, thanks a lot! :)
I think I spoke too soon, lol...
I can access the fields the way you described, drossman, but it seems I can't edit them this way. In my custom action, I have the following code:
global $sourcedir;
require($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);
echo 'Before: ', $context['member']['options']['CP1'];
echo '<br />';
$context['member']['options']['CP1'] = '0';
echo 'After: ', $context['member']['options']['CP1'];
The output on the page is:
QuoteBefore: 2
After: 0
...which seems fine, until you refresh the page and get exactly the same output. The custom profile field is not saved as '0', it only changes for the purpose of loading this page - in reality it seems to remain as '2'. How can I make it save changes in the database?
james, you have to update the database or the new value won;t be saved.
Quote from: drossman on February 21, 2007, 09:36:15 AMjames, you have to update the database or the new value won;t be saved.
I came to the same conclusion and have been trying to do this, with only moderate success so far. I actually just posted my "new" problem a few minutes ago here (http://www.simplemachines.org/community/index.php?topic=152485.0), as I felt it was no longer specifically related to custom profile fields but PHP/MySQL in general. Please take a look if you have a moment. :)
Quote from: drossman on February 21, 2007, 09:35:31 AM
Quote from: naitram on February 19, 2007, 03:20:45 PM
using the info from the last page or 2 in this thread i have added the following to index.template.php
global $sourcedir;
require($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);
echo '<td>CP4 = ' . $context['member']['options']['CP4']. '</td>';
this now prints on all pages of the site but i get the following errors in the error log
8: Undefined index: 2
File: /home/.sites/28/site1/web/smf/Sources/Profile.php
Line: 2855
8: Undefined index: is_owner
File: /home/.sites/28/site1/web/smf/Sources/Profile.php
Line: 2848
2 is my user_id
naitram. the example that i gave as for accessing a custom profile field inside of a custom action. this code won;t work inside your templates.
other then the undefined index errors in the log
this code in my index.template.php does work
if($context['user']['is_logged']){
global $sourcedir;
require($sourcedir . '/Profile.php');
//print_r ($context['member']);
loadThemeOptions($context['user']['id']);
if($context['member']['options']['CP4']){
list ($junk,$WGBASE)=explode("com",$context['member']['options']['CP4']);
list ($WGLOC,$junk)=explode(".",$WGBASE);
echo '<td class="catbg">
.
.
.
</td>';
}
else { echo '<td width="271" class="catbg"><center>place message here</center></td>';
}
}
just the annoyance of the undefined inxex erors
Is there a way to generate a field with a link - that auto-links the visible one in the post bits?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Frunepixels.com%2Fuimages5%2Fpostbitszen.png&hash=ba10f8458dac2c136e93c6f5ea4d4f11bf8d3852)
can you give some more detail.....
what do you want to display and what do you want the link to be?
well the link would be to a hiscores list -
http://hiscore.runescape.com/lang/en/aff/runescape/hiscorepersonal.ws?user1=USERNAME
so whatever name they've entered into that field would automatically create a link to ^^ that abovce with thier name at "USERNAME" location
So if you followed the image - USERNAME would = LadyBostwick, and you'd see a link exactly like:
LadyBostwick (http://hiscore.runescape.com/lang/en/aff/runescape/hiscorepersonal.ws?user1=ladybostwick)
did you try with just this?
before field
[url=http://hiscore.runescape.com/lang/en/aff/runescape/hiscorepersonal.ws?user=]
and
[/url]
after field?
that doesn't quite work - because i'd need 3 field spaces - the name id wouldn't show up or it would be linked to no one, because the username has to be at the end of tghe link ..
[url=http://hiscore.runescape.com/lang/en/aff/runescape/hiscorepersonal.ws?user=USERNAME????]
( field input )
[/url]
Heya,
I think I don't understand this mod too well yet, since something is going wrong,
Members complained about the fact that they couldn't find any of the new profile fields,
I tried it out with my test account, and it indeed turned-out to not work.
Users can not see any of the custom profile fields,
I checked-out the permission area to see if they were not allowed, but I couldn't find anything there related to this mod.
Can someone please help out to fix this?
Thanks you
God bless
if you arent using the default theme, you will need to modify your current theme
Quote from: Iggiecat on February 22, 2007, 12:50:56 AM
that doesn't quite work - because i'd need 3 field spaces - the name id wouldn't show up or it would be linked to no one, because the username has to be at the end of tghe link ..
[url=http://hiscore.runescape.com/lang/en/aff/runescape/hiscorepersonal.ws?user=USERNAME????]
( field input )
[/url]
sorry I was hoping what you wanted would work like this, with the username at the end
[url=http://www.myspace.com/%1] in the before spot and [/url] after
Quote from: naitram on February 23, 2007, 09:31:34 AM
if you arent using the default theme, you will need to modify your current theme
This does not cause the problem,
I check this in the default theme, and it did not work.
ANyone has a better suggestion?
I'm interested in some changes to this mod - add an option to have the fields show as Account fields instead of Profile, and give the user an option to hide the fields. I've been hacking at it and have some of it working. My eventual goal is to have a set of "contact data" fields (address, phone numbers) which the user must enter on registration but can hide from others if they wish.
I could see doing this as a separate mod, or as changes to this one.
William
Quote from: wm on February 23, 2007, 04:50:38 PM
I'm interested in some changes to this mod - add an option to have the fields show as Account fields instead of Profile, and give the user an option to hide the fields. I've been hacking at it and have some of it working. My eventual goal is to have a set of "contact data" fields (address, phone numbers) which the user must enter on registration but can hide from others if they wish.
I could see doing this as a separate mod, or as changes to this one.
William
You can do this sort of...
you can have fields to complete at registration, and then have them edited or viewed only by Admin. But that would mean the user might not be able to update them,but its a start :)
When inserting a custom field inot the post area how do you get rid of the ":" that is placed infront of the field?
Is it possible within this mod to block just a couple fields from certain member groups but have them remain visible to others?
Question: I added a custom profile field and new registrants are required to fill it in. When they don't, they get a message that something went wrong during registration but there is no text visible telling them what went wrong. English is not the default language of my board, so I'm sure that's where the problem lies. How do I correct this?
EDIT: never mind, I was missing a file ;)
Quote from: Inflame on February 23, 2007, 09:26:21 AM
Heya,
I think I don't understand this mod too well yet, since something is going wrong,
Members complained about the fact that they couldn't find any of the new profile fields,
I tried it out with my test account, and it indeed turned-out to not work.
Users can not see any of the custom profile fields,
I checked-out the permission area to see if they were not allowed, but I couldn't find anything there related to this mod.
Can someone please help out to fix this?
Thanks you
God bless
I would like to get some answers on this question,
it does not have anything to do with the theme, so that answer is already given ;)
Inflame, you could start by giving us some more information... Can you see the fields as admin? What are the settings for one of the fields? Is "Show in Profile" checked? How about a screen shot? Can you show us what the test account sees when you go to the "Forum Profile Section"?
Quote from: wm on February 26, 2007, 11:40:07 AM
Inflame, you could start by giving us some more information... Can you see the fields as admin? What are the settings for one of the fields? Is "Show in Profile" checked? How about a screen shot? Can you show us what the test account sees when you go to the "Forum Profile Section"?
Yes, I can see the fields as admin on profiles
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.inflame.nu%2Fimage%2FSMF%2FCPF1.JPG&hash=39ff14fffe46b2665f212b6feada3ddc32cc4ff5)
This is one of the fields I added :)
This is what I see as admin in a members profile:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.inflame.nu%2Fimage%2FSMF%2FCPF2.JPG&hash=c3134dc0ce8eea7ab334f7150f7cda52f46897d0)
As user you just see nothing, only the normal profile stuff everyone should see when they just install SMF :P
Is this enough information?
full pics at:
www.inflame.nu/image/SMF/CPF1.JPG
www.inflame.nu/image/SMF/CPF2.JPG EDITAs guests, and as regular member you can see the fields I filled in in my own profile :)
maybe good to know ;)
I am working on using this to replace pretty much the entire default profile page. One request I have from my members is this. Is there a way to hide from view, fields that are not filled in by the member? For example.. if I didn't have an AIM name, then the blank field would not be seen by others viewing my profile.
Quote from: Inflame on February 26, 2007, 01:14:57 PM
As guests, and as regular member you can see the fields I filled in in my own profile :)
maybe good to know ;)
Yes - that is the clue we needed. Empty rows in the table do not display. I've been thinking of trying to modify this, sounds like you will want to do that as well...
William
Quote from: wm on February 26, 2007, 04:45:59 PM
Quote from: Inflame on February 26, 2007, 01:14:57 PM
As guests, and as regular member you can see the fields I filled in in my own profile :)
maybe good to know ;)
Yes - that is the clue we needed. Empty rows in the table do not display. I've been thinking of trying to modify this, sounds like you will want to do that as well...
William
But how could someone fill in if the empty rows don't show up?
They don't even can fill in anything, that's the whole issue.
Inflame: you have "only admins can edit" set, according to the images you posted.
OH now I feel soo stupid,
but thanks for helping out,
I didn't use my brains for this hahahah
But thanks anyway mate :)
Im sorry I am new to this forum and new to setting up forums. I just put up my first forum and tried to install this package into the forum. This is the first package that I am trying to install and I am getting the test failed errors. I am using version SMF 1.1.1 according to the admin center. I was wondering how you guys were able to get around these errors.
if you could post the fails you are getting, someone may be able to help you identify the problems you have
Just copy/paste the install fails here :)
I'm not sure if this has been mentioned or not, but it would be great to have the selection box field type allow you to submit both a value and a name (so that you can link to other tables).
i.e. you have a table of user levels for your site
1 Member
2 Admin
3 Banned
etc.
the selection box should have options to create an option for Member (value = 1, text = Member), Admin (value = 2, text = Admin), etc, rather than just straight value = Member, text = Member as it is now.
Edited to add...
The ability to select an option as the default (for all fields, not just selection fields) would be good as well.
Alright sorry to bring it back, But I still don't get where the info is. Basicly this is what I need
$sql="SELECT CP2
FROM smf_themes
WHERE ID_MEMBER='$memberid' ";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result))
{$customfield2= $row['CP2'];
echo $customfield2;
}
Could someone please adjust this sql as necesary. please.
cloudee1, are you just trying to get one profile field from one member, or something else (not sure why you have the loop in there when the SQL you're trying to do will only return it for one member)?
If it's the former, here's how you do it:
<?php
$sql = "SELECT value
FROM smf_themes
WHERE ID_MEMBER = '$memberid' AND variable = 'CP2'
LIMIT 1";
$result = mysql_query($sql);
if ($row = mysql_fetch_array($result))
$customfield2 = $row['value'];
else
$customfield2 = '(empty)';
echo $customfield2;
?>
I haven't tested it, but it should work.
Quote from: perplexed on February 27, 2007, 09:12:29 AM
if you could post the fails you are getting, someone may be able to help you identify the problems you have
Just copy/paste the install fails here :)
thanks for the response..
here are the errors that im getting:
Installing this package will perform the following actions:
Type Action Description
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
read this thread (http://www.simplemachines.org/community/index.php?topic=45846.msg329449;topicseen#msg329449) it might help you
Quote from: Sarke on February 28, 2007, 12:48:40 AM
cloudee1, are you just trying to get one profile field from one member, or something else (not sure why you have the loop in there when the SQL you're trying to do will only return it for one member)?
If it's the former, here's how you do it:
<?phpTh
$sql = "SELECT value
FROM smf_themes
WHERE ID_MEMBER = '$memberid' AND variable = 'CP2'
LIMIT 1";
$result = mysql_query($sql);
if ($row = mysql_fetch_array($result))
$customfield2 = $row['value'];
else
$customfield2 = '(empty)';
echo $customfield2;
?>
I haven't tested it, but it should work.
Sarke, I don't care if it's anatomically possible, I want to have your children. 8) That's the code I've been needing for a long time, so what I've been working on now finally works. Thanks!
I'd been getting bogged down in $context variables which, on some sites, might be necessary for lightening the load, but for me this straightforward SQL does the job well enough!
Quote from: JamesWC on February 28, 2007, 03:07:57 PM
Quote from: Sarke on February 28, 2007, 12:48:40 AM
cloudee1, are you just trying to get one profile field from one member, or something else (not sure why you have the loop in there when the SQL you're trying to do will only return it for one member)?
If it's the former, here's how you do it:
<?phpTh
$sql = "SELECT value
FROM smf_themes
WHERE ID_MEMBER = '$memberid' AND variable = 'CP2'
LIMIT 1";
$result = mysql_query($sql);
if ($row = mysql_fetch_array($result))
$customfield2 = $row['value'];
else
$customfield2 = '(empty)';
echo $customfield2;
?>
I haven't tested it, but it should work.
Sarke, I don't care if it's anatomically possible, I want to have your children. 8) That's the code I've been needing for a long time, so what I've been working on now finally works. Thanks!
I'd been getting bogged down in $context variables which, on some sites, might be necessary for lightening the load, but for me this straightforward SQL does the job well enough!
just need to echo the same comment here, this works great and no more flood of "undefined" errors
Quote from: perplexed on February 28, 2007, 07:38:21 AM
read this thread (http://www.simplemachines.org/community/index.php?topic=45846.msg329449;topicseen#msg329449) it might help you
I went thru the thread you linked and it mentioned 2 items.
1 - repair_settings.php file which links to converters
2 - SMF Arcade fix....
im not sure which of these 2 would fix my problem. Sorry for being so ignorant to what is going on with all the coding and such but I am still trying to figure out how to understand all the "lingo" going on. Could it be that my forum is not in a ........../forum directory? If so can I simply relocate all the files into a /forum directory or will this cause other issues?
thanks in advance for all input...I really appreciate it..
I'm setting up a site that will have 300+ members and 8 or more custom fields - that would add 2400+ rows to smf_themes. I'm wondering about the impact of having that many rows in that table.
I'm in the process of making some changes to this mod anyway (we want some of the fields on the Account page and we want to allow the user to hide some of them). Should I create a separate table for the field data?
Thanks,
William
i've got over 3000 membere and 5 custome fields, havent had any issues
Using SMF 1.1.2 & TinyPortal 0.9.7
i uploaded and applied customprofile3-16 mod.
i get this message when i click the Features after applying the mod:
Fatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/yjobzcom/public_html/forum/Sources/ModSettings.php:314) in /home/yjobzcom/public_html/forum/Sources/ModSettings.php on line 319
open up modsettings.php and find the code that starts on line 314 and duplicated again starting on line 319 ... delete one instance of the entire duplicated section.
what kind of text editor must i use to view the modsettings.php where i can see the line numbers?
This is a very nice one. It will show you the line numbers. If you have php installed it will also debug for you to ;)
http://www.mpsoftware.dk/phpdesigner.php
Reply #835 - any help here?
Quote from: Bigguy on March 04, 2007, 01:30:18 AM
This is a very nice one. It will show you the line numbers. If you have php installed it will also debug for you to ;)
http://www.mpsoftware.dk/phpdesigner.php
thanks.
That's really not telling us much or giving us anything to go on. :)
Quote from: davidkirk on March 04, 2007, 09:41:55 AM
Reply #835 - any help here?
Quote from: davidkirk 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.
My question actually started on #833, to which I never received a working answer. I just started asking every page and referring to my post #835 hoping someone would look back to that topic instead of me copy/pasting the same stuff every page.
I just want to know if it is possible to move the fields I create with this MOD under the "Username" field.
hello again,
i have deleted the duplicate entries as what Bigguy told me to do with the help of that software.
now, my problem is, whatever additional field i enable and show on the registration agreement, it displays two copies of the block.
for example, Real Name box, there are two Real Name boxes on the Registration Form.
Sounds like you've managed to install the mod twice.
ok let me check...
there was only one installation of the mod.
maybe there's another reason why i got two boxes.
The list of installed packages is probably wrong. Maybe you deleted it before uninstalling it, and then installed it again. I can't think of another reason why the code would be duplicated. Either way, you'll have to uninstall it manually.
Ok with 68 pages on this mod that is a lot to fish through to report this error. I did read through some of them and didn't see it so I'm hoping it's new.
The mod works perfectly except 1 little glitch. I created 5 custom TEXT fields and then 1 check mark box. I wanted the check mark at the very top so I used the [Move Up] link and moved it up to the top. However, what happened then is that all of my Field Description boxes changed to match the one that was in the custom field check box's field.
IE
I created 5 fields and the field description were character 1, character 2, character 3, char , and char 5. Then I made a check box field and that field description said "Founder". Finally I clicked the [Move Up] link to move the check box field to the top. Then I saved and tested it. I noticed that ALL the custom fields then had the same Field Description of "Founder". When I checked the admin panel, sure enough, all of the Descriptions changed.
Quote from: WifiGamer on March 06, 2007, 10:08:28 AM
Ok with 68 pages on this mod that is a lot to fish through to report this error. I did read through some of them and didn't see it so I'm hoping it's new.
The mod works perfectly except 1 little glitch. I created 5 custom TEXT fields and then 1 check mark box. I wanted the check mark at the very top so I used the [Move Up] link and moved it up to the top. However, what happened then is that all of my Field Description boxes changed to match the one that was in the custom field check box's field.
IE
I created 5 fields and the field description were character 1, character 2, character 3, char , and char 5. Then I made a check box field and that field description said "Founder". Finally I clicked the [Move Up] link to move the check box field to the top. Then I saved and tested it. I noticed that ALL the custom fields then had the same Field Description of "Founder". When I checked the admin panel, sure enough, all of the Descriptions changed.
This happened to me as well, so I just got into the habit of jotting down all my field descriptions before moving anything. Not an ideal solution, but it wasn't worth waiting for a new version of the mod.
yeah its an existing problem, bit annoying but workable, it will be fixed in the next version I believe. Just remember and do what James says above and you will be ok :)
I did what you said and it still does not appear on the cebrus theme :(
Quote from: Bazil Greyson on February 26, 2007, 02:26:55 PM
I am working on using this to replace pretty much the entire default profile page. One request I have from my members is this. Is there a way to hide from view, fields that are not filled in by the member? For example.. if I didn't have an AIM name, then the blank field would not be seen by others viewing my profile.
Any suggestions on how to achieve this result? I am looking to have a long list of fields that members can fill in, but do not want empty fields to show on the profile page.
Quote from: Chris™ on March 07, 2007, 12:22:36 AM
I did what you said and it still does not appear on the cebrus theme :(
Quote from: Bazil Greyson on March 07, 2007, 02:22:51 PM
Quote from: Bazil Greyson on February 26, 2007, 02:26:55 PM
I am working on using this to replace pretty much the entire default profile page. One request I have from my members is this. Is there a way to hide from view, fields that are not filled in by the member? For example.. if I didn't have an AIM name, then the blank field would not be seen by others viewing my profile.
Any suggestions on how to achieve this result? I am looking to have a long list of fields that members can fill in, but do not want empty fields to show on the profile page.
I have members on my site who have never filled in some of the custom profile fields I created, and they don't show up on the profile summaries.
Also, if I remove some of the info from the fields they did fill in, and make them empty again, then again, it doesnt show up on the profile summary :)
Quote from: perplexed on March 08, 2007, 09:21:30 AM
I have members on my site who have never filled in some of the custom profile fields I created, and they don't show up on the profile summaries.
Also, if I remove some of the info from the fields they did fill in, and make them empty again, then again, it doesnt show up on the profile summary :)
Thanks for the heads up, I was always viewing it in admin mode or something. I reinstalled it just incase and it all works nicely now. That was my bad for not creating a dummy account to see things as a member.
Is this mod functional now for 1.1.2?
Thank you!
Lyman
"Modification parse error" when installing mod
yeah i have that error with the data transposing to each one as i move it.. quite frustrating.. seeing as i can switch it to what it should be.. if your using two "drop down menues"
one has 12 options.. and i wanted that one high up on the list.. so i move it up.. all of a sudden, i cant get the one with only 5 options back to normal.. i delete it and re-create it.. still has 12 options.. i suffered with just making 7 empty ones.
Ok, I'm a bit lost. Is there instructions on how to create birthday field?
I've looked through the entire topic but was not able to find. Thank you
How do you mean a birthday field. ??? Where members input there birthday. ???
Quote from: ckgb on March 10, 2007, 12:45:53 PM
Ok, I'm a bit lost. Is there instructions on how to create birthday field?
I've looked through the entire topic but was not able to find. Thank you
Birthday is on a standard profile.
If you put in your birthdate, it will be seenable upon the calendar... ;)
And the age will get calculated on the profile
Thanks I know that, but I need to have birthday on registration page.
Hi, is there a way I can make the custom field use a Drop Down menu.
It's a great mod, but if a post contains very little text then the rest of the post is left with a large empty area.
I'd like the drop down to be after the Field title.
Regards
ZTN
I'm trying to create an SQL statement which will select certain information from smf_members and the custom profile fields from smf_themes...
What I'd like to do is end up with something like this:
ID_MEMBER, CP1, CP2, emailAddress, memberName
1, Name, Membership Number,
[email protected], ScreenName
and so on (note, CP1 and CP2 are "Name" and "Membership Number")
Because of how the mod stores CP1 and 2 (and so on, if you have more than 2 custom fields) in smf_themes, the best I've come up with is this:
SELECT smf_themes.ID_MEMBER, smf_themes.value, smf_members.emailAddress
FROM smf_themes, smf_members
WHERE (
smf_themes.variable = 'CP2' OR smf_themes.variable = 'CP1'
)
AND smf_themes.ID_MEMBER = smf_members.ID_MEMBER
ORDER BY smf_members.ID_MEMBER
Which returns the
information I want, but with 2 rows for each member thanks to the "OR" clause in the middle.
I'm not an expert on SQL, so any help would be appreciated...!
Sunil
Hello.
Is there a way to let admins and global moderators view and edit the content of additional profile fields, while other user groups can't view and edit?
I ask this question since I don't want to grant admin rights to global moderators. Then of course I could have used the options "allow only admins to view/edit fields".
Still I want global moderators to manage incoming registration requests. Therefore they should be able to view the data in the additional fields before they approve new members.
I'd be glad about some help.
Regards,
Michael
How can I get the information creating by Custom Profile Field?
Such as, the value of field CP1
Please show me the code....
I try by created the ssi_showprofiles in SSI.php.
Thank you....
function ssi_getprofiles()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt , $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
for ($i = 1; $i < 21; $i++)
{
// This try to show the custom Profile Field.
echo ' ' . $modSettings['CP' . $i . '_name'] . ': ' . $modSettings['CP' . $i . '_???????] . '<br>';
}
}
Reply #1013 - any help here?
Quote from: davidkirk on March 12, 2007, 12:26:48 PM
Reply #1013 - any help here?
Referring to posts doesn't help with your problem.
Most users don't check back te pages to find post #1013... ;)
Maybe you can explain your problem once again?
Have you did somethings on own initiative? If you've allready tried something, we don'thave to suggest those answers, because you've already tried!
Hi, I'm getting these "test failed" errors (might be my smf version though - I'm running 1.1 RC1:
Type | Action | Description |
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 failed |
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 |
These are the current Packages I have installed:
Mod Name | Version |
1. Google Member Map | 0.55 |
2. Users Online Today Mod | 1.3.0 |
3. Member Color Link | 1.87 |
4. Member Specific Permissions | 1.32 |
SMF Version: SMF 1.1 RC1
holy moly!
Upgrade to smf 1.1.2 immediately.
Quote from: GJ-tje on March 12, 2007, 12:55:10 PM
Quote from: davidkirk on March 12, 2007, 12:26:48 PM
Reply #1013 - any help here?
Referring to posts doesn't help with your problem.
Most users don't check back te pages to find post #1013... ;)
Maybe you can explain your problem once again?
Have you did somethings on own initiative? If you've allready tried something, we don'thave to suggest those answers, because you've already tried!
I appreciate someone taking the time to at least offer to help. I have now posted the same question five times (really). I have been asked to repeat it three times now. This is why I keep referring to old post, so as not to retype the whole topic. I will try yet again.
I have installed this MOD, but I need to know how to move the created field(s) under the "Username" field. I want my registration page to flow and not have people entering, or forgetting to enter, information below the CAPTCHA field.
Help please...
Sorry for my english.
I have a problem with this mod (Custom Profile Field Mod 3.16)
I use the SMF forum vers 1.1.2
Template use: SAF-ORANGE
Then i install this mod all is perfect but i would configurate this mod in PREFERENCES and OPTION setting i don't see the LINK!!!
I try re-install this mod... but it is not changed null.
HELP ME
thaks
Mancio
davidkirk,
Edit the register.template.php file to move the display of the custom fields up....
It's no secret I will probably never be an expert at this stuff, so could I get a weee bit more help? Exactly what am I looking for to move within the 709 lines of code in the "register.template.php" file?
Quote from: mancio on March 13, 2007, 06:42:37 AM
Sorry for my english.
I have a problem with this mod (Custom Profile Field Mod 3.16)
I use the SMF forum vers 1.1.2
Template use: SAF-ORANGE
Then i install this mod all is perfect but i would configurate this mod in PREFERENCES and OPTION setting i don't see the LINK!!!
I try re-install this mod... but it is not changed null.
HELP ME
thaks
Mancio
Have you tried to set your language in English?
I can only use this mod if I set my language setting to English!
ah.... for other languages, you will have to manually add the text strings in modifications.YOURLANGUAGE.php
(in other words, open modifications.english.php, copy out the text strings for this mod, paste them into the modifications.YOURLANGUAGE.php file and edit them into your langauge.
Quote from: paulthai on March 12, 2007, 12:14:21 PM
How can I get the information creating by Custom Profile Field?
Such as, the value of field CP1
Please show me the code....
I try by created the ssi_showprofiles in SSI.php.
Thank you....
function ssi_getprofiles()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt , $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
for ($i = 1; $i < 21; $i++)
{
// This try to show the custom Profile Field.
echo ' ' . $modSettings['CP' . $i . '_name'] . ': ' . $modSettings['CP' . $i . '_???????] . '<br>';
}
}
Help me Please.......
I've just installed SMF 1.1.2., it seems to be working just fine. Now I've installed the Custom Profile mod and according to all the tests that SMF ran, the install was successful (no error messages) however, the control panel does not show up (under Features and Options) for this mod.
I am currently using the default theme.
On what may be a related side note, I've also tried to install the Ad Management mod and that one also seems to install correctly but does not display the link to the control panel (altough it does make an extra space for it in Configuration section, but no text).
Any idea about why I can't seem to add mods? I have not been using SMF for very long so hopefully there is a relatively easy solution to these issues.
Thanks in advance for any help.
1- are you using english?
2- did the mod really intall the text strings in modifications.english.php?
Yes I am using English (at least everything appears to be in English). I'm not really sure if the modifications.english.php file was really modified as I'm not sure where it is. This was pretty much a straight forward install of SMF.
look at your error log in the admin section
I just checked the error logs. I'm getting a bunch of errors. Here's a sample:
8: Undefined index: ad_management
File: /home/docaa/public_html/Sources/Subs.php
Line: 2738
Unable to load the 'Ads.english-utf8' language file.
8: Undefined index: cp_cpfields
File: /home/docaa/public_html/Sources/ModSettings.php
Line: 142
Unable to load the 'CustomProfile.english-utf8' language file.
Does this shed any light on things?
Quote from: Kindred on March 13, 2007, 09:28:59 AM
davidkirk,
Edit the register.template.php file to move the display of the custom fields up....
Exactly what am I changing in this file???
Jeesh...I can't believe I have been asking the same question (basically) since January 23rd. My original post, #835 is here (http://www.simplemachines.org/community/index.php?topic=79004.msg923070#msg923070). If I am doing something wrong please let me know so I can post this question somewhere else.
Quote from: onfulltilt on March 14, 2007, 02:24:05 PM
I just checked the error logs. I'm getting a bunch of errors. Here's a sample:
8: Undefined index: ad_management
File: /home/docaa/public_html/Sources/Subs.php
Line: 2738
Unable to load the 'Ads.english-utf8' language file.
8: Undefined index: cp_cpfields
File: /home/docaa/public_html/Sources/ModSettings.php
Line: 142
Unable to load the 'CustomProfile.english-utf8' language file.
Does this shed any light on things?
sounds like the mod never installed completely
ah.... actually, it looks like both of those mods may have problems with a forum that uses english but installed as utf-8
Davekirk...
Apparently you have not been asking the right questions...
You asked, is it possible? (answered: yes)
You asked: What do I do? (answered, edit register.template.php)
I merely assumed that you would be able to move the small block of code into the desired location...
What you should have asked the first time was
"Can someone please edit the code for me in register.template.php and send me the updated code to move the display of custom profile fields to a location under the existing "name" field"
The answer is:
move/remove
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
RegistrationFields();
into the middle of this code:
<tr>
<td width="40%">
<b>', $txt[98], ':</b>
<div class="smalltext">', $txt[520], '</div>
</td>
<td>
<input type="text" name="user" size="20" tabindex="', $context['tabindex']++, '" maxlength="25" />
</td>
</tr><tr>
<td width="40%">
<b>', $txt[69], ':</b>
<div class="smalltext">', $txt[679], '</div>
</td>
<td>
<input type="text" name="email" size="30" tabindex="', $context['tabindex']++, '" />';
and change that to:
<tr>
<td width="40%">
<b>', $txt[98], ':</b>
<div class="smalltext">', $txt[520], '</div>
</td>
<td>
<input type="text" name="user" size="20" tabindex="', $context['tabindex']++, '" maxlength="25" />
</td>
</tr><tr>';
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
RegistrationFields();
echo '
<td width="40%">
<b>', $txt[69], ':</b>
<div class="smalltext">', $txt[679], '</div>
</td>
<td>
<input type="text" name="email" size="30" tabindex="', $context['tabindex']++, '" />';
Thanks a lot for that coding! Like Davekirk I've been looking for a solution to that problem.
But one more problem:
If you enter the username and then hit the tab key to proceed to the next field, the cursor skips those fields created with custom profile mod and goes directly to the e-mail-field.
Any suggestion how to solve this?
Thanks and regards,
Michael
not easily...
Quote from: naitram on March 14, 2007, 02:49:20 PM
sounds like the mod never installed completely
Any reason why none of the mods I'm trying to insall end up installing correctly? Perhaps an easy fix?
could be a permissions thing. you need to look at the error log right after trying to install the mod
Quote from: naitram on March 14, 2007, 07:37:43 PM
could be a permissions thing. you need to look at the error log right after trying to install the mod
Okay, so I've uninstalled all my non-functioning mods (which generated some errors also) and started from scratch. Here are the errors I received after my install of the Custom Profile Field mod:
Today at 07:33:50 PM
http://www.docaa.org/index.php?action=featuresettings;sa=layout;sesc
8: Undefined index: cp_cpfields
File: /home/docaa/public_html/Sources/ModSettings.php
Line: 142
Today at 07:33:50 PM
http://www.docaa.org/index.php?action=featuresettings;sa=layout;sesc
Unable to load the 'CustomProfile.english-utf8' language file.
Today at 07:33:42 PM
http://www.docaa.org/index.php?action=featuresettings
8: Undefined index: cp_cpfields
File: /home/docaa/public_html/Sources/ModSettings.php
Line: 142
Today at 07:33:42 PM
http://www.docaa.org/index.php?action=featuresettings
Unable to load the 'CustomProfile.english-utf8' language file.
If this is a permission thing why is it happening? If it is a permission thing, can I manually chmod and then re-chmod some files myself before and after the install? I know that I did provide SMF with the correct FTP info when it asked for it. I've even tried installing the mods after I've had SMF make everything writable in the Package/Options tab.
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
p.s.. I am running a brand new install of 1.1.2
I have this mod installed (v 3.16) and I created a few fields - First Name, Last Name, etc - and I set the option "Show in Profile" on but these fields are only visible to users with Admin Privileges. Regular Members can't see the new fields. How can I make these fields visible to all users?
rgum
I just tried to install the Custom Profile Field mod. Everything seemed to go smoothly until I looked at the "Features and Options" to see what changes had been made. And found non.
I checked the error log and it had a few of these:
Unable to load the 'CustomProfile.english-utf8' language file
I checked all server directories, a downloaded full installation and the mod package and can find no evidence that this file has ever existed
Any help would be appreciated
Alison
Can i set it so only certain member groups get certain fields?
Quote from: splatcatballa99 on March 17, 2007, 09:58:51 PM
Can i set it so only certain member groups get certain fields?
Not with this mod itself. You would have to create and do all sorts of fancy things in addition - just as registering user's membergroups as a $context and then, after making the field, checking to see if you can insert the additional code to check the group.
you lost me after you said "Not with this mod itself. You would have to create and do all sorts of fancy things in addition" so i would need to edit the smf coding itself?
i have littel strange problem.when i add field pages reloads but nothing added after few mintues when i check it again after visiting some other pages it works fine and no error in error log.else its fine but i have to wait to add fields...
server is quite OKAY we don't face downtime but this mod needs time to work!...there is no error in log.
I love this mod, it works well in the standard theme.
Unfortunately, the field do not show up in my forums default them which is "Leviathan" If a new user request an id it does show up there? The work around that I am using presently is just to change the theme to SMF default then add or modify there. Would be great if I could get it to work in Leviathan under profile view.
Again great mod, I love it, nicely done.
in order for this (or any other mod) to work in a custom theme (i.e. anything other than default), you will have to apply the code changes into the *.template.php files.
in your case, it probably incloved profile.tmeplate.php and display.template.php. It may involve other files as well, but those are the two most obvious ones.
SMF 1.1.2.
Theme Slick Pro Graphite.
Custom Profile Mod 3.15 - 3.16 fails to install, saying there's no upgrade or something.
The field are showing on the forum, but the profile doesn't allow editing anymore - the fields are gone. The tab from "Features and Options" in Admin is gone too, so no modifications possible from there.
Any ideas?
Good grief...there are reams of Threads for this Mod. Three quick questions: (1) what is the current version, and (2) have the bugs been ironed out for use with 1.1.2, and (3) What is involved in installing this Mod?
Thanks.
[SUPPORT QUESTION]
(to be less confusing :D)
Is it possible to configure a specific answer for the custom field created? Like for example if I ask "please write four times the letter a" I want the text field to accept only the answer "aaaa"... is it possible to do this using the MOD ???
not as designed....
I tried to install this mod on a fresh install of 1.1.2 and having trouble. Not seeing anything under 'features and options', and when I check error log I see these messages:
"Unable to load the 'CustomProfile.english-utf8' language file." and:
"8: Undefined index: cp_cpfields
File: ../public_html/forum/Sources/ModSettings.php
Line: 142"
I'm hoping someone can help? Thanks in advance.
Quote from: rlyons on March 24, 2007, 07:21:05 AM
I tried to install this mod on a fresh install of 1.1.2 and having trouble. Not seeing anything under 'features and options', and when I check error log I see these messages:
"Unable to load the 'CustomProfile.english-utf8' language file." and:
"8: Undefined index: cp_cpfields
File: ../public_html/forum/Sources/ModSettings.php
Line: 142"
I'm hoping someone can help? Thanks in advance.
I'm having these same exact problems, with this mod and some others (see above posts). I used Fantastico for the insall? Anyone else having these problems use Fantastico? I'm wondering if this is some sort of permissions thing due to having a program like Fantastico handle the install.
^^ I am using this mod and the exact same thing happened! I am also using fantastico.
Yes, I used fantastico also, however I CHMODed all files to 777 and tried again with the same results so it is not a permission thing. Also I re-uploaded all language files thinking that might be it be still getting same errors.
I believe, from your errors, that this has somethign to do with UTF-8, since I installed this one four forums with UTF-8 and have had no issues at all.
so what would be the fix?
I don't know... I didn't make the mod and have not looked closely enough at the code to determine that. I just pointed out the common denominator in the error messages and hope the author of the mod can figure out what's different about utf-8 installations.
I believe I fixed it simply by selecting "english" instead of "english-utf-8" in 'server settings'. Thanks for pointing me in the right direction.
Quote from: rlyons on March 25, 2007, 12:59:51 PM
I believe I fixed it simply by selecting "english" instead of "english-utf-8" in 'server settings'. Thanks for pointing me in the right direction.
rlyons, you rock. After banging my head against my computer for a couple of weeks now this simple fix actually worked. I was able to install this mod as well as the ad management mod in a couple of minutes. I haven't actually test them yet but at least I have access to their control panels. It's absolutely great when things can be fixed so easily (at least once someone informs you what the fix is).
Thanks,
Alex
hello to all and to the mod creator
the mod works fine now but my theme which is black day has a profile.template.php which i couldnt edit previous joined members that still havent made used of this mod.
could you guyz point me out on what to edit in it!!! it seems that i had no idea on the modifications on where and what to put so i could edit members profile on my new added field
any help is highly appreciated
tia!!!
Somehow, whilst reinstalling the mod afer a 1.1.2 upgrade, I have ended up with duplicate custom fields display.
In Features + Settings / Custom Profile Fields, there are only 2 custom fields displayed (name + school).
During registration, the user is asked to enter the fields twice (name, school, name , school) but the 2nd set of input is used to populate the custom fields.
In a user's profile the 2 custom fields are both displayed twice (name, school, name, school).
It look like only 1 set of data is being stored, but code is present to display the fields twice.
I can't track down where the display of the fields takes place - can anyone point me in the right direction so that I can check the code or tell me how I can I remove one set of display fields?
Many thanks
floydpink - profile.template.php and register.template.php. If you have double installs in those, however, you likely have duplicated code in other files as well. The other duplicated code may cause more errors than just double-displaying the custom fields.
123kid,
Go to admin > packages ? list the files in this mod > Open the install.xml or other similarly named file...
In that file it lists the mode instructions on what needs to be added or replaced in what files.
please read here (http://docs.simplemachines.org/index.php?topic=402)
Selecting "english" instead of "english-utf-8" in 'server settings' did it for me too, after lots of time spent digging around. So the fix has been highly appreciated.
Having now got Custom Profile Fields mod to work, would appreciate suggestions as how to increase vertical size of text box on registration form, so new applicants can enter their details. Making it a multiple line word-wrap style entry. Thanks
Is it also possible to change the permissions on Custom Profile Fields such that Global Moderators can view and edit besides just the Admins, without giving general access.
Alison
Quote from: floydpink on March 27, 2007, 05:40:31 AM
Somehow, whilst reinstalling the mod afer a 1.1.2 upgrade, I have ended up with duplicate custom fields display.
In Features + Settings / Custom Profile Fields, there are only 2 custom fields displayed (name + school).
During registration, the user is asked to enter the fields twice (name, school, name , school) but the 2nd set of input is used to populate the custom fields.
In a user's profile the 2 custom fields are both displayed twice (name, school, name, school).
It look like only 1 set of data is being stored, but code is present to display the fields twice.
This was resolved by removing duplicate code in the following files (the search string needed to locate the duplication is in brackets - just in case anyone else needs to do the same thing later):
$sourcedir/ModSettings.php (modifyprofilesettings; cp_cpfields; customprofile)
$themedir/Profile.template.php (customprofile)
$themedir/Display.template.php (postspic; customprofile)
$themedir/PersonalMessage.template.php (postspic; customprofile)
$themedir/Register.template.php (customprofile)
I can only guess that the duplicate code was left behind when a mod uninstall was cancelled before it had finished. ::)
Quote from: paulthai on March 13, 2007, 07:43:55 PM
Quote from: paulthai on March 12, 2007, 12:14:21 PM
How can I get the information creating by Custom Profile Field?
Such as, the value of field CP1
Please show me the code....
I try by created the ssi_showprofiles in SSI.php.
Thank you....
function ssi_getprofiles()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt , $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
for ($i = 1; $i < 21; $i++)
{
// This try to show the custom Profile Field.
echo ' ' . $modSettings['CP' . $i . '_name'] . ': ' . $modSettings['CP' . $i . '_???????] . '<br>';
}
}
Help me Please.......
I've just been having the same problem. But from looking through it it seems it also needs $context['members']['options'] setting to global $options
function ssi_customfields()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt , $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
$context['member']['options'] = $options;
for ($i = 1; $i < 21; $i++)
{
if ($modSettings['enable_CP' . $i . ''] && isset($context['member']['options'][$modSettings['CP' . $i . '_id']]) && !empty($context['member']['options'][$modSettings['CP' . $i . '_id']]) && $modSettings['CP' . $i . '_profile'])
{
echo $modSettings['CP' . $i . '_id'] . ': ';
echo $context['member']['options'][$modSettings['CP' . $i . '_id']];
}
}
}
Is working for me :D
Thank you Mr.miken
I found that problem. The $context is my problem too. I fix it already but another way.
Thank you so much,
Paul
Hellow everyone :)
Great mod this one... but I have a suggestion:
Can it be a check box in the search members option for each custom fields?
If i have a custom field named ,,year" to have the options to check ,,search by year"...
Can this be possible?
And one more suggestion...
Is it possible that some custom fields to appear in the sorting page of the member list so that I can sort by number or by alphabet?
Do you understand what are my suggestions? :-\
Thanks in advance for any answers
adding this to the search would be fairly intensive...
and adding it to the member list is also difficult (among other reasons: because you don't necesarrily know the width of the fields...)
Adding it to the memberlist and sortable is even more complicated.
:o :o :(
ok...
what could be easy in this case?
Let me explain: my forum is for students from a faculty... and i let them choose, through custom fields, in what year they are (first custom field -dropdown) and what group they are(second custom field - dropdown). I want them to be able to search somebody from a year or from a specific group, so that they can find their colleagues from their year or group...
This is why I want this feature for this mod...
Do you suggest any other solution?
What kind of modifications will be? just php or php+sql? I am thinking to start learning php more instensive :)
adding searhc functions would have to be php + SQL...
I am trying to add a CP field that displays a link to member gallery,
however the only way I can get it to work currently is to enter the member number.
That works but obviously members will have to find their member number, so it would be better if they could enter their name. Plus on posts it only shows Gallery: 143 <--- member number,where I would like it to say name or just click here
any ideas how to achieve this?
http://www.mysite.com/forum/index.php?action=gallery;sa=myimages;u=%1
Or can I use CP field to just add a link on posts/profile that takes to the above url and requires no input?
I'm sure I'm missing something simple
This is not a correct use of the Custom Profile fields, IMO
The link to a user's gallery is fixed, not information that a user should enter.
If I recall correctly, Goosemoose posted a way to modify display.template.php to add a gallery link to the user's coppermine gallery.
actually I think I remember that, I will go search for it again.
My thoughts for using it as a CP field were that if a member didnt enter the field then it wouldnt display on the posts/profile, rather than have the link display for everyone even if they have no gallery images
Thanks Kindred
Hi,
May be a dumb q? Is it possible to use the exsisting field members."location" Id like to make this compulsory for new members. I already have is showing under the users details when they post, just like to make sure all new members fill the field in...
thanks!
that is not what this mod does...
to modify an existing field, you will have ot modify the code on your own...
Probably a silly question, but I installed the mod, no errors but I can't find a place to set settings or whatsoever, not under options and features or so, what do I do wrong here ?
thanks :)
Quote from: LowBear on April 08, 2007, 05:06:16 PM
Probably a silly question, but I installed the mod, no errors but I can't find a place to set settings or whatsoever, not under options and features or so, what do I do wrong here ?
thanks :)
Features and options :)
can someone send me a screen dump of what I should see ??
it's not showing up here ...
tnx !
winrules,
I know you were working on enabling the ability to sort Custom Profile fields that were added to the Memberlist, but didnt know if this was completed.
In the meantime, I am trying to join the themes table and sort by one of the custom fields that I created called first_name.
Here's my query:
// Select the members from the database.
$request = db_query("
SELECT mem.ID_MEMBER
FROM {$db_prefix}members AS mem" . ($_REQUEST['sort'] === 'isOnline' ? "
LEFT JOIN {$db_prefix}log_online AS lo ON (lo.ID_MEMBER = mem.ID_MEMBER)" : '') . ($_REQUEST['sort'] === 'ID_GROUP' ? "
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))" : '') . "
LEFT JOIN {$db_prefix}themes AS th on (th.ID_MEMBER = mem.ID_MEMBER)
WHERE mem.is_activated = 1" . (empty($where) ? '' : "
AND $where") . "
ORDER BY " . $sort_methods[$_REQUEST['sort']][$context['sort_direction']] . "
LIMIT $limit, $modSettings[defaultMaxMembers]", __FILE__, __LINE__);
printMemberListRows($request);
mysql_free_result($request);
Here's my error:
Unknown column 'th.first_name' in 'order clause'
File: /home/sigmachi/public_html/members/Sources/Memberlist.php
Line: 341
SELECT mem.ID_MEMBER
FROM smf_members AS mem
LEFT JOIN smf_themes AS th on (th.ID_MEMBER = mem.ID_MEMBER)
WHERE mem.is_activated = 1
ORDER BY th.first_name ASC
LIMIT 0, 50
Any ideas?
rgum
Quote from: Kindred on April 05, 2007, 10:08:37 AM
This is not a correct use of the Custom Profile fields, IMO
The link to a user's gallery is fixed, not information that a user should enter.
If I recall correctly, Goosemoose posted a way to modify display.template.php to add a gallery link to the user's coppermine gallery.
I asked there but no one can tell me how to do it :(
Perplexed,
Actually, I was able to get it to work, but only on one field - so far...
I created a few custom fields using the Custom Profile Field MOD for First Name, Last Name, Address etc...
So, I went into the Memberlist.php file and made the modifications to include my new custom profile fields on the mlist.
Then, I setup the query:
// Select the members from the database.
$request = db_query("
SELECT mem.ID_MEMBER, th.ID_MEMBER, th.variable, th.value
FROM {$db_prefix}members AS mem" . ($_REQUEST['sort'] === 'isOnline' ? "
LEFT JOIN {$db_prefix}log_online AS lo ON (lo.ID_MEMBER = mem.ID_MEMBER)" : '') . ($_REQUEST['sort'] === 'ID_GROUP' ? "
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))" : '') . "
LEFT JOIN {$db_prefix}themes AS th on (th.ID_MEMBER = mem.ID_MEMBER AND th.variable = 'first_name')
WHERE mem.is_activated = 1" . (empty($where) ? '' : "
AND $where") . "
ORDER BY " . $sort_methods[$_REQUEST['sort']][$context['sort_direction']] . "
LIMIT $limit, $modSettings[defaultMaxMembers]", __FILE__, __LINE__);
printMemberListRows($request);
mysql_free_result($request);
Then I setup the sort methods:
// List out the different sorting methods...
),
'firstName' => array(
'down' => 'th.value ASC',
'up' => 'th.value DESC'
),
'lastName' => array(
'down' => 'th.value ASC',
'up' => 'th.value DESC'
So far, it works for just one of the variables and blows up when I try to add more than one Custom Profile field to sort on. But, I am still working on this. Its pretty cool that I was able to get the first_name field to sort but I need to have the ability to have the rest of my fields sort.
rgum
Where in the database is this inforamtion stored as far as the user values for the custom fields I create. Someone said the "themse" table but I would like to confirm this and to know exactly how the information is stored... I would like to create some custom fields and pull the data for another web app if possible.
thanks.
Is there a download mirror for this mod?
http://custom.simplemachines.org/mods/index.php?action=download;mod=319;id=22176
isn't working
EDIT:
It's okay for me now - thanks
works fine for me...
olandir
The smf_themes table is the correct table for the Custom Profile MOD. There are four columns in this table (ID_MEMBER, ID_THEME, variable, value)
When you create a custom profile field, the MOD creates a new row on the variable column for whatever you named your field and the value that is entered into the new field will be stored in the value column.
So, if you created a new field called (first_name) for example, the MOD would create a new row called first_name in the variable table. If you browse the table it will make more sense.
rgum
This table has
Perplexed,
I figured out how to add fields from the Custom Profile MOD to the mlist and sort the values.
rgum
rgum... that is not what perplexed is trying to do.
He is trying to add a link from the users profile page and mini-profile in posts to point to the smf gallery...
Again, I say to you perplexed, that is not how this mod is intended to work. Your best bet is to ignore this mod (since it does not do what you are asking) and put something else in place manually. (BTW: You never said you were using smf gallery, from your original query, it looked like you were talking about the coppermine gallery)
Actually, I would suggest asking how to do what you are asking about in the SMF Gallery mod thread,
FYI:
It doesn't install via the package manager on a clean SMF 1.1.2 install.
- Just now I downloaded SMF 1.1.2 and installed it
- Went to the package manager and browsed "Simple Machines Third-party Mod Site"
Located the following
Quote6. Custom Profile Field Mod [ Download ]
Package Type: Modification
Version: 3.16
- Clicked download and got back:
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
- So I manually downloaded the package, uploaded it to my server and clicked "Apply Mod"
- Everything in the following looked fine to me:
QuoteInstallation Readme
This mod will add an unlimited amount of custom profile fields to SMF. They will be configurable in "Features and options". You can have text fields, text area fields, check boxes and selection boxes.
Install Actions
Installations actions for "Custom Profile Field 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 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
Only then did it actually install
I installed "Custom Profile Field Mod" this afternoon, and everything appeared to go well during the installation. I installed it using the Package Manager. I did have to download the mod to my system first, as the package manager carped about it. My SMF is version 1.1.2 and was freshly installed today. I have no other mods installed.
When I log on as the Administrator and go to "Features and Options," nothing has changed from the initial install. More specifically, there is no place on the 3 tabs presented to define custom profile fields. The 3 tabs are: "Basic Features," "Layout and Options," and "Karma".
Where do I add the custom fields?
Thanks,
Roy
What I'm getting is the following error messages:
71.32.242.112 8: Undefined index: cp_cpfields
File: /home/freegeez/public_html/smf/Sources/ModSettings.php
Line: 142
?action=featuresettings Today at 08:18:52 PM
71.32.242.112 Unable to load the 'CustomProfile.english-utf8' language file.
?action=featuresettings Today at 08:18:52 PM
I hope this helps identify the solution to my problem.
Thanks,
Roy
Solution: Changed "Default Forum Language" to "English" rather than "English-Utf8".
How's that for a "stab in the dark"?
hey folks!
i wanted to add a Skype-Field to the User profiles, so i tried this mod. i'm NOT using the default theme and additionally i'm using the german language files.
so what do i have to do to make it work with my config?!
thanks in advance,
topiQ
This thread is huge so this probably already got answered but how can I add "optional" above all the custom fields so they person registering knows they don't have to fill out those.
I have a field titled "favorite links". Is there a way to make this field clickable? Sorry I don't know the proper term for this. Example; you are viewing someones favorite links in their profile and you can click on them to go to site.
Try using BBC in the field...specifically the url tag
so what about my question? howto make the mod work for NOT default theme and lang?!
thanks in advance.
for making this mod work with other languages and/or themes, you will have to manually edit the necesarry files.
For other languages, Themes/default/languages/modifications.*yourlanguage*.php would have to be updated with all the same strings as modifications.english.php
for other themes, you will have to see what kiles your theme changes fomr the deafult and edit the ones that this mod changes. (probably profile.template.php, register.template.php and/or display.template.php.
But for the Skype field, you might consider using the skyper, ventrillo, myspace mod, since that mod also adds the fields into the memberlist function.
Quote from: FreeGeezer on April 13, 2007, 09:11:28 PM
I installed "Custom Profile Field Mod" this afternoon, and everything appeared to go well during the installation. I installed it using the Package Manager. I did have to download the mod to my system first, as the package manager carped about it. My SMF is version 1.1.2 and was freshly installed today. I have no other mods installed.
When I log on as the Administrator and go to "Features and Options," nothing has changed from the initial install. More specifically, there is no place on the 3 tabs presented to define custom profile fields. The 3 tabs are: "Basic Features," "Layout and Options," and "Karma".
Where do I add the custom fields?
I'm having the same problem. Install went well, as far as I can tell, but there's nothing in the Features and Options that I can see.
I'm searching the SMF forum for answers but coming up with nothing.
Any suggestions as to where I can look for an answer?
Thanks!
It's pretty obvious that the mod didn't install properly for you so go through the manual installation process and put right any items of code edit that have been missed out.
drumsage, If you will read post #1114, you'll see how I solved the problem.
Solution: Changed "Default Forum Language" to "English" rather than "English-Utf8".
And no, TrueSatan, it isn't obvious that the mod didn't install properly. In my case the english-utf8 module wasn't there, so that certainly isn't the mod's fault.
Thanks,
Roy
Hi there,
These are the errors I'm getting... trying to install on 1.1.2:
2: copy(/var/www/humanity/forum/Themes/default/languages/CustomProfile.english.php) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
File: /var/www/humanity/forum/Sources/Subs-Package.php
Line: 1025
2: copy(/var/www/humanity/forum/Sources/CustomProfile.php) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
File: /var/www/humanity/forum/Sources/Subs-Package.php
Line: 1025
Any ideas?
Thanks! :)
linds
Have you made sure that your forum files are set to suitable CHMOD? Go to Admin>Packages>Options>Installation Options enter the correct ftp details for your site then go to Cleanup Permissions on the same page and select All files are writable. Having done that try the installation again.
You should set the permissions this way whenever you want to install a mod...after installation you can select one of the other Cleanup Permissions options if you so wish.
I just tried that... I still get the same errors :(
Are the files set to CHMOD 777...just make sure via ftp please.
They're not actually... I sent an email to my host earlier and he's working on it. I'll let you know if setting it to that works! Thanks! :)
hello,
can anyone help me.
i installed this mod, but i don't see anything different on my acp.
i'm using the mercury theme, so do i have to make some codechanges?
Please check if the mod is working properly in the default theme...if it is then please search on this site for details on how to alter additional themes to make mods work in them.
well actually no.
i don't see anythyng related to custom profile field in the Features and Options.
maybe i should reinstall the mod, with the default theme selected?
As with a previous member's problems with the mod please make sure you've got CHMOD permissions as they should be (777 for the affected files would be ideal.) Having done that I'd just make sure that your forum is set to English and not English utf8 as that has caused a lot of problems with some mods.
At that point you could do an uninstall/reinstall but personally I'd ftp the files this mod affects from your server and inspect them to see if the mod has been edited into them or not...if it's not there or is incomplete then I'd manually edit it into them.
where can i change the language of the board?
Quote from: absonic on April 21, 2007, 08:49:02 AM
where can i change the language of the board?
ACP>Configuration>Server Settings>Core Configuration>Default Forum Language
It is already set to English. In fact that is the only option (no English UTF8).
Also, i tryed uninstalling the mod, but it says that the action can't be done, because some files aren't CHMODed tpo 0777 (but they are).
sooo...
what do you suggest now?
You are down to manually editing the mod into the files...it looks far more difficult that it really is so don't be put off too easily. If you get really stuck then ftp the files the mod affects (all of them not just those showing fails in the package uninstaller) and put them on here...if I can find the time this evening I'll go through them for you.
If you want anyone else to do edits for you it tends to help if we know what other mods might be found in them...so please list the mods you are using.
Once the mod is edited into the files it should then uninstall properly if that is what you desire...right now you seem likely to have some files with the mod in them and some not thus the uninstall gets messed up.
i;m sorry for my ignorance, but i don't have experience with smf.
i used phpBB and IPB, and in modifications for them, there were instructions how to manually install some files.
how will i know what to search for and what to add an where?
in this mod i have files CustomProfile.php, CustomProfile.english.php, fixpostsbug.xml
modification.xml, package-info.xml, tablanguageissue.xml
So, how can i from this find out how to manually modify files?
OK...start off with this link...it's the official documentation:
http://docs.simplemachines.org/index.php?topic=402 (http://docs.simplemachines.org/index.php?topic=402)
The SMF Package Parser is also likely to help you (it's by Daniel15):
http://www.simplemachines.org/community/index.php?topic=140034 (http://www.simplemachines.org/community/index.php?topic=140034)
With those two you ought to be able to do it.
i'm having some problem here
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimgplace.com%2Fdirectory%2Fdir1632%2F1177183116_1082.JPG&hash=8af1c84d402f4d1646f69c9a278f1c48980b8cef) (http://imgplace.com/image.php?img=directory/dir1632/1177183116_1082.JPG)
and i cant view "show under the post"
i use default theme
To get any custom field you have first to set it up in the ACP>Features and Options>Custom Profile Field...have you done so? Are you using a custom theme? Have you tried the mod in the default theme?
If you set up the field(s) you want to add in the ACP and it works in the default theme then please search for how to add mods to custom themes.
Quote from: teamyakuza on April 21, 2007, 03:19:12 PM
i'm having some problem here
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimgplace.com%2Fdirectory%2Fdir1632%2F1177183116_1082.JPG&hash=8af1c84d402f4d1646f69c9a278f1c48980b8cef) (http://imgplace.com/image.php?img=directory/dir1632/1177183116_1082.JPG)
and i cant view "show under the post"
i use default theme
you have duplicate fields in there? Perhaps you have added too many custom profile fields?
Also if you want it to show under posts, then you have to check that box when you configure each custom field :) The option is there to show or not show.
need some help gusy please? i'm new to this so please forgive me if my question sounds daft.
Ive downlaoded the custom profile mod and installed it through the packages section in the control panel. but hwo do i access the bit that lets me set the required fields when peopel are registering?
Any ideas please? cheerrs
um in the admin control panel > features and options look along the top and there will be a tab for custom profile fields
then you can make a CPF that goes on the registration form or not :)
YEY !!!! IT WORKS !!
Just to let yuo all know........i was haivng the same problems in that id installed it and everythig looked ok but i couldnt find it in the admin panel.
So to all of you who cant get thsi to work do this..........
1 - Uninstall any previous version of the mod (custom field mod)
2 - Dowmlaod the latest version
3 - FTP the zip file and put it in your 'packages' folder.
4 - CHMOD that zip file to 777 so that the permissons are ok.
5 - Install it through the 'packages' section of your admin panel
6 - Make sure you change your language to 'English' and NOT 'English-Utf8'
Youll find the language option under 'server settings > Core Configuration'
Once youve done all that it should work and youll find your new custom field setting under the control panel 'FEatures and Options'.............you'll now see a new tab called 'custom profiel fields'
Any problems post and ill try and help out :)
Quote from: perplexed on April 22, 2007, 10:34:10 AM
Quote from: teamyakuza on April 21, 2007, 03:19:12 PM
i'm having some problem here
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimgplace.com%2Fdirectory%2Fdir1632%2F1177183116_1082.JPG&hash=8af1c84d402f4d1646f69c9a278f1c48980b8cef) (http://imgplace.com/image.php?img=directory/dir1632/1177183116_1082.JPG)
and i cant view "show under the post"
i use default theme
you have duplicate fields in there? Perhaps you have added too many custom profile fields?
Also if you want it to show under posts, then you have to check that box when you configure each custom field :) The option is there to show or not show.
how to delete the duplicate fields ?
i have choose show under posts but i cant view it
Hi,
i don't know if this is asked somewhere in the last 77 (!) pages of this thread:
Where is the information stored, if the user selects any information in the configured fields ?
We have a Forum for Cars and we have configured some special fields about the cars of the users.
Now we want to have some statistics about the cars, but i need to know in which table the information is stored to do an sql-query.
I haven't found the information in the smf_members table.
thanks in advance.
as stated at leats 4 times in the 77 pages of this thread... the custom profile info is actually stored in the themes table.
thanks....
but i can't find it ???
I'm not able to select, which option is choosen by a specific amount of users.
EDIT: OK, i have found the information right now.
Thanks.
Hi,
I have problems on displaying custom fields in the forum posts. I have selected show in profile and show in posts but there's problems with the show in posts. I can see the custom fiels in private messages, in profiles... but not in forum posts. Am I missing something?
Cordially,
Johan
Are you using a custom theme...if so does the system work properly in the default theme? Have you made sure that your forum is set to English and not English utf8 (that causes a lot of issues?)
If it works in the default theme then you need to look at the way you have adapted it for a custom theme...go through the files and check your code changes.
Yes, when I chose the default theme I have the custom fields in the forum (in posts).
My custom theme have these files:
BoardIndex.template.php
Display.template.php
index.template.php
MessageIndex.template.php
Who.template.php
Which one should I modify?
which explains your "problem"
As stated at least a dozen times in this (and nearly every other mod) thread, mods currently only install on the default theme. If you use other themes, you may have to manually apply the mod code to those themes, depending on what template files are affected.
in this case, Display.template.php is affected. (open the mod package, read the install.xml and apply the code to the correct locations.) You can also run the mod through the package analyzer
Hi,
Is there any plan to add functionality to allow custom fields to display in the memberlist for sorting purposes?
Quote from: Kindred on April 26, 2007, 10:17:53 AM
which explains your "problem"
As stated at least a dozen times in this (and nearly every other mod) thread, mods currently only install on the default theme. If you use other themes, you may have to manually apply the mod code to those themes, depending on what template files are affected.
in this case, Display.template.php is affected. (open the mod package, read the install.xml and apply the code to the correct locations.) You can also run the mod through the package analyzer
Yes thank you, was missing something in the modification in Display.template.php! Thank you!
I need to extract member information to create a printed phone list.
I know I can use an SQL query to gather the data, but I just don't understand SQL enough to know how to use left or right joins or whatever they are to link the members and themes tables together to get my data. (if that's what I need to do!)
I need to get the following:
From smf_members: realName, emailAddress
From smf_themes: CP_instrument, CP_homePhone, CP_workPhone, CP_mobilePhone, CP_homeAddress
Can somebody please help me with the SQL query to achieve this?
Many thanks
Richard
Sydney, Australia
How can I make it to work on my custom theme? "Aa New Damage"
I have a question similar to rpalmer68 above:
In which table can I find the additional profile data using phpmyadmin?
Quote from: Perfektionist on April 28, 2007, 03:54:10 AM
I have a question similar to rpalmer68 above:
In which table can I find the additional profile data using phpmyadmin?
The table is smf_themes, the problem I'm having is extracting all the data!
I have the following SQL query working, but this only returns the Members Name, email and instrument, how do I now return the other data I need from smf_themes (CP_mobilephone, CP_homePhone etc) all in the one query?
SELECT smf_members.realName as NAME, smf_members.emailAddress as EMAIL, smf_themes.value as INSTRUMENT
FROM smf_members, smf_themes
WHERE smf_members.ID_MEMBER = smf_themes.ID_MEMBER AND smf_themes.variable = 'CP_instrument'
Regards
Richard
Quote from: daragor on March 31, 2006, 01:16:36 AM
some errors for me too in RC2
nice mod! fix it please
you fix it. haha all you have to do is add the codes from each file manually... and everythings working fine anyways...
especially since for non-default themes all you have to do is copy display.template.php etc... things like that from the default and replace those like ones in the non-default theme.
OK, I've read through all 58 pages of this topoc and have determined that I can't gather the data directly with an SQL query but will need to create a .php page to generate and then display the data I need in the correct format.
So at this point I'm totally stuck!
I read a few posts about ssi and things but I'm afraid I'm totally new to all of this and it went right over my head.
Can somebody PLEASE give me the code I need to add and instruction on where I need to add it to achieve the following???
I need to create a printed membership phone list for a concert band I have setup to use SMF 1.1.2 with the custom profile mod.
I have custom fields setup as below;
CP_instrument, CP_homePhone, CP_workPhone, CP_mobilePhone, CP_homeAddress
So how do I create a page that displays a phone list that members could then print to get a hard copy
I really wold appreciate some guidance/help as I need to somehow get the data out so I don't have to maintain an XL spreadsheet as well just to print out a membership list for people.
Many thanks
Richard
Sydney, Australia
Hi-
I'm new to SMF, but not new to adminning forums. I just installed this mod (v.3.16) on my forum (SMF version 1.1.2). the install seemed to work properly, but I can't find any configuration options for the mod anywhere in the admin menu. My understanding is that it should be under the 'Features and Options' menu, but I don't see anything there ??? Any ideas or suggestions would rock.
Jack
Jack,
Almost all mods only install into the default theme...are you using another theme? If so please see if the mod is working properly in the default theme.
If the above is the case you'll need to install the mod manually into your custom theme.
I'm currently using the default theme.
Firstly please check to see that your forum language is set to English and not English utf8...this sometimes stops mods from working.
When installing I presume (seeing as you said you were an experienced admin) that no fails were shown by the package manager? Forgive me confirming this but best be sure.
Did you, prior to installing the mod go to:
Admin>Packages>Options
Fill in the details in "Installation Options"
Then in "Cleanup Permissions" select "All files are writable" and click on "Change file permissions"?
Following that it is wise to make sure that all the files are set to CHMOD 775 or 777 (depending on the hosting of your server) via an ftp client.
You should do the above step prior to installing any mod.
Assuming all files were at the right CHMOD setting then it would be wise to manually check that the mod installed into each one mentioned in the modification.xml file in the package (unzip the package and you'll find that file and the detaisl of the files the mod installs into and what changes are made.)
You could instead use the "Package Parser" to read the package modification details and then check the files to see that the modifications had been done...http://www.modparser.dev.dansoftaustralia.net (http://www.modparser.dev.dansoftaustralia.net)
Hello,
I installed the Profile Field Module (v. 3.16) and integrated it into the latest smf -default theme.
I got all the profile fields to show up below the user's name in the posts, however as a user, when I go to try to modify what I just entered into my newly created profile fields, I don't see any of the fields incorporated into this page:
http://www.mydomain.com/smf/index.php?action=profile;u=1;sa=account
Modify Profile->Account Related Settings
Where am I supposed to edit these new fields once after I enter the info into the registration page? Why do you suppose these new profile fields are not showing up when I go to edit my profile
http://www.went2networks.com/smf
thanks,
Matt
Hi,
I've read through about 38 pages of this post so far and I see that all the profile data is stored in the "Themes table".
How/where do I access this "themes table"?
thanks,
matt
I installed the mod and don't have anyting show in features and options to edit through it. Anyone got any pointers?
Quote from: rpalmer68 on May 04, 2007, 08:14:32 AM
OK, I've read through all 58 pages of this topoc and have determined that I can't gather the data directly with an SQL query but will need to create a .php page to generate and then display the data I need in the correct format.
So at this point I'm totally stuck!
I read a few posts about ssi and things but I'm afraid I'm totally new to all of this and it went right over my head.
Can somebody PLEASE give me the code I need to add and instruction on where I need to add it to achieve the following???
I need to create a printed membership phone list for a concert band I have setup to use SMF 1.1.2 with the custom profile mod.
I have custom fields setup as below;
CP_instrument, CP_homePhone, CP_workPhone, CP_mobilePhone, CP_homeAddress
So how do I create a page that displays a phone list that members could then print to get a hard copy
I really wold appreciate some guidance/help as I need to somehow get the data out so I don't have to maintain an XL spreadsheet as well just to print out a membership list for people.
Many thanks
Richard
Sydney, Australia
Hi Richard,
is this something you could use?
save it as phonelist.php or something like that....dont forget to put your database settings in.
<?
mysql_connect("localhost","YOUR DATABASE USERNAME","YOUR DATABASE PASSWORD");
mysql_select_db("YOUR DATABASE NAME");
$select = "SELECT ID_MEMBER FROM smf_themes WHERE variable = 'CP_instrument' ORDER BY ID_MEMBER";
$query = mysql_query($select)or die(mysql_error());
echo "<table>";
echo "<tr>";
echo "<td>Member nr. </td><td>Nickname</td><td>instrument</td><td>homePhone</td><td>workPhone</td><td>mobilePhone</td><td>homeAddress</td>" ;
echo "</tr>";
while($list = mysql_fetch_object($query))
{
echo "<tr>";
$id = $list->ID_MEMBER;
//--- get the instrument from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_instrument'";
$res = mysql_query($sql);
$instrument = mysql_result($res, 0);
//--- get the homePhone from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_homePhone'";
$res = mysql_query($sql);
$homePhone = mysql_result($res, 0);
//--- get the workPhone from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_workPhone'";
$res = mysql_query($sql);
$workPhone = mysql_result($res, 0);
//--- get the mobilePhone from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_mobilePhone'";
$res = mysql_query($sql);
$mobilePhone = mysql_result($res, 0);
//--- get the homeAddress from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_homeAddress'";
$res = mysql_query($sql);
$homeAddress = mysql_result($res, 0);
//--- get the membername from the database
$sql = "SELECT memberName FROM smf_members WHERE ID_MEMBER = " . $id;
$res = mysql_query($sql);
$memberName = mysql_result($res, 0);
//--- echo the results
echo "<td>$id </td><td>$memberName</td><td>$instrument</td><td>$homePhone</td><td>$workPhone</td><td>$mobilePhone</td><td>$homeAddress</td>" ;
echo "</tr>";
}
echo "</table>"
?>
I notice that several people have trouble extracting all the data they need from the fields in this mod. I assume this is because of the way that it stores the data in smf_themes (rows).
I had problems with this, but I enlisted the help of my father, who has been working on databases for many years. He came up with the basic code which I tweaked.
This assumes that you wish to get the user ID number (ID_MEMBER), the display name (memberName) and the e-mail address (emailAddress) from smf_members...... as well as two custom profile fields from the smf_themes table.
In my case, I left the names as default (cp1 and cp2), which hold the Full Name and Membership Number of the users respectively.
The following command creates one table outputting all of these five variables, for every forum member, using self-joins.
SELECT smf_members.ID_MEMBER
,smf_members.memberName
,smf_members.emailAddress
,full_name.value
,member_no.value
FROM smf_members
,smf_themes AS full_name
,smf_themes AS member_no
WHERE (smf_members.ID_MEMBER = full_name.ID_MEMBER
AND smf_members.ID_MEMBER = member_no.ID_MEMBER
AND full_name.variable = 'cp1'
AND member_no.variable = 'cp2')
ORDER BY ID_MEMBER
This code can be tweaked as necessary to retrieve whatever custom fields you wish. I'm not doing anything exciting with this code, but I guess it should work with more than two variables, suitably amended. As an example, to answer Richard's request above I reckon that the following should work (no guarantees, I'm not an expert on this!):
SELECT ,smf_members.memberName
,instrument.value
,homephone.value
,workphone.value
,mobilephone.value
,homeaddress.value
FROM smf_members
,smf_themes AS instrument
,smf_themes AS homephone
,smf_themes AS workphone
,smf_themes AS mobilephone
,smf_themes AS homeaddress
WHERE (smf_members.ID_MEMBER = instrument.ID_MEMBER
AND smf_members.ID_MEMBER = homephone.ID_MEMBER
AND smf_members.ID_MEMBER = workphone.ID_MEMBER
AND smf_members.ID_MEMBER = mobilephone.ID_MEMBER
AND smf_members.ID_MEMBER = homeaddress.ID_MEMBER
AND instrument.variable = 'CP_instrument'
AND homephone.variable = 'CP_homePhone'
AND workphone.variable = 'CP_workPhone'
AND mobilephone.variable = 'CP_mobilePhone'
AND homeaddress.variable = 'CP_homeAddress')
ORDER BY ID_MEMBER
When you start having lots of custom fields, this could get very messy (and possibly inefficient too), but it's the only way I have been able to find of getting the info out.
Would love to be corrected!
One question I do have for the mod developer:
SMF 2.0 - which includes custom fields as part of the main codebase - has been announced. Beta is not due until October, so final release I imagine would be next year at the very very earliest... but:
Will you be able to provide a way to migrate the contents of custom profile fields for us? Pretty please? I am not advanced enough with databases to try and do this manually, when the time eventually comes...
Thanks
Sunil
Thanks for your responses B12 and Sunil.
B12, this is exactly what I needed, now I can just massage the formatting to what I need.
One more question;
I want the Members "realName" (in the members table) as column one rather than ID_MEMBER and it sorted by the surname if possible.
I can get the "realName" from the memebers table and put this in the first column, but would it possible to extract the surname from the value and sort the column by the surname?
Many thanks again
Richard
Quote from: miken on April 01, 2007, 10:46:09 AM
I've just been having the same problem. But from looking through it it seems it also needs $context['members']['options'] setting to global $options
Thanks, you made my day.
Thanks for the mod, I really love it.
I do have one question: I need to have the variable (I don't know if that's the exact name) of the input. As an example: If you want to display their username, you'll have to place ['member']['username'] in the code. What do I have to put their if I want to show the custom field? Is that the Field ID?
Quote from: SunilDVR on May 12, 2007, 04:20:03 PM
I notice that several people have trouble extracting all the data they need from the fields in this mod. I assume this is because of the way that it stores the data in smf_themes (rows).
I had problems with this, but I enlisted the help of my father, who has been working on databases for many years. He came up with the basic code which I tweaked.
This assumes that you wish to get the user ID number (ID_MEMBER), the display name (memberName) and the e-mail address (emailAddress) from smf_members...... as well as two custom profile fields from the smf_themes table.
In my case, I left the names as default (cp1 and cp2), which hold the Full Name and Membership Number of the users respectively.
The following command creates one table outputting all of these five variables, for every forum member, using self-joins.
SELECT smf_members.ID_MEMBER
,smf_members.memberName
,smf_members.emailAddress
,full_name.value
,member_no.value
FROM smf_members
,smf_themes AS full_name
,smf_themes AS member_no
WHERE (smf_members.ID_MEMBER = full_name.ID_MEMBER
AND smf_members.ID_MEMBER = member_no.ID_MEMBER
AND full_name.variable = 'cp1'
AND member_no.variable = 'cp2')
ORDER BY ID_MEMBER
This code can be tweaked as necessary to retrieve whatever custom fields you wish. I'm not doing anything exciting with this code, but I guess it should work with more than two variables, suitably amended. As an example, to answer Richard's request above I reckon that the following should work (no guarantees, I'm not an expert on this!):
SELECT ,smf_members.memberName
,instrument.value
,homephone.value
,workphone.value
,mobilephone.value
,homeaddress.value
FROM smf_members
,smf_themes AS instrument
,smf_themes AS homephone
,smf_themes AS workphone
,smf_themes AS mobilephone
,smf_themes AS homeaddress
WHERE (smf_members.ID_MEMBER = instrument.ID_MEMBER
AND smf_members.ID_MEMBER = homephone.ID_MEMBER
AND smf_members.ID_MEMBER = workphone.ID_MEMBER
AND smf_members.ID_MEMBER = mobilephone.ID_MEMBER
AND smf_members.ID_MEMBER = homeaddress.ID_MEMBER
AND instrument.variable = 'CP_instrument'
AND homephone.variable = 'CP_homePhone'
AND workphone.variable = 'CP_workPhone'
AND mobilephone.variable = 'CP_mobilePhone'
AND homeaddress.variable = 'CP_homeAddress')
ORDER BY ID_MEMBER
When you start having lots of custom fields, this could get very messy (and possibly inefficient too), but it's the only way I have been able to find of getting the info out.
Would love to be corrected!
One question I do have for the mod developer:
SMF 2.0 - which includes custom fields as part of the main codebase - has been announced. Beta is not due until October, so final release I imagine would be next year at the very very earliest... but:
Will you be able to provide a way to migrate the contents of custom profile fields for us? Pretty please? I am not advanced enough with databases to try and do this manually, when the time eventually comes...
Thanks
Sunil
This does not work for me. How do I grab each custom profle field? Using a 'while' loop does not work for the smf_themes fields. Only those fields from smf_members is grabbed and displayed. Can you give an example on this?
How do I make a custom field show in profile for a custom theme?
Quote from: joybreezy on May 20, 2007, 01:03:11 PM
How do I make a custom field show in profile for a custom theme?
http://docs.simplemachines.org/index.php?topic=402 (http://docs.simplemachines.org/index.php?topic=402)
I am trying to create a new page called Member's Directory using this Mod Custom Profile and the Custom Actions Mod. I am using PHP as scripting language for this which is set in the Custom Actions Mod.
Now, I know a little bit of PHP & MySQL and decided to use my own codes instead of trying to load required SMF variables and functions to query and display records. So I did some MySQL query but can't seem to grab the correct records and list them all in tabular format having the ff. data as example:
- Online Status
- Username
- Positions
- City
- Country
- Mobile Phone
The "Online Status", "Username", and "Positions" field from the smf_members database table is correctly grabbed and displayed in my listing but the three fields from smf_themes database table which is "City", Country", and "Mobile Phone" appears blank. To illustrate, my table listing incorrectly displays the ff. data per record:
Online Status - Username - Positions - [blank] - [blank] - [blank]
My question is, how do I grab those three fields from smf_themes and display them as well in my table listing? What is the correct MySQL query and PHP code (while loop) do I use?
Thanks and hoping somebody can help me! :)
brelwit,
See the posting from B12 further up this page, it should give you enough info to get what you need working as it's working for me as a php page.
Richard
I
Quote from: rpalmer68 on May 20, 2007, 11:19:58 PM
brelwit,
See the posting from B12 further up this page, it should give you enough info to get what you need working as it's working for me as a php page.
Richard
Hi! I've already read all the postings in this thread and it didn't give any clue on how to display records in tabular format. It only has info on grabbing data of one record in displaying it in the Profile page. What I want to do is display ALL Member records and grabbing data from both smf_members and smf_themes database tables.
Later on, I will also include a Filter combo menu on the top of my Member Listing page so it can grab only those records with selected data.
I just need a sample PHP code using "while" loop and the corresponding MySQL query that grabs data from both smf_members and smf_themes database tables. If anyone can give me an actual sample or point me to the right direction, I would appreciate it. :)
Quote from: Teunel on May 18, 2007, 04:50:03 AM
Thanks for the mod, I really love it.
I do have one question: I need to have the variable (I don't know if that's the exact name) of the input. As an example: If you want to display their username, you'll have to place ['member']['username'] in the code. What do I have to put their if I want to show the custom field? Is that the Field ID?
A suggestion.
I put the following at the end of my index.template.php. The $filedid is the name of the field as you named it when you created it. With this method you can make use of the profilefields almost everywhere. I use it to give the users the capability to "personalise" - choose - what they want to see on the frontpage.
// This is for custom profile fields
// $options should be passed as the global $options if you want the currently logged on user
// $options should be passed as $context['member']['options'] if you want a specific member in the profiletemplate
function findCustomProfileFieldById ($fieldID,$options)
{
global $context, $settings, $scripturl, $modSettings, $txt , $sourcedir;
$context['user']['options'] = $options;
$iii = 1;
while (isset($modSettings['enable_CP' . $iii . '']))
{
if ($modSettings['enable_CP' . $iii . ''])
{
if ($modSettings['CP' . $iii . '_id'] == $fieldID)
{
return $context['user']['options'][$modSettings['CP' . $iii . '_id']];
}
}
$iii++;
}
}
nice function...
it should probably be placed in sources/subs.php rather than in a template...
Quote from: brelwit on May 21, 2007, 06:46:41 AM
Hi! I've already read all the postings in this thread and it didn't give any clue on how to display records in tabular format.& It only has info on grabbing data of one record in displaying it in the Profile page. What I want to do is display ALL Member records and grabbing data from both smf_members and smf_themes database tables.
Later on, I will also include a Filter combo menu on the top of my Member Listing page so it can grab only those records with selected data.
I just need a sample PHP code using "while" loop and the corresponding MySQL query that grabs data from both smf_members and smf_themes database tables. If anyone can give me an actual sample or point me to the right direction, I would appreciate it. :)
I thought what B12 posted was what you wanted?
My script generates a tabulated html page with the fields populated for each member of the forum (from themes and members tables), in my case to generate a phone list for members to print out.
Here's my code based on B12's response and just tweaked a bit to handle blank fields and formatted how I needed it.
phonelist.php
<?
mysql_connect("localhost","<DATABASE LOGIN>","<PASSWORD>");
mysql_select_db("<DATABASE NAME>");
$select = "SELECT ID_MEMBER FROM smf_themes WHERE variable = 'CP_instrument' ORDER BY value";
$query = mysql_query($select)or die(mysql_error());
$t=getdate();
$today=date('jS M Y',$t[0]);
echo "<center><strong>MEMBERSHIP LIST<br>";
echo "Generated on the " . $today;
echo "</strong>";
echo"<br>";
echo "<table width=1200 border=1>";
echo "<tr>";
echo "<th width=200 scope=col>Instrument</th>";
echo "<th width=150 scope=col>Name</th>";
echo "<th width=120 scope=col>Home Phone</th>";
echo "<th width=120 scope=col>Work Phone</th>";
echo "<th width=120 scope=col>Mobile Phone</th>";
echo "<th width=300 scope=col>Email Address</th>";
echo "<th width=300 scope=col>Address</th>";
echo "</tr>";
echo "<br>";
while($list = mysql_fetch_object($query))
{
echo "<tr>";
$id = $list->ID_MEMBER;
//--- get the instrument from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_instrument'";
$res = mysql_query($sql);
$instrument = mysql_result($res, 0);
//--- get the homePhone from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_homePhone'";
$res = mysql_query($sql);
$homePhone = mysql_result($res, 0);
if ($homePhone ==""){
$homePhone = " ";
}
//--- get the workPhone from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_workPhone'";
$res = mysql_query($sql);
$workPhone = mysql_result($res, 0);
if ($workPhone ==""){
$workPhone = " ";
}
//--- get the mobilePhone from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_mobilePhone'";
$res = mysql_query($sql);
$mobilePhone = mysql_result($res, 0);
if ($mobilePhone ==""){
$mobilePhone = " ";
}
//--- get the homeAddress from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_homeAddress'";
$res = mysql_query($sql);
$homeAddress = mysql_result($res, 0);
if ($homeAddress ==""){
$homeAddress = " ";
}
//--- get the membername from the database
$sql = "SELECT realName FROM smf_members WHERE ID_MEMBER = " . $id;
$res = mysql_query($sql);
$memberName = mysql_result($res, 0);
//--- get the email from the database
$sql = "SELECT emailAddress FROM smf_members WHERE ID_MEMBER = " . $id;
$res = mysql_query($sql);
$emailAddress = mysql_result($res, 0);
//--- echo the results
echo "<td>$instrument</td><td>$memberName</td><td>$homePhone</td><td>$workPhone</td><td>$mobilePhone</td><td>$emailAddress</td><td>$homeAddress</td>" ;
echo "</tr>";
}
echo "</table>"
?>
Richard
Quote from: Kindred on May 21, 2007, 09:04:20 AM
nice function...
it should probably be placed in sources/subs.php rather than in a template...
Probably so. Feel free to grab and include somewhere. Or give me more "direct" instructions. Or perhaps make this a standard feature in 2.0?
custom profile fields are included in 2.0, but are likely going to be handled slightly differently than this mod...
Quote from: rpalmer68 on May 21, 2007, 09:17:51 AM
I thought what B12 posted was what you wanted?
My script generates a tabulated html page with the fields populated for each member of the forum (from themes and members tables), in my case to generate a phone list for members to print out.
Here's my code based on B12's response and just tweaked a bit to handle blank fields and formatted how I needed it.
phonelist.php
<?
mysql_connect("localhost","<DATABASE LOGIN>","<PASSWORD>");
mysql_select_db("<DATABASE NAME>");
$select = "SELECT ID_MEMBER FROM smf_themes WHERE variable = 'CP_instrument' ORDER BY value";
$query = mysql_query($select)or die(mysql_error());
$t=getdate();
$today=date('jS M Y',$t[0]);
echo "<center><strong>MEMBERSHIP LIST<br>";
echo "Generated on the " . $today;
echo "</strong>";
echo"<br>";
echo "<table width=1200 border=1>";
echo "<tr>";
echo "<th width=200 scope=col>Instrument</th>";
echo "<th width=150 scope=col>Name</th>";
echo "<th width=120 scope=col>Home Phone</th>";
echo "<th width=120 scope=col>Work Phone</th>";
echo "<th width=120 scope=col>Mobile Phone</th>";
echo "<th width=300 scope=col>Email Address</th>";
echo "<th width=300 scope=col>Address</th>";
echo "</tr>";
echo "<br>";
while($list = mysql_fetch_object($query))
{
echo "<tr>";
$id = $list->ID_MEMBER;
//--- get the instrument from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_instrument'";
$res = mysql_query($sql);
$instrument = mysql_result($res, 0);
//--- get the homePhone from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_homePhone'";
$res = mysql_query($sql);
$homePhone = mysql_result($res, 0);
if ($homePhone ==""){
$homePhone = " ";
}
//--- get the workPhone from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_workPhone'";
$res = mysql_query($sql);
$workPhone = mysql_result($res, 0);
if ($workPhone ==""){
$workPhone = " ";
}
//--- get the mobilePhone from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_mobilePhone'";
$res = mysql_query($sql);
$mobilePhone = mysql_result($res, 0);
if ($mobilePhone ==""){
$mobilePhone = " ";
}
//--- get the homeAddress from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_homeAddress'";
$res = mysql_query($sql);
$homeAddress = mysql_result($res, 0);
if ($homeAddress ==""){
$homeAddress = " ";
}
//--- get the membername from the database
$sql = "SELECT realName FROM smf_members WHERE ID_MEMBER = " . $id;
$res = mysql_query($sql);
$memberName = mysql_result($res, 0);
//--- get the email from the database
$sql = "SELECT emailAddress FROM smf_members WHERE ID_MEMBER = " . $id;
$res = mysql_query($sql);
$emailAddress = mysql_result($res, 0);
//--- echo the results
echo "<td>$instrument</td><td>$memberName</td><td>$homePhone</td><td>$workPhone</td><td>$mobilePhone</td><td>$emailAddress</td><td>$homeAddress</td>" ;
echo "</tr>";
}
echo "</table>"
?>
Richard
Thanks for the help. :) I saw your code, but when I noticed there are several separate MySQL statements I thought it might be too slow when querying the records. How is it working? How many members do your site currently has?
Is there any other solution that only uses one MySQL query for both smf_members and smf_themes database tables?
Regarding: adding custom fields to user lists
i found an old winrules' reply to my message.
it was for a quite old version of smf i think 1.0.x
I have not much time right now.. anyone could test if this works ?
it worked with old smf:
Find:
Code:
if (!loadMemberContext($member))
continue;
Replace:
Code:
if (!loadMemberContext($member))
continue;
global $context, $sourcedir, $user_profile;
require_once($sourcedir . '/Profile.php');
$context['user']['is_owner'] = 0;
$user_profile[$member]['ID_THEME'] = 1;
loadThemeOptions($member);
$context['members'][$member]['options'] = isset($context ['member']['options']) ? $context['member']['options'] : array();
And then you can use $member['options']['field_name'] to display the field. Being able to search and sort is an entirely different thing however.
« Last Edit: June 12, 2006, 07:23:02 PM by winrules »
Quote from: Kindred on May 21, 2007, 12:35:08 PM
custom profile fields are included in 2.0, but are likely going to be handled slightly differently than this mod...
Sure, doesn't reaelly matter. As long as the requirement to be able to easily use them globally from all templates with a nice convenience-method then all is well!
It is a requirement, right?
modifying templates for additional fields may always be somewhat manual...
Quote from: brelwit on May 22, 2007, 12:47:35 AM
Thanks for the help. :) I saw your code, but when I noticed there are several separate MySQL statements I thought it might be too slow when querying the records. How is it working? How many members do your site currently has?
I only have about 50 members so it performs fine for me. Not sure how it would perform on a really large membership, but I guess it also depends on how often people need to use it as to whether this is really an issue.
Richard
Quote from: rpalmer68 on May 22, 2007, 04:59:47 PM
I only have about 50 members so it performs fine for me. Not sure how it would perform on a really large membership, but I guess it also depends on how often people need to use it as to whether this is really an issue.
Richard
I might just go with your code if I can't think of any other solution. But I will have to remove the "filter" feature for those related fields in the smf_themes table. :( I think it's just not possible to have one mysql query for both "smf_members" and "smf_themes" database tables. Well, at least I can still get to display all data in tabular format...
Could someone please help me?
My SMF is 2.1.1, but it's not working, I can't see any change or look to edit - I have looked everywhere.
Do I have to edit any file?
Help!
2.1.1 not 1.1.2?
Hi all,
I want to somehow allow my users to sign up for the newsletters sent via feedburner from within the registration page, however there doesn't seem to be a great way of doing this.
...I can't just add the text within the custom profile fields without having to select a checkbox, text, text field or pulldown to associate with this. So I have decided to place the checkbox here, however if a user checks this, it doesn't really sign the users up for the newsletter. ...They have to click the html text to the left of the check box which then opens up a feedburner pop up window for them. Based on some of my user interactions, I don't think it's 100% apparent that they have to do this.
You can see how I set it up here:
http://went2networks.com/smf/index.php?action=register
Is there a way of integrating this feedburner sign up service in a way that I'm not seeing?
I have attached the feedburner html in case someone figures out a way to integrate the code into the custom profile mod tool..
thanks for your help!
matt
Quote from: Kindred on May 22, 2007, 03:37:58 PM
modifying templates for additional fields may always be somewhat manual...
Of course. But having convenience methods for accessing the stuff you need (including all the fileds in the profile) would be the requirement, right?
Quote from: rpalmer68 on May 21, 2007, 09:17:51 AM
Quote from: brelwit on May 21, 2007, 06:46:41 AM
Hi! I've already read all the postings in this thread and it didn't give any clue on how to display records in tabular format.& It only has info on grabbing data of one record in displaying it in the Profile page. What I want to do is display ALL Member records and grabbing data from both smf_members and smf_themes database tables.
Later on, I will also include a Filter combo menu on the top of my Member Listing page so it can grab only those records with selected data.
I just need a sample PHP code using "while" loop and the corresponding MySQL query that grabs data from both smf_members and smf_themes database tables. If anyone can give me an actual sample or point me to the right direction, I would appreciate it. :)
I thought what B12 posted was what you wanted?
My script generates a tabulated html page with the fields populated for each member of the forum (from themes and members tables), in my case to generate a phone list for members to print out.
Here's my code based on B12's response and just tweaked a bit to handle blank fields and formatted how I needed it.
phonelist.php
<?
mysql_connect("localhost","<DATABASE LOGIN>","<PASSWORD>");
mysql_select_db("<DATABASE NAME>");
$select = "SELECT ID_MEMBER FROM smf_themes WHERE variable = 'CP_instrument' ORDER BY value";
$query = mysql_query($select)or die(mysql_error());
$t=getdate();
$today=date('jS M Y',$t[0]);
echo "<center><strong>MEMBERSHIP LIST<br>";
echo "Generated on the " . $today;
echo "</strong>";
echo"<br>";
echo "<table width=1200 border=1>";
echo "<tr>";
echo "<th width=200 scope=col>Instrument</th>";
echo "<th width=150 scope=col>Name</th>";
echo "<th width=120 scope=col>Home Phone</th>";
echo "<th width=120 scope=col>Work Phone</th>";
echo "<th width=120 scope=col>Mobile Phone</th>";
echo "<th width=300 scope=col>Email Address</th>";
echo "<th width=300 scope=col>Address</th>";
echo "</tr>";
echo "<br>";
while($list = mysql_fetch_object($query))
{
echo "<tr>";
$id = $list->ID_MEMBER;
//--- get the instrument from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_instrument'";
$res = mysql_query($sql);
$instrument = mysql_result($res, 0);
//--- get the homePhone from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_homePhone'";
$res = mysql_query($sql);
$homePhone = mysql_result($res, 0);
if ($homePhone ==""){
$homePhone = " ";
}
//--- get the workPhone from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_workPhone'";
$res = mysql_query($sql);
$workPhone = mysql_result($res, 0);
if ($workPhone ==""){
$workPhone = " ";
}
//--- get the mobilePhone from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_mobilePhone'";
$res = mysql_query($sql);
$mobilePhone = mysql_result($res, 0);
if ($mobilePhone ==""){
$mobilePhone = " ";
}
//--- get the homeAddress from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_homeAddress'";
$res = mysql_query($sql);
$homeAddress = mysql_result($res, 0);
if ($homeAddress ==""){
$homeAddress = " ";
}
//--- get the membername from the database
$sql = "SELECT realName FROM smf_members WHERE ID_MEMBER = " . $id;
$res = mysql_query($sql);
$memberName = mysql_result($res, 0);
//--- get the email from the database
$sql = "SELECT emailAddress FROM smf_members WHERE ID_MEMBER = " . $id;
$res = mysql_query($sql);
$emailAddress = mysql_result($res, 0);
//--- echo the results
echo "<td>$instrument</td><td>$memberName</td><td>$homePhone</td><td>$workPhone</td><td>$mobilePhone</td><td>$emailAddress</td><td>$homeAddress</td>" ;
echo "</tr>";
}
echo "</table>"
?>
Richard
Dude thank you very much ... this script solved my headache.
Great mod... It installed with no errors and works in the PMs...
I do have a custom theme (Alienation) and made the manual modifications to "display.template.php" but that didn't seem to do the trick. The mod works for the default template, of course, and in both the Admin and PM sections of my custom theme... Just ONLY not in the posts. From reading this thread, I gathered that the display template was the relevant file to manually add/replace.
Is there another file I need to modify to get the custom fields to show the same way they do in the PMs?
Thanks
Has anybody tested the Registration page when the Custom Profile Field mod is installed? Registering does not seem to work on mine. It says Database Error etc. after a user has registered. But an activation e-mail is still sent to the registrant.
Quote from: merosler on May 26, 2007, 10:08:20 PM
Hi all,
I want to somehow allow my users to sign up for the newsletters sent via feedburner from within the registration page, however there doesn't seem to be a great way of doing this.
...I can't just add the text within the custom profile fields without having to select a checkbox, text, text field or pulldown to associate with this. So I have decided to place the checkbox here, however if a user checks this, it doesn't really sign the users up for the newsletter. ...They have to click the html text to the left of the check box which then opens up a feedburner pop up window for them. Based on some of my user interactions, I don't think it's 100% apparent that they have to do this.
You can see how I set it up here:
http://went2networks.com/smf/index.php?action=register
Is there a way of integrating this feedburner sign up service in a way that I'm not seeing?
I have attached the feedburner html in case someone figures out a way to integrate the code into the custom profile mod tool..
thanks for your help!
matt
Is this Dueling Tampons thing a Newsletter? If so use the News and Newsletters Option (index.php?action=news) in your SMF Administration.
Once on the news page click Newsletters (index.php?action=news;sa=mailingmembers) click Next
and then check the option to Send in HTML Format if you so choose.
There seems to be two errors when a guest registers in my forum. I checked the related pages and found that the "last insert record id" which has the variable name of $from[id] is not being grabbed. So this results to a blank value and therefore an error appears in my SQL script. I am unsure if this is related to this Custom Profile Field Mod but I only discovered it now after installing the mod.
Here are the error in the FORUM ERROR LOG page:
ERROR #1:
Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' mem.pm_ignore_list)) AS ignored,
FIND_IN_SET(, mem.buddy_li
File: c:\easyphp\www\tabletopwars2007\bb\Sources\Subs-Post.php
Line: 773
ERROR #2:
8: Undefined index: pm_register_id
File: c:\easyphp\www\tabletopwars2007\bb\Sources\Subs-Members.php
Line: 871
Anybody knows a solution for this? Thanks!
Nevermind. I discovered the culprit. It's the "PM ON REGISTRATION" module!!! Arrrrggghh... after countless hours of searching. hehe
I have become very frustrated with this mod itis just what I am looking for but no matter what I try I can not get it to work Could it be that I am using the Tiny Portals mod and one of their themes? Although I have tried it with the core default theme as well.. Any help would be appreciated.
Hi This is what I have displayed when I add 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 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
Is there any problems here?
@ Muppet
Your list of package manager reports doesn't contain any "Test Failed" items so it thus doesn't show any problems.
Your bug report really tells nothing useful so it's difficult to help you...we need to know exactly what you can't get to work or what has failed to happen so as to be able to pinpoint a problem and help you fix it.
This mod should add to your ACP>Features and Options a new button called "Custom Profile Fields"...has it? If it has then when you set up a new field what, exactly, fails to work?
This mod...like almost all mods...will only install into the SMF default theme...you have to install into other themes manually...however it works perfectly well with Tiny Portal.
hi there!
I've installed the mod with sucess but, because I'm using a theme that uses it's own Profile.template.php, PersonalMessage.template.php and Register.template.php, it's not showing me the fields. Could somebody tell me what changes I have to do? Thanks in advance!
Quote from: Joao on June 07, 2007, 10:06:46 PM
hi there!
I've installed the mod with sucess but, because I'm using a theme that uses it's own Profile.template.php, PersonalMessage.template.php and Register.template.php, it's not showing me the fields. Could somebody tell me what changes I have to do? Thanks in advance!
Please read http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
I finally got it working with all of the themes I'm using. Great mod :)
I am so glad I found your post here .... I was starting to go nuts !!!
THANKS ... I switched the language to English and now it's there ! along with some other mods that I didn't know I was missing functionality on.
Awesome!
Hello!
I've just reinstalled my forum, and the Custom Profile MOD many times.
And take a look:
http://en.rookforums.com/index.php?topic=1.msg3#new
QuoteRoxius
Administrator
Newbie
*****
Online Online
Example: tyutyu
Example: tyutyu
Example: tyutyu
Posts: 1
I'm using it in two forums, both use the same user database, but not the same
settings table.
What is it?
well, it you installed many time, that would explain the multiple displays....
I manually installed this mod and it seems to be fien except when I go to my features and options panel I get a blank page.
I get this error on my smf logs.
8: Undefined index: alt4_name
File: /var/www/vhosts/mydamnfurrysite.com/httpdocs/Themes/default/Display.template.php (main sub template - eval?)
Line: 342
Quote from: Kindred on June 09, 2007, 07:26:02 AM
well, it you installed many time, that would explain the multiple displays....
No it's not.
Quote from: Roxius on June 08, 2007, 07:57:58 PM
I've just reinstalled my forum, and the Custom Profile MOD many times.
Looks to me like you did...
I have installed this mod and nothing happens! No new features! Why?
Quote from: DeMar on June 11, 2007, 10:25:24 AM
I have installed this mod and nothing happens! No new features! Why?
1) Like almost all mods this one only installs into the SMF default theme...you may be using a different theme...you neglected to let us know such details.
2) The mod installs extra options into ACP>Features and Options> Perhaps you neglected to look in the right place.
Quote from: Kindred on June 10, 2007, 09:08:14 PM
Quote from: Roxius on June 08, 2007, 07:57:58 PM
I've just reinstalled my forum, and the Custom Profile MOD many times.
Looks to me like you did...
I have reinstalled after have seen it was bugged.
@ Roxius
A huge number of SMF users also use this mod and have done so for a considerable time...given the lack of other reports of bugs in the mod as opposed to problems with individual forums that were due to factors outside of the mod you can assume that the mod is not "bugged" and that the problem is with your installation...and as Kindred keeps telling you you most certainly do appear to have installed then reinstalled many times and this appears to be at the root of the problems you are currently reporting...user error rather than a "bugged" mod.
I told you it's not because I've installed many times. If it is, would be ate least 6 repeated fields there. I reinstalled after the error!
if the field is appearing multiple times, it is because the code was added multiple times.
reinstalling a mod is, in general, not a good idea, unless you know that you have removed all traces of the previous installation.
If you got errors on installation, and then went ahead and installed anyway.... and the re-installed (one or more times), then you are going to have problems, because SOME of the code will have been duplicated in each attempt to re-install.
I have this mod running on 3 systems. It never showed duplicate fields.
Since you are showing duplicate fields, this means that the code was duplicated during one or mor eof your re-installations.
So... you either need to go in and remove the duplicate stuff by hand or upload a clean copy of SMF files (thus removing ALL mods) and install the mod correctly this time.
Quote from: Kindred on June 11, 2007, 02:45:44 PM
if the field is appearing multiple times, it is because the code was added multiple times.
reinstalling a mod is, in general, not a good idea, unless you know that you have removed all traces of the previous installation.
If you got errors on installation, and then went ahead and installed anyway.... and the re-installed (one or more times), then you are going to have problems, because SOME of the code will have been duplicated in each attempt to re-install.
I have this mod running on 3 systems. It never showed duplicate fields.
Since you are showing duplicate fields, this means that the code was duplicated during one or mor eof your re-installations.
So... you either need to go in and remove the duplicate stuff by hand or upload a clean copy of SMF files (thus removing ALL mods) and install the mod correctly this time.
Have you seen it?
Quote from: MeI'm using it in two forums, both use the same user database, but not the same settings table.
What is it?
Quote from: Roxius on June 11, 2007, 05:43:35 PM
Quote from: MeI'm using it in two forums, both use the same user database, but not the same settings table.
What is it?
yes? And? Are you using the same php files for both instances?
The multiple display of the fields should not have anything to do with your multi-forums...
(although, how did you accomplish the multi-forums?)
http://www.simplemachines.org/community/index.php?topic=16190
I shared those tables there im_recipients, instant_messages, membergroups, members and the theme tables too, as Unknown recommended.
I still thinking it's a database "error".
The mod writes the profile fields in the database, so I think it could be that.
the mod writes profile fields into the THEMES table.
It displays those fields based on calls from the php files. Your error is in the source files because you have duplicate code.
If I just install the Mod and use Swedish language as default in the forum, nothing shows, but if I switch to English as default it shows in admin and new fields for the users :)
And adding a field using English language as default and then switch to Swedish language as default, also works to show new fields for the users.
I wrote a Swedish language file, because I wanted it all to work with Swedish.
Place it in /Themes/default/languages/
Quote from: TrueSatan on June 11, 2007, 10:44:40 AM
Quote from: DeMar on June 11, 2007, 10:25:24 AM
I have installed this mod and nothing happens! No new features! Why?
1) Like almost all mods this one only installs into the SMF default theme...you may be using a different theme...you neglected to let us know such details.
2) The mod installs extra options into ACP>Features and Options> Perhaps you neglected to look in the right place.
1) I'm using Babylon Theme
2) Yes I'm looking to the right place
I choosed the default theme and nothing
@DeMar
Did the Package Installer show any errors on installation of this mod?
Is your forum language set to English and not English utf8? (in Server settings)
If these points don't reveal the problem then I suggest that you examine the files this mod changes to see if the changes have, indeed, been made...if not then you'll need to make them manually.
You will need to manually edit the mod into the Babylon theme in any event.
I want to know what "Parse BBC" mean and what it does (for translation purposes).
If I enable it I can't see any difference when posting...
To be honest I haven't had need of trying this but I think it's so that BBC within the code of a new tag is parsed without your having to stick only to html...no doubt if I'm wrong then somebody will pipe up to say so.
Quote from: TrueSatan on June 12, 2007, 06:41:45 AM
To be honest I haven't had need of trying this but I think it's so that BBC within the code of a new tag is parsed without your having to stick only to html...no doubt if I'm wrong then somebody will pipe up to say so.
Well, can you put in another words so I might me able to translate it. Its only "Parse BBC" that I have to translate.
If I install the mod on a forum thats been around for a while, only the new members gets the option to show the new fields. Can the old members add their info later ?
It does not seeme so. Can this be done manually by editing the database in PhpMyAdmin then ?
Parse...meaning that it analyses and obeys instructions in what it is parsing
BBC...Bulletin Board Code...html that is reworked so as to remove the chance of it being used to attack a forum but still allowing the members to do things that would normally be done via html
Parse BBC is thus understand and use the sanitised html from BBC code.
On to your second query...I've used this mod on existing forums and had it work properly for the long term members so I can't replicate your problem...this one needs to be handled by the mod developer.
QuoteOn to your second query...I've used this mod on existing forums and had it work properly for the long term members so I can't replicate your problem...this one needs to be handled by the mod developer.
Ahh, I found that the users themselves can go in to profile settings and add the info for the new field(s) themselves, very nice !
Quote from: TrueSatan on June 12, 2007, 06:52:53 AM
Parse...meaning that it analyses and obeys instructions in what it is parsing
Could I translate Parse BBD as "Allow BBC" (code) ?
yes, that would also be accurate
hi i've smf 1.1.2 running on my server, default thing choosen. i had no problem installing this mod. my problem is when i try making a new say check box or selection box field, options for making those don't get displayed but options for text boz are displayed either. dunno wat's the problem. please help me with this.
@Kindred
Yes, you were completely sure, sorry.
And thanks for the help.
Quote from: TrueSatan on June 12, 2007, 06:27:52 AM
@DeMar
Did the Package Installer show any errors on installation of this mod?
Is your forum language set to English and not English utf8? (in Server settings)
If these points don't reveal the problem then I suggest that you examine the files this mod changes to see if the changes have, indeed, been made...if not then you'll need to make them manually.
You will need to manually edit the mod into the Babylon theme in any event.
Installer didn't show errors.
My language on forum isn't english its Croatian. Is this problem?
@ DeMar
Very, very, very probably...first try switching to English and see it the mod then works...this will confirm that everything bar language customisation is OK. You will then have to look at /Themes/default/languages/Modifications.english.php and see what code the mod put there and translate that to Croatian putting the translated version into Modifications.croatian.php (assuming that is the language file name you are using)...don't change the Modifications.english.php.
I haven't done any translation alterations on SMF before so I'm not well versed in it but the above should be correct.
I'm new in this. So, please can U tell me where I can change language!
Quote from: DeMar on June 13, 2007, 12:44:08 AM
I'm new in this. So, please can U tell me where I can change language!
If you just install the Mod and use yor native language as default in the forum, nothing shows, but if you switch to English as default it shows in admin and new fields that you make are visible for the users :)
Adding a field using English language as default and then switch to your native language as default, also works to make the new fields visible for the users.
But its better to make a native languagefile of course.
Just duplicate the english file and rename it to your language, then edit it.
Then place your new languagefile in /Themes/default/languages/
...or DeMar may be meaning that he/she wants to know how to select a different language from the one currently set.
Admin Control Panel>Server Settings>Default Forum Language
It's OK with english version. But our forum is in Croatian and this is a problem. With modiefing croatian english I'm not so good, and I have no idea where and how I can do this.
Anyway, thanks
look at the file in Themes/default/languages/modifications.english.php
find the strings added by the mod (probably the last set in the file, if this was the last mod you installed)
translate them and add the same sting variable names (with Croatian words in the values) into modifications.croatian.php
I'm new in this.
Can U please tell me where I can edit this.
Thanks
on your site:
Themes/default/languages/modifications.english.php
Themes/default/languages/modifications.croatian.php
Modification parse error
I have the Arcade Mod installed, but that shouldn't affect it at all.
If it's any use to you, my host is Servage.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fuplo4d.com%2Fimages%2F423250672error.png&hash=b641e658a222019999709235d491661f313ddf89) (http://uplo4d.com/images/423250672error.png)
The only times I've seen this error have been when:
1) The server had safe_mode_on
2) The modification file was very large and the php version would not accept such a large file (a php 5.x issue.)
Could you then please confirm your php version and your phpinfo details?
You may also find that if you create a "temp" directory in your Packages directory and give that CHMOD 777 that might resolve your problem.
Quote from: TrueSatan on June 15, 2007, 12:03:27 PM
The only times I've seen this error have been when:
1) The server had safe_mode_on
2) The modification file was very large and the php version would not accept such a large file (a php 5.x issue.)
Could you then please confirm your php version and your phpinfo details?
You may also find that if you create a "temp" directory in your Packages directory and give that CHMOD 777 that might resolve your problem.
Safe mode is off, here are the top half of the details;
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fuplo4d.com%2Fimages%2F1050631752myphp.png&hash=66ce24e0ba02b5cb7f3270fac327ddef743bd8e9) (http://uplo4d.com/images/1050631752myphp.png)
I tried creating a temp directory, still same thing.
If you want the bottom half, let me know.
You are on php5.x but I've tried this mod on that version and it worked without any issues so I don't think it can be a php related file size problem. As I know I have a download of the current version of this mod that I've used, as I said, on php5.x I'll upload it here for you, ask you to again add that "temp" directory and CHMOD it to 777 and ask you to try the version I provide. If this also fails then we will know it's not a corrupt mod file problem. As I've run this on php5.x we will also know it isn't a php5.x problem. You've confirmed that php safe mode is off and your phpinfo doesn't look, to me, to have anything showing that might cause the problem.
Having tried the above would you please try installing any other mod and seeing if it works properly...this might reveal some problem but I doubt that it will.
I fixed it before :)
I saw a previous post asking about a "RuneScape" link to the highscores (RuneScape is an online game).
But it would require 3 fields, which isn't possible, so...
Is there any text you can use to call the "Text to display after field (BBC is ok if enabled above)"
EG:
Field 1: [url=http://hiscore.runescape.com/lang/en/aff/runescape/hiscorepersonal.ws?user=
Field2:]CALL TEXT[/url]
As I need the following to display:
[url=http://hiscore.runescape.com/lang/en/aff/runescape/hiscorepersonal.ws?user=MYACCOUNT]MYACCOUNT[/url]
Sadly, there is no other way around it.
Any help with this would be grand.
It's about 2 in the morning my time so I'm too tired to think about Runescape issues right now...maybe somebody else will know.
Would you mind telling me how you resolved your previous problem just to satisfy my curiosity and so I might be better able to help some other member in future?
Had to use some php settings via .htaccess in my directory, because my host (Servage) pretty much sucks for forums.
Is it possible to have multi-check boxes? I appologize if this has been checked, but there's 63 pages in this thread!
What I'm looking for is:
--------------------------------------------------------------------------------
I'm here for:
- Find Friends [ ] Find travel partners
- Conversation [ ] Eat ice cream
--------------------------------------------------------------------------------
I thought this would be what the 'check box' field could be used for, but I cant get them to be grouped together in one set. 'Selection Box' is only good when you want ONE option picked.
Is this possible?
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 know someone else had to have wanted this! :)
^ if that's you in your avtar, I know someone who looks a whole lot like you do.
And yes, this is a good question to which I don't have the answer. haven't tried it out either.
I am having problems with the Custom Profile Mo, it installs but does not appear for customizing (adding fields) in features and options.
I am using SMF 1.1.2 installed thru Fantastico.
Can someone help?
The first thing I would check, and it's a common problem mentioned before in this topic so you could have found the previous answers, is that your forum is set to english and not english utf8 (ACP>Server Settings.) Also ensure that you are using the SMF default theme as the mod only installs into that...you will have to manually install into other themes.
THanks!
Hello,
Now that I have the profile fields working great, has there been any discussion on updating:
1) the "View all members" grid
(http://www.WEBSITENAME.com/smf/index.php?action=mlist;sa=all)
-to reflect the new profile fields entered in the custom profile field mod (new columns to sort by for each new profile field)
2) the "Search for members" page
(http://www.WEBSITENAME.com/smf/index.php?action=mlist;sa=search)
-to allow users to search by the new fields entered in the custom profile field mod
The true power of these updated profile fields is to allow other users to search for other users based on these new profile fields..
thanks,
Matt
I changed new forum on same old server and added this mods to new forum then exported data from old database to new database (all on same server) and now profile is not displaying?
I am not sure what went wrong? Only mods I have other than custom profile is SMF Pro Gallery.
Edit: Maybe if you tell me where I can locate the data that is storing this information beside the database then I could try to upload it into new forum or something. I just know there should be a file that store the information somewhere!!
Hi,
Any thoughts from the developers out there about integrating a module into the custome profile fields that would allow a new user to tag himself?
These tags would then appear in tag cloud of all user tags. This would allow users of the board to browse other users by tag words according to (i.e.) "profession", "class year", "location", etc..
thanks,
Matt
Quote from: rpalmer68 on May 21, 2007, 09:17:51 AM
phonelist.php
<?
mysql_connect("localhost","<DATABASE LOGIN>","<PASSWORD>");
mysql_select_db("<DATABASE NAME>");
$select = "SELECT ID_MEMBER FROM smf_themes WHERE variable = 'CP_instrument' ORDER BY value";
$query = mysql_query($select)or die(mysql_error());
$t=getdate();
$today=date('jS M Y',$t[0]);
echo "<center><strong>MEMBERSHIP LIST<br>";
echo "Generated on the " . $today;
echo "</strong>";
echo"<br>";
echo "<table width=1200 border=1>";
echo "<tr>";
echo "<th width=200 scope=col>Instrument</th>";
echo "<th width=150 scope=col>Name</th>";
echo "<th width=120 scope=col>Home Phone</th>";
echo "<th width=120 scope=col>Work Phone</th>";
echo "<th width=120 scope=col>Mobile Phone</th>";
echo "<th width=300 scope=col>Email Address</th>";
echo "<th width=300 scope=col>Address</th>";
echo "</tr>";
echo "<br>";
while($list = mysql_fetch_object($query))
{
echo "<tr>";
$id = $list->ID_MEMBER;
//--- get the instrument from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_instrument'";
$res = mysql_query($sql);
$instrument = mysql_result($res, 0);
//--- get the homePhone from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_homePhone'";
$res = mysql_query($sql);
$homePhone = mysql_result($res, 0);
if ($homePhone ==""){
$homePhone = " ";
}
//--- get the workPhone from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_workPhone'";
$res = mysql_query($sql);
$workPhone = mysql_result($res, 0);
if ($workPhone ==""){
$workPhone = " ";
}
//--- get the mobilePhone from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_mobilePhone'";
$res = mysql_query($sql);
$mobilePhone = mysql_result($res, 0);
if ($mobilePhone ==""){
$mobilePhone = " ";
}
//--- get the homeAddress from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_homeAddress'";
$res = mysql_query($sql);
$homeAddress = mysql_result($res, 0);
if ($homeAddress ==""){
$homeAddress = " ";
}
//--- get the membername from the database
$sql = "SELECT realName FROM smf_members WHERE ID_MEMBER = " . $id;
$res = mysql_query($sql);
$memberName = mysql_result($res, 0);
//--- get the email from the database
$sql = "SELECT emailAddress FROM smf_members WHERE ID_MEMBER = " . $id;
$res = mysql_query($sql);
$emailAddress = mysql_result($res, 0);
//--- echo the results
echo "<td>$instrument</td><td>$memberName</td><td>$homePhone</td><td>$workPhone</td><td>$mobilePhone</td><td>$emailAddress</td><td>$homeAddress</td>" ;
echo "</tr>";
}
echo "</table>"
?>
Hi Folks,
I've been using the above code to generate my phone list now for a little while and it's been working well.
Today I added a new field called CP_hide as a checkbox to be able to hide certain members details.
So I changed the code as follows;
while($list = mysql_fetch_object($query))
{
$id = $list->ID_MEMBER;
//--- Check if user should be displayed
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_hide'";
$res = mysql_query($sql);
$hide = mysql_result($res, 0);
If ($hide != "1")
{
echo "<tr>";
//--- get the instrument from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_instrument'";
$res = mysql_query($sql);
$instrument = mysql_result($res, 0);
Now when I generate my list I get a page or warning messages like
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 251 in /home/lccb/public_html/members/phonelist_print.php on line 35
And then after all the warnings I get my generated list with the correct members hidden.
(Line 35 is the $hide = mysql_result($res, 0); line)
Any ideas what's causing the warnings and how to fix them or hide them?
Many thanks
Richard
Richard
Wondering if there is a way I can add this to say SSI to display a certain text field?
Basically, I have a text field that keeps track of someones tournament wins (simple numberic form)
I'd like to be able to display the top 10 winning members.
Any way todo this?
Quote from: rpalmer68 on June 25, 2007, 08:54:12 PM
while($list = mysql_fetch_object($query))
{
$id = $list->ID_MEMBER;
//--- Check if user should be displayed
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_hide'";
$res = mysql_query($sql);
$hide = mysql_result($res, 0);
If ($hide != "1")
{
echo "<tr>";
//--- get the instrument from the database
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_instrument'";
$res = mysql_query($sql);
$instrument = mysql_result($res, 0);
Now when I generate my list I get a page or warning messages like
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 251 in /home/lccb/public_html/members/phonelist_print.php on line 35
And then after all the warnings I get my generated list with the correct members hidden.
(Line 35 is the $hide = mysql_result($res, 0); line)
Any ideas what's causing the warnings and how to fix them or hide them?
Many thanks
Richard
OK after much searching and testing I've managed to get something working, so thought I should post my findings for others in case you also have problems.
I changed the code to fetch the row and this seems to work although I really don't understand why the other code works for every field except the CP_hide field!
So new code looks like this;
//--- Check if user should be displayed
$sql = "SELECT value FROM smf_themes WHERE ID_MEMBER = " . $id . " AND variable = 'CP_hide'";
$res = mysql_query($sql);
$row = mysql_fetch_row($res);
$hide = $row[0];
if ($hide != 1)
{
Richard
The custom profile field only shows on members who have registered after I installed the script. it does not show on members who have registered before I installed the script. Why is this? Ideas on fixing?
Thanks,
Dan
QuotePerplexed,
Actually, I was able to get it to work, but only on one field - so far...
I created a few custom fields using the Custom Profile Field MOD for First Name, Last Name, Address etc...
So, I went into the Memberlist.php file and made the modifications to include my new custom profile fields on the mlist.
Then, I setup the query:
// Select the members from the database.
$request = db_query("
SELECT mem.ID_MEMBER, th.ID_MEMBER, th.variable, th.value
FROM {$db_prefix}members AS mem" . ($_REQUEST['sort'] === 'isOnline' ? "
LEFT JOIN {$db_prefix}log_online AS lo ON (lo.ID_MEMBER = mem.ID_MEMBER)" : '') . ($_REQUEST['sort'] === 'ID_GROUP' ? "
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))" : '') . "
LEFT JOIN {$db_prefix}themes AS th on (th.ID_MEMBER = mem.ID_MEMBER AND th.variable = 'first_name')
WHERE mem.is_activated = 1" . (empty($where) ? '' : "
AND $where") . "
ORDER BY " . $sort_methods[$_REQUEST['sort']][$context['sort_direction']] . "
LIMIT $limit, $modSettings[defaultMaxMembers]", __FILE__, __LINE__);
printMemberListRows($request);
mysql_free_result($request);
Then I setup the sort methods:
// List out the different sorting methods...
),
'firstName' => array(
'down' => 'th.value ASC',
'up' => 'th.value DESC'
),
'lastName' => array(
'down' => 'th.value ASC',
'up' => 'th.value DESC'
So far, it works for just one of the variables and blows up when I try to add more than one Custom Profile field to sort on. But, I am still working on this. Its pretty cool that I was able to get the first_name field to sort but I need to have the ability to have the rest of my fields sort.
rgum
I have tested this code from rgum for one custom profile field, it dont really works , my problem is when a Member from my forum leave this profile field blank then he is not listed in the Memberlist.
Any ideas?
Sorry for my bad English :-[
hi all,
1. how to increase the size of the text area. for example. the member will say something about themselves and it needs a large box or input field. And also to impose max of 300 characters.
2. Location of the member will appear on his/her every post.
3. Want to add 3 - 5 thumbnail pictures inline with the avatar that is link from their gallery.
thanks in advance
:)
any help please. thnks
Quote from: madagascar on July 01, 2007, 12:40:52 AM
hi all,
1. how to increase the size of the text area. for example. the member will say something about themselves and it needs a large box or input field. And also to impose max of 300 characters.
2. Location of the member will appear on his/her every post.
3. Want to add 3 - 5 thumbnail pictures inline with the avatar that is link from their gallery.
thanks in advance
:)
Hey does this mod work with SMF 1.1.3 ?
madagascar,
You're asking for some pretty in depth modification to the mod... I suggest you try learning some php and experiment. :)
ulgaming...
It won' work out of the box... you will have to emulate 1.1 or modify the XML file to include 1.1.3
Quote from: Kindred on July 01, 2007, 10:29:17 PM
madagascar,
You're asking for some pretty in depth modification to the mod... I suggest you try learning some php and experiment. :)
thanks for your advise, yeah, i will try to read books and learn about php. But if you have any idea how to do it. Care to share with us here. :)
thanks in advance
@ulgaming.net and @ Kindred
The mod already supports all SMF versions up to 1.1.99 (already in the xml file)
madagascar,
well, number one would require you to edit the basic entry. Fairly eays once you track it down. I don't recall, off the top of my head where that function resides....
number 2 would require a modification to display.template.php
number 3 would not be related to this mod at all, but would be a modification to display.template.php that involves your gallery mod.
Quote from: Kindred on July 02, 2007, 08:02:09 AM
madagascar,
well, number one would require you to edit the basic entry. Fairly eays once you track it down. I don't recall, off the top of my head where that function resides....
number 2 would require a modification to display.template.php
number 3 would not be related to this mod at all, but would be a modification to display.template.php that involves your gallery mod.
thank you so much kindred. at least i have this info in my head.
Hi tfisher
Seems I have same problem with custom profile mod because gallery2 integration
so I am just curious what you did that thing worked please?
I'd just like to congratulate the creator of this mod; It is brilliant. I tried it a few months back and it broke my board for a while, but since I have moved hosts and had the courage to try it again, this time with great success! THANKS!!
If anyone wants ideas for profile fields feel free to check out my 'register' page on my board at http://www.liveonfire.net/community
God bless all :)
@samames
SMF advise that you should backup both your database and your files prior to installing or uninstalling any mod so that in the event of problems such as you describe having had you can restore from backup with no harm done.
Please read my earlier reply to this question.
error log says
Quote: Undefined index: cp_cpfields
Datoteka: /home/farmaceu/public_html/forum/Sources/ModSettings.php
Linija: 153
Hello.. I was just wondering, is there any way with this mod to set how the fields show up in your profile? I ask because I am using this for an RPG forum, and I want to seperate the in-character info from the out of character info. Right now I have got in character information junbled in with ICQ and website URL info.. it's kinda confusing. ::)
Thanks for any thoughts!
manually modify profile.template.php and insert the hr and line breaks where you want them betwene the normal profile stuff and the custom stuff.
Kindred, thanks so much! that worked! my profiles look perfect now. :)
Hi guys, I'm new to this.
I added a membership status to the custom field, now its in the profile. So it sets: Paid or Unpaid.
But I was wondering, since the membership is yearly basis, is it possible to to turn the field to unpaid when the year ends? When they pay, admin would manualloy go in and change the status to paid.
And... can it show up when we list the members, so I could possibly followup on the mmebers that have not paid? This is quite importnat.
If anyone knows a solution to this, that would be greattttttly appreciated.
Thanks!
This mod might be of more use to you. Do you have it installed:
http://custom.simplemachines.org/mods/index.php?mod=413
hi bigguy,
before i install this mod...
we accept payments by cheque manually, not paypal, etc. So could we manually put them as paid?
With this mod I do believe you can switch members from paid to unpaid. (and visa versa) You would have to ask in the authors thread about this. I just thought it looked to be more of what you are after. I didn't know you were doing things manually. :) Sorry to interupt. :)
haha much appreciated bigguy, i'll try to install it now.
Is this mod compatible with 1.1.3? Thx.
hey dan, it is, i still use it for other stuf.
Hi,
A real newbie question on this I installed it but what is my next step I cant seem to figure it out
@ eseflow
Go to ACP> Features and Options>Custom Profile Fields
Add some fields...
I do everything as you sayed and i can't find that to mode fields.
:(
I still cant figure it out :'(
If you aren't using the SMF default theme it will need you to do a manual installation into your custom theme http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531) To help with this please also use http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/). Please also ensure that in ACP>Server Settings you have your forum language set to english and not english utf8.
Having done the above you should be able to use the directions I gave in my earlier posting.
Quote8: Undefined index: cp_cpfields
Datoteka: /home/farmaceu/public_html/forum/Sources/ModSettings.php
Linija: 153
nice mod. hope this works on 1.1.3
thanks
Can ANYONE confirm if this mod works in SMF 1.1.3 without generating any forum errors or having any other problems?
Yes...I use it on several such installations without problems.
When I create the fields can they be made mandatory/required?
We need an "organization" and "title/position" field that must both be filled in to complete the registration requirement.
Quote from: Farmacija on July 13, 2007, 01:01:42 PM
Quote8: Undefined index: cp_cpfields
Datoteka: /home/farmaceu/public_html/forum/Sources/ModSettings.php
Linija: 153
what is with this problem and how i can fix it?
Is there a way to input the custom field into the memberlist?
not easily....
How do I move the custom fields on the registration page up? I need two fields I created with this MOD to appear under "email."
As of now they appear somewhat out-of-place under the CAPTCHA.
modify register.template.php
If I knew more than nothing about PHP your answer would have been laughable. Unfortunately for me, and I assume the same with most of the folks posting questions here, I am at the mercy of those that know more than nothing.
Let me try again since I apparently phrased my question too vaguely.
How exactly, within the 698 lines of code, do I modify the "register.template.php" file, to display any fields I might create using this MOD, so those fields appear directly under, and immediately after, the "email" field?
The reason I am asking for help is to have the Registration page display as one continuous form to the person registering. As it is now, the fields created by this MOD are after the CAPTCHA field, appearing almost as an afterthought. Of course I know this is in fact the case but I do not want folks registering to think this.
I understood your question, I just don't have the actual code sitting in front of me to answer.
the point is, you need to take the few lines of code added by this mod and move them UP in the file, to display before the captcha stuff...
(I'm actually not sure why the mod author put them there to begin with; it seems like an odd location.)
I see the authors tag reads, "On Hiatus." Does this mean he/she is no longer available to provide the actual lines of code I need to move?
Think of it as availability cannot be assumed or guaranteed...might be zero or the person may be able to help from time to time.
And, fortunately, there are people who will assist you. If you can post all of those lines between the [code] and [/code] tags someone may well try to get it sorted for you.
Hello,
New here and I'm having a problem with this Custom Profile Field Mod. I'm running SMF 1.1.3 and 3.16 of the Mod. I managed to install it, however I don't see any new menu or options. When I'm in the admin menu, I click 'Features and Options' but theres nothing there. What should I be seeing or what else could be wrong?
thanks,
q
You do not see a tab labeled "CUSTOM PROFILE FIELDS" to the right of "LAYOUT AND OPTIONS"?
No, I only see "Karma" next to Layouts and Options, no other tabs. :(
Just now I uninstalled it, and re-installed it. No difference.
Firstly please go to ACP>Server Settings and ensure that your forum language is set to english and not english utf8.
If you are using a custom theme (any theme other than the SMF Default is a custom theme) then you will need to manually install the mod into that theme. Mods almost always only install into the SMF Default theme.
Quote from: KGIII on July 19, 2007, 01:49:23 AM
And, fortunately, there are people who will assist you. If you can post all of those lines between the [code] and [/code] tags someone may well try to get it sorted for you.
Well, here goes:
<?php
// Version: 1.1; Register
// Before registering - get their information.
function template_before()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Make sure they've agreed to the terms and conditions.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function verifyAgree()
{
if (document.forms.creator.passwrd1.value != document.forms.creator.passwrd2.value)
{
alert("', $txt['register_passwords_differ_js'], '");
return false;
}';
// If they haven't checked the "I agree" box, tell them and don't submit.
if ($context['require_agreement'])
echo '
if (!document.forms.creator.regagree.checked)
{
alert("', $txt['register_agree'], '");
return false;
}';
// Otherwise, let it through.
echo '
return true;
}';
if ($context['require_agreement'])
echo '
function checkAgree()
{
document.forms.creator.regSubmit.disabled = isEmptyText(document.forms.creator.user) || isEmptyText(document.forms.creator.email) || isEmptyText(document.forms.creator.passwrd1) || !document.forms.creator.regagree.checked;
setTimeout("checkAgree();", 1000);
}
setTimeout("checkAgree();", 1000);';
if ($context['visual_verification'])
{
echo '
function refreshImages()
{
// Make sure we are using a new rand code.
var new_url = new String("', $context['verificiation_image_href'], '");
new_url = new_url.substr(0, new_url.indexOf("rand=") + 5);
// Quick and dirty way of converting decimal to hex
var hexstr = "0123456789abcdef";
for(var i=0; i < 32; i++)
new_url = new_url + hexstr.substr(Math.floor(Math.random() * 16), 1);';
if ($context['use_graphic_library'])
echo '
document.getElementById("verificiation_image").src = new_url;';
else
echo '
document.getElementById("verificiation_image_1").src = new_url + ";letter=1";
document.getElementById("verificiation_image_2").src = new_url + ";letter=2";
document.getElementById("verificiation_image_3").src = new_url + ";letter=3";
document.getElementById("verificiation_image_4").src = new_url + ";letter=4";
document.getElementById("verificiation_image_5").src = new_url + ";letter=5";';
echo '
}';
}
echo '
// ]]></script>
<form action="', $scripturl, '?action=register2" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator" onsubmit="return verifyAgree();">
<table border="0" width="100%" cellpadding="3" cellspacing="0" class="tborder">
<tr class="titlebg">
<td>', $txt[97], ' - ', $txt[517], '</td>
</tr><tr class="windowbg">
<td width="100%">
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tr>
<td width="40%">
<b>', $txt[98], ':</b>
<div class="smalltext">', $txt[520], '</div>
</td>
<td>
<input type="text" name="user" size="20" tabindex="', $context['tabindex']++, '" maxlength="25" />
</td>
</tr><tr>
<td width="40%">
<b>', $txt[69], ':</b>
<div class="smalltext">', $txt[679], '</div>
</td>
<td>
<input type="text" name="email" size="30" tabindex="', $context['tabindex']++, '" />';
// Are they allowed to hide their email?
if ($context['allow_hide_email'])
echo '
<label for="hideEmail"><input type="checkbox" name="hideEmail" id="hideEmail" class="check" /> ', $txt[721], '</label>';
echo '
</td>
</tr><tr>
<td width="40%">
<b>', $txt[81], ':</b>
</td>
<td>
<input type="password" name="passwrd1" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr><tr>
<td width="40%">
<b>', $txt[82], ':</b>
</td>
<td>
<input type="password" name="passwrd2" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr>';
if ($context['visual_verification'])
{
echo '
<tr valign="top">
<td width="40%" align="top">
<b>', $txt['visual_verification_label'], ':</b>
<div class="smalltext">', $txt['visual_verification_description'], '</div>
</td>
<td>';
if ($context['use_graphic_library'])
echo '
<img src="', $context['verificiation_image_href'], '" alt="', $txt['visual_verification_description'], '" id="verificiation_image" /><br />';
else
echo '
<img src="', $context['verificiation_image_href'], ';letter=1" alt="', $txt['visual_verification_description'], '" id="verificiation_image_1" />
<img src="', $context['verificiation_image_href'], ';letter=2" alt="', $txt['visual_verification_description'], '" id="verificiation_image_2" />
<img src="', $context['verificiation_image_href'], ';letter=3" alt="', $txt['visual_verification_description'], '" id="verificiation_image_3" />
<img src="', $context['verificiation_image_href'], ';letter=4" alt="', $txt['visual_verification_description'], '" id="verificiation_image_4" />
<img src="', $context['verificiation_image_href'], ';letter=5" alt="', $txt['visual_verification_description'], '" id="verificiation_image_5" />';
echo '
<input type="text" name="visual_verification_code" size="30" tabindex="', $context['tabindex']++, '" />
<div class="smalltext">
<a href="', $context['verificiation_image_href'], ';sound" onclick="return reqWin(this.href, 400, 120);">', $txt['visual_verification_sound'], '</a> | <a href="', $scripturl, '?action=register" onclick="refreshImages(); return false;">', $txt['visual_verification_request_new'], '</a>
</div>
</td>
</tr>';
}
// Are there age restrictions in place?
if (!empty($modSettings['coppaAge']))
echo '
<tr>
<td colspan="2" align="center" style="padding-top: 1ex;">
<label for="skip_coppa"><input type="checkbox" name="skip_coppa" id="skip_coppa" tabindex="', $context['tabindex']++, '" class="check" /> <b>', $context['coppa_desc'], '.</b></label>
</td>
</tr>';
echo '
</table>
</td>
</tr>
</table>';
// Require them to agree here?
if ($context['require_agreement'])
echo '
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="5" class="tborder" style="border-top: 0;">
<tr>
<td class="windowbg2" style="padding-top: 8px; padding-bottom: 8px;">
', $context['agreement'], '
</td>
</tr><tr>
<td align="center" class="windowbg2">
<label for="regagree"><input type="checkbox" name="regagree" onclick="checkAgree();" id="regagree" class="check" /> <b>', $txt[585], '</b></label>
</td>
</tr>
</table>';
echo '
<br />
<div align="center">
<input type="submit" name="regSubmit" value="', $txt[97], '" />
</div>
</form>';
// Uncheck the agreement thing....
if ($context['require_agreement'])
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
document.forms.creator.regagree.checked = false;
document.forms.creator.regSubmit.disabled = !document.forms.creator.regagree.checked;
// ]]></script>';
}
// After registration... all done ;).
function template_after()
{
global $context, $settings, $options, $txt, $scripturl;
// Not much to see here, just a quick... "you're now registered!" or what have you.
echo '
<br />
<table border="0" width="80%" cellpadding="3" cellspacing="0" class="tborder" align="center">
<tr class="titlebg">
<td>', $context['page_title'], '</td>
</tr><tr class="windowbg">
<td align="left">', $context['description'], '<br /><br /></td>
</tr>
</table>
<br />';
}
// Template for giving instructions about COPPA activation.
function template_coppa()
{
global $context, $settings, $options, $txt, $scripturl;
// Formulate a nice complicated message!
echo '
<br />
<table width="60%" cellpadding="4" cellspacing="0" border="0" class="tborder" align="center">
<tr class="titlebg">
<td>', $context['page_title'], '</td>
</tr><tr class="windowbg">
<td align="left">', $context['coppa']['body'], '<br /></td>
</tr><tr class="windowbg">
<td align="center">
<a href="', $scripturl, '?action=coppa;form;member=', $context['coppa']['id'], '" target="_blank">', $txt['coppa_form_link_popup'], '</a> | <a href="', $scripturl, '?action=coppa;form;dl;member=', $context['coppa']['id'], '">', $txt['coppa_form_link_download'], '</a><br /><br />
</td>
</tr><tr class="windowbg">
<td align="left">', $context['coppa']['many_options'] ? $txt['coppa_send_to_two_options'] : $txt['coppa_send_to_one_option'], '</td>
</tr>';
// Can they send by post?
if (!empty($context['coppa']['post']))
{
echo '
<tr class="windowbg">
<td align="left"><b>1) ', $txt['coppa_send_by_post'], '</b></td>
</tr><tr class="windowbg">
<td align="left" style="padding-bottom: 1ex;">
<div style="padding: 4px; width: 32ex; background-color: white; color: black; margin-left: 5ex; border: 1px solid black;">
', $context['coppa']['post'], '
</div>
</td>
</tr>';
}
// Can they send by fax??
if (!empty($context['coppa']['fax']))
{
echo '
<tr class="windowbg">
<td align="left"><b>', !empty($context['coppa']['post']) ? '2' : '1', ') ', $txt['coppa_send_by_fax'], '</b></td>
</tr><tr class="windowbg">
<td align="left" style="padding-bottom: 1ex;">
<div style="padding: 4px; width: 32ex; background-color: white; color: black; margin-left: 5ex; border: 1px solid black;">
', $context['coppa']['fax'], '
</div>
</td>
</tr>';
}
// Offer an alternative Phone Number?
if ($context['coppa']['phone'])
{
echo '
<tr class="windowbg" style="padding-bottom: 1ex;">
<td align="left">', $context['coppa']['phone'], '</td>
</tr>';
}
echo '
</table>
<br />';
}
// An easily printable form for giving permission to access the forum for a minor.
function template_coppa_form()
{
global $context, $settings, $options, $txt, $scripturl;
// Show the form (As best we can)
echo '
<table border="0" width="100%" cellpadding="3" cellspacing="0" class="tborder" align="center">
<tr>
<td align="left">', $context['forum_contacts'], '</td>
</tr><tr>
<td align="right">
<i>', $txt['coppa_form_address'], '</i>: ', $context['ul'], '<br />
', $context['ul'], '<br />
', $context['ul'], '<br />
', $context['ul'], '
</td>
</tr><tr>
<td align="right">
<i>', $txt['coppa_form_date'], '</i>: ', $context['ul'], '
<br /><br />
</td>
</tr><tr>
<td align="left">
', $context['coppa_body'], '
</td>
</tr>
</table>
<br />';
}
// Show a window containing the spoken verification code.
function template_verification_sound()
{
global $context, $settings, $options, $txt, $scripturl;
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<title>', $context['page_title'], '</title>
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css" />
<style type="text/css">';
// Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are bigger...)
if ($context['browser']['needs_size_fix'])
echo '
@import(', $settings['default_theme_url'], '/fonts-compat.css);';
// Just show the help text and a "close window" link.
echo '
</style>
</head>
<body style="margin: 1ex;">
<div class="popuptext">';
if ($context['browser']['is_ie'])
echo '
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" type="audio/x-wav">
<param name="AutoStart" value="1" />
<param name="FileName" value="', $context['verificiation_sound_href'], ';format=.wav" />
</object>';
else
echo '
<object type="audio/x-wav" data="', $context['verificiation_sound_href'], ';format=.wav">
<a href="', $context['verificiation_sound_href'], ';format=.wav">', $context['verificiation_sound_href'], ';format=.wav</a>
</object>';
echo '
<br />
<a href="', $context['verificiation_sound_href'], ';sound">', $txt['visual_verification_sound_again'], '</a><br />
<a href="javascript:self.close();">', $txt['visual_verification_sound_close'], '</a><br />
<a href="', $context['verificiation_sound_href'], ';format=.wav">', $txt['visual_verification_sound_direct'], '</a>
</div>
</body>
</html>';
}
function template_admin_register()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<form action="', $scripturl, '?action=regcenter" method="post" accept-charset="', $context['character_set'], '" name="postForm" id="postForm">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function onCheckChange()
{
if (document.forms.postForm.emailActivate.checked)
{
document.forms.postForm.emailPassword.disabled = true;
document.forms.postForm.emailPassword.checked = true;
}
else
document.forms.postForm.emailPassword.disabled = false;
}
// ]]></script>
<table border="0" cellspacing="0" cellpadding="4" align="center" width="70%" class="tborder">
<tr class="titlebg">
<td colspan="2" align="center">', $txt['admin_browse_register_new'], '</td>
</tr>';
if (!empty($context['registration_done']))
echo '
<tr class="windowbg2">
<td colspan="2" align="center"><br />
', $context['registration_done'], '
</td>
</tr><tr class="windowbg2">
<td colspan="2" align="center"><hr /></td>
</tr>';
echo '
<tr class="windowbg2">
<th width="50%" align="right">
<label for="user_input">', $txt['admin_register_username'], ':</label>
<div class="smalltext" style="font-weight: normal;">', $txt['admin_register_username_desc'], '</div>
</th>
<td width="50%" align="left">
<input type="text" name="user" id="user_input" size="30" maxlength="25" />
</td>
</tr><tr class="windowbg2">
<th width="50%" align="right">
<label for="email_input">', $txt['admin_register_email'], ':</label>
<div class="smalltext" style="font-weight: normal;">', $txt['admin_register_email_desc'], '</div>
</th>
<td width="50%" align="left">
<input type="text" name="email" id="email_input" size="30" />
</td>
</tr><tr class="windowbg2">
<th width="50%" align="right">
<label for="password_input">', $txt['admin_register_password'], ':</label>
<div class="smalltext" style="font-weight: normal;">', $txt['admin_register_password_desc'], '</div>
</th>
<td width="50%" align="left">
<input type="password" name="password" id="password_input" size="30" /><br />
</td>
</tr><tr class="windowbg2">
<th width="50%" align="right">
<label for="group_select">', $txt['admin_register_group'], ':</label>
<div class="smalltext" style="font-weight: normal;">', $txt['admin_register_group_desc'], '</div>
</th>
<td width="50%" align="left">
<select name="group" id="group_select">';
foreach ($context['member_groups'] as $id => $name)
echo '
<option value="', $id, '">', $name, '</option>';
echo '
</select><br />
</td>
</tr><tr class="windowbg2">
<th width="50%" align="right">
<label for="emailPassword_check">', $txt['admin_register_email_detail'], ':</label>
<div class="smalltext" style="font-weight: normal;">', $txt['admin_register_email_detail_desc'], '</div>
</th>
<td width="50%" align="left">
<input type="checkbox" name="emailPassword" id="emailPassword_check" checked="checked"', !empty($modSettings['registration_method']) && $modSettings['registration_method'] == 1 ? ' disabled="disabled"' : '', ' class="check" /><br />
</td>
</tr><tr class="windowbg2">
<th width="50%" align="right">
<label for="emailActivate_check">', $txt['admin_register_email_activate'], ':</label>
</th>
<td width="50%" align="left">
<input type="checkbox" name="emailActivate" id="emailActivate_check"', !empty($modSettings['registration_method']) && $modSettings['registration_method'] == 1 ? ' checked="checked"' : '', ' onclick="onCheckChange();" class="check" /><br />
</td>
</tr><tr class="windowbg2">
<td width="100%" colspan="2" align="right">
<input type="submit" name="regSubmit" value="', $txt[97], '" />
<input type="hidden" name="sa" value="register" />
</td>
</tr>
</table>
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';
}
// Form for editing the agreement shown for people registering to the forum.
function template_edit_agreement()
{
global $context, $settings, $options, $scripturl, $txt;
// Just a big box to edit the text file ;).
echo '
<form action="', $scripturl, '?action=regcenter" method="post" accept-charset="', $context['character_set'], '">
<table border="0" cellspacing="0" cellpadding="4" align="center" width="80%" class="tborder">
<tr class="titlebg">
<td align="center">', $txt['smf11'], '</td>
</tr>';
// Warning for if the file isn't writable.
if (!empty($context['warning']))
echo '
<tr class="windowbg2">
<td style="color: red; font-weight: bold;" align="center">
', $context['warning'], '
</td>
</tr>';
echo '
<tr class="windowbg2">
<td align="center" style="padding-bottom: 1ex; padding-top: 2ex;">';
// Show the actual agreement in an oversized text box.
echo '
<textarea cols="70" rows="20" name="agreement" style="width: 94%; margin-bottom: 1ex;">', $context['agreement'], '</textarea><br />
<label for="requireAgreement"><input type="checkbox" name="requireAgreement" id="requireAgreement"', $context['require_agreement'] ? ' checked="checked"' : '', ' value="1" /> ', $txt[584], '.</label><br />
<br />
<input type="submit" value="', $txt[10], '" />
<input type="hidden" name="sa" value="agreement" />
</td>
</tr>
</table>
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';
}
function template_edit_reserved_words()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
<form action="', $scripturl, '?action=regcenter" method="post" accept-charset="', $context['character_set'], '">
<table border="0" cellspacing="1" class="bordercolor" align="center" cellpadding="4" width="80%">
<tr class="titlebg">
<td align="center">
', $txt[341], '
</td>
</tr><tr>
<td class="windowbg2" align="center">
<div style="width: 80%;">
<div style="margin-bottom: 2ex;">', $txt[342], '</div>
<textarea cols="30" rows="6" name="reserved" style="width: 98%;">', implode("\n", $context['reserved_words']), '</textarea><br />
<div align="left" style="margin-top: 2ex;">
<label for="matchword"><input type="checkbox" name="matchword" id="matchword" ', $context['reserved_word_options']['match_word'] ? 'checked="checked"' : '', ' class="check" /> ', $txt[726], '</label><br />
<label for="matchcase"><input type="checkbox" name="matchcase" id="matchcase" ', $context['reserved_word_options']['match_case'] ? 'checked="checked"' : '', ' class="check" /> ', $txt[727], '</label><br />
<label for="matchuser"><input type="checkbox" name="matchuser" id="matchuser" ', $context['reserved_word_options']['match_user'] ? 'checked="checked"' : '', ' class="check" /> ', $txt[728], '</label><br />
<label for="matchname"><input type="checkbox" name="matchname" id="matchname" ', $context['reserved_word_options']['match_name'] ? 'checked="checked"' : '', ' class="check" /> ', $txt[729], '</label><br />
</div>
<input type="submit" value="', $txt[10], '" name="save_reserved_names" style="margin: 1ex;" />
</div>
</td>
</tr>
</table>
<input type="hidden" name="sa" value="reservednames" />
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';
}
function template_admin_settings()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<form action="', $scripturl, '?action=regcenter" method="post" accept-charset="', $context['character_set'], '">
<table border="0" cellspacing="1" cellpadding="4" align="center" width="100%" class="tborder">
<tr class="titlebg">
<td align="center">', $txt['settings'], '</td>
</tr>
<tr class="windowbg2">
<td align="center">';
// Functions to do some nice box disabling dependant on age restrictions.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function checkCoppa()
{
var coppaDisabled = document.getElementById(\'coppaAge_input\').value == 0;
document.getElementById(\'coppaType_select\').disabled = coppaDisabled;
var disableContacts = coppaDisabled || document.getElementById(\'coppaType_select\').options[document.getElementById(\'coppaType_select\').selectedIndex].value != 1;
document.getElementById(\'coppaPost_input\').disabled = disableContacts;
document.getElementById(\'coppaFax_input\').disabled = disableContacts;
document.getElementById(\'coppaPhone_input\').disabled = disableContacts;
}
// ]]></script>';
echo '
<table border="0" cellspacing="0" cellpadding="4" align="center" width="100%">
<tr class="windowbg2">
<th width="50%" align="right">
<label for="registration_method_select">', $txt['admin_setting_registration_method'], '</label> <span style="font-weight: normal;">(<a href="', $scripturl, '?action=helpadmin;help=registration_method" onclick="return reqWin(this.href);">?</a>)</span>:
</th>
<td width="50%" align="left">
<select name="registration_method" id="registration_method_select">
<option value="0"', empty($modSettings['registration_method']) ? ' selected="selected"' : '', '>', $txt['admin_setting_registration_standard'], '</option>
<option value="1"', !empty($modSettings['registration_method']) && $modSettings['registration_method'] == 1 ? ' selected="selected"' : '', '>', $txt['admin_setting_registration_activate'], '</option>
<option value="2"', !empty($modSettings['registration_method']) && $modSettings['registration_method'] == 2 ? ' selected="selected"' : '', '>', $txt['admin_setting_registration_approval'], '</option>
<option value="3"', !empty($modSettings['registration_method']) && $modSettings['registration_method'] == 3 ? ' selected="selected"' : '', '>', $txt['admin_setting_registration_disabled'], '</option>
</select>
</td>
</tr>
<tr class="windowbg2">
<th width="50%" align="right">
<label for="notify_new_registration_check">', $txt['admin_setting_notify_new_registration'], '</label>:
</th>
<td width="50%" align="left">
<input type="checkbox" name="notify_new_registration" id="notify_new_registration_check" ', !empty($modSettings['notify_new_registration']) ? 'checked="checked"' : '', ' class="check" />
</td>
</tr><tr class="windowbg2">
<th width="50%" align="right">
<label for="send_welcomeEmail_check">', $txt['admin_setting_send_welcomeEmail'], '</label> <span style="font-weight: normal;">(<a href="', $scripturl, '?action=helpadmin;help=send_welcomeEmail" onclick="return reqWin(this.href);">?</a>)</span>:
</th>
<td width="50%" align="left">
<input type="checkbox" name="send_welcomeEmail" id="send_welcomeEmail_check"', !empty($modSettings['send_welcomeEmail']) ? ' checked="checked"' : '', ' class="check" />
</td>
</tr><tr class="windowbg2">
<th width="50%" align="right">
<label for="password_strength_select">', $txt['admin_setting_password_strength'], '</label> <span style="font-weight: normal;">(<a href="', $scripturl, '?action=helpadmin;help=password_strength" onclick="return reqWin(this.href);">?</a>)</span>:
</th>
<td width="50%" align="left">
<select name="password_strength" id="password_strength_select">
<option value="0"', empty($modSettings['password_strength']) ? ' selected="selected"' : '', '>', $txt['admin_setting_password_strength_low'], '</option>
<option value="1"', !empty($modSettings['password_strength']) && $modSettings['password_strength'] == 1 ? ' selected="selected"' : '', '>', $txt['admin_setting_password_strength_medium'], '</option>
<option value="2"', !empty($modSettings['password_strength']) && $modSettings['password_strength'] == 2 ? ' selected="selected"' : '', '>', $txt['admin_setting_password_strength_high'], '</option>
</select>
</td>
</tr><tr class="windowbg2">
<th width="50%" align="right">
<label for="disable_visual_verification_check">', $txt['admin_setting_disable_visual_verification'], '</label>:
</th>
<td width="50%" align="left">
<input type="checkbox" name="disable_visual_verification" id="disable_visual_verification_check" ', !empty($modSettings['disable_visual_verification']) ? 'checked="checked"' : '', ' class="check" />
</td>
</tr><tr class="windowbg2">
<td width="100%" colspan="2" align="center">
<hr />
</td>
</tr><tr class="windowbg2" valign="top">
<th width="50%" align="right">
<label for="coppaAge_input">', $txt['admin_setting_coppaAge'], '</label> <span style="font-weight: normal;">(<a href="', $scripturl, '?action=helpadmin;help=coppaAge" onclick="return reqWin(this.href);">?</a>)</span>:
<div class="smalltext" style="font-weight: normal;">', $txt['admin_setting_coppaAge_desc'], '</div>
</th>
<td width="50%" align="left">
<input type="text" name="coppaAge" id="coppaAge_input" value="', !empty($modSettings['coppaAge']) ? $modSettings['coppaAge'] : '', '" size="3" maxlength="3" onkeyup="checkCoppa();" />
</td>
</tr><tr class="windowbg2" valign="top">
<th width="50%" align="right">
<label for="coppaType_select">', $txt['admin_setting_coppaType'], '</label> <span style="font-weight: normal;">(<a href="', $scripturl, '?action=helpadmin;help=coppaType" onclick="return reqWin(this.href);">?</a>)</span>:
</th>
<td width="50%" align="left">
<select name="coppaType" id="coppaType_select" onchange="checkCoppa();">
<option value="0"', empty($modSettings['coppaType']) ? ' selected="selected"' : '', '>', $txt['admin_setting_coppaType_reject'], '</option>
<option value="1"', !empty($modSettings['coppaType']) && $modSettings['coppaType'] == 1 ? ' selected="selected"' : '', '>', $txt['admin_setting_coppaType_approval'], '</option>
</select>
</td>
</tr><tr class="windowbg2" valign="top">
<th width="50%" align="right">
<label for="coppaPost_input">', $txt['admin_setting_coppaPost'], '</label> <span style="font-weight: normal;">(<a href="', $scripturl, '?action=helpadmin;help=coppaPost" onclick="return reqWin(this.href);">?</a>)</span>:
<div class="smalltext" style="font-weight: normal;">', $txt['admin_setting_coppaPost_desc'], '</div>
</th>
<td width="50%" align="left">
<textarea name="coppaPost" id="coppaPost_input" rows="4" cols="35">', $context['coppaPost'], '</textarea>
</td>
</tr><tr class="windowbg2" valign="top">
<th width="50%" align="right">
<label for="coppaFax_input">', $txt['admin_setting_coppaFax'], '</label> <span style="font-weight: normal;">(<a href="', $scripturl, '?action=helpadmin;help=coppaPost" onclick="return reqWin(this.href);">?</a>)</span>:
<div class="smalltext" style="font-weight: normal;">', $txt['admin_setting_coppaPost_desc'], '</div>
</th>
<td width="50%" align="left">
<input type="text" name="coppaFax" id="coppaFax_input" value="', !empty($modSettings['coppaFax']) ? $modSettings['coppaFax'] : '', '" size="22" maxlength="35" />
</td>
</tr><tr class="windowbg2" valign="top">
<th width="50%" align="right">
<label for="coppaPhone_input">', $txt['admin_setting_coppaPhone'], '</label> <span style="font-weight: normal;">(<a href="', $scripturl, '?action=helpadmin;help=coppaPost" onclick="return reqWin(this.href);">?</a>)</span>:
<div class="smalltext" style="font-weight: normal;">', $txt['admin_setting_coppaPost_desc'], '</div>
</th>
<td width="50%" align="left">
<input type="text" name="coppaPhone" id="coppaPhone_input" value="', !empty($modSettings['coppaPhone']) ? $modSettings['coppaPhone'] : '', '" size="22" maxlength="35" />
</td>
</tr><tr class="windowbg2">
<td width="100%" colspan="3" align="right">
<input type="submit" name="save" value="', $txt[10], '" />
<input type="hidden" name="sa" value="settings" />
</td>
</tr>
</table>';
// Handle disabling of some of the input boxes.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[';
if (empty($modSettings['coppaAge']) || empty($modSettings['coppaType']))
echo '
document.getElementById(\'coppaPost_input\').disabled = true;
document.getElementById(\'coppaFax_input\').disabled = true;
document.getElementById(\'coppaPhone_input\').disabled = true;';
if (empty($modSettings['coppaAge']))
echo '
document.getElementById(\'coppaType_select\').disabled = true;';
echo '
// ]]></script>
</td>
</tr>
</table>
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';
}
?>
@ davidkirk:
In your register.template.php file find:
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
RegistrationFields();
Cut it out and then find:
<input type="password" name="passwrd2" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr>';
Paste this code below the above code:
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
RegistrationFields();
This will put all fields above the captcha. ;) I have it tested and running on my site. Hope it was clear enough
I found my problem. It was a permissions issue. After installing and reinstalling multiple times I kept getting this error:
You cannot download or install new packages because the Packages directory is not writable!
And this was despite the fact that I properly chmod 777 to everything that is required. What eventually solved it was creating a directory 'temp' in Packages and chmod'ing that to 777.
Thanks anyways!
Quote from: Bigguy on July 19, 2007, 10:34:31 PMThis will put all fields above the captcha. ;) I have it tested and running on my site. Hope it was clear enough
Very clear, and after requesting help many times I appreciate you, Kindred, and KGIII looking into it.
Hey guys, anyways, I tried installing the Custom Profile Field Mod on my forum, and I'm using version 1.1.3.
It installs clean and nicely, but when I try to go to Features and Options, I get this error
QuoteFatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/souljaa/public_html/Sources/ModSettings.php:323) in /home/souljaa/public_html/Sources/ModSettings.php on line 333
I have these mods installed:
Quote1. Membergroup Color Legend 1.1
2. Member Color Link 2.0.0
3. SMFShop 3.0
4. Users Online Today Mod 1.4.0
5. TinyPortal 0.983
6. Enhanced Forum Statistics 1.0
Any help?
Thanks!
Souljaa
looks like you have installed the mod twice.
Hey Kindred! Thanks for the help, well I tried looking at my packages folder and everything, it's not listed twice, do I just have to edit the ModSettings.php manually? Take off the code for the mod, then re-install it?
no... if you re-install it again, you will have even more issues.
Althought it may not show as installed twice, apparently it was.
the best solution for you would be to uplaod a clean set of files (thus erasing all mods) and then carefully install each mod one-by-one.
Okay, I'll try that out.
Thanks
Souljaa
What a great Mod!!
I have one thing I would like to change. To give more space in the profile for the members, I would like to have the Picture/Text part above the summary. The width of the profile will be a bit larger so the members have more space to pimp up their profiles. Can someone help me to fix this?
I have a bit of an issue, I installed it.. and it gave some errors.. i tryed to uninstall it. now most of the Profile stuff doesnt work. any ideas?
What files do i need to replace to get rid of the mod and do a fresh install on it
You might be best to replace all the files and directories in your forum with replacements from the SMF installation package (for 1.1.3) save for the Attachments directory, Settings.php and Settings_bak.php all in your forum root. When done then re add any themes and mods you may wish to use.
I have another question. I would like to give the members the possibility to post some photos in their profile. It is possible to use the BBcodes in a textfield. But I want to have a field where members only have to paste the url in the field. I saw this on another forum. Can anyone tell me how to do this?
example
(http://img528.imageshack.us/img528/4170/photourloptionmz5.jpg)
@ Jarito
There are some new mods that make highly customised alternative versions of the entire profile page...some of these include a gallery...they aren't yet approved by SMF (and may not gain approval) so I won't link to them here but if you search around they can be found. They might better suit your requirements than alterations to this mod.
Well I don't want a whole gallery in the profiles. Just a few photos that can be post in the profiles. To make it easier for the members it would be nice that the members only have to paste the url of their photos in the fields. Maybe something like the image BBC already written in the fields but invisble.
Gallery means different things to different people...in some of the mods I have in mind it would be exactly as you describe:
QuoteJust a few photos that can be post in the profiles
These profile galleries aren't meant to be much more than that.
I ran a backup installed a test forum.. when i redid all the root files.. it reset every thing post's.. users. etc. any way to keep those after i reinstall?
sounds liek you sis a re-install, not an installation of a backup.
ALl user data is stored in the database, so replacing files would have no effect on that data.
Ok, I created a new Forum. I used the same database info. but i still get the Error..when i try to isntall this mod, it must have been a old mod i had before that edited the files or something.
Execute Modification /home/william/public_html/Themes/default/Profile.template.php Test failed
Any ideas?
I have been installed the MOD, but I can use it.
Im going to "Freatures and Options" in the Admin panel, an just i see this
Características básicas (Basic Freatures) - Diseño (Temas) Themes - Karma
Help me pleaseeeeeee!!!!!!!!!!!!!!!
Quote from: EduardoF1 on July 25, 2007, 03:55:27 PM
I have been installed the MOD, but I can use it.
Im going to "Freatures and Options" in the Admin panel, an just i see this
Características básicas (Basic Freatures) - Diseño (Temas) Themes - Karma
Help me pleaseeeeeee!!!!!!!!!!!!!!!
I'm having the same problem. I'm using SMF 1.1.3, is that the problem?
Are you guys using any custom themes? If so you have to manually install it.
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
Quote from: DrkSnpr14 on July 25, 2007, 03:59:06 PM
Quote from: EduardoF1 on July 25, 2007, 03:55:27 PM
I have been installed the MOD, but I can use it.
Im going to "Freatures and Options" in the Admin panel, an just i see this
Características básicas (Basic Freatures) - Diseño (Temas) Themes - Karma
Help me pleaseeeeeee!!!!!!!!!!!!!!!
I'm having the same problem. I'm using SMF 1.1.3, is that the problem?
Ouch!!! its a language problem
Look http://www.simplemachines.org/community/index.php?topic=184694.msg1175157#msg1175157
Quote from: shadow82x on July 25, 2007, 04:02:49 PM
Are you guys using any custom themes? If so you have to manually install it.
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
That would be my problem, lol. Thanks for the link, I'll work on that
Ok, I created a new test forum.. I made a backup of my sql, and used it on the new forum, Im still getting the same errors. When i backup the sql, doesnt it save the main files.. etc.?
Says the package is not valid or corrupt for me, tried multiple times. :( Using DilberMC theme and 1.1.3 SMF.
You just need to emulate your version while installing this mod; when you are at package manager add this at the end of the url...
;emulate_version=1.1.3
The mod works properly with SMF 1.1.3 once you have used this method to install it.
You will have to manually edit the mod into your theme in the usual way:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
You may also find the following helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Hello,
I have just installed the mod - all fine, but am a little confused as to what to do now. I have a PS3 forum and want to add a field under members avatar's
'PS3 Network ID:'.
I tried doing it and nothing has shown up, so can someone go through it with me please?
Do I want a Text, Text Area, Check Box or Selection Box? I am assuming text. (Is there anywhere that explains what everything means?)
Name: PS3 Network ID:
Field Description: ?
Parse BBC?: What does this mean? Do I need it?
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? On both? Not sure whether I need this option or not. I don't even know what this means.
Only allow admins to edit field?
Only allow admins to view field?
What does it mean exactly?
When I saved and checked profiles and posts there was nothing there. Shouldn't this field appear in the members profile, and once they've entered the data show up in their profile bpx?
Nothing is showing anywhere. Please help!
???
All the fields seem rather self-explanatory.
Name:
Name of the new field
Field Description: ?
Description of the new field
Parse BBC?:
Allow users to enter bulletin board code (BBC) into this field? Thus allowing images, colour changes, font size, etc.
Text to display before field (BBC is ok if enabled above): ?
Display this text before showing the contents of the field.
Text to display after field (BBC is ok if enabled above): ?
Display this text after showing the contents of the field.
Field ID:
Add a horizontal rule before field?
Do you want a horizontal line to diplay before the field? (i.e. a separator?)
Only allow admins to edit field?
Only allow admins to view field?
Thanks for replying Kindred, that's what I thought it meant, yet nothing is showing up when I fill these fields in and save. Is it only me?
Text to display before field (BBC is ok if enabled above):
I put 'PS3 Network ID:'
Once you save it, what's meant to happen?
I am using SMF 1.1.3 - is there anything else I am meant to do? Any code I have to amend?
is the field showing up at all?
Are you using the default theme or a custom theme?
Did you manually install the modifications into your custom theme's display.template.php?
No it isn't showing up at all.
I am using the default theme which installed automatically.
I don't understand why it wouldn't be showing.
In ACP>Features and Options>Custom Profile Fields>Settings for each new field have you ticked the checkbox for "Show in profile" and selected an option other than "don't show" for show in posts?
Just making sure...
Yes it's ticked.
I have set it to show under posts.
Weird isn't it. God knows what code in what template is causing the problem. I really don't know.
I-I think I sorted it...could this be? Oh the joy! Thanks for your help. :-*
My pleasure...and I'm glad you got it sorted out. Would you mind letting us know what the resolution of the problem was so we can help others who might have a similar issue?
Is there a way to show the field on the memberlist?
@ Enders
Not currently.
when will this mod be compatible with version 1.1.3 ?
@ Sebi 1000
The mod developer clearly shows himself to be "on hiatus" so the mod versioning will have to wait until he is more available...in the mean time you can use it on newer SMF versions at your own risk by using version emulate:
Put ;emulate_version=1.1.2 at the end of the Package Manager URL
Hopefully this will help someone.
I was struggling with creating anything other than text fields. Couldn't get a checkbox or dropdown field to work. I noticed a couple posts in this thread about this. In retrospect, it makes sense. It just didn't occur to me right away. Here's how it's working for me.
I was too quick to go to settings. So, now I pick Text/Text Area/Checkbox/Selection Box and hit the Save button at the bottom. Then that field type is defined. THEN go back and hit settings for the new field and I'm able to edit the options for types other than text. This works for me. Your mileage may vary.
Unrelated, I can confirm the Description recreating itself on moves, so avoid having to move fields if you can. For now, simply think your fields and order through first, or plan on some cleanup later. I suspect this will be patched when the author has time.
Thanks for this mod! It's going to be very handy and hopefully will import in some fashion to 2.0's core version of custom fields.
hello,
I've got the problem, that, after a successfull install of the custom profile field mod in version 3.16 on my 1.1.3 SMF, I can't find any hint of the mod in my ACP. neither if I use the german language, nor in the english version. I'm using the normal standard theme.
so I tried to uninstall the mod, but this message occured: You cannot download or install new packages because the Packages directory or one of the files in it are not writable!
so, has anybody any kind of solution for my problem?
Firstly before you install or uninstall any mod or theme please go to:
ACP>Packages>Options
In "Installation Options" set the details appropriate to your hosting then in "Cleanup Permissions" make all files writeable.
The above may fix the problem but if it persists then create a "temp" directory in your Packages directory and try again.
This mod should show as a tab in:
ACP>Features and Options
ok, I did so, but the error message was the same. so I checked the permissions by using my FTP tool, but the result still is the same.
edit: now it works, but the uninstall brings a lot of failures while testing. I dont know if I should move on to unsinstall or not.
In a word NO...you should do a manual uninstall reversing the process of a manual installation...if you read the first link and use the second you should be OK
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Hi there!
I have this mod working great, thank you.
My question is, how do I grab the 'variables' (dunno if you call it so) in the DB that this mod creates for each new field you create?
I mean, I use TinyPortal. I created a phpbox and I want to use some user's info in it. It's actually a TeamSpeak box, so basically:
- I created 3 new fields using the custom profile mod: tsUserName, tsUserPassword, tsNickName;
- I want to 'call' these 3 fields in my TP phpbox so that users will be able to join the TeamSpeak in just one click.
So, the code should be something like this
$this->g_loginName = $context['user']['tsUser'] == ""?"User":$context['user']['tsUser'];
$this->g_loginPassword = $context['user']['tsPassword'] ==""?"Password":$context['user']['tsPassword'];
$this->g_nickname = $context['user']['tsNickname'] ==""?"Nickname":$context['user']['tsNickname'];
Of course any of these $context['user']['*****'] doesn't work, cuz I need to know how I refer to the fields created with Custom Profile Fields mod.
Thanks in advance!
I know that this has been answered in this thread, although I don't reall the exact page/post.
try search?
the variables are stored in the themes table...
I had searched for "database" in this topic and found a couple things but couldn't understand/realise what was said.
But thanks, I'll have a look in PhpMyAdmin to find something in the themes table.
@satan: thanks for the links.
wouldnt it be easier to owerwrite the changed files by the original ones?
the package parser is a great link, thanks for that.
@ Skoell
I play safe when answering by giving a solution that will always do what is expected...had I said what you are suggesting and had you added/removed other mods in between this mod and the current state of your files you could have got into a situation known in technical circles as "a right mess". If you are sure there were no other changes made to the files and you had set your forum to save the altered files with a tilde after the name you could do as you are suggesting but I'd never risk putting that down as general advice for the above reasons.
Ok, excuse me if my question its a little stupid but...
how can i see the fields im created with this MOD?
ok, im install succefull, go to "features and options", after to "Custom profile fields" after i create the custom fields and active this, but this dont work, i active all the check boxes for see the fields in my profile but really i dont see nothing about this new fields
i create a field called "information", and i enable this, its Text type, but dont work :(
any person can help me please? :)
thanks already, byebye :D
What theme are you using?
Musiciona :O
but im trying changue to default theme and dot work in this too :S
im have my forum in spanish and musiciona theme, but im always changue the forum (in py profile) to english language and default theme to check all MODS, and this dont work :'(
Are you sure you manually installed this mod in profile.template.php?
im install it with the package manager of my SMF system, i use SMF v 1.1.2
sorry my bad english, im from mexico :$
No problem but some mods need to be installed manually. The docs tell you how to install it. ;)
Quote from: shadow82x on August 05, 2007, 12:54:10 AM
No problem but some mods need to be installed manually. The docs tell you how to install it. ;)
i can see in the ACP all the things about this MOD, really i need to install it manually? im too bad to install this thinks and this scar me :$
i read already the readme file, but i cant understand, can you give me a little guide about this MOD installations, im a old-user phpbb and its totally diferent :S
EDIT: the readme dont say me any about the installation :P
Did you try searching the online manual? Like a keyword of 'manual' for a search. In SMF2.0 you don't have to do it. But for now you. I have to go for now. :)
To do a manual installation of this mod please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Got this message upon install using newest version, any ideas? Or is it just not compatible with the latest release?
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 failed
7. Extract File ./Sources/CustomProfile.php
8. Extract File ./Themes/default/languages/CustomProfile.english.php
Try reuploading /sources/register from a fresh install in FTP. Than proceed.
**NO**
Shadow! Please don't give advice like that without getting further info!!!!!!!
SilentMercy,
Assuming you did NOT follow shadow's advice.
Do you have any other mods which modify your registration process?
This is likely the cause of the failure (and following shadow's advice would cause you to lose parts of those modifications)
You may have to apply the code changes to that one file by hand.
I have installed this mode, but when I add filed I cant see it in my profile, I dont use English as default language
You will need to translate CustomProfile.english.php into the language you wish to use and change the file name accordingly...leave the english version in place in case it is needed to help you fix problems...upload your new version to the same directory as the original file (theme language directory.) If you are also using a custom theme (any theme bar the SMF Default theme is a custom theme) you will need to manually edit this mod into that theme...each theme will need to be manually edited.
My forums runs in german.
After installing this mod - there is at "features and options" a blank place without text. can you help me?
where do I have the translation?
please give me the name of the template or the file I need.
Please read my last post again...I already gave you the name of the file to translate!
sorry! now I did it - and it runs perfectly - thanks for your hint again. bye
Help ... I just installed this on my server but when I click on "Features and Options" I don't see anything different. I have logout then back in but still no custom fields.
Please assist.
what language pack are you using?
English.
Kindred-
I am using the English package. Please let me know what other information you need to assist with the troubleshooting. Thanks.
aplunar
english or english utf-8?
And please do not bump after only a few hours.
Kindred-
Sorry about that ...thanks for your assistance.
I am using the English-UTF8
aplunar
Kindred-
Thanks for your help. I changed the language to "english" and I can see the tab.
aplunar
Thanks for this awesome mod, works fine.
I want to ask something though, I've used the mod to add a "Real Name" field when registering on my forum, I wrote in the description that it will be only seen by admins, but I want to emphasize it, so how can I use BBcode or HTML in the description?
Quote from: xonxoff on July 30, 2007, 12:35:21 AM
Unrelated, I can confirm the Description recreating itself on moves, so avoid having to move fields if you can. For now, simply think your fields and order through first, or plan on some cleanup later. I suspect this will be patched when the author has time.
Thanks for this mod! It's going to be very handy and hopefully will import in some fashion to 2.0's core version of custom fields.
I saw this post a few pages back and want to ask a question about it. If it is answered in one of these pages somewhere sorry I cannot find it. I need to add a new item to the custom profile field. I remember i did this along time ago and it "shifted" the other items so that the questions in the profile fields no longer corresponded with what the members had entered in the various fields. How do I avoid this "shifting" of fields :)
As the author of the post you quoted made clear you can't do this and have to "plan on cleanup later".
Since I had no idea the author of the post had any first hand knowledge on what the mod was capable of doing, it seemed like a reasonable question to follow up on. Sorry if it wasn't
Hello,
I run SMF 1.1.3...just installed the mod via "admin panel -> Packages" and now I see it in "Modification Packages" list in "Packeges".
When i go to "Features and Options" I don't see any new field ... just can't find out why SMF says the MOD is installed, but I can't find it in "Features and Options". My admin panel is displayed in english...
Please help me...
The most obvious reason would be that you are running a theme other than the SMF default one...most mods need to be manually installed into custom themes to do a manual installation of this mod. Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Quote from: TrueSatan on August 17, 2007, 05:03:28 PM
The most obvious reason would be that you are running a theme other than the SMF default one...most mods need to be manually installed into custom themes to do a manual installation of this mod. Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
I followed the steps here (http://docs.simplemachines.org/index.php?topic=402.msg531#post_xmlformat) , but still no result.(installed manual everything from the .xml files) should i put somewhere on the /forum dir CustomProfile.php ?
If the mod installed properly and with no errors shown then you should already have CustomProfile.php in your Source directory and CustomProfile.english.php should be in the language directory of your SMF Default theme...try placing it also in the language directories of any custom themes also check to see that in ACP>Server Settings your forum language is set to English anf not English utf8
Thanks, finally up and running! Thanks for the quick help!
My pleasure!
greetings I was wondering if there was any plans to expand this mod to include the follow features. I run a role playing forum which features systematic role play so I will give you my reasoning and examples why I would love these features. Most of the games on the forum is white wolf related so I'll give the examples in that vein I'm sorry if your not accustomed with the game but I will try to explain it so that you'll get the meaning of my explanation without being a follower of the games. The Features Include.
Custom Fields that are only available in certain member groups.
Reasoning: each membergroup is its own game in my forum so certain stats are not present from game to game so while Willpower is almost universal in my games disciplines which are only in the game Vampire The Masquerade would be useless in some of the other profiles for games like Exalted or Scion which have different stats in place of it. .
Example: In a group dedicated to a Vampire The Masquerade game there would be the stat disciplines where they can list their diciplines and values. On other membergroups the discipline profile field would not be availabe to them.
Be able to designate other groups that can view hidden Fields that would usually only be available to Admin.
Reasoning: I have volunteer staff of storytellers as they are called which need to have information available to them without being seen by the general public. I want to have hidden character stat fields for this purpose but I don't trust my storytellers with the permissions afforded to by being an adminstrator so I would like a way to designate groups that will be able to see those stats.
Example: Storyteller for the Vampire The Masquerade game comes to learn there is a problem on the acutal stats of one of the characters (He claims to have a level of a stat that is incorrect.). He knows that the character stats are added by storytellers or admins and are not available for the character to forge in the hidden fields in his profile. The storyteller checks the profile and finds that there was no change and informs the player privately that he does not have the value of the stat he assumed he had and that the storyline will continue with the value it shows he has in his profile that only he and the player can see. (More on that in one of the other features.)
Option that would allow hidden fields to be viewable by entering in a password of the owner of the profiles choosing.
Reasoning: Sometimes a player wants ideas on how to make his character more to his liking from people not designated as staff. This would allow a password set by that player so that when the person who he asks to help him enters it he can see his stats and offer advice accordingly.
Example: Player A asks another player whom we will refer to as Player B for advice on his character stats. Player B looks on his profile and clicks a link designated as character stats or something similar and is then asked to enter a password if player b enters the correct password he sees the character stats if he enters an incorrect password it will give him an error which states that the password is not correct after he has entered the incorrect password 2 or more times.
Edit: I forgot to mention I was under the assumption that it would be a link which the acutal text would be set by the admin. So while I would use Character Statistics a admin for a non role playing forum would use reveal hidden fields or personal information or something else to that admins liking.
Permission for a field to be viewable by the member.
Reasoning: I personally like to add the agreed upon stats in the fields myself to prevent confusion. I plan on having a website registration form and from that after I agree upon the stats with the user I would personally add it to their forum character name. I would like them to be able to see it at anytime incase they should forget the stats.
Example: Player A does not know if he has strength 3 or 4 which would make a major difference in a dice roll he is about to perform he goes to his own profile and see that he has strength 3 so he is able to make that roll without asking staff.
I hope this makes sense and its not to major to code. I'd like to hear if you think these could be reasonable adjustments. Thank you in Advance.
Okay I have one question that I want to achieve with this mod.
I want to display a dynamic image near people posts, that they can edit. It is the avatar from the online game where my forum is about. There are a few different moods: normal, laughing, suprised, angry.
They have 5 different codes gesture=agr, gesture=hap, gesturde=sad etc etc.
I want my users to be able to choose the mood they want, but I don't know how to achieve this.
I want the 5 options, but in full name, that they can choose.
Then I need the variable (I think that's the name) to place that in the IMG tag.
I already have the user="username", so I also need the gesture="chosen-gesture".
At the end, it has to look like this:
http://www.domaincom/image?user=NAME&gesture=CHOSEN-GESTURE.gif
Is this possible with this mod? Thanks very much!
that exact string is not possible without some modification
Quote from: Kindred on August 21, 2007, 02:26:33 PM
that exact string is not possible without some modification
Ah, allright :( Thanks for the fast answer anyway!
I liked the promise of your mod, so I translated it to Dutch for nightclub Baroeg's forum (http://www.baroeg.nl/forum).
The attached translation would go into "/Themes/default/languages", at least for me that worked. My apologies if this contribution is not welcome in this place, I'm new (again) to SMF and just got admin a few hours ago. Suggestions for better translations are welcome.
Is theres 1.1.3 mod for this?
Quote from: JoshieTheGreat on August 22, 2007, 09:26:24 AM
Is theres 1.1.3 mod for this?
I'm using it with 1.1.3 so I assume it would work unless the fact that my theme is a 1.1 version makea a difference in that.
So I hear there's a bet of SMF 2.0 for charter members. And that custom feilds will be a feature. Will we be able to merge our existing custom feilds into this?
I would imagine that there won't be a "built in" option in SMF2.0 to incorporate data from this mod, and that we'll have to wait for the mod author or someone else to write some kind of conversion script.
In theory it wouldn't be too hard to do, but without seeing the exact way which SMF2.0 custom fields are stored in the database, no-one can do it.
Also, moving the data is just one issue - depending on how SMF2.0 handles the display/options for each of the fields, you may have to recreate these all manually too.
An automatic script to handle all of this is certainly possible, but I think beyond my level of SMF coding ability. I guess we'll have to hope that someone works on one!
Sunil
No. I wouldn't think so either.
I do know this feature has been well used in my current forum, and would love to find away to merge this already collected data without having to force users re-enter it. Maybe have a tag in the profile to show extra feilds in the profile from previous forum versions, but no longer use the mod code to enter new feilds? Geez I'm incoherrant tonight!
I have a question:
I'm trying to make a profile field that will create a link to an xbox live profile but I'm having a problem with gamertags that have spaces in them.
The URL I'm trying to link them to is
http://live.xbox.com/profile/FriendsMgmt.aspx?gt=GAMERTAG&act=Add
now I know I can do
http://live.xbox.com/profile/FriendsMgmt.aspx?gt=%1&act=Add
and it works fine for people who have a gamertag like 'robward' but if my gamertag was 'rob ward' it screws the whole thing up. I know I can manually go in and edit it to 'rob%20ward' but I was wondering if there's something I can add to fix this automatically.
Thanks.
Hi! Can you help me to get custom user profile field value from ext. page, e.g. from TinyPortal php article?
I create a text custom field with id = CP1, I put a "1" value to it in my profile but I got nothing in article putput when using
echo "Custom Value is " . $context['member']['options'][$modSettings['CP1_id']] . "<p>";
So I got only Custom Value is
and no value... =(
What I do wrong?
O, I found it!
global $user_profile;
if (isset($modSettings['enable_CP1']))
{
$memID = $context['user']['id'];
loadMemberData($memID);
//print_r($user_profile);
echo "<p>Value is: <b>" . $user_profile[$memID]['options']['CP1'] . "</b><p>";
}
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.
Hello, I have the same problem. I've installed the mod today an on the first look it works fine, but only with text fields. What can I do?
I got error installation with user SMF 1.1.3
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 failed
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
Any body can give me solution ?
Thanks
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
This is an excellent MOD, thank you.
I installed it on SMF 1.1 RC3 | SMF with TinyPortal v0.9.6beta. ( www.marscafe.com )
The installation went without a problem, even though I have a number of other MODS installed (see end of post):
I am currently using this MOD to present a 70 item select menu for Occupation Titles at registration.
Question-I would like to notify the other 250+ members that they can update their profile, but I can see this MOD's installation is not "retroactive" in that sense, and the capability is not present for previous registrants to use.
Is there a way to enable something like this?
INSTALLED MODS
1. TinyPortal
2. Ad Managment
3. SMF 1.0.9 and 1.1 RC3-1 Security Patch 1.0.8/1.1 RC3
4. Advanced Visual Verification 1.0
5. FelBlog 0.81b.r2
6. FelBlog 0.81b
7. Global Announcements 1.0
8. SMF Achat ALPHA 0.2.0
9. SMF Gallery Lite 1.6.9
10. Pagination Fix 1.0
11. SMF Trader System 1.0.1
12. SMF Links 1.6.3
13. SMF Arcade 2.0.7
14. Invite 1.13
15. User Email System 1.2
16. SMF Links 1.6.5
17. AvatarSelect 1.1.2
18. PM On Registration 1.0.2
19. Spell Check Custom Words 1.0
My posting question above is now Solved
I simply unchecked the option: Only allow admins to edit field? and the ability for all users to make a selection from the new profile option "select box" is available.
Quote from: TrueSatan on September 07, 2007, 04:20:11 AM
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Sory, i very confused and not understand for fix my problem.
Quote from: cometopapa on September 07, 2007, 01:01:33 AM
I got error installation with user SMF 1.1.3
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 failed
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
Any body can give me solution ?
Thanks
I have had way too many issues trying to get this mod running---I think 5 attempts is enough. And now I can't even uninstall it!
I uninstalled it via Admin, then deleted it just as you would do with any other mod, and now I'm getting this:
Fatal error: require_once() [function.require]: Failed opening required '/home/XXXXXXXXX/public_html/Sources/CustomProfile.php' (include_path='.:/usr/local/php5/lib/php') in /home/XXXXXXXXX/public_html/Sources/Load.php(1722) : eval()'d code on line 298
NONE of my posts show---everything's GONE. How do I get rid of this mod? ???
EDIT: I apologize for that---it was a bit preemptive. I neglected to remove the bits of code that were added to my custom theme's Display.template.php.
Back in business---maybe I'll try again at a later date when this mod isn't so buggy. Good luck.
So will this mod work with SMF 1.1.3?
If you would get a test forum going you can answer such things for yourself and trial a mod before adding it to your live/production forum(s). Reading the topic prior to posting would be appreciated...you will see that other postings clearly answer your question.
Works just fine for me. Its like any other mod though, there are sometimes major conflicts between some mods and sometimes you either have to choose one over the other or do some major editing of your files.
I dont think I had any problems with this particular mod conflicting with any of the other 20 of so mods I'm running.
Thanks Rusty!
... Go crawl back under the rock you came from Satan!
Hey Guys,
Got notorious problems with my servers (provided by site5) - PHP scripts refuse to work - quite surprised that SMF works well though... BUT >>
Cannot install mods at all - the custom profile mod gets installed fine, runs through the normal process, and then there is no option for custom fields in 'themes and layout' - anybody got any pearls of wisdom?
My servers are REALLY funny about CHMOD 777 - get a 500 server error as soon as I start changing permissions.
When I create a Selection or a check box I am not getting the option to Force Input. Is the way it is suppose to be?
I get the option for both text and text input.
Thanks
Curt
is it possible to like add a field where users can put their paypal address then it would show in the posts as an icon or a link that is when clicked would direct them to a page they can send money to that person?
the kind of idea like the 'buy me a beer mod'
I'm using SMF 1.1.3
TP .983
Here's a list of mods installed:
Quote1. Joined Date 1.0
2. EmailFlash 2.0
3. Location Mod - Additional Maps 1.2
4. Location Mod - Who Flags 1.2
5. Location Mod 1.2
6. Monthly Statistics on Profile 1.0
7. SMF 1.1.2 Update Package1.1.2
8. Stars to Profile 1.0.1
9. TinyPortal 0.971
10. User Email System 1.1.3
11. Wrap Text Around Image 1.0
12. URL Popup 1.0
13. Custom Profile Field Mod 3.16
14. Display Images In Signatures only once per page 1.0
15. SMF 1.0.11 / 1.1.3 Update
16. TinyPortal .983
I've had it installed and working before. I switched themes, installed SMF/TP patches.
Now it doesn't show up in "Features and Options". It still shows up in the member's profile and upon registration (which is weird). I've added the necessary code to the TP theme I'm using.
I've tried to uninstall and I get this:
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 failed
7. Delete File ./Sources/CustomProfile.php
8. Delete File ./Themes/default/languages/CustomProfile.english.php
I've made sure the packages directory was set for 777.
Anything else that I'm missing? Any ideas as to what's wrong?
Thanks ahead for your time.
You need to reverse the process of a manual install
Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Quote from: Neorics on September 15, 2007, 03:32:11 PM
is it possible to like add a field where users can put their paypal address then it would show in the posts as an icon or a link that is when clicked would direct them to a page they can send money to that person?
the kind of idea like the 'buy me a beer mod'
any comment on this?
also is it possible to make fields that users can type their myspace, facebook, hi5 and friendster links then it would show in their posts profile?
The easiest way you can answer all your queries above is to set up a test forum of your own and try it...you should do this with all mods, edits, themes...anything...prior to adding it to a live/.production forum so it's something you should have in any case.
ok ditch my other questions, is there a way to edit the codes so that G-mods can edit the field and only a certain membergoup will be able to see and edit that field?
None yet available...you could ask to have it custom coded but you might well need to pay to get anyone interested.
Hi! This mod is exactly what I was looking for!
But I really need the checkboxes and dropdown!
I can only input text boxes. I want to add dropdown fields and checkboxes but to no avail.
I can see the dropdown menu but when I select it nothing. Tryed everything, clicking on it, clicking on it, then on settings - nothing. I always get only the text menu.
Please help me!
Quote from: TrueSatan on September 22, 2007, 07:03:40 AM
None yet available...you could ask to have it custom coded but you might well need to pay to get anyone interested.
nah i already have one... and i already found out how... tips and tricks really helped too
Is there way to assign custom fields only to a group? Not all the members, just to a specific group?
not currently.
Quote from: eleven0 on September 23, 2007, 07:20:26 AM
Is there way to assign custom fields only to a group? Not all the members, just to a specific group?
actually yah.. but in a different way
i made custom profile fields but not using this mod, i coded it manually with the help of this
http://www.unknownbrackets.com/tutorials/custom-profile (http://www.unknownbrackets.com/tutorials/custom-profile)
then i added this code which rockinaway and karlbenson helped me to make it work
if (($context['user']['is_admin']) || in_array(9, $GLOBALS['user_info']['groups']) || in_array(2, $GLOBALS['user_info']['groups']))
and walla a custom profile field only viewable by certain groups and admin
the number 2 in the in_array(2 correspond to the global moderator group and the 9 in the in_array(9 correspond to one of my custom group so basically keep adding this code to the above code to allow more usergroup to access that custom field
|| in_array(x, $GLOBALS['user_info']['groups'])
where x stands for the group ID
to check the group ID of the group, go to admin>membergroups then click modify on a group and check the ID on the link
I have terrible problem with modyfication Displaye.template :'(
Could somebody do for my becouse i don't know where put
this
<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();
I attach my file
Regarts :'(
Anybody help ? :'(
i suggest not using the mod....
adding a custom field is easy
http://www.unknownbrackets.com/tutorials/custom-profile
that tut is really user friendly... i know cause i actually learned from it and you can place the custom field to anywhere you want and what ever permission you want...
But I need this mod, For person who know this mod making changes for my should be easy. :D
Thats very good info, thanks, I never knew how easy it would be to add fields. And I have some very specific ideas that I've been wanting to do but couldnt find a mod anywhere close.
So my question now is, how do we add a numeric field?
I tried based on what was there and a little googling on the number input type but I failed, was getting parse errors and whatnot on the test site I was playing with.
Great mod, very concise! Got it working nice on my 1.1.4 running ApolloBB theme.
One request, as it can display in both post and profile can there be an option made to assign an image/icon for display in the post image section and also have it post as plain text. I've currently got HTML working fine for the before and after text to perform the creation of an image for the post display. But it also display as just as an image in profile view. Which isn't bad, but would like to have it operate like the web site does. Text in profile, image in post display.
I really like this mod, I just have one question. Where is the data for the extra fields stored? I assumed it was in the SMF database under the member table but that is not the case. The reason that I am asking is because I am trying to add the extra field that i put in the profile so that it appears under the Member List. Any help would be appreciated. Thanks!
the data is stored in the themes table.
This question has been answered at least 5 times in this very thread, including code to get the data from the table.
So there is no way we can search custom fields? I have a forum for students and I want to be able to search for those users who selected 'year one' or 'class 4'. Is there any way of doing this? Because I want to see all the users that are 'year one' for example and send them an email... that would be very easy if they could select from the profile a membergroup they want... but this mos isn't available yet...
Quote from: shumilica on October 04, 2007, 10:55:17 AM
So there is no way we can search custom fields? I have a forum for students and I want to be able to search for those users who selected 'year one' or 'class 4'. Is there any way of doing this? Because I want to see all the users that are 'year one' for example and send them an email... that would be very easy if they could select from the profile a membergroup they want... but this mos isn't available yet...
it is available...
Quote from: Kindred on October 04, 2007, 10:53:42 AM
...including code to get the data from the table.
this means that once you get the data, you can do anything you want to/with it...
Quote from: Neorics on September 27, 2007, 10:08:16 AM
adding a custom field is easy
http://www.unknownbrackets.com/tutorials/custom-profile
that tut is really user friendly... i know cause i actually learned from it and you can place the custom field to anywhere you want and what ever permission you want...
When I go to the link the very first box they ask me to look for.... nothing is in it? It says to add the "real name" stuff AFTER it.... After what? Theres nothing in the first section to "look for".
I have completely jacked up my forums trying to install this 1 simple custom field mod..... This stinks.
if you cant make custom profile fields using that tutorial then you should install the custom profile field mod because it's easier to add custom fields that way?
what kind of fields do you want anyways?
I have a question about what happens when SMF 2.0 is released if anyone knows.
2.0 will have the ability to create custom profile fields built in, right? So what happens to all the data that we have entered in these custom profile fields in the database, using this mod? I don't want to lose it all and have to get members to input it again.
Thanks
well, 2.0 deals with custom profile stuff differently...
so, either this mod gets updated for 2.0 or someone creates a "converter" to convert this mod's data into 2.0 format.
In the mod panel settings it says:
QuoteOnly allow admins to view field?
Is there a way to edit the code somewhere, so that a Global Moderator can see such a field too?
If so what do I edit and where?
Thanks in advance!
Quote from: ++STi++ on October 04, 2007, 10:36:56 AM
I really like this mod, I just have one question. Where is the data for the extra fields stored? I assumed it was in the SMF database under the member table but that is not the case. The reason that I am asking is because I am trying to add the extra field that i put in the profile so that it appears under the Member List. Any help would be appreciated. Thanks!
Quote from: Kindred on October 04, 2007, 10:53:42 AM
the data is stored in the themes table.
This question has been answered at least 5 times in this very thread, including code to get the data from the table.
OK, so i figured out how to get at the data.. But I am having a problem grabbing a custom field and displaying it on the Members List still. I have searched this thread and found nothing related to that, just info on how to grab the code in general. The Member's List uses some pretty complex coding (for me anyway... and I have pretty good php knowledge) and I haven't been able to get it to work... Anyone gotten this to work?
I just installed SMF 1.1.4 and then installed this MOD, everything tested "successful" and I hit the install but after that where do I find the actual MOD to add fields?
I dont see anything in the Admin Panel or any where else that will link me to this MOD.
After I installed tis MOD I trien installing some others but keep getting "An Error Has Occurred!
You cannot download or install new packages because the Packages directory or one of the files in it are not writable! "
Any help would really be appreciated.
Thank you in advance.
features and options
what mod are you trying to install?
You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.
anyone care to share a 1.1.4 version?
it installs fine under 1.1.4
either change the install.xml file or use emulate_version...
Quote from: Kindred on October 08, 2007, 09:17:39 AM
well, 2.0 deals with custom profile stuff differently...
so, either this mod gets updated for 2.0 or someone creates a "converter" to convert this mod's data into 2.0 format.
thanks Kindred
Thanks for the help, I found it and its working great.
Hi,
I installed the mod and when I try to enter the "Features and Options" I get this error:
QuoteFatal error: Cannot redeclare modifyprofilesettings() (previously declared in C:\xampp\htdocs\smf\forum\Sources\ModSettings.php:321) in C:\xampp\htdocs\smf\forum\Sources\ModSettings.php on line 331
Any help is appreciated
you have apparently installed the mod twice.
You can remove the duplicate function in modsettings.php, but you will probably have additional duplicate code scattered throughout.
Quote from: Kindred on October 11, 2007, 01:15:58 PM
you have apparently installed the mod twice.
You can remove the duplicate function in modsettings.php, but you will probably have additional duplicate code scattered throughout.
Yes you were right. In ModSettings.php there were 2 extra from this:
function ModifyProfileSettings()
{
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
CustomFieldSettings();
}
But I installed the mod as I always do. I don't know why it happened.
Hi,
This is not about an error message, but it does appear to be an error of some kind. I have installed your mod in version 1.1.4. The installation went fine, but I cannot find the mod in "Features and Options". It isn't there! I did a search for this one and found nothing.
The only thing I did 'differently' was to add the package to my server using SmartFTP. But as I say, it then installed perfectly. No error messages. Nothing!
Can you help?
Thanks,
Dom
1- are you running the default theme?
2- are you running in English (NOT English UTF-8)?
Hi,
I changed the language to "English" and that fixed it.
Thanks,
Dominic
i have same problem.
Do you have TR package for this mod? Or any idea to manage it English in Turkish board?
If you mean will it work with Tiny Portal (TR??) yes it will...no different package is needed. By default it uses English as its language...to use in a Turkish board you would need to translate the mod...specifically CustomProfile.english.php
I mean Turkish. Thanks, I will try to modify CustomProfile.english.php
Leave the existing file (unedited) in place when you're done and add a new CustomProfile.turkish.php containing your translation.
Thanks TrueSatan. I've done successfully. But I have one more question. How can I list specific field which I created in all members list as a column?
I'm scratching my head trying to work out exactly what you're asking...you've, presumably, gone to ACP>Features and Options>Custom Profile Fields all the controls for the mod are there and all available options are accessed via that page. You can go to the settings of each field you have created via that page and set how and where it shows.
No no no :) Sorry. My fault.
I'll try to explain another with words. If I couldn't express what i mean again I will show on screenshot. :)
I want to add "custom profile field" column to VIEW ALL MEMBERS in MEMBERS section. Like ID, Username, Display name...
?
he wants to list the custom field data in the memberlist.
this is MUCH more complicated than just adding a field.... you're dealing with screen widths, tables and columns...
Just installed this on a test board I am working on. Board was a clean install with TinyPortal. There were no errors on install and the mod works great.
I would like to point out though that it does get tedious if you have a large amount of custom fields and need to move one from the bottom to the top.
One thing I am looking at (I hope this is not what Champwarez was just asking about)... I have all of my custom fields so that only the admin can see and change them... and I am looking to "link" a member to another member. For example Joe1 signs up and I want to link him to Fred22... kind of a mentor thing... so I want to create a dropdown box in a custom field so I can just choose a current member...
Am I confusing on that?
yah... but you might be talking about about referral? if you are there is a mod for that...
you are looking for buddies... which already exists.
but even if you are looking for something more, doing what you are describing goes beyond what this mod can easily do and would require a fair amount of recoding.
Thats cool... this mod is still very useful to me in the fact that I needed to add quite a few custom fields and it installed with no problems at all...
Thank you very much for your time on this....
Really like this mod!
Would it be possible add a feature to force users to enter field data at login when a new field has been added with force input for show field on registration?
Is there a way to get rid of the colon before a field on posts?
@ Delsa
Force on registration is already part of this mod...go to ACP>Features and Options>Custom Profile Fields>Settings and you will find a drop down option for it. Force on login is not available at this time.
@ trekkie2444
You appear to have either put the colon in inadvertantly as part of the field settings or there may be a problem with your installation of the mod...perhaps in Display.template.php Please check your mod edits to see if it has edited that file correctly and there isn't an extra colon there just before the code the mod adds.
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 failed
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
What can I do? I have this mods installed: Karma Description Mod, Referrals Mod, View Only Boards, Karma On Memberlist, SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update
it looks like one of the other mods has already modified the target code in display.template.php
So... now that you know this..
finish the install
go to sleepycode.com and plug in the mod install to the parser, then manually make the changes to display.template.php
No no no, I want to get rid of the colon that is naturally there, for example: Custom member label: (label here). I don't want to have something before the label itself, in this case it would be the Custom Member Label part, but if I do that, then the semicolon is still there. How do I get rid of that?
Quote from: Delsa on October 15, 2007, 01:44:36 PM
Would it be possible add a feature to force users to enter field data at login when a new field has been added with force input for show field on registration?
Quote from: TrueSatan on October 16, 2007, 04:34:17 AM
Force on registration is already part of this mod...go to ACP>Features and Options>Custom Profile Fields>Settings and you will find a drop down option for it. Force on login is not available at this time.
Right... have it set, but was hoping maybe it could be changed to force existing users to update their profile when they login after a new field is added with that setting. Any chance of getting something like that?
that is not part of the mod as designed...
So, if you want it, you'll have to code it yourself.
First, how can I insert a blank line between the "Squad" section and the "PSN ID" section in the Custom Profile mod??
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.illgamers.com%2Fimages%2Fprofile1.jpg&hash=1e49996b11a073348fc06975e511b2bfe7ac4e49)
Also, can a image like a small military ribbon be used in that field after "Squad"? If so, how because I have tried everything to get a image to appear there.
And second, in the "PM" section only the mod repeats itself. It doesnt do it out on the forums but when reading my PMs its does (as shown below). Any ideas?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.illgamers.com%2Fimages%2Fprofile2.jpg&hash=9afb00a0f9086f4c6c1f17da6f74daf6a9b959fb)
looks like the mod got installed twice in the PM template.
As for the ribbon... you can try using the "show after" section to add an image tag...
Look, I don't know WHAT is going on here, but I have narrowed down my issue to this mod. How do I directly contact the creator? Or do I? This thing has totally crapped out my board and I'm MAD. >:( If I uninstall this, I get this strange error on ALL of my members' posts - the posts aren't there, just this stupid error. Part of my admin panel is gone as well and I can NOT install my backup as a result.
Please calm down! This mod is used by a great many other members and they haven't, any of them, reported the problem you have reported thus it is highly improbable that your forum problems can be the fault, or result of, using this mod.
SMF advise you to backup your files and database prior to installing or uninstalling any mod or theme...you seem to be saying that you have done so. You do not need to use your forum admin panel at all to do a restore from these backups so that part of your bug report makes no sense.
The creator of this mod is unavailable at this time and, in any event, phrasing your bug report as you have wouldn't encourage anyone to be helpful to you....that said SMF staff are here to help you and so are other members such as myself.
If you did take a backup of your files then using ftp simply restore from it...likewise using phpMyadmin you could restore from a backup of your database...restoring from backup never involves your forum control panel.
If you don't have backups you may need to first backup your forum files then, from the latest SMF install package copy in new versions of your files save for Settings.php and Settings_bak.php in your forum root...this will give you a completely fresh set of files with no mods of themes installed.
Depending on your current SMF version you may need to update your database to the latest configuration...if you will advise me if you weren't using SMF 1.1.4 I will tell you how to do that but if you were using that SMF version it shouldn't be necessary.
The most likely reasons for your current problems may well be due to preexisting problems in your forum...
Quote from: trekkie2444 on October 16, 2007, 12:31:33 AM
Is there a way to get rid of the colon before a field on posts?
I'd also like to know how to get rid of this. If you don't name the profile field it will still show the ":" before your image or text for that field.
I had a quick look through the template, but my "noobness" couldn't allow me to figure out exactly where to get rid of it.
Any help here is appreciated!
I have installed this mod successfully. My fields show up on the Profile Summary page just fine, where they should be, etc. I've read until my eyeballs hurt, and haven't yet seen the successful answer to this ...
I am trying to create a page similar to the member list, but that ONLY lists the member name and the custom fields. I have added the code to SSI.php as mentioned quite a ways back, but simply cannot get the fields to show. I have renamed them, so I'm not using the CP1, CP2, etc.
I should note that I am using TinyPortal, and have no other mods installed. Any assistance would be appreciated.
Adariel:
This might be helpful (of course replacing CP1,CP2 with your names):
http://www.simplemachines.org/community/index.php?topic=196666.msg1252517#msg1252517 (http://www.simplemachines.org/community/index.php?topic=196666.msg1252517#msg1252517)
sounds perfect ... I'll look into it :)
edit:
after poking around some more, it looks like it does the same thing as an article can with TinyPortal, so while it's cool and useful, it's kinda redundant for my site.
I guess what I'm needing is the code itself ... I can do some basic PHP but I'm still learning a lot about databases and most of the SMF security stuff simply baffles me.
I've been poking around in CustomProfile.php and Profile.php, trying to pull from them and consolidate what I need without having a ton of extra code :) I had tried to use the code that was posted here many pages ago, but while $context is there, $context['member']['options']['(CP Field ID)'] doesn't show anything.
Quote from: TrueSatan on October 18, 2007, 09:17:33 PM
Please calm down! This mod is used by a great many other members and they haven't, any of them, reported the problem you have reported thus it is highly improbable that your forum problems can be the fault, or result of, using this mod.
SMF advise you to backup your files and database prior to installing or uninstalling any mod or theme...you seem to be saying that you have done so. You do not need to use your forum admin panel at all to do a restore from these backups so that part of your bug report makes no sense.
The creator of this mod is unavailable at this time and, in any event, phrasing your bug report as you have wouldn't encourage anyone to be helpful to you....that said SMF staff are here to help you and so are other members such as myself.
If you did take a backup of your files then using ftp simply restore from it...likewise using phpMyadmin you could restore from a backup of your database...restoring from backup never involves your forum control panel.
If you don't have backups you may need to first backup your forum files then, from the latest SMF install package copy in new versions of your files save for Settings.php and Settings_bak.php in your forum root...this will give you a completely fresh set of files with no mods of themes installed.
Depending on your current SMF version you may need to update your database to the latest configuration...if you will advise me if you weren't using SMF 1.1.4 I will tell you how to do that but if you were using that SMF version it shouldn't be necessary.
The most likely reasons for your current problems may well be due to preexisting problems in your forum...
First of all, my apologies for being abrupt the other night.
Secondly, I DID make a backup and I'm aware that this has nothing to do with my admin panel issues, however, the backup won't install BECAUSE of whatever the issue is.
Thirdly, I will make sure my co-admin sees this as well to see if we can't get it resolved. I'm sure the mod is good, but I'm 99% sure it's my issue. It's highly likely that it's an install conflict with another mod I have installed.
Fourth, is there SMF staff that I can contact to come to my board, access my admin rights and help me out here? If so, could you direct me to the proper place to request this?
Apologies fully accepted.
Restore from a file backup to a position prior to installation of the mod will not be affected by the mod so if you can't get the forum to work with such a restore you may assume that it is due to problems with your forum files that had nothing to do with this mod.
SMF staff don't take on work on your forum for you unless you are a Charter Member and even then such support has limitations (please see the Charter Membership offer pages for exact details.) The SMF staff are volunteers too and they have time constraints on them as do we all. A staff member may, in unusual circumstances, volunteer to take on such assistance but it's very rare and done on an ad hoc basis. If a member of staff happened to see this discussion, chose to get involved and then wished to offer to do such work that would be the normal way such things might happen but as I said it would be a rare event. Charter Members do get one on one forum support from staff members over and above these more public forums.
If you cannot do a restore to get your forum working my advice to you would be to make sure that you secure your file backup then download the latest SMF forum installation package and from it replace all existing files and directories (save for attachments directory and Settings.php and Settings_bak.php in your forum root) this will not change the posts etc stored in your database but it will give you a fresh set of files. You can then install afresh your chosen mods and/or themes. If you were not using the latest software you might need to use upgrade.php to bring your database up to date but if that is the case please say so and I'll give you advice regarding it at that point.
Quote from: TrueSatan on October 20, 2007, 08:50:32 PM
Apologies fully accepted.
Restore from a file backup to a position prior to installation of the mod will not be affected by the mod so if you can't get the forum to work with such a restore you may assume that it is due to problems with your forum files that had nothing to do with this mod.
SMF staff don't take on work on your forum for you unless you are a Charter Member and even then such support has limitations (please see the Charter Membership offer pages for exact details.) The SMF staff are volunteers too and they have time constraints on them as do we all. A staff member may, in unusual circumstances, volunteer to take on such assistance but it's very rare and done on an ad hoc basis. If a member of staff happened to see this discussion, chose to get involved and then wished to offer to do such work that would be the normal way such things might happen but as I said it would be a rare event. Charter Members do get one on one forum support from staff members over and above these more public forums.
If you cannot do a restore to get your forum working my advice to you would be to make sure that you secure your file backup then download the latest SMF forum installation package and from it replace all existing files and directories (save for attachments directory and Settings.php and Settings_bak.php in your forum root) this will not change the posts etc stored in your database but it will give you a fresh set of files. You can then install afresh your chosen mods and/or themes. If you were not using the latest software you might need to use upgrade.php to bring your database up to date but if that is the case please say so and I'll give you advice regarding it at that point.
Thanks for the info! Another admin did the backup (he has done this for a while) and could not get it to restore. It was the only backup we had as we just started this board last week. I will pass the link to this thread onto him. I do know that we have the latest version of SMF installed. I also know that when I uninstall this particular mod is when everything goes wacky and we can't read posts. (That error replaces all posts in all threads.) I have deleted almost all other mods and it keeps coming back to the issue being with this one.
It's Saturday night, so my other admin isn't on, but like I said, I'll direct him to this thread and see if we can't get it worked out. I don't know what a charter member is, but I'll go look for that info to see if I can make sense of it.
thanks again!
The Charter Membership details are on this link:
http://www.simplemachines.org/charter/ (http://www.simplemachines.org/charter/)
Perhaps your other admin is getting confused between database backup and files backup...you need to backup the database via the SMF ACP (or you can do it via phpMyadmin if you so wish or via the Java SMF Backup tool offered in the SMF download pages.) On top of (in addition to it) you need to backup your files...do this by ftping them to your local machine. Restoring files is simply a matter of ftping the backup to the server.
A complete replacement of the files looks to be your best bet particularly as you say you have few mods installed.
Once you've done that please take the following steps:
You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.
You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.
Hopefully that should get your forum into a good state again.
excellent mod but will be possible that some others membergroups can edit the new field and not only admin ?
Quote from: moraidh on October 08, 2007, 03:29:08 PM
In the mod panel settings it says:
QuoteOnly allow admins to view field?
Is there a way to edit the code somewhere, so that a Global Moderator can see such a field too?
If so what do I edit and where?
Thanks in advance!
Any ideas, anyone?
Quote from: moraidh on October 21, 2007, 01:25:08 PM
Any ideas, anyone?
yah, dont use the mod and add the field by your self to allow custom permissions for every membergoup
Firstly - Great Mod.
Can you tell me though where the data the user enters gets stored. I looked in the smf_messages table in the database but can't see it in there. If I want to reference this data later on in bulk across all users where do I look?
PLEASE READ PREVIOUS MESSAGES AND/OR USE SEARCH!
This has been mentioned at least 10 times in this very thread!
the custom profile data is stored in the themes table... there are 3 or 4 posts that detail how to get to that data in terms of code and database...
I am so new to this.. I installed it via the Package Handler system on the SMF Admin panel.. I am used to PHPBB, so now what code do I have to use in order for this to work? Because i installed it, and it said installed correctly, however I can't find where to access this program to add more lines to profiles.. :-/
Quote from: Kindred on October 22, 2007, 08:43:08 PM
PLEASE READ PREVIOUS MESSAGES AND/OR USE SEARCH!
This has been mentioned at least 10 times in this very thread!
I have extremely limited bandwidth limits overseas until I get home, so searching through 76 pages is near impossible...
1 page back...
Quote from: TrueSatan on October 10, 2007, 02:49:16 PM
You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.
Quote from: GWeber on September 04, 2007, 10:17:14 AM
O, I found it!
global $user_profile;
if (isset($modSettings['enable_CP1']))
{
$memID = $context['user']['id'];
loadMemberData($memID);
//print_r($user_profile);
echo "<p>Value is: <b>" . $user_profile[$memID]['options']['CP1'] . "</b><p>";
}
I am very grateful to have found this so that I can finally display something in a block, but now is there a way to edit this field, in the TP block?
echo '<input type="text" name="', $user_profile[$memID]['options']['CP1'],'" size="10" value="', @$user_profile[$memID]['options']['CP1'], '" />';
So I'm trying something like this, tried a few variants, and its not working, in the TP block for changing the data any ideas?
you need to set the gloabls first or it wont recognize which file you're trying to access
That code I mentioned allowed me to display the data so I think the global is defined with global $user_profile;
Now I just need to find a way to change the data instead of just displaying it.
Is there a way of making a field which is like the passwords fields?
With the " **** "
Thanks
Is this supposed to work in 1.1.4 because nothing shows up in "features and options"
Quote from: zunescene on October 28, 2007, 04:16:55 PM
Is this supposed to work in 1.1.4 because nothing shows up in "features and options"
Working for me.
I repeat my question:
Is there a way of making a field which is like the passwords fields?
With the " **** "
Thanks
not as designed... no
I would like to use this mod. I am currently using SMF 1.1.4 and when I try to download it from the package manager on the administrator/package managers/download packages I get the following error.
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
I see others have it working with SMF 1.1.4. I do not have any other mods installed and I am using the default theme. I would attempt to manually install this but, I have no experience in this area and the error message is suggesting that manually installing might not be the correct solution.
So, my question is how to get this installed correctly using SMF 1.1.4
Thank you
~lazman
I installed it on a 1.1.2 forum no sweat but it wont show up for me in my 1.1.4 forum. Both use dilbert-mc.
I just installed and got this mod working perfectly.
How I got it to work was downloading it from here:
http://custom.simplemachines.org/mods/index.php?mod=319 (http://custom.simplemachines.org/mods/index.php?mod=319)
Then I used the admin section to upload it and install it.
It works great!
~lazman
Hello,
I installed this great Mod on SMF 1.1.4 and seems to work...Great!
I'd like now to be able to translate the options and text field titles created for each option for all the languages of my forum (Italian and English).
Now I can create only custom fields for one language (for example "Select your country" in English and not in Italian).
Do you know how to custom titles and options depending on language selected (in my case, in Italian too)?
Thank you vey much, this problem is crucial for me!!!
Please leave in place and produce a translated version of CustomProfile.english.php then name it according to the translation and add it to your forum.
Quote from: zunescene on October 29, 2007, 12:37:13 PM
I installed it on a 1.1.2 forum no sweat but it wont show up for me in my 1.1.4 forum. Both use dilbert-mc.
I'm having the same problem. Can anyone give me an idea what is wrong? I got it to apply, but can't see the tab. I rolled back to the default theme and it still doesn't work.
Thank you for any help you may give.
Quote from: TrueSatan on October 30, 2007, 06:11:31 AM
Please leave in place and produce a translated version of CustomProfile.english.php then name it according to the translation and add it to your forum.
Thank you, but this is not my problem. The problem is that I can't translate the field name created!
For example, if I create a custom field in English named "Country", with a dropdown selection in registration, I can't translate it depending on language, that is a user that select French language will find the same field "Country" not translated in French.
This is a little bit annoying, is it? So Custom Profile Filed Mod is suitable only for one-language forums? I hope no, probably it is possible to set something but I can't do it.
Thank you for your help !!!!
There's no feature in this mod that would get you an automatic translation but might it not be a reasonable compromise to name the field <English name/French name> thus making it offer both at once? Other than that it would require custom alterations to the mod to do what you have in mind and you might well need to offer financial inducement (money) to get somebody to do the work.
Quote from: TrueSatan on October 31, 2007, 09:02:51 PM
There's no feature in this mod that would get you an automatic translation but might it not be a reasonable compromise to name the field <English name/French name> thus making it offer both at once? Other than that it would require custom alterations to the mod to do what you have in mind and you might well need to offer financial inducement (money) to get somebody to do the work.
Thank you for your reply. I think your suggestion is not suitable to my case because I have in mind to make a multi-language forum (not only 2 languages).
How to do the offer to make the modifcations I need? It should be nice to make also Custom Profile Fields linked themselves by a parent mechanism.
For example, if I select "France" as country (and this would be my "parent" selection), it should be nice to link this selection only with French regions to be selected in another filed(e.g. dropdown list of French regions such as Rhones-Alpes, Provence-Alpes-cote d'Azur, etc.).
Do you think it should be possible?
Thank you
What you have in mind is possible but possible doesn't imply easy or quick or inexpensive. You would appear to be likely to need multiple arrays of options the number depending on the number of countries you wish to cover...it could land up being a large file, or files, and a lot of work for whomever took on such a project.
Initially, I would suggest, your offer of paid additions to any mod ought to go to the mod author as it seems to me only fair that the person who provided the mod to be "enhanced" should get first refusal of any paid work flowing from it, then, providing the mod author declined such work, it might be offered on the following link:
http://www.simplemachines.org/community/index.php?board=50.0 (http://www.simplemachines.org/community/index.php?board=50.0)
Quote from: TrueSatan on November 02, 2007, 06:49:44 AM
What you have in mind is possible but possible doesn't imply easy or quick or inexpensive. You would appear to be likely to need multiple arrays of options the number depending on the number of countries you wish to cover...it could land up being a large file, or files, and a lot of work for whomever took on such a project.
Initially, I would suggest, your offer of paid additions to any mod ought to go to the mod author as it seems to me only fair that the person who provided the mod to be "enhanced" should get first refusal of any paid work flowing from it, then, providing the mod author declined such work, it might be offered on the following link:
http://www.simplemachines.org/community/index.php?board=50.0 (http://www.simplemachines.org/community/index.php?board=50.0)
Hi, do you know if SMF 2.0 will have the features I need by default? I read somewhere that Custom Profile Fields will be released as default, but I don't know if there will be the mechanisms I need (language depending and parent selections).
When SMF 2.0 will be released to the public?
Thank you
I don't think anyone can give you a fixed date for release of SMF 2.0 as it's in beta now and thus if bugs were found they would be fixed prior to full release...it depends on what problems are found and how long fixing them may take.
I haven't had a close enough look at it to be able to answer your query regarding the details of its version of this mod...maybe a Charter Member who uses it or a member of the SMF staff might know...though I would be surprised if it included the functionality you have in mind.
It might well be sensible for you to wait and see what SMF 2.0 offers and have any custom code written for that rather than for this mod...better use of your time and money I would have thought.
ok, thank you for your kind reply.
I think I will wait for SMF 2.0 in order to see all the features (before asking for a paid assistance).
Now, I will use only one language with Custom Profile Mod.
Best regards
no... the custom profile fields feature in 2.0 does not work as you are requesting...
What you are asking for is actually a fairly major change...
Quote from: dewdrop60 on October 30, 2007, 11:02:02 AM
Quote from: zunescene on October 29, 2007, 12:37:13 PM
I installed it on a 1.1.2 forum no sweat but it wont show up for me in my 1.1.4 forum. Both use dilbert-mc.
I'm having the same problem. Can anyone give me an idea what is wrong? I got it to apply, but can't see the tab. I rolled back to the default theme and it still doesn't work.
Thank you for any help you may give.
Any ideas? Anyone?
Start by making sure your language settings are as they should be:
You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.
See if the problem persists and report back please.
Quote from: Kindred on November 02, 2007, 09:51:18 AM
no... the custom profile fields feature in 2.0 does not work as you are requesting...
What you are asking for is actually a fairly major change...
Another problem found.
I created a dropdown list of selectable items (e.g. Countries). The first country is visible (Afganistan) and, instead, it should be better if the first field should be empty and non selectable. By now, it is not possible (if I leave the first item empty, the dropdown list I created disappear (?)).
I would like to leave the first fileld of the list empty and not selectable: is it possible? How?
Thank you
enter a "space" or a "dash" as the value for the first option...
no, it is not suitable to my needs, because one could select the "space" or the "dash" and going on with the registration process (but I would like an error message appears to force the selection of the other items before completing registration).
Thank you, however
then the answer is no... the system does not (by default) do what you are asking.
Quote from: TrueSatan on November 02, 2007, 12:42:34 PM
Start by making sure your language settings are as they should be:
You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.
See if the problem persists and report back please.
In my server settings English is the only option.
The Enable User-selectable Language was checked so I unchecked it.
I still don't see the tab to be able to put in the Custom Field.
OK...using the default theme please check all the files the mod adds and edits and make sure that all edits etc are in place.
Quote from: TrueSatan on November 05, 2007, 10:33:59 AM
OK...using the default theme please check all the files the mod adds and edits and make sure that all edits etc are in place.
Set it to default theme, still no tab.
Mod Name Version
1. Custom Profile Field Mod 3.16
List Files:
1. CustomProfile.english.php (2090 bytes)
2. CustomProfile.php (28591 bytes)
3. fixpostsbug.xml (841 bytes)
4. modification.xml (7359 bytes)
5. package-info.xml (1581 bytes)
6. readme.txt (200 bytes)
7. tablanguageissue.xml (759 bytes)
Yes but what I'm saying is that you need to review the files this mod edits when you install it and ensure that all the edits are correctly in place and also ensure that the files it adds are in place.
Follow the process of a manual installation and check that everything matches what should have happened...the following links give details etc:
Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
I've added this to my newly upgraded 1.1.4 and all installs and works fine except when I browse to Features and Options in the Admin panel (index.php?action=featuresettings) it just gets a blank page. Any ideas? Nothing else appears to be broken.
I'm just gonna try the package parser *eek* :D
Do I just do the theme files or all of them? I'm using the default theme :)
As per oft repeated instructions...the first things to check and, if needed, put right:
You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.
You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.
If that doesn't sort out your problem then use the package parser to output all files edits and check that all are properly in place and all files the mod adds are also in place.
Bug Report :o
First lemme say I love this mod and it has enabled me to actually launch my site with the extra little bits that make it go.
Now ... I have noticed that when I move fields up or down in the listing, the descriptions get overwritten by each other. I notice this most often when I've created a new field and move it upwards ... all the ones that it passes by now have it's description in theirs.
Not something that makes or breaks the mod, but a fine detail that I (being a perfectionist) would want to know about if it was mine.
I have a question, I installed the custom profile mod and I would like to know if it posible to make a call to bring an image to the display.template depending on the option the user picks on their profile. for example if they pick Real Madrid in the display.template (in his posts) the real madrid badge will show.
grettings from México...
@ RaYo
Perhaps the Country Flags mod might, in a modified form with the array it adds to subs.php suitably edited and appropriate new flags added, be more suited to what you have in mind?
I asked this question before and find no answer. Then I searched so many times and I found this solution but I miss something.
I've added <td class="windowbg2">', $member['options']['CP1'], '</td> to managemembers.template.php but it doesn't work. Column displays nothing.
I think I have to add another code but what is?
QuoteI've added <td class="windowbg2">', $member['options']['CP1'], '</td> to managemembers.template.php but it doesn't work
You probably got that from one of threads on how to display the custom profile field in the memberlist.
The problem here is that you're trying to display it in the Manage members, which is different than the memberlist. If you just enter the code :
<td class="windowbg2">', $member['options']['CP1'], '</td>
, you'll probably get an undefined index error in your forum error log as the ManageMembers.template.php file doesn't know what that variable is.
I forget specifically how I added the the custom profiles in my memberlist, but I think I just replaced some of the messenger fields...
but this is an old reply from the mod author regarding what you wrote:
http://www.simplemachines.org/community/index.php?topic=92854.0 (http://www.simplemachines.org/community/index.php?topic=92854.0)
Again, that's for Sources/Memberlist.php -- you need to modify Sources/ManageMembers.php to do the equivalent and get the variable loaded before attempting to display it...
Hi
I have a brand new installation of SMF 1.1.4 running the smf default theme and have just installed the customprofile3-16 mod.
The installation was successful according to the Install Package Dialogue
However, when I go to 'Features & Options' there is nothing to view different from the default.
Any ideas what I need to do?
Many thanks
Change English UTF-8 to English....
This has been mentioned many times here in this thread...
Quote from: Soulgirl on November 05, 2007, 12:14:32 PM
I've added this to my newly upgraded 1.1.4 and all installs and works fine except when I browse to Features and Options in the Admin panel (index.php?action=featuresettings) it just gets a blank page. Any ideas? Nothing else appears to be broken.
I'm just gonna try the package parser *eek* :D
Do I just do the theme files or all of them? I'm using the default theme :)
Are you getting a solid white page? Or are you seeing the SMF page but there is nothing where the Custom Profile Fields should be shown?
If it is a solid white page there is either an error which is not being displayed or you need to increase your memory limit.
Check the Forum Error Log for the error. If you do not see it there you can add to your .htaccess file
php_vale display_errors on
Or to your php.ini file.
display_errors on
View the page again and see if you see an error. If no error it is probably a memory_limit issue. You could check the web server error log or try changing it. The default php install is 8M, but maybe your host lowered it. I would try 12M.
php_value memory_limit 12M
or
memory_limit 12M
what is a custom profile fields?
Custom Profile Fields is a mod by winrules which easily lets you add an unlimited number of new fields to the profile page and registration page.
For example if you had a car site then you could make custom fields for make, model and year... and then be able to display them in other areas of the site... for example the profile screen or in posts...
Great thanks
Hi
I have install "Custom Profile Field Mod 3.16 " and its sucess.. BUT now i dont can find in the panel were i can use this mod.. i cant find it in admin setup. Were is that meny?
ACP>Features and Options>Custom Profile Fields
This mod doesn't work. >:(
Quote from: TrueSatan on November 16, 2007, 08:52:00 AM
ACP>Features and Options>Custom Profile Fields
I installed this, and I do not see "Custom Profile Fields" in there at all. Could it be the theme I am using?
Yes...almost all mods only install automatically into the SMF Default theme all other themes require you to manually install each mod into them...the following may help:
Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
I fixed it. It was my server language. It had to be in "english".
Now that its fixed, I have one more question though...
I run a high school alumni site, and would like to have new members "forced " to choose three school names, and particular year they graduated in. How would I go about setting that?
Again, I am brand new to this mod so please forgive my ignorance.
Thank you!
ACP>Features and Options>Custom Profile Fields>Show on Registration>Force Input
I'm using this like this
Text before:
[url=steam://friends/add/%1][img width=16]http://csmovie.hu/s/csmovie/f/fop-zsoltee/2/steam_icon_48x48.gif[/img]
Text After:
[/url]
So to show you an example, I'd see somthing like this in the user's posts:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcsmovie.hu%2Fs%2Fcsmovie%2Ff%2Ffop-zsoltee%2F2%2Fsteam_icon_48x48.gif&hash=ac9e4dec2789cd3b1c3304d9b044a6e77d57a7d5)76561197970878663 (http://steam://friends/add/76561197970878663)
I'd LOVE to be able to simply replace the output of the field with the image.
Is there a way this Mod could be modified to allow this functionality?
I just installed this mod without any problems, but when I created a custom field, it isn't displayed on a user's profile. I'm using SMF 1.1.4. Can anyone help?
Do you use a Custom theme or the default theme? If you use a custom theme you will be requiring to make some edits to the template(Search around)
I've got the mod installed and works... but (I know ::)), how do I get these new fields to display in member's posts? I've tried using both options "Show next to images" and "show under post count", and both do not work.
I am using a custom theme too.
Quote from: Dragooon on November 19, 2007, 08:20:15 AM
Do you use a Custom theme or the default theme? If you use a custom theme you will be requiring to make some edits to the template(Search around)
I'm sorry, was your quote just repeating the question?
If so, yes, I am using a custom theme, but have no clue how to manually edit them. "Search Around?" I'm sorry, I do not understand your directions. But I do appreciate the help! Thank you!
:)
@ Kirok
Top RHS corner of each page here shows a search box...Dragoon was suggesting that you use it to find the information you need which has been posted countless thousands of times on these pages.
For the record I'll list it out yet another time:
Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Thank you. :)
This mod can be use in SMF 1.1.4 ????
Hey guys and gals, go easy I'm a newbie :P
I successfully uploaded this mod. but when I go to features and options I don't see anything pertaining to custom fields or editing them.
Thanks Dan
I guess I'm a newbie ok. Theres upload and then theres is install the mod.
Duh :-\
Quote from: Extreme_One on November 17, 2007, 03:04:16 PM
I'm using this like this
Text before:
[url=steam://friends/add/%1][img width=16]http://csmovie.hu/s/csmovie/f/fop-zsoltee/2/steam_icon_48x48.gif[/img]
Text After:
[/url]
So to show you an example, I'd see somthing like this in the user's posts:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcsmovie.hu%2Fs%2Fcsmovie%2Ff%2Ffop-zsoltee%2F2%2Fsteam_icon_48x48.gif&hash=ac9e4dec2789cd3b1c3304d9b044a6e77d57a7d5)76561197970878663 (http://steam://friends/add/76561197970878663)
I'd LOVE to be able to simply replace the output of the field with the image.
Is there a way this Mod could be modified to allow this functionality?
bump :)
Quote from: dan1948 on November 21, 2007, 10:23:09 AM
Hey guys and gals, go easy I'm a newbie :P
I successfully uploaded this mod. but when I go to features and options I don't see anything pertaining to custom fields or editing them.
Thanks Dan
The most common reason for this happening is that you language is set to English UTF8... change it to just English...
...Yes Smasher but it would also be prudent to advise the following:
ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.
...so as to stop the forum members changing to another language and again derailing the mod.
Sorry to ask a silly question, I have tried several things but with little to no PHP experience I'm yet to be successful.
I'm using the ultimate profile mod and would like to have the data from this mod display there. I ask in that mods topic but didn't get very far. Any help is greatly appreciated.
Is there any chance to limit size of fields?
one thing that needs to be added to this is the ability for the Only allow admins to edit and view field to be moved from where it is, over to membergroup permissions..
as some forums, the admin wants to keep control, but does not want to deal with the day to day... so it would be ideal to assign it to a lower membergroup to view or edit the field.
i have installed Custom Profile Field Mod
now I'm sure i have done something wrong but don't no what
i get 2 fields the same
i only set one up iders?
I added the Profile "Nickname"
Is there a way to put this in the admin>>members
or the usual member list?
Thanks
What does this mean
Text to display before field (BBC is ok if enabled above)
Text to display after field (BBC is ok if enabled above)
thanks
what do you think that those descriptions mean? ??? Those descriptions are about as clear as anything else I would tell you.
As for including on the memberlists... try using search? The method (which involves coding on your part) has been discussed at least 10 times in this very thread...
I love this mod in conjunction with the user cp mod, and JovanT's ultimate profile mod. The authors of these mods are all pure genius!
Right i will try again just encase you didn't guess I'm new to this
I have installed the Custom Profile Fields mod
Now when I add a new field in the admin panel
I get two identical fields
When I set the forum up I got it all working then imported the data
But the mod had gone so I reinstalled it
I have tried uninstalling it and re installing but nothing
So I'm stuck and don't know what to do next
HELP PLEASE
Stephen
You would appear to have duplicate areas of code relating to this mod, no doubt due to your repeated installing and uninstalling etc. You will need to go through the process of a manual installation checking to see that the edits this mod seeks to make are in place and are not duplicated...correct as needed.
Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
hi all.
im using the custom profile mod. and i have created a input that takes an user id and places it into a url but the link is displayed as an image.
this is my script:
<a href="http://aaotracker.com/usertracker.php?userid=%1"><img src="http://test.ihf.lp.pl/forums/vacancies/images/aa1.bmp" width="20px" height="20px"></a>
if you look in the attached image. i have set it so the it has been postitioned next to the profile, msn, pm etc pictures. but there is some text next to it "10574"
my question is how do i get rid of this writing?
i should probably mention that with the mod there is an ability to have text appear before or after the input.
i have the code set up so that it appears before the input so i guess that that is why you get a double input
use the before and after fields...
<a href="http://aaotracker.com/usertracker.php?userid=
and
"><img src="http://test.ihf.lp.pl/forums/vacancies/images/aa1.bmp" width="20px" height="20px"></a>
instead of one field... (I assume that the rogue number is actually the ID of the poster...
i just thought of that as i was jumping into bed....and was typing up my outcomes when you posted before i did...lol
sry for double post
i did try this:
Before field:
<a href="http://aaotracker.com/usertracker.php?userid=%1
After Field
"><img src="http://test.ihf.lp.pl/forums/vacancies/images/aa1.bmp" width="14px" height="14px"></a>
this partly works. what happens now is that i get: the link but there is a double input.
dont worry i fixed it
i did the same as the above code but got rid of the %1
Quote from: iGate on December 05, 2007, 08:34:20 AM
i did the same as the above code but got rid of the %1
Which is actually what I suggested, if you look carefully at my code... :P
really great mod, i love it!
Congratulations to the creator!
Please update the new version and give the privilege to the global moderators to see some informations, not only the admins!
Hi!
I am trying to install "custom profile fields" in my system. When I try to install the package (logged on as admin) I get the following error:
"An Error Has Occurred!
The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
I am running version 1.1.2. What is wrong and how do i install this package?
Below is a list of some of files on my system:
SMF File Your Version Current Version
SMF Package SMF 1.1.2 SMF 1.1.4
Sources 1.1.2 1.1.4
ManageMembers.php 1.1 1.1
ManageNews.php 1.1.2 1.1.4
ManagePermissions.php 1.1.2 1.1.2
ManagePosts.php 1.1 1.1
Memberlist.php 1.1 1.1
PackageGet.php 1.1 1.1
Packages.php 1.1.2 1.1.2
PersonalMessage.php 1.1.2 1.1.4
Poll.php 1.1 1.1
Post.php 1.1.2 1.1.4
Printpage.php 1.1 1.1
Profile.php 1.1.2 1.1.4
QueryString.php 1.1 1.1.4
Thanks and Regards
Ramin
Clearly the first thing you need to do is to bring your forum up to date as the current version of SMF is v 1.1.4. You may need to re-download the mod with a different browser as there are occasional errors of this kind specific to particular browsers.
I am using firefox. I did a bit of RTFM! (I am new to this game) and uploaded the file manually and it installed without any more problems! first impression is this is a brilliant mod ans just what i needed.
Thanks a lot.
Ramin
Been thinking about adding this hack for ages now.
Would it be able to create a custom title to show above/below avatar without a title beforehand, so for instance 'Dave' would not be nickname: Dave, like the phpbb2 mod?
Thanks
That isn't a feature this mod would add...and if you want to see what it does do I suggest that you set up a test forum and try it for yourself.
Hello!
Hope that someone could help, since I have not found anything in this topic addressing my problem.
Today a new member registered and seems to have completely bypassed all the fields required at registration. When I log in as admin and check the new member's profile there are no entries at all - not even empty ones.
Among some selection fields I have two fields for entering first name and last name. Both are forced input during registration.
How did the new user circumvent the mandatory fields during the registration process?
Thanks a lot for help! :)
PS: I use am using SMF 1.1.4 with Custom Profile Field Mod 3.16 integrated into Joomla 1.0.12
nevermind, duh!!!
Quote from: Perfektionist on December 09, 2007, 07:38:25 AM
PS: I use am using SMF 1.1.4 with Custom Profile Field Mod 3.16 integrated into Joomla 1.0.12
And what bridge? And what method of registration is the bridge set to use?
Hello kindred,
Quoteand what bridge? And what method of registration is the bridge set to use?
Sorry, I forgot some details. Here they come:
I am using SMF-Bridge 1.1.7 by Orstio. Method is "Use SMF Registration". Furhermore I have the "mod_smf_login" published und the (joomla native) "mod_login" unpublished. User-Self-Registration in Joomla is deactivated. In SMF account activation and captcha are activated.
Thanks for your help!
IS it possible to show the custom profile in the admin area memberlist
Hello will888
No, this list only shows the columns ID, username, display name, e-mail address, IP address, last online, posts.
Nothing unusual here. Or should information entered in custom fields be displayed here?
So its not possible. thanks
Quote from: Aileen on December 09, 2007, 05:08:08 PM
So its not possible. thanks
What's the conclusion of this? Sorry I do not quite understand.
Best regards
???
The customer profile fields mod only adds display fields to the messages (and the profiles)
There have been a number of people who wanted to add fields to the memberlist... and the code they used has been listed at least 4 times in this very thread...
please use search, and read the thread you are asking about... I know it's long, but (especially with a long thread) there is a good chance that your question has already been answered.
I just read thourgh 81 pages of posts! And first off, I love this mod. It really makes my profile page what I want it to be. I just added a block to search the member list on my home page, and I know it's been posted before through out this thread, but it would simply make my forum awsome if a custom feild was searchable also. My users badly want to have a "Real Name" feild that's visitors to the site can look through.. Keep up the great work guys!
custom fields being searchable would be a whole 'nother ball of wax (so to speak)... You're talking huge amounts of additional code...
That's what I hear. Thanks for getting back to me.
Just for the sake of figuring something out, I invited my users to change their login to their realname, which appears to be searchable in the memberlist, then they have their displayname different, and a custom field to show their real name. It works for me.
Quote from: m@d on June 29, 2007, 01:39:45 PM
QuotePerplexed,
Actually, I was able to get it to work, but only on one field - so far...
I created a few custom fields using the Custom Profile Field MOD for First Name, Last Name, Address etc...
So, I went into the Memberlist.php file and made the modifications to include my new custom profile fields on the mlist.
Then, I setup the query:
// Select the members from the database.
$request = db_query("
SELECT mem.ID_MEMBER, th.ID_MEMBER, th.variable, th.value
FROM {$db_prefix}members AS mem" . ($_REQUEST['sort'] === 'isOnline' ? "
LEFT JOIN {$db_prefix}log_online AS lo ON (lo.ID_MEMBER = mem.ID_MEMBER)" : '') . ($_REQUEST['sort'] === 'ID_GROUP' ? "
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))" : '') . "
LEFT JOIN {$db_prefix}themes AS th on (th.ID_MEMBER = mem.ID_MEMBER AND th.variable = 'first_name')
WHERE mem.is_activated = 1" . (empty($where) ? '' : "
AND $where") . "
ORDER BY " . $sort_methods[$_REQUEST['sort']][$context['sort_direction']] . "
LIMIT $limit, $modSettings[defaultMaxMembers]", __FILE__, __LINE__);
printMemberListRows($request);
mysql_free_result($request);
Then I setup the sort methods:
// List out the different sorting methods...
),
'firstName' => array(
'down' => 'th.value ASC',
'up' => 'th.value DESC'
),
'lastName' => array(
'down' => 'th.value ASC',
'up' => 'th.value DESC'
So far, it works for just one of the variables and blows up when I try to add more than one Custom Profile field to sort on. But, I am still working on this. Its pretty cool that I was able to get the first_name field to sort but I need to have the ability to have the rest of my fields sort.
rgum
I have tested this code from rgum for one custom profile field, it dont really works , my problem is when a Member from my forum leave this profile field blank then he is not listed in the Memberlist.
Any ideas?
Sorry for my bad English :-[
wht else did u modify?
Hi there!
Really Great Mod!
I have installed it without any errors but when I click "Features and Options", i receive this error:
Fatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/clubski/public_html/Sources/ModSettings.php:351) in /home/clubski/public_html/Sources/ModSettings.php on line 361
And after i've unistaled the mod, when i click to read some topic this error shows up:
Fatal error: require_once() [function.require]: Failed opening required '/home/clubski/public_html/Sources/CustomProfile.php' (include_path='.:/usr/local/php5fcgi/lib/php') in /home/clubski/public_html/Sources/Load.php(1746) : eval()'d code on line 318
Any ideas of how to correct that?
Please help, because my forum isn't workig now and I'm stuck!
Btw, I'm using SMF 1.1.4, the default theme ONLY and those are the mods i'm using:
1. Language Drop 1.3
2. Topic description 1.1
3. TinyPortal 0.983
4. FontandSizeDropdown_1.2 1.2
5. Default Avatar 1.0
6. Avatars at Index Mod 1.5
7. Auto Embed Video Clips 1.7
8. Colorize Boards 1.0
9. Topic description 1.1
10. Custom BBCode 2.00
11. Skype Name Mod 2.0
12. Reason For Editing Mod 1.14
13. Increase/Decrease Postbox Size 1.0
14. Spoiler Tag 0.3.2
15. vQuoteSelection Mod 0.90
16. Sticky First Post (extends sticky topic) 1.3.2
17. Wrap Text Around Image 1.0
18. Group on Registration 1.1.1
19. Member Color Link 2.0.5
20. Custom Profile Field Mod 3.16
You appear to have installed the mod more than once...you need to follow the process of a manual install but removing the duplicate code the mod has added.
Quote from: TrueSatan on December 19, 2007, 02:46:11 PM
You appear to have installed the mod more than once...
No, just once.
Well, i don't want to install it again - all I want is to UNINSTALL it - and I CAN'T !
Please, Help!
Something in Load.php is looking for CustomProfile.php file even after i've uninstalled the mod
Tell me what code of Load.php i have to remove please!
Thanks!
It doesn't matter what you SAY you did... from the error, it is obvious that the mod was installed twice.
You will have to manually remove either the double function (and any other duplicated code) or manually uninstall the whole shebang...
Plus, installing mods after installing this one may have altered your code beyond auto-un-install.
I'm really sorry I haven't been able to keep up with support for this mod and would like to give a big thanks to others who have helped out.
Anyways I've updated the mod to (I think) fix the bug with moving fields.
Always a pleasure and Merry Xmas
Hi,
I'm having some trouble with the custom profile field mod..On the profile page, everything looks normal, but when users go to edit their profile information, the custom profile fields show twice (picture attached). Does anyone know how to fix this? Thank you :)
Please check the edits made by the mod to see that none of the changes have been duplicated...do this by following the process of a manual install...if there is an duplicate editing by the mod please back up the files first then edit out the duplications.
Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Thank you, TrueSatan :)
I replaced all the files (that the mod modifies) with the original files and then manually modified the files. And the mod works now! I should have done that earlier ::)
Glad you got it fixed...and Merry Xmas.
thanks :) merry christmas to you, too!
i have one question: do i get a good uninstalling of this mod so that it doesnt leave trace in the database ?
i also want to know what and where new stuff are added in the database
did you bother to READ any of the previous pages of this thread?
yes i did and someone complained that after multiple installations he/she got the same fields all over again. I dont know what version he/she usd so i want to know for the latest one.
Hi, there.
I have the exactly same problem with below
Quote from: Indy74 on December 19, 2007, 02:05:28 PM
I have installed it without any errors but when I click "Features and Options", i receive this error:
Fatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/clubski/public_html/Sources/ModSettings.php:351) in /home/clubski/public_html/Sources/ModSettings.php on line 361
And after i've unistaled the mod, when i click to read some topic this error shows up:
Fatal error: require_once() [function.require]: Failed opening required '/home/clubski/public_html/Sources/CustomProfile.php' (include_path='.:/usr/local/php5fcgi/lib/php') in /home/clubski/public_html/Sources/Load.php(1746) : eval()'d code on line 318
Any ideas of how to correct that?
and also I found the answer
Quote from: TrueSatan on December 19, 2007, 02:46:11 PM
You appear to have installed the mod more than once...you need to follow the process of a manual install but removing the duplicate code the mod has added.
I've not installed the mod more than once like Indy74 was.
However, I'm a newbie so something happened on my server. ???
Anyway, I wanna use this Mod and I guess I need to remove druplicate code.
the problem is that I don't know which code I have to remove.
Please help me!!
Sorry for my poor english >:(
Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
thanks a lot!
Now the mod is working!!!!!
I found three same code, which means I installed three times.
I'm happy to be able to use this Mod!!:D
Hi everybody,
I've been using this mod for a while now and it's fantastic.
I now want to use the information in the database to be able to send a group SMS message to my active members.
I can do this with an http request in the following format;
https://www.SERVERNAME.com.au/sendsms/api_sms.php?username=USER&password=PASSWORD&mobilenumber=xxxxxxxx,xxxxxxxx,xxxxxxxx,xxxxxxxx&message=xxxxxx&sender=LCCB&messagetype=Text&referencenumber=001
I have 2 custom fields; CP_Active and CP_mobile
What I need is a form that has a text entry box for my message and then when I hit submit I then find all forum members with CP_Active=true and add their CP_mobile number to the string above and then post the request to actually send the SMS message.
Is anybody able to help me with a script to do this please?
Many Thanks
Richard
italian translation
CustomProfile.italian.php
<?php
// Don't translate FIELDNAME in the below string.
$txt['cp_enable'] = 'Abilita FIELDNAME';
$txt['cp_text'] = 'Testo';
$txt['cp_textarea'] = 'Area Testo';
$txt['cp_checkbox'] = 'Box di Controllo';
$txt['cp_selectbox'] = 'Box di Selezione';
$txt['cp_type'] = 'Tipo';
$txt['cp_addfield'] = 'Aggiungi un Campo';
$txt['cp_name'] = 'Nome';
$txt['cp_profileshow'] = 'Mostra nel Profilo?';
$txt['cp_dontshow'] = 'Non Mostrare';
$txt['cp_underpostcount'] = 'Mostra Sotto il Conteggio dei Post';
$txt['cp_underimages'] = 'Mostra dopo le Immagini';
$txt['cp_showposts'] = 'Mostra nei Post?';
$txt['cp_parsebbc'] = 'Processa BBC?';
$txt['cp_before'] = 'Testo da visualizzare prima del campo (BBC è funzionale se abilitato sopra)';
$txt['cp_after'] = 'Testo da visualizzare dopo il campo (BBC è funzionale se abilitato sopra)';
$txt['cp_fieldid'] = 'Campo ID';
$txt['cp_hrule'] = 'Aggiungi una linea orizzontale prima del campo?';
$txt['co_optinput'] = 'Input Opzionale';
$txt['cp_forceinput'] = 'Forza l\'Imput';
$txt['cp_showreg'] = 'Mostra il campo nella registrazione?';
$txt['cp_adminedit'] = 'Solo gli amministratori possono modificare il campo?';
$txt['cp_adminview'] = 'Solo gli amministratori possono vedere il campo?';
$txt['cp_recreate'] = 'Ri-creare campo';
$txt['cp_checked'] = 'Testo da visualizzare quando il box è controllato';
$txt['cp_notchecked'] = 'Testo da visualizzare quando il box non è controllato';
$txt['cp_show'] = 'Mostra';
// Don't translate OPTIONNUMBER in the below string
$txt['cp_option'] = 'Opzione OPTIONNUMBER';
$txt['cp_addoption'] = 'Aggiungi un opzione';
$txt['cp_cpfields'] = 'Campi Profilo Modificabili';
// Don't translate FIELDNUMBER in the below string
$txt['cp_fieldsettings'] = 'Impostazioni Campi Profilo Modificabili FIELDNUMBER';
// Don't translate FIELDNAME in the below string
$txt['cp_regerror'] = 'Non devi riempire il campo "FIELDNAME".';
$txt['cp_moveup'] = '[ Muovi Su ]';
$txt['cp_movedown'] = '[ Muovi Giú ]';
$txt['cp_delete'] = '[ Elimina ]';
$txt['cp_unnamed'] = 'Campo Senza Nome';
$txt['cp_settings'] = '[ Impostazoni ]';
$txt['cp_hrsummary'] = 'Sul Sommario del Profilo';
$txt['cp_hredit'] = 'Sulla Schermata di Modifica del Profilo';
$txt['cp_onboth'] = 'Su Entrambi';
$txt['cp_desc'] = 'Campo Descrizione';
?>
;)
There aren't any corresponding setting options for checkbox and selection box fields.
How can I create the needed values for these types of fields?
Thanks!
*Nevermind... I got it... had to save all then go back into settings; ok.
hey, i'm merging forums so i'd like to upgrade from 3.16 to 3.17 to make sure everything is exact same from forum to forum - how do i just do an upgrade from 3.16 to 3.17?
You would need to uninstall the old version and then install the new one...in fact the package contains the following text:
QuoteSorry, but there is no upgrade package from your version. Please uninstall the previous version, and install this version. You won't lose any data.
damn, missed that - thanks
Hi, I really like your mod but have a question. How can I get the variable elsewhere. For example: if I have a field called Level how can I draw that variable for a member somewhere else. So that I can us it in a calculator or something of the sort,
How would I include the forum account username in a link in a dropdown menu box link?
Example:
[url=http://www.somewebsite.com/somedata.php?value=forum_account_name]View Data Page[/url]
the custom fields show up on the registration form, but not in the profiles or anywhere on the backend or frontend... even though "show in profile" is checked on settings! Help!
*tried doing the manual thing (searching through code, etc) but nothing worked.
I had changed templates after my initial install, so I tried to delete it, and it failed because it "wasn't located". So I re-uploaded a new installation via ftp, and it did locate it for a successful install although the module wasn't apply fields into the profile.
So I re-installed through the new template, and the install was successful, and the fields showed up on the registration, but again, the profile was unchanged...
so I uninstalled again and now I'm left with Nothing.
Is there ANY way to get rid/edit/add fields and apply it to both the profile and registration of a user without installing anything? Seems like this should be a back-end Standard. How can I do it? or.... how can I get this thing to WORK? The template I'm using is PDX-DK Theme by padexx.
Thanks.
@ nycstude
Firstly templates and themes are completely different things in relation to SMF...best get the terminology right.
Begin by getting any mod to work in the SMF Default theme prior to doing anything with it in a custom theme...if it won't work for you in the default theme there's no point in trying to do anything with it in a custom theme. If the mod is working in the default theme then it is installed properly.
Some custom themes may not work well or be easy to use with some mods...if you can't get a particular custom theme to work then either contact the theme author for advice or try a different theme...mod authors may well have never seen or used the custom theme you have in mind and are not necessarily the best people to ask for theme advice.
and nycstud...
regardless of what theme you have active when you install the mod, it only installs into the default theme automatically.
The reason it shows on reg and not in profiles is because your custom theme overrides the default profile.template.php but uses the default register.template.php.
In order to get this mod working for you, you will have to manually install it into your custom theme (at least profile.template.php and likely also display.template.php)
I am a complete SMF virgin (a switchover from PhPbb) because this version offers so many options that are by far BETTER! But I have run into issues with this mod. It installed successfully and had no issues during the extraction and installation but the mod does not show up in the features and options section like it says it should. I am running version 1.1.4 with the default theme.
Here are the current Mods (and their versions) that I have installed (including this one but this one is not there at all under any of the tabs in the features and options section:
1. Are You Human? Anti-Bot Registration Check 1.0
2. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0
3. Custom Profile Field Mod 3.17
4. Buy Me A Beer 1.4
5. Bookmarks 1.1
6. Profile Comments 1.3.6
I hope that I have included the right information, I don't receive an error message just the mod isn't there. I've tried deleting it and re-installing. I hope that someone knows of a fix for this? (I do understand how PhP coding works so even if it's a manual fix I'm capable of doing such)
Thank you for making such an awesome forum format, I'll never go back to the other guys :)
April
are you running in English (not english UTF-8, but plain old English)
Kindred has asked exactly what I'd have asked...in case you don't know how to change over:
You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.
One short question. Is it possible to search for the informations that are put in the fields?
not by default.
These fields are added into the themes table and associated with the specific user...his information is not searched.
And is it possible to make them searchable? And does this make sence? Or is there a better way?
Many things are possible but this would require a good deal of coding.
Okay, I think you missed my question :'( so I'll repost it right here (it is edited a little also):
QuoteHi, I really like your mod but have a question. How can I get the variable elsewhere. For example: If I have a field called Level how can I get that variable for a member somewhere else.
Better Example: Their is a custom field called Level. On one of the pages it has to be a certain number to view the content.
Is this possible and how would this be done?
OK.....I've installed this MOD and I like it....but..... :-\
Is there any way to change the size of the textarea??? I need a textarea about the size of the Signature area in the profile....
Or did I miss something along the way in reading this thread???
AnimationEmpire... Please read through this thread. It has been discussed several times how to access the information from these fields. (not specifically as you indicate, but the code has been posted on how to pull the data form the SQL table. The rets of the logic would be up to you, once you have the data.
Just a quick question,
why do you save the data in smf_themes and not in smf_members or in a new table dedicated to the mod ?
it would be more convenient to use after...
because that's how most mods save the data specific to users...
Modifying the members table could cause problems with an upgrade later and creating a new table associating each field with a user is duplicating effort (the themes table already does this)
I have these in Forum Error Log:
Quote
...index.php?action=featuresettings (http://www.fivearts.net/index.php?action=featuresettings)
8: Undefined index: path
File: /.../Themes/default/languages/CustomProfile.english.php (main_above sub template - eval?)
Line: 107
.../index.php?action=serversettings;sesc (http://www.fivearts.net/index.php?action=serversettings;sesc)
8: Undefined index: path
File: /.../Themes/default/Admin.template.php (main_above sub template - eval?)
Line: 107
.../index.php?action=featuresettings (http://www.fivearts.net/index.php?action=featuresettings)
8: Undefined index: path
File: /.../Themes/default/languages/CustomProfile.english.php (main_above sub template - eval?)
Line: 107
.../index.php?action=admin (http://www.fivearts.net/index.php?action=admin)
8: Undefined index: path
File: /.../Themes/default/Admin.template.php (main_above sub template - eval?)
Line: 107
.../index.php (http://www.fivearts.net/index.php) 8: Undefined index: path
File: /.../Themes/default/BoardIndex.template.php (main_above sub template - eval?)
Line: 107
Using smf 1.1.4
Anyone knows how to fix this please? Thanks
I just installed this modification and it definitely helps me get required fields for registration.
One question: how do existing members access the custom profile fields? In my forum, I need members to identify their international region. I want to require it during registration, but I also want existing members to add the information to their profile. How do I make this work?
One more question: is there a way to require action from existing members?
Thanks!
Identifying country might be better handled by the Country Flags mod and that has the controls you mention...save for the existing members function...you could get round that one by using the updated registration agreement mod and putting in text to tell the members to fill in the profile details.
I was able to install this mod successfully on the newest version, but what I need is for the initial registration page to just display first and last name fields, so that when I get the message to approve the user, I can see who it is by name, rather than just by the username they chose and e-mail. How would I go about doing this..?
You would require a custom registration mod (or edits)...such features aren't part of this mod's remit.
If the code modification is simple enough. Could someone please post the code? I am not very good at php and would have assumed that such a feature would have been built in, given that enabling approvals is mostly useless if you are unable to know who you are approving by name.. :(
You should post on the mod requests board asking for a new mod...you may or may not get somebody willing to do the custom coding for you there.
Quote from: TrueSatan on January 11, 2008, 12:50:46 PM
Identifying country might be better handled by the Country Flags mod and that has the controls you mention...save for the existing members function...you could get round that one by using the updated registration agreement mod and putting in text to tell the members to fill in the profile details.
In my case, members are not necessarily stating what country they are from, but rather what region they are from, based on pre-arranged international groupings, kind of like "North America," "Asia," etc. So the flags won't work.
I like the idea of combining this with the updated registration agreement system. Of course, my goal is always to keep the number of modifications down as low as possible!
Thanks for your help!
does anybody know if this mod does this:
if a checkbox field is added and has been checked (yes)... other text fields will show to be filled in...
almost a permission based field?
No not that I know of. You could request it maybe here in this thread.
I tried the searching but only got 1 result for some reason. I've tried searching with different browsers but it is still not working. So would you please just tell me how to incorporate SSI. I have tried almost everything. The one thing I did find did not work:
Quote from: 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.
If you tell me no again, I will stop bugging you and just read through all 83 pages (which I have already started.
Thank you for making this mod though. It is very helpful.
Sincerely,
Animation Empire
OK.....I guess my question was overlooked....so, I'll post it again....
Is there any way to increase the text area of the input field??
I've searched the boards and even played a little. So, let me explain what I want to do....then maybe someone can point me in the right direction.....
What I'm looking for is a Biography section that members have to fill out during registration and it appears in the members profile.
I started out playing with "Adding a Biography Section to A Users Profile"......
http://www.simplemachines.org/community/index.php?topic=115547.0
The problem with the above is when you view the members profile and the member hasn't entered anything in the Biography Section in other words the section is empty.....then it generates an error in the forum error logs. The person who created this appears to no longer offer support.
The custom profile mod appears to perform what I want to accomplish with the exception that I need the input text area increased......
It would be nice to incorporate the two, but that's just wishful thinking......
Is there any way that I can increase the textarea for a Biography type of entry? That's really all I'm looking for.....
I know very little PHP.....so, any help would be greatly appreciate.
Thanks.
shouldnt the option "text area" be large enough?
there doesent seem to be a character limit to it anyways...
maybe just align the word "biography" to the top of the text area...
also....
does anybody know how to change this mod to make it permission based? by membergroup?
or even... have the selection or check box field to have subentries (text box) depending on the selection box or check box answer?
:D
much appreciated
Not if your typing several lines in a Biography......members are complaining because the input box is not big enough to view what they've typed.
I didn't see an option where the size of the box could be changed. Based on what I'm seeing, the box is fixed and you can type an unlimited amount of characters.
The mod meets all my other requirements, with the exception of the size of the Box.....What I'm asking or need help on....is can the size of the box be changed...and if so, since I know little PHP, how and what I need to do in order to change it's size......
I was hoping there might have been an easy solution to my problem.....
One short question. At what point do I have to edit a Break < /br> in the display.template.php to get space between the custom profile field and the post field. To know exactly what I mean look at http://www.tiny-soldiers.com/index.php/topic,464.msg1312.html#msg1312. Thats my profile. Look for Spielsysteme...... and Posts, thats where i want to have a break.
Ah got this, only have had to put a </br> in pre and past text.
How do I get the custom informations in the memberlist?
I just installed this mod and the install seemed to work without error. however, I do not see any change to "features and options" and can find nowhere to make custom profile fields.
Am I missing something or should I just try reinstalling?
thanks,
joe
@ JoeP
Assuming you are running an English language only forum:
You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.
If you are using a theme other than the SMF default theme you will need to manually install the mod into that, custom, theme.
I cant find where I make custom profile fields in the Admin CP... Help please
No one an idea how to get the infos of the custom fields into the memberlist?
@aldo: Admin CP --> Features and Options --> Custom Filed Mod
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 failed
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. Delete File ./Sources/CustomProfile.php
8. Delete File ./Themes/default/languages/CustomProfile.english.php
Mod appears to be working though....any ideas?
@ Klabautermann
As you can see from other postings a lot of people want custom alterations to the mod...most of the time the mod author of this mod has so much else on his plate he's unlikely to have time to consider such work...you might be lucky and find somebody else to do it but you might also need to offer it as a paid task.
@ TJTELLEZ9
Your posting shows a failed file...as per the alert you must have seen at that point in your attempted installation you were advised not to proceed. Most of the time such fails can be dealt with by manual editing of the failed file but not always...sometimes the file will be difficult to edit due to changes made in it by another mod...or the mods already in the file may conflict with the one you wish to add. On rare occasions the rest of the edits the mod should make may not be done to the other files affected by the mod so a complete manual installation may be needed.
You should not ignore the alerts SMF gives.
Quote from: TrueSatan on January 14, 2008, 09:22:35 PM
@ JoeP
Assuming you are running an English language only forum:
You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.
If you are using a theme other than the SMF default theme you will need to manually install the mod into that, custom, theme.
I had English language selected. I unchecked Enable user-selectable language support. I am using default theme. I still don't see anything under Features and Options.
I attempted to uninstall (in prep for reinstall) and got a Modification Parse Error.
The package zip file permission is 777.
I'm running xampp, php 5.2.5.
I've tried 3 times now with no luck. Each time, the install appears to go fine but no new tab shows up under features and options.
I've used the packages->options to uncheck the backup ~ option and to set all files as writeable. I did notice, however, that the sources directory permissions were not set to 777. Is this ok?
Quote from: TrueSatan on January 15, 2008, 04:41:49 AM
@ TJTELLEZ9
Your posting shows a failed file...as per the alert you must have seen at that point in your attempted installation you were advised not to proceed. Most of the time such fails can be dealt with by manual editing of the failed file but not always...sometimes the file will be difficult to edit due to changes made in it by another mod...or the mods already in the file may conflict with the one you wish to add. On rare occasions the rest of the edits the mod should make may not be done to the other files affected by the mod so a complete manual installation may be needed.
You should not ignore the alerts SMF gives.
I hear there is a parser than can help identify the manual edits. Can anyone link to it?
I have installed this mod, with the intention of adding a dat field for when the users accnt was created.
Everything seems to work, but i can only see the value when looking at a users profile.
Is there a way, to have it viewed on the Members page?
Or for that matter, to remove the columns of MSN, ICQ, website etc. should i decide?
Thks for all the help
(and sorry, i did PM and saw the mods profile after.)
Oh boy I can see this is going to be a long posting...
@ JoeP
There are several things you can try:
- Create a "temp", sans quotes, directory in your Packages directory and CHMOD that to 777.
- ACP>Packages>Options uncheck Create Backup versions of replaced files with a tilda (~) on the end of their names and save
- If you are running on a 64 bit OS then via the Package Manager add mod attached to this posting.
Sometimes XAMPP can produce odd results that wouldn't be there on a normal Internet server hosted environment...not often but sometimes.
@ TJTELLEZ9
Certainly...one of the more up to date versions is on SMF Helper where I co-admin:
http://www.smfhelper.info/forum/package.php5 (http://www.smfhelper.info/forum/package.php5)
@ kingkong2
Not currently part of the mod...you will see it has been requested by other members and it may be something the mod developer might consider at a later date for a new version.
BTW it would be simply impossible to answer all the PMs one would get here if one is known for providing support...and other members wouldn't benefit from the information given that way...it's not that any of us ask not to be PM'd to be unfriendly.
Quote from: TrueSatan on January 15, 2008, 11:10:14 AM
Oh boy I can see this is going to be a long posting...
@ JoeP
There are several things you can try:
- Create a "temp", sans quotes, directory in your Packages directory and CHMOD that to 777.
- ACP>Packages>Options uncheck Create Backup versions of replaced files with a tilda (~) on the end of their names and save
- If you are running on a 64 bit OS then via the Package Manager add mod attached to this posting.
Sometimes XAMPP can produce odd results that wouldn't be there on a normal Internet server hosted environment...not often but sometimes.
@ TJTELLEZ9
Certainly...one of the more up to date versions is on SMF Helper where I co-admin:
http://www.smfhelper.info/forum/package.php5 (http://www.smfhelper.info/forum/package.php5)
@ kingkong2
Not currently part of the mod...you will see it has been requested by other members and it may be something the mod developer might consider at a later date for a new version.
BTW it would be simply impossible to answer all the PMs one would get here if one is known for providing support...and other members wouldn't benefit from the information given that way...it's not that any of us ask not to be PM'd to be unfriendly.
Thanks!
I think I'm going to go all the way back to square one and reinstall smf, restore my db from a previous dump, run repair_settings, then do as you suggest.
joe
Actually I forgot to add the 64 bit fix (it's a bug fix created by Sarge).
Quote from: TrueSatan on January 15, 2008, 11:24:30 AM
Actually I forgot to add the 64 bit fix (it's a bug fix created by Sarge).
thanks again. I'm not on a 64 bit machine but it'll help others.
one more question... if i have smf installed in /path/to/my/htdocs/smf, where htdocs is my web root, is the local path requested by the package manager /smf, or the complete path? I've been assuming it is /smf.
joe
Yep...that's the local path...think of it as being what you would see in an ftp client navigation breadcrumbs, were you using one.
My question got overlooked or ignored - here it is again:
Quote from: Inque187 on January 06, 2008, 06:29:57 PM
How would I include the forum account username in a link in a dropdown menu box link?
Example:
[url=http://www.somewebsite.com/somedata.php?value=forum_account_name]View Data Page[/url]
I have installed this on V1.1.4 and got a test failed on modsettings.php on install. I used package parser to edit that file but now when I try to load features and options I get this on the page.
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/uams1/public_html/SMF/Sources/ModSettings.php on line 121
When I open in notepad this is what I have
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'googlemap' => 'ModifyGoogleMapSettings',
'karma' => 'ModifyKarmaSettings',
'googlebot' => 'ModifyGooglebotSettings'
'profile' => 'ModifyProfileSettings',
);
// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
This is what I had to do
Find:
);
// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
Replace with:
'profile' => 'ModifyProfileSettings',
);
// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
Any ideas?
BTW I have the Google Member Maps mod loaded and when I loaded that prior to this mod it said it would conflict with this mod. I really would like to have both mods if possible.
you need a comma after:
'googlebot' => 'ModifyGooglebotSettings'
looks like that mod did a bad code bit there...
Bargain.....worked like a charm. You know I looked at that code a dozen times and missed it. I will get the hang of this yet. Thanks mate
qual é a area para mudar as opçoes?
in English, please?
Quote from: Kindred on January 20, 2008, 02:46:14 AM
in English, please?
I made all the changes needed
But, do not think in the ADM setting the options Profile
If you are using a language other than English, you will have to make your own translations (phrases need to be added to Themes/default/languages/modifications.YOURLANG.php to match modifications.english.php)
okay i went all the way back to page 68 and i cant find code changes or anything, im tired..can i please have a copy of the 3-16 version?
OK...you're in luck as I have it handy.
thank you :)
Hello,
How can I have a field's value on every page (in the index.template.php)?
Thank you
Hey Everyone,
I installed this mod, then due to an outside error I had to uninstall then reinstall the mod, now I get the fields I created displayed twice in the Profile, but they are only listed once in the Admin>Features and Options>Custom Profile Fields. I assume that it changed a template during the first install but some how it didn't get removed during the uninstall, then was put in again during the reinstall, I also had to edit out double entries in the ModSettings.php and Profile.php files due to "Cannot redeclare" errors but don't know where to look for this one.
Thanks for any help!
Mike
First back up your files!
Please use the Package Parser:
http://www.smfhelper.info/forum/package.php5 (http://www.smfhelper.info/forum/package.php5)
...to output the details of the edits this mod makes then check all of your files editing as needed to remove duplicated code added by the mod...that said the specific problem sounds like duplicate code in profile.template.php in your theme directory
That did it, Thanks!
Hi love this mod, just wondered how I would go about adding the field to members list. Is this possible?
Please see replies #1668 and #1670
@Geezer:
This may help:
http://www.simplemachines.org/community/index.php?topic=215438.msg1393368#msg1393368
or this:
http://www.simplemachines.org/community/index.php?topic=92854
i installed this packages today but it's not working!!!
i've version 1.1.4
if i go on features & options there is nothing where i can add some profile fields
As stated at least once on nearly every page of this thread:
Mods only install into the default theme automatically. If you are running a theme other than "default", you may have to manually apply the code changes into that theme's xyz.template.php files.
If you are running in a lan guage other than "english" (and "english utf-8" is different from "english") then you will have to manually add the language strings into Themes/default/language/modifications.YourLanguage.php
Quote from: jamesk on January 25, 2008, 11:10:48 PM
@Geezer:
This may help:
http://www.simplemachines.org/community/index.php?topic=215438.msg1393368#msg1393368
or this:
http://www.simplemachines.org/community/index.php?topic=92854
Thanks James, not having much luch getting it to work but will persevere :)
Hello! :)
I was wondering if there was a way to search for specific members when this mod is installed.
Example: My forum is a high school reunion site, and members wish to search for a specific year that a member graduated in. I "force" members to enter their graduating year when they join, so I was wondering if that is a optional search.
Any ideas or suggestions would be awesome. BTW, I use the SMF default theme.
Thank you!
Kirok
PS: This is an awesome mod! :)
this mod does not have search capabilities of the custom fields...
Shoot! >:(
Oh well, thanks for the reply though. It is appreciated!
Kirok :)
Is it possible to upgrade by simply uploading the source file?
Thanks
Hello, I have a question I sent you a pm but I do not know if you got it but is there anyway you could (please) add a option to create a browse option so that when people register they could upload pictures ? I want to use it for verification purpose's and also be able to make it mandatory.
@ Digit
I presume that you are asking if the mod has an upgrade option...the mod read-me contains the following "Sorry, but there is no upgrade package from your version. Please uninstall the previous version, and install this version. You won't lose any data."
@ Methen
The feature you mention is not part of this mod at present and one should not normally PM such requests. The mod author will see the requests you make in this topic and may consider them for future versions of the mod, though it is in no way required for mod authors so to do.
I was not aware of this thread at the time of posting.
Hi,
I installed this mod without problem, but I can't find "Custom profile fields" in Feature & options".
I use Dilbermc theme and I don't have display.template.php in my theme's folder.
I have this files :
-BoardIndex.template.php
-index.template.php
-MessageIndex.template.php
-Settings.template.php
Wich file sould I make the change ?
Sorry for my very bad english :-[
Please I need help.
Quote from: YorkM on January 28, 2008, 04:56:12 PM
Hi,
I installed this mod without problem, but I can't find "Custom profile fields" in Feature & options".
I use Dilbermc theme and I don't have display.template.php in my theme's folder.
I have this files :
-BoardIndex.template.php
-index.template.php
-MessageIndex.template.php
-Settings.template.php
Wich file sould I make the change ?
Sorry for my very bad english :-[
Please I need help.
If there is no file for it in the custom theme, that theme pulls it from the default folder :)
I must change the file from the default folder or paste the file into the custom theme ?
Quote from: YorkM on January 28, 2008, 08:31:35 PM
I must change the file from the default folder or paste the file into the custom theme ?
The first....though if you installed it, it allready did the default theme edits, you need to install it only on the custom themes :)
You may also be having language file problems as this mod may not support the language you are using...please try switching to English (and not English utf8) and see if the missing options are then shown. (ACP>Server Settings)
Thanks a lot to help me,
- I had copy/paste display.template.php from my default folder to my custom theme folder, but nothing appear in "Feature & Options" .
(Remark : When I select my defaut theme (and not Dilbermc), "Custom profile Field" doesn't appear in "Feature & Options" too.)
- In "Server Settings" , I have this :
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg238.imageshack.us%2Fimg238%2F1087%2Flanguemu4.jpg&hash=12e9e452bb8e132eb2de20db4a3bb87f2e5e2959)
But when I select English this puts in French automatically !
display.template.php has nothing to do with the features and options.
The features and options issue is directly related to your non-english language. You will have to either find a way to set your account to use English, or add the phrases from modifications.english.php into modifications.french.php
smf has default profile fields like age gender location
can I make the compulsory during registration with this mod.
No, this mod doesn't affect the default fields and making fields compulsory isn't an existing feature of it.
Quote from: TrueSatan on January 30, 2008, 09:42:57 AM
No, this mod doesn't affect the default fields and making fields compulsory isn't an existing feature of it.
it can force input of some fields during registration.
Quote from: falguni1 on January 30, 2008, 11:48:40 AM
Quote from: TrueSatan on January 30, 2008, 09:42:57 AM
No, this mod doesn't affect the default fields and making fields compulsory isn't an existing feature of it.
it can force input of some fields during registration.
ONLY the fields it creates :)
Hi,
I was having the issue where the custom fields don't show up in the admin after installing it. This post solved my issue...
QuoteYou may also be having language file problems as this mod may not support the language you are using...please try switching to English (and not English utf8) and see if the missing options are then shown. (ACP>Server Settings)
I should note I installed smf through Fantastico, so this is probably a pretty common default setting.
Yes, it's a well known issue with Fantastico installations...I'm glad you got it working.
Ok here is my epic saga...I installed Custom Profile Fields and it was working great..I was able to select the type of box I wanted and so on and so forth...I then installed a few more packages and such and found that I can only select text boxes now..I immediately uninstalled EVERYTHING I had installed after installing this module and still nothing. I have gone through and reloaded fresh copies of all the php files and it still does not let me select a type of box...Now here is the kicker..when I do make text fields, it shows me the data I had previously put in from the first selection boxes...just two fields..I made a selection box with a choice of 9 things and it shows me my selection in my profile on a totally new box that i just named Test and then an Unnamed field below shows me another selection I made...What could be wrong with this? I am really upset that it's doing this and that I can't fix it...please help...this package is exactly what I wanted...
This has prob been answered but i was wondering if theres a way to get them under avatars and not on top of them?
it has been answered. Please use search next time.
modify display.template.php
well ive searched this topic for 'under avatars' and display.template.php and the only results i get are our posts...
Hello
I was advised that this is probably the mod to use to have a 'Membership Number' box on the 'Register - Required Information' page when new members sign up.
I've installed the mod but can find no tabs which take me to a page to create such a text box for the Registration page.
Thanks
Gavin.
once again...
a- are you running the default theme?
b- are you running in English (not english utf-8, but plain old english)?
Fields Show twice :S
Quote from: googleminigames.com on February 03, 2008, 01:18:45 PM<br />Fields Show twice :S<br />
you installed the mod twice.
You will have to manually go through the code and remove the duplicates
Quote from: hayley2007 on February 02, 2008, 03:36:10 PM
This has prob been answered but i was wondering if theres a way to get them under avatars and not on top of them?
Ive searched everywhere with different words and still cant find the answer im looking for.
Anyone out there with an answer please, or is it one of them "wait till v2" things?
the answer is: Edit display.template.php.
You will have to move the install mod code within that file to appear after the avatar display.
I am using the Ultimate Profile mod and using this to add a few extra fields, I was wondering is there a way to display say options 1 and 2 in a certain place using something like
DisplayFieldsProfile(1,2)
And display other fields in another area using
DisplayFieldsProfile(3,4,5)
This didn't work, but is there a way to work around that?
EDIT:
I read through 45 pages, and searched for SSI.php and didn't get too good of results...
My current code is this:
I changed the memberlist.php according to this post
http://www.simplemachines.org/community/index.php?topic=92854.msg608875#msg608875
and this is the code I am trying in a section of the Profile
global $sourcedir, $user_info;
require_once('/path to my/SSI.php');
require_once($sourcedir . '/CustomProfile.php');
loadThemeOptions($context['user']['id']);
$member['options']['1'];
Where 1 denotes the name I have set to the Field Id for this setting
Any idears on how to get this to work?
Quote from: Kindred on February 03, 2008, 04:41:34 PM
the answer is: Edit display.template.php.
You will have to move the install mod code within that file to appear after the avatar display.
im a girl, im blonde and no idea what that means hence why i was looking for a simpler answer e.g which code, where.
Thanks though
Hi Gavin,
Quote from: Gavin Webb on February 03, 2008, 09:35:22 AM
I was advised that this is probably the mod to use to have a 'Membership Number' box on the 'Register - Required Information' page when new members sign up.
Yep - it works very well for this, and I use it for this purpose. In the case of the organisation I use it for, we collect a compulsory Name and Membership Number - Name is publicly viewable (and displayed by each post), and Membership Number only viewable by Admins, who check against the latest membership list before approving the member on the forum.
Quote from: Gavin Webb on February 03, 2008, 09:35:22 AM
I've installed the mod but can find no tabs which take me to a page to create such a text box for the Registration page.
First of all - you need to be using the default theme for this mod to show up. If you're not, you need to edit your theme files. I can't help you much here as I use the default theme, but in this thread editing the theme files has been discussed several times (I'd advise starting at p1 and working through it...)
When you're logged in as an administrator, click on the
Admin tab. Then click on
Packages (under "Main" on the left hand menu). This opens the Package Manager. Click on
Installed Packages to view your installed packages - you should see "Custom Profile Field Mod" there.
Assuming it's already installed (if not, click "install" on the right hand side), click on
Features and Options (on the left hand side underneath "Configuration"), then on the
Custom Profile Fields tab - on my installation this is between "Layout and Options" and "Karma".
This tab allows you to define custom profile fields, and the settings for each one.
Sunil
I'm creating separate fields for City and State and Country. I want them to appear both on the registration field and in the users profile. All three show up on the registration page, but only State and Country show up (and are editable) in the member's profile. Show In Profile box is ticked in all three custom profile field settings. Other than the Field Name, all of these 3 are the same (have all the same settings).
Any ideas on what could be going on? FYI, I am running mod version 3.1.6.
How would I include the forum account username in a link in a dropdown menu box link?
Example:
[url=http://www.somewebsite.com/somedata.php?value=forum_account_name]View Data Page[/url]
I tried asking this a few days ago (see above), but I'll give it another shot.
I've added 3 new Custom Profile fields, City, State and Country. They are set to appear on the registration page - and they do. For the members who have signed up since these fields were added, they work - i.e, the members enter the info upon registration and it is displayed just fine in their profiles and their posts.
However, the members who signed up before these fields were added, can only edit the State and Country in their profile on their Forum Profile Information page. Also, even the new members - the ones who signed up after I added the 3 new Custom fields can only edit the State and Country fields in their profile.
The settings for the 3 new Custom Profile fields are all exactly the same.
Any ideas?
Quote from: jmayne on February 05, 2008, 08:30:23 AM
I'm creating separate fields for City and State and Country. I want them to appear both on the registration field and in the users profile. All three show up on the registration page, but only State and Country show up (and are editable) in the member's profile. Show In Profile box is ticked in all three custom profile field settings. Other than the Field Name, all of these 3 are the same (have all the same settings).
Any ideas on what could be going on? FYI, I am running mod version 3.1.6.
there were some problems with 3.16, can you try upgrading to 3.17 ?
Otherwise I would have said that maybe you have the Admin Edit field checked but if you say they are all the same, then that's not it.
ive been getting this error in my error log:
8: Undefined variable: memberID
File: /home/content/html/sforum/Sources/Register.php
Line: 172
line 172 is:
makeCustomFieldsChanges($memberID);
any ideas how to resolve this?
QuotemakeCustomFieldsChanges($memberID);
I don't think that function is from this mod.
pretty sure it is
require_once($GLOBALS['sourcedir'] . '/CustomProfile.php');
verifyCustomFieldsInput();
makeCustomFieldsChanges($memberID);
I really think it's from another mod...
Perhaps the one discussed here:
http://www.simplemachines.org/community/index.php?topic=205533.0
That being besides the point, the $memberID variable is declared further down in the Register2() function which might explain your undefined index error...
Quote from: jamesk on February 10, 2008, 06:25:14 PM
That being besides the point, the $memberID variable is declared further down in the Register2() function which might explain your undefined index error...
im sorry... but im not much of a coder... do you mind elaborating how can i resolve this ?
You should ask the original Mod developer for assistance as he would know what the idea/process is for that function and I as an outsider, just quickly glancing at the code, could be way off-base here but what I see is that the function (as you say) is around line 172 and passes the variable $memberID as a parameter:
makeCustomFieldsChanges($memberID);
But, looking at my original Register.php file, I see that $memberID is declared around line 303:
$memberID = registerMember($regOptions);
which means that $memberID has no value before that UNLESS it was declared elsewhere (in another file), which could be the case, but I'm not sure by just quickly scanning the code...
But, obviously, in your case it's not defined and that's why you're getting the undefined index error.
I'm using a "text box" custom field. I'm using it so that members can enter information, "About Me." Sort of like a profile or Bio. Members are a bit pissed that they can't format the text. I.e., they can't have multiple paragraphs. When they type in their info, they can have more than one paragraph; it all runs together.
Any ideas on how to get the formatting to work in a text box?
yes, if you go into the settings for the field in question, you need to check the box called 'Parse BBC', and then they can use BBCode like they do in posts to format what they write. They would then just enter/hit return for a blank line between paragraphs and could also use bold, italic, underline etc
After installing this package correctly I do not see where it s supposed to be working . under the features etc there is no new stuff at all.. anyone else had this problem ?
Is your forum language set to English utf8?
Please go to ACP>Server Settings and change it to English if this is the case...if so the mod should then work properly.
Thanks that seems to be working now I wil run a full test over the next few days..
thanks again ..
Quote from: jamesk on February 10, 2008, 06:59:47 PM
You should ask the original Mod developer for assistance as he would know what the idea/process is for that function and I as an outsider, just quickly glancing at the code, could be way off-base here but what I see is that the function (as you say) is around line 172 and passes the variable $memberID as a parameter:
makeCustomFieldsChanges($memberID);
But, looking at my original Register.php file, I see that $memberID is declared around line 303:
$memberID = registerMember($regOptions);
which means that $memberID has no value before that UNLESS it was declared elsewhere (in another file), which could be the case, but I'm not sure by just quickly scanning the code...
But, obviously, in your case it's not defined and that's why you're getting the undefined index error.
sorry... now im completely lost :(
In plain English, it means there's no value for $memberID (yet), and I think it's because $memberID doesn't exist until further down in the code, but like I said, I could be wrong and it's best to ask the mod developer...
An example:
echo "My name is " . $name;
$name ="james";
would spit out "My name is" and give you an undefined variable error because $name has no value when it's used in the echo statement...
I don't see where to add fields.
In the "Admin" sidebar, under "configuration" I hit "Features and Options" and that gets me 3 more options: "Basic Features", "Layout and Options", and "Karma". Is there supposed to be a fourth button for this mod? Am I looking in the right place? I checked my server settings and I am using English-utf8 and there were no error messages on install. I'm using SMF 1.1.4 and customprofile 3.17 the only other mod I have installed is SMF Gallery Lite
Did you install it onto your theme (if you are using a custom theme you may need to do that to see it)? You are looking in the right place :)
As Alundra says,
Mods only install on the default theme and in English.
If you are running an alternate theme, You MAY have to manually install the mod. (only if your theme has modified versions of the specific *.template.php files)
If you are running in anything except English (and english utf-8 is different from english) you will have to add the text strings to your modifications.yourlanguage.php file.
Quote from: Kindred on February 14, 2008, 08:14:34 PM
If you are running in anything except English (and english utf-8 is different from english) you will have to add the text strings to your modifications.yourlanguage.php file.
I changed from English-utf8 to English and that did it. Thanks everyone.
I have set up a checkbox, when selected the profile does show the output, but when not checked the display is nothing at all, i do have information in the "text to display when not checked" input, but when not checked there is nothing displayed.
This is a fresh board and admin is the only user (i am setting this up before moving it to live, with the options i want working)
Hi to all
When I will install the package, I´ll become this report each time:
Quote1. 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
I use SMF1.1.4German language package (I´ve tried in english & german)I use diffrent themes (I´ve tried in each theme to install)UTF8 isn´t installed I don´t know why I´ll get this report each time. When I say install, then the system report "package suchesfully installed" ... but I don´t see the modify board under "Features and Options"
Quote from: Kender on February 15, 2008, 02:54:32 PM
I have set up a checkbox, when selected the profile does show the output, but when not checked the display is nothing at all, i do have information in the "text to display when not checked" input, but when not checked there is nothing displayed.
This is a fresh board and admin is the only user (i am setting this up before moving it to live, with the options i want working)
Found the error with this code.. Line 264
you are checking for empty fields, yet when you submit data for CHECK type boxes, if its unchecked the field is empty by default, BUT you have an option to display a result if left unchecked....
I deleted the check for !empty, but would prefer a proper fix to this, allowing for empty fields in non check type fields to not display
Quote from: brianjw on February 18, 2008, 02:36:26 PM
EDIT: Seems to be problem with /temp/ directory in /Packages/
Yes that´s was it. I´ve found it a few hours ago. Thanks for reply ;)
I have installed the mod and can see where I should be able to access it in my admin panel, but when I select the Custom Profile Fields tab, it goes back to the Basic Features settings.
What is causing this and how do I fix it?
I had to put back my original modsettings.php to get my board functioning again. When I tried to change it manually I would get a stream of errors.
Is there someone who can help me with this particular file?
Another newbie here. I have a fresh SMF install with the default theme and language as English. I installed the Custom Profile Mod, but cannot find where to add my custom fields. All I have under "Features and Options" is Basic Features, Layout and Options and Karma. Under none of those tabs can I find reference to Custom Fields. Restarting my web server made no difference.
(As an aside, I see the package is still zipped up in the Packages directory. Is that SOP?)
Thanks!
worthog
yes, the zipped package is there for record keeping and uninstallation.
Are you running English or English UTF-8? (mods, by default, only install on the default theme and in english (not english utf-8)
English--no other choices. SMF 1.1.4. So the zip file isn't from where the files are read? Then maybe something went wrong. Here is a dump of my Packages directory:
drwxrwxr-x 2 root apache 4096 2008-02-19 08:33 backups
-rwxrwxrwx 1 apache apache 6422 2008-02-19 08:32 customprofile3-17.zip
-rw-r--r-- 1 root apache 324 2007-09-25 12:27 index.php
-rwxrwxr-x 1 root apache 81 2008-02-19 08:33 installed.list
drwxrwxr-x 2 root apache 4096 2008-02-19 09:14 temp
I added the temp directory manually, based on a previous post I saw.
BTW, I tried an uninstall and then a reinstall, but no change in the interface. What files should be changed? Do the mods actually work like kinda like diff files and actually make changes to existing SMF code?
yes, the package manager uses the mod instruction file to make changes to files in the /Sources and /Themes/default directories.
Hmmm... Well, I'll read over the manual installation instructions and see if I can figure out if any changes were made or not. I have this installed on my local machine as a test environment. Everything is writable by the user "apache" so I shouldn't think the problem is permissions-related.
BTW: To convert this to the standard 2.0 custom fields...
UPDATE `smf_themes` SET `variable` = '*NewFieldName*' WHERE `variable` = 'CP1' (or CP2, or CP2, etc)
note: This hint is for people who have upgraded to SMF 2.0
Is that something I have to do anyway? Would not doing so cause the problem I'm having?
Regarding the "Only allow admins to edit field?" option, I need a way to allow Global Moderators to also have the ability to edit these custom fields.
Awesome mod! It's just lacking one thing for me. I'd like to use it for users to be able to plug in personal contact info. I'd only like that to viewable by certain member groups, and not just Admins. Is there an easy way to do that?
FWIW, I got this install figured out. My files were mostly owned by user root and group apache and since I had g+rw on everything, I figured that was fine. Changing ownership on everything to user apache solved the problem. Now, I just have to get the rollgen mod uninstalled without getting an error and I'll be fine--but that's a story for another topic!
Thanks, Kindred!
worthog
How do I use this mod with SSI.php?
for some reason, when i change themes, it forgets what custom answers were, then i need to reselect the options
ie:
user selects checkboxes in custom fields
i change forum default theme
fields no longer visible in profile, but selectable again in the "Forum profile information" page
once selected, it displays properly in that theme (unless i change again, or change back)
hmmm... yup, I can see that happening. The information is stored in the Themes table.... and is directly tied to the theme that the user has when they answer the questions.
Quote from: Kindred on February 22, 2008, 07:18:47 AM
hmmm... yup, I can see that happening. The information is stored in the Themes table.... and is directly tied to the theme that the user has when they answer the questions.
is there a way to correct this?
i dont mind altering some code if necessary
but i am glad i didnt screw up the code when modifying the themes! thanks for relieving that stress
Quote from: 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.
Can the custom fields be used to sort the member list?
Which table contains the Custom Profile fields and data?
DHC... try using search? That question has been answered at leats 6 times in this thread.
the themes table. under the variable name CP1, CP2, etc.
And no... the custom profile fields are not even IN the memberlist, as standard. There is code further back in this thread about how to add them to your member list, but I don't know if the coder ever put in a sort capability.
On the other hand, the custom profile fields in SMF 2.0 can be added to the member list and can be sorted on.
Hey I am not getting any errors, however, I cannot find the configuration under "Features and Options"...
Please help and thank you.
Hi @all.
Sadly I have some issues with this mod.
Just updated my board from 1.1.2 to 1.1.4 and to be sure everythings valid I'm also using the updated version of the orange-lt theme.
So far everything is working a expected.
Now I need to make modifications to the Profile.template.php, that's why I copied a version from the default theme to my version of the orange-lt theme.
As soon as this file is in this directory the mod stopped to work :(
So the next thing I tried was to remove Profile.template.php from the custom theme and make my modifications directly in the default-Theme Profile.template.php.
Then the mod is working, but my modifications are not showing up.
Is there a way to fix this ?
I know CustomProfileFields will be there in Version 2 of SMF but I don't want to upgrade to a beta version.
Thanks in advance
pp
For all you germans out there 8)
I've attached a german translation for this mod.
have fun !!
Quote from: afe on February 24, 2008, 12:22:13 AM
Hey I am not getting any errors, however, I cannot find the configuration under "Features and Options"...
Please help and thank you.
Ok folks...
When you request help like this, it is next to useless.
1- read previous posts in this thread. (use the search) chances are that the question has been answered.
2- If you don't find the answer (or are too lazy to read the rest of the thread) then at least tell use what version of SMF, what language you are using and what theme you are using.
(note: English utf-8 is DIFFERENT from English)
(note2: If you installed smf via fantastico, then you are probably running in english utf-8. Mods only install in "english" by default.)
I'm kindly asking if there's something wrong with my posting or any additional information missing to get help with my issue ?
I have installed the package on another forum and it has worked flawlessy, but for some reason it's not doing what it should on a new discussion board. It installed fine, but the button to actually do something isn't visible on the features and options section.
Help a brother out, would ya...
p.s. I'm updated to 1.14, I'm also using the default theme.
Quote from: MrQBerrt on February 14, 2008, 08:22:03 PM
Quote from: Kindred on February 14, 2008, 08:14:34 PM
If you are running in anything except English (and english utf-8 is different from english) you will have to add the text strings to your modifications.yourlanguage.php file.
I changed from English-utf8 to English and that did it. Thanks everyone.
How do you change the UTF to English? I downloaded it directly from the smf mods page, and installed it via the package install utility on the admin page.
Quote from: Kindred on February 22, 2008, 01:39:05 PM
DHC... try using search? That question has been answered at leats 6 times in this thread.
the themes table. under the variable name CP1, CP2, etc.
And no... the custom profile fields are not even IN the memberlist, as standard. There is code further back in this thread about how to add them to your member list, but I don't know if the coder ever put in a sort capability.
On the other hand, the custom profile fields in SMF 2.0 can be added to the member list and can be sorted on.
Ive looked through this whole thing and i dont see where you add it to your memberlist. Can someone explain this to me or if its possible?
it's there... it may be scattered somewhere in the 90 pages...
but you would use:
echo '$context['member']['options']['CP1']';
or CP2, CP3, etc... whatever field you want displayed.
Quote from: Kindred on February 25, 2008, 01:48:22 AM
it's there... it may be scattered somewhere in the 90 pages...
but you would use:
echo '$context['member']['options']['CP1']';
or CP2, CP3, etc... whatever field you want displayed.
thanks kindred, where would i insert that text at in the script?
I have installed the mod good work, but i want to know how to
Well my forums want a facebook link/icon on there profile just under there name in forum post, so how would i make an icon (like wot code would i use) so people and click it and it takes them to there facebook url.
Many thx :)
Quote from: Judgey on February 25, 2008, 05:42:31 AM
I have installed the mod good work, but i want to know how to
Well my forums want a facebook link/icon on there profile just under there name in forum post, so how would i make an icon (like wot code would i use) so people and click it and it takes them to there facebook url.
Many thx :)
That's described on the first page in the first posting of this thread !!!
Quote
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 in the before spot and (http://www.myspace.com/%1) in the after spot, and it would just show the username but link to the site.
Quote from: BitBass on February 20, 2008, 11:43:04 PM
Awesome mod! It's just lacking one thing for me. I'd like to use it for users to be able to plug in personal contact info. I'd only like that to viewable by certain member groups, and not just Admins. Is there an easy way to do that?
I guess that would be a no?
Quote from: BitBass on February 25, 2008, 08:45:20 AM<br />Quote from: BitBass on February 20, 2008, 11:43:04 PM<br />Awesome mod! It's just lacking one thing for me. I'd like to use it for users to be able to plug in personal contact info. I'd only like that to viewable by certain member groups, and not just Admins. Is there an easy way to do that?<br />
<br /><br />I guess that would be a no?<br />
No... not simple.
Quote from: fecu2008 on February 25, 2008, 02:36:56 AM<br />Quote from: Kindred on February 25, 2008, 01:48:22 AM<br />it's there... it may be scattered somewhere in the 90 pages...<br /><br />but you would use:<br />echo '$context['member']['options']['CP1']';<br /><br />or CP2, CP3, etc... whatever field you want displayed.<br /><br />
<br /><br />thanks kindred, where would i insert that text at in the script?<br />
Wherever you want the field displayed. If you want it in the memberlist, you'll have to build it into the memberlist table.
alright I have searched a few places and read some of this and am not finding my answer
Im trying to place this form in a TP block
<form action="xmltest2.php" method="post">
Name: <input type="text" name="cust" />
<input type="submit" />
</form>
but I want the field to automatically pull info for the field at first I started with getting the user name and did this and since it was gonna fill it in automatically I hid the field and it worked just fine with this code.
echo '
<form action="xmltest2.php" method="post">
<center><input name="cust" type="hidden"type="text" value=' , $context['user']['name'] , ' > <input type="submit" value="Order Status" />
</form></center>';
Then I decided I'd try using a custom profile field to allow people to use something besides their customer number to register with so I added the mod and a field and filled it in and then changed the code to this
echo '
<center><form action="xmltest2.php" method="post">
<center><input name="cust" type="text" value=' , $context['member']['options']['CP1'] , ' > <input type="submit" value="Order Status" />
</form></center>';
and as I was typing this I discovered something
Originally I was going to say that it wouldn't fill in the field. HOWEVER I just discovered that it does in fact fill in the field ... but only on the Summery section of the profile page. can someone tell me what I'm missing?
I've been trying to get something to work and I don't know if it's possible or not.
I want to create a profile field for something like an amazon wishlist for example and have the member input their wishlist reference but I want it to display an icon instead of the info they have input.
The reason I want an image to display instead of the member info is because with the amazon wishlist it's just a bunch of numbers and letters and not a member name, which looks weird on the profiles.
I've tried it with both html and bbc and I can get the image to display as well as the text but not only the image on its own.
Anyone have any ideas how to do this with this mod?
in the PRE-TEXT, you would do something like
<a href="amazon.com/wishlist/
Then the field itself would be the amazon wishlist ID
in the POST-TEXT, you would then include...
"><img src="amazon.com/image.gif" alt="Amazon Wishlist" /></a>
Quote from: Kindred on February 26, 2008, 09:19:42 AM
in the PRE-TEXT, you would do something like
<a href="amazon.com/wishlist/
Then the field itself would be the amazon wishlist ID
in the POST-TEXT, you would then include...
"><img src="amazon.com/image.gif" alt="Amazon Wishlist" /></a>
oh thank you so much Kindred.
I had this code, but I think what I was doing wrong was splitting the code in the wrong place for the before and after text, and also I was adding the %1 which I don't think I needed.
It works great now - thanks again - I just couldn't see the wood for the trees
I'm still having the problem, that the mod is stopping to work when I'm doing modifications to Profile.template.php by copying it from the default directory to my custom theme.
Can anybody help me, please.
More details are here: http://www.simplemachines.org/community/index.php?topic=79004.msg1439200#msg1439200
thanks
pp
why are you copying the template file into your own theme?
Does profile.template.php already exist in your theme? if no, then there's no need to copy it. If yes, then you need to modify THAT file, not copy the default version.
Profile.template.php does NOT exist in the custom theme directory.
Because I need make the form fields smaller I need to modify this template.
Everything is ok when I use the default theme, or my custom theme (without modification to profile.template.php).
As soon as I copy it to the custom theme the mod stopped working.
"stops working" is not very descriptive.
HOW does it "stop working"
Are there any errors?
Do fields show up, but no text?
alright Im still stuck I tried adding
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldsProfile();
to the index.template.php thinking it would load the function as it does on the profile page. no luck there Ive examined the mod itself to see what it adds to the profile.template.php file to see if there is a different way of calling up the info that seems to be about the only thing it adds except for the function to edit so Im back at square one
why can't I call custom profile information anywhere aside from the summery page of the profile? (see previous post for the code Im using)
Sorry :(
On the Profile-page the custom fields are no longer visible
Oh my god, what a stupid mistake !!! :( :-X
Before updating my board to 1.1.4 I copied the complete forum directory.
I don't know why, but the directory path for the default theme pointed inside the "live" version to the backup directory.
So when updating (to 1.1.4) the backup directory got the new files :P
That's why the profile fields weren't no longer displayed, because I copied the wrong (outdated) Profile.template.php to my custom theme directory.
Now everything is working fine and as expected. :D ;D
Quote from: Kender on February 22, 2008, 08:51:48 AM
Quote from: Kindred on February 22, 2008, 07:18:47 AM
hmmm... yup, I can see that happening. The information is stored in the Themes table.... and is directly tied to the theme that the user has when they answer the questions.
is there a way to correct this?
i dont mind altering some code if necessary
but i am glad i didnt screw up the code when modifying the themes! thanks for relieving that stress
still looking for a way to resolve where the information is stored, so if a theme is changed the data is not lost
The information is stored in the theme table "smf_themes".
You'll just need to update the theme_id to the id of the new theme and all information will be available.
I am on a fresh build of SMF v1.1.4, no mods installed.
I have just installed this mod, it installs fine but I cannot find anywhere to use it, there is noting (that I can see) in the Features and Options section?
I tried uninstalling and re-installing but no luck.
Any ideas?
Quote from: danoli on February 27, 2008, 10:01:23 PM
I am on a fresh build of SMF v1.1.4, no mods installed.
I have just installed this mod, it installs fine but I cannot find anywhere to use it, there is noting (that I can see) in the Features and Options section?
I tried uninstalling and re-installing but no luck.
Any ideas?
So in the features and options you cannot see "basic features", "layout and options", and then "custom Profile Fields" ("karma" may be in there too)?
Have you tried uninstalling and reinstalling?
Quote from: pixelpeter on February 27, 2008, 09:20:27 AM
The information is stored in the theme table "smf_themes".
You'll just need to update the theme_id to the id of the new theme and all information will be available.
i have no idea what you mean :(
The information the user fills in the CustomProfile field is stored in the database.
The information is stored in the table "smf_themes".
It's saved with the id of the user and the id of the theme.
For example:
To get all entries for all user and the field CP1 you would execute this SQL statement (in phpMyAdmin):
SELECT *
FROM `smf_themes`
WHERE variable = 'CP1'
When you're using the default theme all entries will have the theme_id = 1
When you're installing a new theme and want to use the information stored in the database again
you would execute a SQL statement like this
UPDATE `smf_themes`
SET theme_id = %YOUR_NEW_THEME_ID%
WHERE variable = 'CP1'
AND theme_id = %YOUR_CURRENT_THEME_ID%
For example:
UPDATE `smf_themes`
SET theme_id = 2
WHERE variable = 'CP1'
AND theme_id = 1
This you would have to execute for each of your custom fields.
Does this help you further ?
thanks for the explination, i will implement it when i have access to that computer again
Quote from: Alundra on February 27, 2008, 10:11:11 PM
Quote from: danoli on February 27, 2008, 10:01:23 PM
I am on a fresh build of SMF v1.1.4, no mods installed.
I have just installed this mod, it installs fine but I cannot find anywhere to use it, there is noting (that I can see) in the Features and Options section?
I tried uninstalling and re-installing but no luck.
Any ideas?
So in the features and options you cannot see "basic features", "layout and options", and then "custom Profile Fields" ("karma" may be in there too)?
Have you tried uninstalling and reinstalling?
Sorry, Alundra, Uninstalling and reinstalling is a bad idea. Computers do not learn from repetition. It will not do anything different when you have it repeat something. Computers do the same thing over and over.
If he's not seeing the installed stuff, then likely
a) He is not running in the default theme
b) he is not using english (and remember, english utf-8 is different form english)
c) both a and b
Quote from: Kindred on February 28, 2008, 08:43:05 AM
Quote from: Alundra on February 27, 2008, 10:11:11 PM
Quote from: danoli on February 27, 2008, 10:01:23 PM
I am on a fresh build of SMF v1.1.4, no mods installed.
I have just installed this mod, it installs fine but I cannot find anywhere to use it, there is noting (that I can see) in the Features and Options section?
I tried uninstalling and re-installing but no luck.
Any ideas?
So in the features and options you cannot see "basic features", "layout and options", and then "custom Profile Fields" ("karma" may be in there too)?
Have you tried uninstalling and reinstalling?
Sorry, Alundra, Uninstalling and reinstalling is a bad idea. Computers do not learn from repetition. It will not do anything different when you have it repeat something. Computers do the same thing over and over.
If he's not seeing the installed stuff, then likely
a) He is not running in the default theme
b) he is not using english (and remember, english utf-8 is different form english)
c) both a and b
Oh ok...Thanks for letting me know!
Quote from: pixelpeter on February 28, 2008, 03:02:10 AM
The information the user fills in the CustomProfile field is stored in the database.
The information is stored in the table "smf_themes".
It's saved with the id of the user and the id of the theme.
For example:
To get all entries for all user and the field CP1 you would execute this SQL statement (in phpMyAdmin):
SELECT *
FROM `smf_themes`
WHERE variable = 'CP1'
When you're using the default theme all entries will have the theme_id = 1
When you're installing a new theme and want to use the information stored in the database again
you would execute a SQL statement like this
UPDATE `smf_themes`
SET theme_id = %YOUR_NEW_THEME_ID%
WHERE variable = 'CP1'
AND theme_id = %YOUR_CURRENT_THEME_ID%
For example:
UPDATE `smf_themes`
SET theme_id = 2
WHERE variable = 'CP1'
AND theme_id = 1
This you would have to execute for each of your custom fields.
Does this help you further ?
okay, from reading this, it will only change the information to the theme i select?
if i changed theme again, or if a user selects a different them the same problem will occur, wont it?
im looking for a way to have this work, regardless of the theme chosen, regarless of user custom settings (my main theme is graphics intense and i would like to offer a text only theme for users who either cant handle the large graphics nature or dont want to
Sorry, this question I can't answer.
It looks to me, you have to make changes in the core of SMF.
I hope someone else can give you a better answer
Quote from: Kindred on February 28, 2008, 08:43:05 AM
Quote from: Alundra on February 27, 2008, 10:11:11 PM
Quote from: danoli on February 27, 2008, 10:01:23 PM
I am on a fresh build of SMF v1.1.4, no mods installed.
I have just installed this mod, it installs fine but I cannot find anywhere to use it, there is noting (that I can see) in the Features and Options section?
I tried uninstalling and re-installing but no luck.
Any ideas?
So in the features and options you cannot see "basic features", "layout and options", and then "custom Profile Fields" ("karma" may be in there too)?
Have you tried uninstalling and reinstalling?
Sorry, Alundra, Uninstalling and reinstalling is a bad idea. Computers do not learn from repetition. It will not do anything different when you have it repeat something. Computers do the same thing over and over.
If he's not seeing the installed stuff, then likely
a) He is not running in the default theme
b) he is not using english (and remember, english utf-8 is different form english)
c) both a and b
It is on the default theme, where do I confirm the language setting you mention?
Just found the setting, it is english utf-8. Any other suggestions?
Quote from: danoli on March 01, 2008, 11:22:41 AM
Just found the setting, it is english utf-8. Any other suggestions?
Yup!
Are the language strings for this mod inside the themes utf8 language files?
Not really sure what you mean there?
I just accidentally deleted the mod before uninstalling it. I tried to uninstall it and it said it wasn't there. I uploaded it again and uninstalled it ok. Now when I install it and go to features and options I get the following error...
Fatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/xxxx/public_html/Sources/ModSettings.php:314) in /home/xxxx/public_html/Sources/ModSettings.php on line 324
If I uninstall it the error goes?
This looks more like a general error with my SMF rather than this Mod. I tried installing the E-Arcade_2.4.2 mod and it completed fine but noting seemd to have been updated.
Quote from: danoli on March 01, 2008, 01:49:21 PM
I just accidentally deleted the mod before uninstalling it. I tried to uninstall it and it said it wasn't there. I uploaded it again and uninstalled it ok. Now when I install it and go to features and options I get the following error...
Fatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/xxxx/public_html/Sources/ModSettings.php:314) in /home/xxxx/public_html/Sources/ModSettings.php on line 324
If I uninstall it the error goes?
looks like you have duplicate code on line 314 and 324 from installing twice, open that file, remove the duplicate code and it should be ok
Quote from: danoli on March 01, 2008, 11:22:41 AM
Just found the setting, it is english utf-8. Any other suggestions?
Just re-read the previous post. It said I should have it as english, I had utf-8. This sorted it.
My custom field mod is almost working. I am now getting a duplicate custom filed for every one I create. e.g.
If I create a custom field it displays twice in the profile.
I guess this is to do with my previous problem of a doubled up installation so the bit that lists it in the profile is duplicated, any ideas wher ethis 'bit' is so I can strip it out?
Thanks
run the mod code through the mod parser at sleepycode.com
then edit each of those files to make sure that the code was only installed once in eahc place.
Things are working perfectly, the mod looks great.
But here's my question: is there a way to use this mod with ssi? For example, I added a Friend Code field into member profiles. I want to make a page that displays a list of these Friend Codes. Is there a way to get the value of a custom field using ssi, like there is with the default SMF fields?
Thanks.
Hi despain,
Quote from: despain on March 03, 2008, 11:32:39 AM
But here's my question: is there a way to use this mod with ssi? For example, I added a Friend Code field into member profiles. I want to make a page that displays a list of these Friend Codes. Is there a way to get the value of a custom field using ssi, like there is with the default SMF fields?
Not that I am aware of, though I could be wrong. In my case, I wrote a custom SQL query to retrieve the data for all the members on the site, which I then run from a page which uses SSI for login access.
I reproduce it below for your (and perhaps other people's) benefit.
SELECT smf_members.ID_MEMBER
,smf_members.emailAddress
,smf_members.memberName
,full_name.value AS fullName
,member_no.value AS memberNo
FROM smf_members
,smf_themes AS full_name
,smf_themes AS member_no
WHERE (smf_members.ID_MEMBER = full_name.ID_MEMBER
AND smf_members.ID_MEMBER = member_no.ID_MEMBER
AND full_name.variable = 'cp1'
AND member_no.variable = 'cp2')
ORDER BY ID_MEMBER;
It's slightly more complicated to get the data from the database than a simple "SELECT column1, column2, column 3 FROM table". For a start, the basic information is stored in smf_members, whilst the custom profile fields are in smf_themes. Also, the data in smf_themes is stored by row, rather than in distinct columns.
To get around this, you use aliases and self-joins, and limit the output with a WHERE clause so that you only get the information you need (where the ID_MEMBER matches in all cases, as well as where the variables are the two you need - cp1 and cp2).
As you can see, I'd left the default values (cp1 and cp2), though if you've given these your own names, you'd substitute them in. Similarly in my case those two fields refer to Full Name and Membership Number, so my aliases use these names. If you had more or different custom fields, you would need to tweak the code accordingly.
I am not an SQL expert, and I developed the above code with much assistance from my father (who has been working with SQL for longer than I've been alive). I would be interested in seeing if its the most efficient way of doing things.
It certainly works, however, and you can add in extra fields to the SELECT query if you wish to check, for instance, the last-logged in date, or the registered date (or any other bit of data) about each member.
I hope that is of some use as a starting point for your own queries.
Sunil
Would someone please tackle this issue:
I'm trying to have it so Global Moderators can view/edit these fields if those options are checked, not just Administrators. I found 4 entries for "is_admin" in the CustomProfile.php file and tried changing them all to "can_admin", "is_mod" or "can_mod" but none of them seemed to do the trick. As a matter of fact, any setting except "is_admin" wouldn't even allow the primary admin account to view/edit the fields! I even tried assigning Global Moderator as the secondary group with no success. There HAS to be a solution for this! ::)
if ($modSettings['CP' . $i . '_edit'] && !$context['user']['is_admin'])
and
if ($modSettings['CP' . $i . '_view'] && !$context['user']['is_admin'])
@ res6cue why don't you just give your global admins permission to edit profiles which would include these fields?
perplexed - They already do have the permission to edit profiles, that's the problem! This mod still prevents anyone but a true Administrator from viewing/editing these fields if the "allow admin" fields are checked.
hmmm well my global moderators can do it on my forum no worries. they have 'edit additional profile settings' box checked in permissions and they can edit all the custom profile fields
My Global Mods have nearly the same permissions as Admins, including full control over all profiles.
Here's the $64,000 question for you: Are your custom profile fields set to "Only allow admins to edit field?" or "Only allow admins to view field?" That is where this whole issue stems from. I do not want my regular members to be able to edit these fields once they fill them in at registration, but I DO want to allow my Global Mods to be able to edit them, which is not working no matter what I try.
Seriously, someone out there has to be able to figure this out.
ah, yes that's the difference, sorry. I forgot about that.
Hi!
I'm new around here, and don't see a way to post a new topic, so I'm using "Reply". Let me know if I should handle some other way.
I have installed this mod, but when I chose "Selection Box", I got the same menu as for "Text". There is no "Options" or "Add an Option" listed.
These are all the packages I have installed:
1. Registered Links 1.0
2. Easy Edit Meta Data 1.0
3. Custom Profile Field Mod 3.17
4. Ad Managment 2.3
5. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0
6. SMF 1.1.4 Search "brd" Bug Fix (1.0.1) 1.0.1
I'm using the Default Core theme.
After I installed the Registered Links 1.0 mod I couldn't find it anywhere and my Meta tab from the Easy Edit Meta Data 1.0 mod I installed earlier disappeared (the tab for it was previously located in Admin>Configuration>Features and Options). I don't know if this has anything to do with the problem or not. Maybe the Registered Links mod caused some conflict with the Custom Profile Field mod as well?
Any thoughts on how I can create options?
Thank you very much!
After you created the field and changed the type to Selection Box, you DID hit SAVE at the bottom of that page before going into the Settings, right??
...duh, no. Well, I'm glad the solution was something simple, even at the expense of my embarrassment. Thank you very much res6cue!
Oh don't feel too bad...there's a reason I knew exactly what the problem was! :-[ :D
Hello,
Is there a way to make the profile field on the left show up at the top at the beginning of the field rather than floating in the middle? Check the picture for example as it is somewhat hard to explain.
Any info?
of course there IS a way...
You'll have to modify the code that displays the custom info... (and possibly the CSS)
hi I searched this thread for "shifting fields" and "moving fields" but could not find the exact question. I see that "3.17-Fixed a bug with moving fields." is noted on the latest upgrade, but I saw it noted on a previous upgrade. If I upgrade this to 3.17 will I be able to add additional feilds without the information from other fields being effected? The reason I ask is I have thousands of profiles which would be effected. Thanks for any feedback :)
Hi,
I have v 1.12 installed with the following packages:
Mod Name Version
1. Auto Embed Video Clips 2.1.4 [ Uninstall ] [ List Files ] [ Delete ]
2. Custom Profile Field Mod 3.17 [ Apply Mod ] [ List Files ] [ Delete ]
3. Skype Name Mod 2.0 [ Uninstall ] [ List Files ] [ Delete ]
4. Xbox Live Gamer Tag 1.0.0 [ Uninstall ] [ List Files ] [ Delete ]
5. Google Talk Field 1.0.2 [ Uninstall ] [ List Files ] [ Delete ]
6. WoW Character Profiles 1.5.1 [ Uninstall ] [ List Files ] [ Delete ]
7. Enhanced Quick Reply Box 2.0.2 2.0.2 [ Uninstall ] [ List Files ] [ Delete ]
8. Group Moderators 1.4 [ Uninstall ] [ List Files ] [ Delete ]
When attamting to install all check out except for ModSettings.php - can anybody help?
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 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
install the mod and then use the package parser to edit the file that had test failed.
You should really upgrade to SMF 1.1.4 for security reasons too!
Link to package parser is in my signature, very easy to do :)
Dude u Legend!!! That worked beautifully. I am using it for a gamer's forum to display PSN ID's and Wii Codes. You see, I would upgrade in an instant, but I have the XBL mod, which I edited myself a while ago to actually pull the real XBL gamercard, and I'm not too sure how to add it back in the install package of the XBL gamerard mod - it's just not something I have time for, else I really would upgrade with pleasure.
My appologies but I do have 1 more question for you. What I'm trying to do is diplay the PSN ID (your Mod - Custom Profile Text Field) above the XBL Gamertag, however the custom field can only display next to the msn/icq etc images or above the forum posts. Can you perhaps help and show me how I can get it do display just above the XBL gamertag -see pic for details:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg225.imageshack.us%2Fimg225%2F97%2Fcustomgh5.th.gif&hash=3e7f05965b5285cf9f648c7c0d6594a8b5066a74) (http://img225.imageshack.us/my.php?image=customgh5.gif)
I am actually happy to have all custom fields display there as per the image. Let me know if you can help.
Thanks again :)
Quote from: Kindred on March 13, 2008, 08:57:16 AM
of course there IS a way...
You'll have to modify the code that displays the custom info... (and possibly the CSS)
Will those files be one of the files after I installed the package? Or will I need to unpack the package file? Please let me know, thank you.
I'm not sure where the custom field display function is defined... look at the display.template.php for the function call... and then do a search of the installation XML file to see where that function was added.
I actually have no idea how to find where it's called or edit an xml file, that's why I'm asking; sorry. If anybody can help me out, I'd appreciate it very much.
unpack the mod to a folder
create a new folder inside (call it 'edit')
open your FTP program and go to the Source directory
drag and drop ModSettings.php into the customprofile3-17 folder
open modifications.xml and ModSettings.php with a php editor tool (http://www.php-editors.com/)
in the modifications page the first search and edits are for ModSettings.php
do the few edits, save to the 'edit' folder
then drag and drop the new saved file to the Source directory...
install the rest of the package through the SMF admins panel
actually... the other way around...
install the mod as it stands.
now open your source files and make any changes to the mod that you want.
(if you do it your way, the mod will not correctly install)
Quote from: Kindred on March 15, 2008, 07:57:01 AM
actually... the other way around...
install the mod as it stands.
now open your source files and make any changes to the mod that you want.
(if you do it your way, the mod will not correctly install)
When you say the source files, did you mean the package xml file?
no... source files would be your actual forum
(either in the Sources directory or the Themes/default directory)
you don't want to edit the XML unless you know what you are doing, otherwise the m od won't install in the first place.
Install the mod.
Then modify the mod by editing your forum files with the mod installed.
I have installed 3.16 and TP 0.9.8.
I need to use some custom profile fields in one of articles, how to use that ?
To simplify my question:
How to call some of the fields from DB ?
I have CP4_desc and CP4_name
But I need values of custom fields for some members.
Thank you.
once again... search is your friend. The code to get information from the CPF tables has been given in this thread...
hello I noticed this on the MOD and tried to search to find the answer to my question but was not successful.
3.17-Fixed a bug with moving fields.
3.16-Added compatibillity for 1.1 final.
3.15-Fixed bug with moving fields up and down and deleting.
I have the 3.16 version and the last time a tried to add fields they shifted others around. Has the 3.17 version which was last updated in January corrected the moving fields? So once i upgrade to 3.17 it is safe to add other fields without things shifting around? Thanks for listening.
I just installed this mod on a fresh install and found a bug straight away.
I was adding a selection box and noticed when I clicked on recreate field that there was a typo in the link. there is no = after the variable sesc :)
Also there is the ability to add selection box fields but no ability to take them away?
meh... at this point, I wouldn't worry about this mod... :) SMF 2.0 has custom fields built in, standard.
you have installed the mod twice.
You will have to manually remove the duplicate code sections (and there are likely to be more duplicates than just the one that is causing the error)
Quote from: Kindred on March 18, 2008, 09:30:26 PM
meh... at this point, I wouldn't worry about this mod... :) SMF 2.0 has custom fields built in, standard.
The real question now becomes: Will there be a way for us to import all the existing data from this mod into the SMF 2.0 format? This is going to be critical for my forum to keep this data!
Quote from: res6cue on March 19, 2008, 09:49:37 AM
The real question now becomes: Will there be a way for us to import all the existing data from this mod into the SMF 2.0 format? This is going to be critical for my forum to keep this data!
I posted a feature request a while back for this, and if I recall correctly, the response was that it would be considered.
I saw a post earlier on today suggesting that SMF2 stored the data in the same table (smf_themes) as the CPF mod.
Taking a look just now, this appears to be the case:
id_member id_theme variable value
2 1 name Mr Test Account
2 1 membersh 1111/11
In my setup of the CPF mod, a similar set of values would be:
2 1 CP1 Mr Test Account
2 1 CP2 1111/11
So -
it appears all that has changed is that the "variable" field is no longer customisable, instead just taking the first 8 characters of the field name.
If I were to convert the data across, I'd just need to replace all instances of "CP1" with "name" and all of "CP2" with "membersh" in this case.
I do not have any fields which are not of type text, so I do not know how checkboxes, etc. will be handled.
There is one thing which is bugging me, though, about the SMF2 implementation of custom fields.
The "Privacy: Who can see and edit this field" option is way too limited.
There are only three options in the dropdown box:
* Users can see this field; owner can edit it
* Users can see this field; only admins can edit it
* This field is only visible to admins
The way I currently have the CPF mod set up for a particular field is that the
owner can both see and
edit it (for their own profile, obviously), but that no other users can except Admins.
There does not appear to be a way to make this happen with the SMF2 core implementation of it.
Also SMF2 is feature-frozen, so I'm not sure whether this will be changed in final. I am thinking of making a "formal" feature request for more granularity of the CPF features, just in case there is time to change it. A set of check-boxes with various options for force-on-registration, visibility on posts, visibility on profile (self and others) and edit-ability (self or just admins) would do the trick.
Sunil
I've tried to search for the answer in this thread without any luck. I'm using SMF 1.1.4. The only mod I have installed is Gallery 2 Integration 1.0Beta3.1.
when I try to apply the profile mod (3.17), it gives me a Test Failed on line 1 (ModSettings.php). Every other line came up with Test Successful.
please help...thanks!
Quote from: af4643 on March 19, 2008, 11:01:53 AM
I've tried to search for the answer in this thread without any luck. I'm using SMF 1.1.4. The only mod I have installed is Gallery 2 Integration 1.0Beta3.1.
when I try to apply the profile mod (3.17), it gives me a Test Failed on line 1 (ModSettings.php). Every other line came up with Test Successful.
please help...thanks!
please use the package parser - link in my signature - and edit that file that failed manually. It's usually a conflict with another mod but you can install and edit the file by following the instructions for that file in the package parser.
Quote from: res6cue on March 19, 2008, 09:49:37 AM
Quote from: Kindred on March 18, 2008, 09:30:26 PM
meh... at this point, I wouldn't worry about this mod... :) SMF 2.0 has custom fields built in, standard.
The real question now becomes: Will there be a way for us to import all the existing data from this mod into the SMF 2.0 format? This is going to be critical for my forum to keep this data!
Yes. To do this, after upgrading to 2.0 and enabling advanced profile fields, create a new field when the
exact same name as the field ID (not the name, should be something like "CP1") of the field you want to input. After creating the field you can then rename the field to what you want. For example if I have a field using this mod on SMF 1.1 called "Favorite Food" with a field ID of "CP3", I would create a new field in SMF 2.0 called "CP3", hit save, then modify the field that I just created and change the name to "Favorite Food".
Hi,
can fields created by this MOD be "force-on-registration"?
Quote from: winrules on March 19, 2008, 03:33:16 PM
Yes. To do this, after upgrading to 2.0 and enabling advanced profile fields, create a new field when the exact same name as the field ID (not the name, should be something like "CP1") of the field you want to input. After creating the field you can then rename the field to what you want. For example if I have a field using this mod on SMF 1.1 called "Favorite Food" with a field ID of "CP3", I would create a new field in SMF 2.0 called "CP3", hit save, then modify the field that I just created and change the name to "Favorite Food".
Outstanding, thank you for that!
I posted this a month ago... :)
BTW: To convert this to the standard 2.0 custom fields...
UPDATE `smf_themes` SET `variable` = '*NewFieldName*' WHERE `variable` = 'CP1'; (or CP2, or CP2, etc)
Ah a nice SQL method, even better! Thanks Kindred.
Quote from: Kindred on March 19, 2008, 05:36:58 PM
I posted this a month ago... :)
BTW: To convert this to the standard 2.0 custom fields...
UPDATE `smf_themes` SET `variable` = '*NewFieldName*' WHERE `variable` = 'CP1'; (or CP2, or CP2, etc)
Heh, sorry Kindred - I missed that post when I described this process earlier today (http://www.simplemachines.org/community/index.php?topic=79004.msg1473621#msg1473621), though I didn't do the SQL.
The second section of that post still stands though - i.e. SMF2's current implementation of custom profile fields loses some of the options provided by the mod. I'm about to post a feature request for it!
Quote from: jossanaijr on March 19, 2008, 05:00:16 PM
Hi,
can fields created by this MOD be "force-on-registration"?
Yes, they can. In your Admin panel, go to "Features and Options" -> "Custom Profile Fields". Once you create (or select) the field you wish to force entry, in that field's settings go to "Show field on registration?" and select "Force Input" from the drop-down menu.
Sunil
Thanks.
I have tried for about 5 days to get this mod to work and can't seem to. Upon install I get ModSettings.php failure. So I install and then run through the SMF Package Parser and edited the ModSettings.php file as it says to. No options for this mod appear. Can you please help me, I have used this mod on my old forum and loved it but I needed to have access to databases so I had to move to a paid server space.
Hi Sunil!
QuoteQuote from: jossanaijr on Yesterday at 02:00:16 PM
Hi,
can fields created by this MOD be "force-on-registration"?
Yes, they can. In your Admin panel, go to "Features and Options" -> "Custom Profile Fields". Once you create (or select) the field you wish to force entry, in that field's settings go to "Show field on registration?" and select "Force Input" from the drop-down menu.
Sunil
In my drop down menu, I only have two options: "Show" and "Don't Show"
Quote from: 58tbird on March 20, 2008, 11:18:15 PM
Hi Sunil!
In my drop down menu, I only have two options: "Show" and "Don't Show"
Hmh... I'm not sure about this.
On the live forum which I've applied this mod to, I'm using SMF 1.1.4 and the CPF mod 3.16.
This is a bit small, it appears that the site has resized my image hosted externally - but here are the options I get for a text field titled "Name"
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi16.photobucket.com%2Falbums%2Fb4%2FSunR2%2Fpost%2520images%2FCPFMod.png&hash=266403707e4d41b46a5092f691e263183a574203)
The option you need is 3rd from the bottom - the last drop-down, immediately above the two check-boxes.
Sunil
Quote from: jimvy on March 20, 2008, 08:19:20 PM
I have tried for about 5 days to get this mod to work and can't seem to. Upon install I get ModSettings.php failure. So I install and then run through the SMF Package Parser and edited the ModSettings.php file as it says to. No options for this mod appear. Can you please help me, I have used this mod on my old forum and loved it but I needed to have access to databases so I had to move to a paid server space.
once again... are you running the default theme and english? (english utf-8 is different from english)
Hi Sunil!
I have SMF 1.1.4 and the CPF mod 3.17.
I selected "Add a Field" and ran through all the options: Text, Text Area, Check Box, & Selection Box. Each of those offers the ability to select Don't Show, Optional, or Force.
But when it comes to the only Custom Profile Field I've actually set-up, I only have the options to Show or Don't Show. It's a Selection box with 12 selections. I wondered if the option for forcing is dependant on any of the other settings:
Show in profile?
Show in posts?
Parse BBC?
Field ID
Add a horizontal rule before field?
Show field on registration? (not this one, of course)
Only allow admins to edit field?
Only allow admins to view field?
So I ran through them and changed my settings for each, but no luck - I still only have two options: Show or Don't Show.
It's not an option for the selection box field, you only have show or don't show.
Ah, you're right Perplexed. I forgot to click Save when I set-up a test for the Selection Box. Now I see that it doesn't offer this option after all. Thank you!
no worries :)
Hello,
I am running (www-esforum-cz) and I would like to use this mode, but I have different language (czech) and skin. If I instal this mod, there is no option. Does any solution exist ?
Thank you for your answer
I had used this mod before, and found a problem with the drop down menu custom profile. Basically, by using JavaScript injection, it's possible to add a selection to the list that was not originally there, and add it in. I think this could be easily fixed by making sure that the selection is one of the allowed options. While I didn't test it, I assume it would work the same way with checkboxes and etc. If this has already been found out and fixed, please let me know, as this was a few months ago that I found this out.
Quote from: Kindred on March 21, 2008, 08:26:16 AM
once again... are you running the default theme and english? (english utf-8 is different from english)
I had changed it and one of the other admins changed it back because he thought it was a mistake. It's working now and he knows to stop playing with the language settings! Thanks for the help.
Quote from: esforum on March 22, 2008, 06:30:00 AM
Hello,
I am running (www-esforum-cz) and I would like to use this mode, but I have different language (czech) and skin. If I instal this mod, there is no option. Does any solution exist ?
Thank you for your answer
and yet again, the mod only installs in english and the default theme by default.
if you are running a different theme, you will have to manually apply template changes to your own theme.
if you are running a different language, you will have to apply the language strings to modifications.yourlanguage.php file (as they were applied in modification.english.php)
SMF 1.1.4
For those who are trying to use the custom profile fields in the memberlist or Member List. I am listing both terms here to help future searchers. Something close is shown but you still need to really look at it to figure it out. the answer is below.
Quote from: fecu2008 on February 25, 2008, 01:14:54 AM
Quote from: Kindred on February 22, 2008, 01:39:05 PM
DHC... try using search? That question has been answered at leats 6 times in this thread.
the themes table. under the variable name CP1, CP2, etc.
And no... the custom profile fields are not even IN the memberlist, as standard. There is code further back in this thread about how to add them to your member list, but I don't know if the coder ever put in a sort capability.
On the other hand, the custom profile fields in SMF 2.0 can be added to the member list and can be sorted on.
Ive looked through this whole thing and i dont see where you add it to your memberlist. Can someone explain this to me or if its possible?
Quote from: Kindred on February 25, 2008, 01:48:22 AM
it's there... it may be scattered somewhere in the 90 pages...
but you would use:
echo '$context['member']['options']['CP1']';
or CP2, CP3, etc... whatever field you want displayed.
It is not in this topic - you can find the answer in a different topic over here and elsewhere on the community board:
http://www.simplemachines.org/community/index.php?topic=92854.msg1248190#msg1248190
To get CP to show up in the memberlist table you can't site $context['member']['options']['CP1'] in the members table that is assembled via the Memberlist.template.php near line 121.
Instead inside the table use this $member['options']['CP1'] and you will get results.
To find out more search the community for
$member['options']['CP1']
I started trying to search the 90 odd pages as someone here suggested. Searched for:
custom fields - got nothing
memberlist - got nothing
member list - got nothing
custom profile in member list
I hope this helps to lessen the anxiety...
Quote from: Kindred on March 17, 2008, 08:20:58 AM
once again... search is your friend. The code to get information from the CPF tables has been given in this thread...
I think what he really means is search the community about custom fields in the memberlist. Sure wish I knew that about 4 hours ago... Hope it helps someone else!
1.14 default theme
I rescripted the mod setting but im still having this same problem. I must have a mod conflicting with it. I have 5 fields, but when I go to add a new one, and type the information (field name, description, etc) on a new field and hit save, it still shows unnamed field. I cant edit the text or anything.
Where is this editing process in what file to fix this?
Hi
I try to install Custom Profile Field Mod 3.17 on SMF 1.1.4.
If hit Apply Mod on Modification Packages it looks good.
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
also if I install the mod
The package was installed successfully.
But, after the installation I cant find the mod and it is not listed under Installed Packages
I use the english default theme.
thanks for your support
sven
have you checked which language you are using?
You might need to chack your forum language settings:
Go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support
see if it turns up then
Hi perplexed
Default Forum Language was German but in the Administrator User Profil changed to English.
For a test, I changed the default forum language to english. But I still can't find the menu item.
How can I modify my theme and the german language file for using the mod?
many thanks, sven
Custom Profile Field Mod translate in French
The attached file id an english and french version of the mod.
Custom Profile Field Mod traduit en Français
Le fichier joint est une version anglaise et française du paquet.
Quote from: xooops on March 25, 2008, 10:25:40 AM
Hi perplexed
Default Forum Language was German but in the Administrator User Profil changed to English.
For a test, I changed the default forum language to english. But I still can't find the menu item.
How can I modify my theme and the german language file for using the mod?
many thanks, sven
did you change the language to english in Admin panel > server settings? Check that and make sure you can see the options first
Hi perplexed
yes, it's set to english. What do you mean with " you can see the options first "
I alo tried to install a second time with the english settings. But still the same.
thanks, sven
Hi,
i am trying to uninstall CP, because have installes Ultimate profile and CP does not show now in the menu anymore. So probably UP have overwritten CP.
Anyway, i now get the message :
./Sources/ModSettings.php Test mislukt (dutch)
i have the following mods installed:
1. Ultimate Profile 0.8 [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
2. Custom Profile Field Mod 3.17 [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
3. Profile Comments 1.3.6 [ Pas mod toe ] [ Overzicht bestanden ] [ Verwijderen ]
4. TinyPortal 0.983 [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
5. Temporary fix 0.5 [ Overzicht bestanden ] [ Verwijderen ]
6. Load Standard Language 1.0.1 [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
7. Language File Compare 1.0.1 [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
8. Signature Dropdown Choices 1.0 [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
9. SMF 1.1.4 Search "brd" Bug Fix (1.0.1) 1.0.1 [ Deïnstalleer ] [ Overzicht bestanden ] [ Verwijderen ]
10. Enhanced Quick Reply Box 2.0.2 2.0.2 [ Pas mod toe ] [ Overzicht bestanden ] [ Verwijderen ]
11. User Control Panel By Alan S 2.0
Can anyone help me?
Thanks!
because you have installed other mods over the CPF mod, you will have to manually uninstall certain sections of the CPF mod.
Oh Great :(
Would you possibly know what to erase?
Quote from: Lafemme on March 26, 2008, 04:22:24 PM<br />Oh Great <img src="http://www.simplemachines.org/community/Smileys/simple/sad.gif" border="0" alt="" title="" onresizestart="return false;" id="smiley_1_sad.gif" style="padding: 0 3px 0 3px;" /><br /><br />Would you possibly know what to erase?<br /><br /><br />
not a clue... it would all depend on what won't automatically uninstal.
Well, it seems that the only thing that fails is the ModSettings.php page.
I've been trying to download this mod but it keeps saying "The package you are trying to download or install is either corrupt or not compatible with this version of SMF." We're running Forum version: SMF 1.1.4. any help would be appreciated. Cheers
i have installed Custom Profile Field Mod 3.17 on SMF 1.1.4 and can create the field i want (real name)
but is there a way of hiding this field from everyone except certain members group.
i have searched every were and found this
http://www.simplemachines.org/community/index.php?topic=216906.0
but the link that points to just confuses me :-[
is this the only way of doing what i want ?
How's come I don't get any Line Breaks or Carraige Returns in a Text Area?
It all just runs together.
Input from Edit field:
Unable to reach Gmail.
Unable to reach Gmail.
Unable to reach Gmail.
Unable to reach Gmail.
Unable to reach Gmail.
Unable to reach Gmail.
Unable to reach Gmail.
Unable to reach Gmail.
Unable to reach Gmail.
Unable to reach Gmail.
Result in Profile Summary:
Unable to reach Gmail. Unable to reach Gmail. Unable to reach Gmail. Unable to reach Gmail. Unable to reach Gmail. Unable to reach Gmail. Unable to reach Gmail. Unable to reach Gmail. Unable to reach Gmail. Unable to reach Gmail.
1.14 default
whenever I make a new field and type in the field name and hit save, it still shows up as unnamed field. Can someone help?
Quote from: kota069 on March 31, 2008, 01:54:19 PM
How's come I don't get any Line Breaks or Carraige Returns in a Text Area?
It all just runs together.
Input from Edit field:
Unable to reach Gmail.
Unable to reach Gmail.
Unable to reach Gmail.
Unable to reach Gmail.
Unable to reach Gmail.
Unable to reach Gmail.
Unable to reach Gmail.
Unable to reach Gmail.
Unable to reach Gmail.
Unable to reach Gmail.
Result in Profile Summary:
Unable to reach Gmail. Unable to reach Gmail. Unable to reach Gmail. Unable to reach Gmail. Unable to reach Gmail. Unable to reach Gmail. Unable to reach Gmail. Unable to reach Gmail. Unable to reach Gmail. Unable to reach Gmail.
try checking the 'parse bbc' box in the custom profile field and that will accept BB code so you can format like you do with posts
Hi perplexed
i'm still struggling :-(
thanks, sven
Quote from: xooops on March 26, 2008, 02:05:09 PM
Hi perplexed
yes, it's set to english. What do you mean with " you can see the options first "
I alo tried to install a second time with the english settings. But still the same.
thanks, sven
In Admin panel > features and option page there should be a selection of tabs similar to this
Basic Features Layout and Options Custom Profile Fields
What I meant was see if you can see this option with forum set to English.
You will need to edit the mod if you want to use German language. See on this page what this member has done for French language (see the attached file above)
Quote from: MagicG on March 26, 2008, 03:52:28 AM
Custom Profile Field Mod translate in French
The attached file id an english and french version of the mod.
Custom Profile Field Mod traduit en Français
Le fichier joint est une version anglaise et française du paquet.
Hi perplexed
thanks,
I would like use this mod with english language (first).
I only see Basic Features | Layout and Options | Karma under Admin panel > features and option page
i'm wondering why I can't see the mod under "Installed Packages". is that ok?
thanks, sven
Quote from: perplexed on March 31, 2008, 02:18:49 PM
Quote from: kota069 on March 31, 2008, 01:54:19 PM
How's come I don't get any Line Breaks or Carraige Returns in a Text Area?
It all just runs together.
Input from Edit field:
Unable to reach Gmail.....................
Result in Profile Summary:
Unable to reach Gmail.....................
try checking the 'parse bbc' box in the custom profile field and that will accept BB code so you can format like you do with posts
By Crackies, that did it.
Thanks!
I didn't realize that.
@ kota - yeah you have to remember that, otherwise it will just give you text
Quote from: xooops on March 31, 2008, 03:12:00 PM
Hi perplexed
thanks,
I would like use this mod with english language (first).
I only see Basic Features | Layout and Options | Karma under Admin panel > features and option page
i'm wondering why I can't see the mod under "Installed Packages". is that ok?
thanks, sven
Are you sure you installed the Mod? Did it say 'congratulations, you can now use whatever functionality...'
If so, are you sure you are using English Language not English-utf8 language? Check in your server settings.
I use this mod mainly for the extra fields it adds during registration. However, I've found that after registering, members are deleting the information in their profiles that they used to register because they have visibility of it.
Is there any way that only admin can view this information, not the member as well?
change it to admin edit and/or admin view only in each of the field you don't want changed.
Thanks for that - I'll go hide behind the rock and be dumb again ;D
Been using this mod for about 6 months and not realised it was there all the time.
Cheers
Ah ok - doesn't quite work the way I wanted it to. Is there any way of adding another membergroup that can view and edit the customer profile fields? A code hack will be fine as long as it works ;)
did you see there were two options - one for admin edit only and one for admin view only?
There is some kind of hack, I will see if I can find it again and post it here
edited: here's the link, I haven't tried it personally
http://www.simplemachines.org/community/index.php?topic=216906.msg1384419#msg1384419
Yes I tried both options.
Basically I have a membership admin group that I want to be able to view the CP fields as well as full admin group. WIll look at the hack and see how it goes. Many thanks
the hack seems a bit OTT for what I want - don't really want to uninstall this mod as it works perfectly except for this extra I'd like.
In the sources/CustomProfile.php file, is there any way of adding another group to the following call as well as the 'is_admin' part?
if ($modSettings['CP' . $i . '_edit'] && !$context['user']['is_admin'])
{
$i++;
continue;
I'm no php coder, but something along the lines of adding && !$context['membergroup'=6] (where membergroup 6 is my membership admin group) don't really know what I'm talking about, hopefully someone will correct my stupidity ;D
On second thoughts, why when all I had ticked was "Only allow admins to edit field", weren't the CP fields visible (but not editable) to the other membergroup I have set up with permissions for "Member administration"?
have installed the other custom profile advanced mod and this works for my needs perfectly. many thanks ;)
that's cool, glad it worked out for you :)
Love this mod...just curious though...is there a way to TITLE the sections in addition to dividing them by a horizontal rule?
Thanks,
Wally
1.14 default
whenever I make a new field and type in the field name and hit save, it still shows up as unnamed field. Can someone help?
I've spent a week working on this, and its annoying the hell out of me...
since the cp data is saved in the database, i should be able to do a check for it, like you can with ['is_guest'] and ['is_admin'] stuff...
i should be able to do something like...
if(!empty $member['options']['CP1'];)
{
echo 'blahblah';
}
shouldn't i?
I have Tiny portal installed, the User control panel mod, and this one only on my forum
under normal use, they all work fine
but what i need to do is, have my guests supply a state of residence on registration
(which CPF mod is doing)
i have a series of articles, regarding information on a per state basis...
how can i get a tinyportal block to display the correct article, based on logged users ['state'].
if ['is_guest'] then load default "Welcome" article.
i would assume a check like the above, or how SMF checks if user is logged, or if their guest would work... but any combo's i've tried don't display anything... the code is right, i get no errors, but... nothing displays.
any ideas?
i need to ask my guests to supply their current State of residence.
Hello,
1.1.4
I have this mod installed (thanks!) and it works well on five of my forums. However, one forum (after I moved it to a new host) now has an error. You can still see information added to the extra profile fields in the forum, but you cannot access the fields (they just don't exist).
In the packages, it says:
Quote1. Custom Profile Field Mod 3.15 [ List Files ] [ Delete]
note: there is no uninstall.
What should I do to fix this issue please?
Thanks.
Hello,
i have installed Custom Profile and it worked great. Then i installed Ultimate profile. I have inserted a code that will enable the costume profile field to work within Ultimate profile. I have also installed the mod Load Standard Language.
The only problem i have is that the tab is not displayed anymore of CP. You can see the attached file.
Does anybody know what the problem is?
Thanks!
lafemme, was the tab showing OK before you added the ultimate profile mod?
what code did you add and to what file?
Yes, the tab was showing before.
And i put the code like in this post, http://jovant.guruserve.com/test-forum/index.php?topic=19.0
as you have told me to do this :D
Quote from: Lafemme on April 07, 2008, 03:50:51 PM
Yes, the tab was showing before.
And i put the code like in this post, http://jovant.guruserve.com/test-forum/index.php?topic=19.0 (http://jovant.guruserve.com/test-forum/index.php?topic=19.0)
as you have told me to do this :D
hmmm did you do it exactly as it says in that post? I don't see how it wouldn't be working, did you also remember to uncomment the section?
QuoteThen, uncomment whole block of code. (Find and delete /* and */ that are around this block)
Quote from: Jumbobeef on April 06, 2008, 06:37:07 AM
Hello,
1.1.4
I have this mod installed (thanks!) and it works well on five of my forums. However, one forum (after I moved it to a new host) now has an error. You can still see information added to the extra profile fields in the forum, but you cannot access the fields (they just don't exist).
In the packages, it says:
Quote1. Custom Profile Field Mod 3.15 [ List Files ] [ Delete]
note: there is no uninstall.
What should I do to fix this issue please?
Thanks.
Anyone, please?
Thanks.
you could try using the package parser to track down what code this mod added to your files and remove it manually. Then if you want, install the latest version 3.17
Quote from: quiteperplexed on April 07, 2008, 06:03:46 PM
Quote from: Lafemme on April 07, 2008, 03:50:51 PM
Yes, the tab was showing before.
And i put the code like in this post, http://jovant.guruserve.com/test-forum/index.php?topic=19.0 (http://jovant.guruserve.com/test-forum/index.php?topic=19.0)
as you have told me to do this :D
hmmm did you do it exactly as it says in that post? I don't see how it wouldn't be working, did you also remember to uncomment the section?
QuoteThen, uncomment whole block of code. (Find and delete /* and */ that are around this block)
Yes I did, and i see the field in the profile, only i do not see the tab in the admin panel. When i installed UP, the CP tab did not show anymore.
did ultimate profile install with no 'test fails'?
nope
so you had to edit files? Maybe you could check your files and make sure you did the correct edits. I think maybe especially modsettings.php
Quote from: quiteperplexed on April 08, 2008, 05:43:44 AM
you could try using the package parser to track down what code this mod added to your files and remove it manually. Then if you want, install the latest version 3.17
Thanks. I tried to install the lastest version to see what would happen, and now I have this:
Quote1. Custom Profile Field Mod 3.15 [ List Files ] [ Delete ]
2. Increase/Decrease Postbox Size 1.0 [ Uninstall ] [ List Files ] [ Delete ]
3. Custom Profile Field Mod 3.17 [ Upgrade ] [ List Files ] [ Delete ]
4. View Only Boards 1.2 [ Uninstall ] [ List Files ] [ Delete ]
5. Users Online Today Mod 1.4.0b3 [ Uninstall ] [ List Files ] [ Delete ]
If I try to click on [upgrade] it tells me the file is corrupt.
No. i havn't. Well.. later i have, but when i installed it, i did not. If worked fine before, but the momenent i installed UP, the CP tab was gone. I thought that UP had overwritten it and that they could not be ussed together..
Quote from: Jumbobeef on April 08, 2008, 02:46:44 PM
Thanks. I tried to install the lastest version to see what would happen, and now I have this:
Quote1. Custom Profile Field Mod 3.15 [ List Files ] [ Delete ]
2. Increase/Decrease Postbox Size 1.0 [ Uninstall ] [ List Files ] [ Delete ]
3. Custom Profile Field Mod 3.17 [ Upgrade ] [ List Files ] [ Delete ]
4. View Only Boards 1.2 [ Uninstall ] [ List Files ] [ Delete ]
5. Users Online Today Mod 1.4.0b3 [ Uninstall ] [ List Files ] [ Delete ]
If I try to click on [upgrade] it tells me the file is corrupt.
Ummm.... You need to back the mod out of your system. If it won't back out automatically, then you need to do so manually...
Quote from: Kindred on April 08, 2008, 04:11:28 PM
Quote from: Jumbobeef on April 08, 2008, 02:46:44 PM
Thanks. I tried to install the lastest version to see what would happen, and now I have this:
Quote1. Custom Profile Field Mod 3.15 [ List Files ] [ Delete ]
2. Increase/Decrease Postbox Size 1.0 [ Uninstall ] [ List Files ] [ Delete ]
3. Custom Profile Field Mod 3.17 [ Upgrade ] [ List Files ] [ Delete ]
4. View Only Boards 1.2 [ Uninstall ] [ List Files ] [ Delete ]
5. Users Online Today Mod 1.4.0b3 [ Uninstall ] [ List Files ] [ Delete ]
If I try to click on [upgrade] it tells me the file is corrupt.
Ummm.... You need to back the mod out of your system. If it won't back out automatically, then you need to do so manually...
Hi all,
Quote from: quiteperplexed on April 08, 2008, 05:43:44 AM
you could try using the package parser to track down what code this mod added to your files and remove it manually. Then if you want, install the latest version 3.17
I used the package parser and replaced the listed files with fresh-out-of-the-box 1.1.4 files (and deleted the two extra files as required) bu I still have exactly the same as listed in my last post.
Any other ideas please?
you replaced the source files, but you did not change the installed file in the packages directory. It still thinks that you have 3.15 installed.
Quote from: Kindred on April 09, 2008, 07:24:00 AM
you replaced the source files, but you did not change the installed file in the packages directory. It still thinks that you have 3.15 installed.
How do I do that please.
try deleting the 3.15 version of the mod form the package manager interface.
Quote from: Kindred on April 09, 2008, 09:06:40 AM
try deleting the 3.15 version of the mod form the package manager interface.
Thanks. I did that, and got rid of both of them. However, if I then try to upload customprofile3-17, I get these error messages:
QuoteInstallation Readme
Sorry, but there is no upgrade package from your version. Please uninstall the previous version, and install this version. You won't lose any data.
Install Actions
Installations actions for "Custom Profile Field Mod":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
right.... so, now you will have to edit the "installed" file in your packages directory...
Quote from: Kindred on April 10, 2008, 09:19:35 AM
right.... so, now you will have to edit the "installed" file in your packages directory...
Should I just replace it with a fresh one from my 1.1.4 download?
only if you want ALL your mods to not be listed any more.
OK, thanks. No, I'd like to keep the other mods. How do I remove just this one please?
Thanks.
Quote from: Kindred on April 10, 2008, 09:19:35 AM
right.... so, now you will have to edit the "installed" file in your packages directory...
it's just a text file.
Hi,
In Installed.List, I have:
SMF 1.0.9 and 1.1 RC3-1 Security Patch|^|smf_patch_1-0-9_1-1-rc3-1.tar.gz|^|smf:smf_1-0-9_1-1-rc3-1|^|1.0.8/1.1 RC3
Users Online Today Mod|^|Users_Online_Today_1.4.0b3.zip|^|Michael.PedersenAkaCarceri:UsersOnlineTodayMod|^|1.4.0b3
Custom Profile Field Mod|^|customprofile3-15.zip|^|winrules:CustomProfile|^|3.15
View Only Boards|^|View_Only_Boards_1.2.zip|^|rudolf:customboardview|^|1.2
Increase/Decrease Postbox Size|^|PostboxIncDec_1-0.zip|^|daniel15:PostboxIncDec|^|1.0
I also have CustomProfile3-17.zip in the packages file.
Sorry, I'm not sure what to do.
delete this line
Custom Profile Field Mod|^|customprofile3-15.zip|^|winrules:CustomProfile|^|3.15
Thanks.
Done that, and tried to install the package again and I get this message:
QuoteError 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.
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 failed
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
right... so something else has modified Display.template.php and the mod can tnot automatically install there... you will have to manually apply the mod to that file.
So do I manually change the file to:
QuoteIn file $themedir/Display.template.php
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>';
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();
Find:
// Show how many posts they have made.
Replace with:
global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();
// Show how many posts they have made.
......
then install the package through the Package Manager?
Thanks.
no... install the mod first and then do the manual portion
Is there anyway to make these custom fields appear under a users name in the postbit? Like maybe a link you click that pops open a small javascript window that shows the value of the fields.
I'm looking to use this for my Tech/PC Related site. I want something under the User's name that says maybe "System Specs" and when you click it a little "Pull Down" pops up and it shows the data from the custom fields. VB uses something similar when you click a members name it gives a dropdown menu listing stuff like "View Profile" and such.
of course there IS a way...
you'll have to do the coding yourself, though...
Well...thats really helpful...lol
Tried searching couldn't find exact answer
Installed this mod in our system, first mod installed. Both in custom (downloaded) and default themes, nothing shows up. No errors during installation.
Not a coder, nor do I pretend to be, but can follow directions :)
Same problem here. Brand new SMF install, the only mod I have installed is CPF. All the tests passed and the install said it was successful.
The tab on Features and Options screen is not there. Tried uninstalling and reinstalling.
I have this mod installed on another site and working fine.
are you running default them and english language?
(english utf-8 is DIFFERENT from english)
Darn, dude, that was it, thanks!!!
<putting on dunce cap>
The language fixed it. Thanks!
Quote from: Kindred on April 10, 2008, 11:09:23 AM
no... install the mod first and then do the manual portion
Did it, and it works ~ thanks!
HI,
I am using 1..1.4 and customprofile 3.17.
I need to bring my custum profiles up in the register page. Now it is after "Verify password" box. I want them after their username. How can I do this?
Thaks
move the code in regsiter.template.php
1.14 default
whenever I make a new field and type in the field name and hit save, it still shows up as unnamed field. Can someone help?
Sorry if this question has already been asked, but...
How do I make my custom profile fields appear AFTER "local time", instead of before "gender"?
move the code around in profile.template.php
I have no knowledge of PHP - which code do I need to move?
I have and installed Custom Profile Field Mod 3.17 and it works great!
I have a new custom field on my registration page and would like the field box to show just under the username field box and this field box should be the same size as the username field box.
Summary:
1. Have control over the final position of the custom field box.
2. Be able to make the custom field box smaller in size.
-----------------------------------------------------------------------------
UPDATE:
1. I was able to modify the CustomProfile.php file to get the smaller text field box.
2. I attempted to modity the Register.template.php to reposition the field up in the Registration window but I keep getting a Template Parse Error.
Here is the code I believe needs to be moved in order for the field to be placed in a different location within the Register.template.php file:
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
RegistrationFields();
Please advise on what I might be doing wrong to make this modification.
Thank you...Regards, Jared
Once this package is installed. The setup has option to "show in posts" and show under post count, show next to image. I am using custom theme, Phobos (1.1). These options don't show up, however they do in the default SMF theme. Again, I am not a coder, nor do I even pretend to be but can follow directions. I just need to know where in what file, to put the Field Id, CP1, etc to list under the post count.
Thank you for your time.
Quote from: Kindred on April 11, 2008, 02:12:42 PM
move the code in regsiter.template.php
Which code is this?
I only see this:
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
RegistrationFields();
echo '
Is this the code I need to mode?
Thanks
@JaredBlake1
@bposner
@denden60
Your queries are all very similar, so try this:
use the package parser (link in my signature) and upload the custom profile mod zipped file. Select the option for themes at the bottom and then follow the instructions for editing custom themes. You will see the code in there for the template files you need to edit.
If your theme doesnt have it's own register.template then it will be using the default theme's file, so again use the package parser to upload the mod file and look for the code it adds to the register.template
:)
Very interesting this approach. Does this work with any mods?
Unfortunately, it doesnt seem to resolve my question. :(
I am using Corto theme, TP version, and I am using the default register.template.php.
Where should I move this code so that the custom profile elements that I have included are just below the "Usename" box?
Thanks
Quiteperplexed, these steps confirmed the correct code to move.
But I still get the following error when I try moving it within the from.
I want the field to appear just under the Username field and not at the bottom.
Once I move the code, I get this error: Template Parse Error
Please help...Thanks
you can't just move code around randomly.
for example: You can't move the echo ' statement without screwing things up. You can't move the other code into the middle of an echo statement....
Quote from: Kindred on April 14, 2008, 04:25:34 PM
you can't just move code around randomly.
for example: You can't move the echo ' statement without screwing things up. You can't move the other code into the middle of an echo statement....
Kindred, well at least that is an answer and I appreciate it. Thanks
Not necessarily the answer I wanted but at least now I know.
I still would have to think it's possible but I would need some better PHP skills for the manipulation. At least I was able to change the size of the field box and so now the placement is not that big of a deal.
Thank you...Regards, Jared
Is there anyway to make a popup box sort of thing that has the Custom Fields in it? This popup box would need to show under the User's Info in a Post. A good place to demo it would be here: http://forums.techpowerup.com/showthread.php?t=39758 - If you notice at the bottom of each User's Info on the left of each post there is a popup menu called "System Specs". I want to replicate this exact feature but for SMF. I've tried a few different things but can't get it to work.
Hi!
I now see the costum field that i have added to test, before i installed Ultimate profile, thanks to the code i have received. :D
The only problem is still that i do not see the tab anymore of costum profile, sinds i have installed Ultimate profile :(
See the attached
If somebody wants to see codes.. please tell me wich file
Thanks!!!!!
Quote from: mrw1986 on April 18, 2008, 01:53:47 AM
Is there anyway to make a popup box sort of thing that has the Custom Fields in it? This popup box would need to show under the User's Info in a Post. A good place to demo it would be here: http://forums.techpowerup.com/showthread.php?t=39758 - If you notice at the bottom of each User's Info on the left of each post there is a popup menu called "System Specs". I want to replicate this exact feature but for SMF. I've tried a few different things but can't get it to work.
Again, of course the IS a way. However, the coding of such is WAY beyond the point of the original mod and is fairly involved.
Ok this is my code now:
Can someone tell me where do I need to insert the custom profile code so that my custom profile appears just after the user name? I have tried a few places but it does not work?
Thanks
<form action="', $scripturl, '?action=register2" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator" onsubmit="return verifyAgree();">
<table border="0" width="100%" cellpadding="3" cellspacing="0" class="tborder">
<tr class="titlebg">
<td>', $txt[97], ' - ', $txt[517], '</td>
</tr><tr class="windowbg">
<td width="100%">
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tr>
<td width="40%">
<b>', $txt[98], ':</b>
<div class="smalltext">', $txt[520], '</div>
</td>
<td>
<input type="text" name="user" size="20" tabindex="', $context['tabindex']++, '" maxlength="25" />
</td>
</tr><tr>
<td width="40%">
<b>', $txt[69], ':</b>
</td>
<td>
<input type="text" name="email" size="30" tabindex="', $context['tabindex']++, '" />';
// Are they allowed to hide their email?
if ($context['allow_hide_email'])
echo '
<label for="hideEmail"><input type="checkbox" name="hideEmail" id="hideEmail" class="check" /> ', $txt[721], '</label>';
echo '
</td>
</tr><tr>
<td width="40%">
<b>', $txt[81], ':</b>(règle 8-1-1-1)
<div class="smalltext">
<p style="margin-left: 10px; margin-top: 0; margin-bottom: 0">
Pour des raisons de sécurité, le mot de passe doit contenir
<b>huit</b> caractères et être composé d\'au moins <b>un</b>
chiffre, <b>une</b> majuscule et <b>une</b> minuscule. (ex: ACamus13, aA1bB2ff, )</div>
</td>
<td>
<input type="password" name="passwrd1" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr><tr>
<td width="40%">
<b>', $txt[82], ':</b>
</td>
<td>
<input type="password" name="passwrd2" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr>';
if ($context['visual_verification'])
{
echo '
<tr valign="top">
<td width="40%" align="top">
<b>', $txt['visual_verification_label'], ':</b>
<div class="smalltext">', $txt['visual_verification_description'], '</div>
</td>
<td>';
if ($context['use_graphic_library'])
echo '
<img src="', $context['verificiation_image_href'], '" alt="', $txt['visual_verification_description'], '" id="verificiation_image" /><br />';
else
echo '
<img src="', $context['verificiation_image_href'], ';letter=1" alt="', $txt['visual_verification_description'], '" id="verificiation_image_1" />
<img src="', $context['verificiation_image_href'], ';letter=2" alt="', $txt['visual_verification_description'], '" id="verificiation_image_2" />
<img src="', $context['verificiation_image_href'], ';letter=3" alt="', $txt['visual_verification_description'], '" id="verificiation_image_3" />
<img src="', $context['verificiation_image_href'], ';letter=4" alt="', $txt['visual_verification_description'], '" id="verificiation_image_4" />
<img src="', $context['verificiation_image_href'], ';letter=5" alt="', $txt['visual_verification_description'], '" id="verificiation_image_5" />';
echo '
<input type="text" name="visual_verification_code" size="30" tabindex="', $context['tabindex']++, '" />
<div class="smalltext">
<a href="', $context['verificiation_image_href'], ';sound" onclick="return reqWin(this.href, 400, 120);">', $txt['visual_verification_sound'], '</a> | <a href="', $scripturl, '?action=register" onclick="refreshImages(); return false;">', $txt['visual_verification_request_new'], '</a>
</div>
</td>
</tr>';
}
// Are there age restrictions in place?
if (!empty($modSettings['coppaAge']))
echo '
<tr>
<td colspan="2" align="center" style="padding-top: 1ex;">
<label for="skip_coppa"><input type="checkbox" name="skip_coppa" id="skip_coppa" tabindex="', $context['tabindex']++, '" class="check" /> <b>', $context['coppa_desc'], '.</b></label>
</td>
</tr>';
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
RegistrationFields();
echo '
</table>
</td>
</tr>
</table>';
<form action="', $scripturl, '?action=register2" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator" onsubmit="return verifyAgree();">
<table border="0" width="100%" cellpadding="3" cellspacing="0" class="tborder">
<tr class="titlebg">
<td>', $txt[97], ' - ', $txt[517], '</td>
</tr><tr class="windowbg">
<td width="100%">
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tr>
<td width="40%">
<b>', $txt[98], ':</b>
<div class="smalltext">', $txt[520], '</div>
</td>
<td>
<input type="text" name="user" size="20" tabindex="', $context['tabindex']++, '" maxlength="25" />
</td>
</tr>';
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
RegistrationFields();
echo '
<tr>
<td width="40%">
<b>', $txt[69], ':</b>
</td>
<td>
<input type="text" name="email" size="30" tabindex="', $context['tabindex']++, '" />';
// Are they allowed to hide their email?
if ($context['allow_hide_email'])
echo '
<label for="hideEmail"><input type="checkbox" name="hideEmail" id="hideEmail" class="check" /> ', $txt[721], '</label>';
echo '
</td>
</tr><tr>
<td width="40%">
<b>', $txt[81], ':</b>(règle 8-1-1-1)
<div class="smalltext">
<p style="margin-left: 10px; margin-top: 0; margin-bottom: 0">
Pour des raisons de sécurité, le mot de passe doit contenir
<b>huit</b> caractères et être composé d\'au moins <b>un</b>
chiffre, <b>une</b> majuscule et <b>une</b> minuscule. (ex: ACamus13, aA1bB2ff, )</div>
</td>
<td>
<input type="password" name="passwrd1" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr><tr>
<td width="40%">
<b>', $txt[82], ':</b>
</td>
<td>
<input type="password" name="passwrd2" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr>';
if ($context['visual_verification'])
{
echo '
<tr valign="top">
<td width="40%" align="top">
<b>', $txt['visual_verification_label'], ':</b>
<div class="smalltext">', $txt['visual_verification_description'], '</div>
</td>
<td>';
if ($context['use_graphic_library'])
echo '
<img src="', $context['verificiation_image_href'], '" alt="', $txt['visual_verification_description'], '" id="verificiation_image" /><br />';
else
echo '
<img src="', $context['verificiation_image_href'], ';letter=1" alt="', $txt['visual_verification_description'], '" id="verificiation_image_1" />
<img src="', $context['verificiation_image_href'], ';letter=2" alt="', $txt['visual_verification_description'], '" id="verificiation_image_2" />
<img src="', $context['verificiation_image_href'], ';letter=3" alt="', $txt['visual_verification_description'], '" id="verificiation_image_3" />
<img src="', $context['verificiation_image_href'], ';letter=4" alt="', $txt['visual_verification_description'], '" id="verificiation_image_4" />
<img src="', $context['verificiation_image_href'], ';letter=5" alt="', $txt['visual_verification_description'], '" id="verificiation_image_5" />';
echo '
<input type="text" name="visual_verification_code" size="30" tabindex="', $context['tabindex']++, '" />
<div class="smalltext">
<a href="', $context['verificiation_image_href'], ';sound" onclick="return reqWin(this.href, 400, 120);">', $txt['visual_verification_sound'], '</a> | <a href="', $scripturl, '?action=register" onclick="refreshImages(); return false;">', $txt['visual_verification_request_new'], '</a>
</div>
</td>
</tr>';
}
// Are there age restrictions in place?
if (!empty($modSettings['coppaAge']))
echo '
<tr>
<td colspan="2" align="center" style="padding-top: 1ex;">
<label for="skip_coppa"><input type="checkbox" name="skip_coppa" id="skip_coppa" tabindex="', $context['tabindex']++, '" class="check" /> <b>', $context['coppa_desc'], '.</b></label>
</td>
</tr>
</table>
</td>
</tr>
</table>';
Doesn't nobody knows?? Is it not maybe in a file that regulates the tabs?
Any suggestion is welcom. I have to have my site up and running in 2 weeks..
Question, I want to change the name fields, specifically the square brackets around the IDs how can I do it on the following code so that the force check works?
if ($modSettings['enable_CP' . $i . ''] && $modSettings['CP' . $i . '_reg']=='force' && empty($_POST['default_options'][$modSettings['CP' . $i . '_id']]))
edit: nvm, I figured out something different...
Thanks KinDred.
Unfortunately it does not work. When I do what you have suggested, I receive a message saying that the theme is not working properly.
Erreur d\aperçu du thème !
Il semble que le forum rencontre actuellement quelques difficultés avec l'aperçu du thème. Le problème devrait être temporaire; revenez plus tard. Si vous continuez à voir ce message, contactez l'administrateur.
Vous pouvez aussi essayer de recharger cette page.
As you can see it's in French but we can deduct that it's not a coding error per say, or at least it is not viewed as such.
sorry, I don't speak french... what does the error actually say in English?
My members love Friendster so much that's why I'm planning to add a friendster email button using the smiley logo of Friendster as the email button. How can I make it work by installing this mod?
Any help is much appreciated.
How exactly would I make a facebook field? I just don't really understand how to use this mod....thank you :)
Quote from: Kindred on April 22, 2008, 11:13:33 AM
sorry, I don't speak french... what does the error actually say in English?
It says the the Forum seems to have some difficulties in showing the theme. The problem is probably temporary. You can also try to reload the page.
I tried to find the translation in english but I could not find them.
That's it.
Hi!
Reading through this has helped me a lot in solving a specific problem I had (English vs English utf-8), but I now have the following problem:
The only custom field I have created shows op 2x on the registration page.
I cannot figure out what I am doing wrong!
I am on 1.1.4, default theme and the only other mod I am using is View Only Boards (http://custom.simplemachines.org/mods/downloads/610/View_Only_Boards_1.0.zip (http://custom.simplemachines.org/mods/downloads/610/View_Only_Boards_1.0.zip)).
Because of this duplication, I uninstalled both mods but had a problem with Source/ModSettings.php which showed as "Failed". I renamed the ModSettings file, downloaded SMF 1.1.4. onto my hard drive and unpacked the files. I then uploaded that ModSettings.php file to my server and re-installed the mods in the sequence Custom Profile Field Mod and then View Only Boards.
Both installed successfully.
What can I be doing wrong to cause the custom field to show up TWICE on the registration page?
Is code duplicated somewhere or am I just missing a trick in the setting up stages?
This is how I do it:
1. I click on the CUSTOM PROFILE FIELDS Tab under Features and Options and then click on "Add a field"
2. I keep the tick box in the box opposite the field named Enable Unnamed Field ticked
3. I choose "Selection Box" from the drop down list and click on Save.
4. I then click on "Settings"
5. Here I enter the Name, Description, have "show in profile" enabled, kept "field ID" CP1,
"Add horizontal rule etc" as "don't show" (simply because I have no idea what it means :))
6. Show field on registration I have as "show"
7. Lastly, I added the words "Yes" and "No" to the two Option boxes for the "Selection Box" option and
8. I click on Save
Then, when I log out as Admin and register as new member, the custom field shows up 2x!
What's wrong, please?
Harry
possibly you have duplicate code in your registration file. Check through it looking for the custom profile code that the mod adds and if you have two, remove one instance.
Also make sure you havent created two identical fields (sounds dumb but it can happen)
Hi Quiteperplexed!
You truly deserve your huge goblet! When you confirmed what I suspected, I initially tried looking through the code of the "register" php files and found nothing suspicious.
I proceeded to uninstall both mods that I have on my system and both uninstalled successfully with no error messages.
I then made backups of all the files that were changed when I downloaded the mod and to upload the same files from the SMF 1.1.4. that I had downloaded on my hard drive earlier today. That had no affect (or is it effect - never can tell which ;D) on the layout and settings of my forum.
I then re-installed the Custom Field Mod and
HEY PRESTO!! :D (with waving arms and air punching fists)
A SINGLE custom field was added to my registration page!
All of this took me less than 15 minutes - and I can't even spell HMTL . . . :-[
I heve not re-installed the other mod and will report back if it caused issues.
Thanks for the help!
Kindest possible regards
Harry
lol you're welcome Harry. Glad you got it fixed. Sometimes code gets left behind.
*polishes huge goblet* :P
Would someone mind helping me with adding facebook? I just don't know what exactly I am supposed to fill out
well I don't use facebook so I don't know what the id's look like but if you look at the first post on page one of this thread it will tell you how to add a field for myspace. You should be able to work it out from there
eg from page one
Quote from: winrulesIn 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 in the before spot and (http://www.myspace.com/%1) in the after spot, and it would just show the username but link to the site.
but read the whole post :)
Thanks, just two small questions.
One, how would I be able to make it so that the link is an image like other IMs are.
Two, is there any way I could move it up to the same line as the IM logos are in just a simple normal post?
1- yes... use the img tag along with the a href link in the before section
2- not easily.
Hm, well I did the image tag so the code was like this
BEFORE: [url=whateverthefbookthingwas.com/%1][img]imageurl[/img]
AFTER: [/url]
And when someone inputs their id, it shows the logo AND then random numbers right after it anyways.
Quote from: WRABBIT on April 24, 2008, 06:29:36 PM
Hm, well I did the image tag so the code was like this
BEFORE:
AFTER:
And when someone inputs their id, it shows the logo AND then random numbers right after it anyways.
I wanted something similar with amazon wishlists but my brain wasn't working well that day and Kindred helped me out. I used html instead of bbc and it works great. You could try this for your facebook image changing the link appropriately:
Quote from: quiteperplexed on February 26, 2008, 09:36:41 AM
Quote from: Kindred on February 26, 2008, 09:19:42 AM
in the PRE-TEXT, you would do something like
<a href="amazon.com/wishlist/
Then the field itself would be the amazon wishlist ID
in the POST-TEXT, you would then include...
"><img src="amazon.com/image.gif" alt="Amazon Wishlist" /></a>
oh thank you so much Kindred.
I had this code, but I think what I was doing wrong was splitting the code in the wrong place for the before and after text, and also I was adding the %1 which I don't think I needed.
It works great now - thanks again - I just couldn't see the wood for the trees
Hello,
brianjw. helped me figuring out what went wrong. It seemed that both files did not ever where om my server!!
Anyway.. I have translated the file in Dutch... I can not promise it's totally correct.. but he.. better this than nothing. The only thing was that i could not find the right translation for PARSE... maybe also because i do not even know what it means :D
See the file attached
I see that some files needed to be translated in the modification.english.php file also
$txt['usercp_field1image'] = 'Custom UserCP veld 1 afbeelding';
$txt['usercp_field1url'] = 'URL';
$txt['usercp_field1maintext'] = 'Hoofd tekst ( zoals Mijn berichten )';
$txt['usercp_field1summary'] = 'Samenvatting tekst';
$txt['usercp_field1enable'] = 'schakel 1e Custom UserCP veld in';
$txt['usercp_field2image'] = 'Custom UserCP veld 2 afbeelding';
$txt['usercp_field2url'] = 'URL';
$txt['usercp_field2maintext'] = 'Hoofd tekst ( zoals Mijn berichten )';
$txt['usercp_field2summary'] = 'Samenvatting tekst';
$txt['usercp_field2enable'] = 'schakel 2e Custom UserCP veld in';
$txt['usercp_field3image'] = 'Custom UserCP veld 3 afbeelding';
$txt['usercp_field3url'] = 'URL';
$txt['usercp_field3maintext'] = 'Hoofd tekst ( zoals Mijn berichten )';
$txt['usercp_field3summary'] = 'Samenvatting tekst';
$txt['usercp_field3enable'] = 'schakel 3e Custom UserCP veld in';
$txt['usercp_field4image'] = 'Custom UserCP veld 4 afbeelding';
$txt['usercp_field4url'] = 'URL';
$txt['usercp_field4maintext'] = 'Hoofd tekst ( zoals Mijn berichten )';
$txt['usercp_field4summary'] = 'Samenvatting tekst';
$txt['usercp_field4enable'] = 'schakel 4e Custom UserCP veld in';
if something is missing.. please let me know :D
Thank you perplexed!!!
And, so are you guys saying it IS possible to put it up on the line with other IM icons? What would I have to do?
How can I set it so this custom field shows up in the member list so I can sort it when viewing the members?
wrabbit - It would take some familiarity with coding and SQL statements in the forum to place the fields in line with the other IM icons.
tjtellez9 - again, it will take some coding to even add the fields and some more to make them sortable. I believe that one method has been mentioned at least once in this thread.
I am not sure if this is the place for this question, I have the custom profile mod installed and wanted a particular custom profile "expiry date" to show up in the memberlist. I remember coming here and searching for quite some time to get the code modification to make that happen and it does happen, the field shows up in my member list.
All is sweet except I am getting an error or hundreds of them actually but they are all the same, they say this:
8: Undefined index: CP7
File: /public_html/Themes/default/Memberlist.template.php (eval?)
Line: 129
CP7 is the custom profile field I have showing in the memberlist
How do i get rid of it, sounds like CP& needs to be defined somewhere.
Thanks in advance for any help.
I've installed SMF 1.1.4. and recently installed (manually) Custom Profile Field Mod 3.17 (not sure if this is just coincidental or not) which seems to have resulted in the following error when receiving PMs:
Fatal error: Call to undefined function: displayfieldpostspictures() in \\nawinfs06\home\users\web\b2181\ipw.guardiansofhonor\forum\Sources\Load.php(1726) : eval()'d code on line 344
I cannot read PMs nor can I delete them by selecting the PM and pressing "Delete Selected". When attempting to do so, I receive the following:
Session verification failed. Please try logging out and back in again, and then try again.
So, in order to delete PM's I have to use "Prune Messages".
Unfortunately, I cannot say whether or not the PMs were working prior to installing the mod. This was the first PM received and it was done as a test to see if there were any problems.
Any suggestions would be more than greatful -- I don't have that much hair left to pull out
ok first of all try this http://www.simplemachines.org/community/index.php?topic=234316.msg1509032#msg1509032
as the file that error is pointing to may not be the correct file.
After that, check your error log again and post up the errors with the new file name
(you could also try manually uninstalling the custom profile mod again (sorry) and then see if you still have the problem, since you said you couldn't tell whether or not it existed before you installed this mod. but let's wait to see what the error log says first )
Thanks, Quiteperplexed. I'll let you know what happens.
Quiteperplexed: Problem fixed. When manually installing the MOD, I missed a couple of lines regarding the displayfieldpostspictures() in one of the modules. Once I corrected that, it was smooth sailing.
Thanks for the assist.
glad you got it worked out :)
Quote from: fivearts on January 11, 2008, 09:14:36 AM
I have these in Forum Error Log:
Quote
...index.php?action=featuresettings (http://www.fivearts.net/index.php?action=featuresettings)
8: Undefined index: path
File: /.../Themes/default/languages/CustomProfile.english.php (main_above sub template - eval?)
Line: 107
.../index.php?action=serversettings;sesc (http://www.fivearts.net/index.php?action=serversettings;sesc)
8: Undefined index: path
File: /.../Themes/default/Admin.template.php (main_above sub template - eval?)
Line: 107
.../index.php?action=featuresettings (http://www.fivearts.net/index.php?action=featuresettings)
8: Undefined index: path
File: /.../Themes/default/languages/CustomProfile.english.php (main_above sub template - eval?)
Line: 107
.../index.php?action=admin (http://www.fivearts.net/index.php?action=admin)
8: Undefined index: path
File: /.../Themes/default/Admin.template.php (main_above sub template - eval?)
Line: 107
.../index.php (http://www.fivearts.net/index.php) 8: Undefined index: path
File: /.../Themes/default/BoardIndex.template.php (main_above sub template - eval?)
Line: 107
Using smf 1.1.4
Anyone knows how to fix this please? Thanks
I'm just notice I'm having this error too. Any help?
Using english default theme.
I love and used this modification many, many times :)
Thanks for making it.
I am glad it got put into SMF2.
It is a worthy modification.
Great mod. Set it up yesterday with no problems. Just one question: I've attached a pic with my problem and I can't solve it. How do you get rid of the colons next to the image link? I can't find where to change it in any of the .php files. Thanks for the help.
Look for this lines in CustomProfile.php
' . $modSettings['CP' . $i . '_name'] . ': ' . $field . '<br />';
The semi-colon is in there, I think it appears twice and also here:
' . $modSettings['CP' . $i . '_name'] . ': ' . $modSettings['CP' . $i . '_data1'] . '<br />';
Look for ': ' might help.
yea, it seems to be all over. i'll check now.... thanks. YES! thats it. Thanks so much!
Update for 1.1.5?
Is there an option to show that custom field on the memberlist section?
there isn't an 'option' on the mod, but if you read through this thread I think someone may have posted how to do it by editing the files
I am trying to install this mod on a pretty much clean (minus some theme changes) install of 1.1.5.
I did the manual install as the package didn't seem to want to install itself. There don't seem to be any errors, but the "CUSTOM PROFILE FIELDS" tab doesn't seem to be appearing under the Features and Options menu (picture 1). There is a set of dividers were the option should be, but no text.
I can force it to that page by entering the address sa=profile directly into the address bar, and it does put the arrow does go to where the tab should be, and it does give me a save button, but there are no options for any custom fields. (picture 2).
Any idea what I screwed up?
Picture 1
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.psapilots.com%2F1.jpg&hash=9057770b25d6ea85048c3c0933ef85f03d908e14)
Picture 2
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.psapilots.com%2F2.jpg&hash=8455dc392f370a0be5f4d15d35dd586b05ed10c6)
once again, it would help if people would bother to READ previous posts in the thread.
so... for the twentieth time in this thread:
You are running your forum in English UTF-8. Mods only install into English. Therefore, you either need to add the text strings to your modifications.engliushutf8.php or switch your forum to English.
Forum is running in English. Not English-UTF8. At least, I have it set that way under server settings. Do I need to change it somewhere else too?
are you SURE? Because that error is indicative of missing language strings.
The only other thing that might cause that is if the mod TXT strings were not written to modifications.english.php.
did you get any errors on install?
Check your modifications.english.php.
Huh. I didn't get any errors installing the package the first time. I just tried installing it again and it gave me errors on every file during the test. I installed anyways and now it is working.
Ghosts in the machine i guess.
Thanks for the help anyways.
installing twice is going to cause OTHER errors....
now you need to manually go through every file and make sure that the code was only inserted once.
Is there a way to display "$username is" in the before the field
I basically would like to use it a bit like the face book status
For example
If I were to use it on here, it would bring up Orange789 is: text entry here
SO I could then change it to my mood
ie Orange789 is: Feeling silly
etc etc
Hope I have explained that ok
You can not do that within the mod as written....
:'(
If you look at how the summary section that says the username, you should be able to copy that into something similar and do it yourself with a little experimentation.
I love this mod! One of my favorites and works not problem. Highly recommend to all. Thanks for making this mod.
A few years back winrules confirmed that newer versions would include extensive search functions:
http://www.simplemachines.org/community/index.php?topic=112606.0
But it doesn't look like this is true yet unless I'm missing something?
Very usefull mod! Thanks.
I made a russian translation (attached to this topic).
i installed the by loading and everything when smoothly,but just don't get to see it in feature and option.i'm using smf 1.1.5
i checked through the manual to see if any code were miss,but did not found any error since it auto installed by the forum.what might have gone wrong?thanks in advance for your help,pls be patient with me as i'm new to this smf.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww4.picfront.org%2Fpicture%2FV5aiAtsM5D%2Fthb%2FScreenShot.jpg&hash=3eb1c3c85264212469b9eca695cd4e455a7abf23) (http://picfront.org/d/V5aiAtsM5D/ScreenShot.jpg)
You current default (or personal language) server language is the issue. Most likely you are using English-utf8, change it to English and change your personal settings to just English (or disable the ability to choose your own language) and it should be fixed.
thanks rumbaar,you da man!!! thanks again.
Sorry for disturb,
I've one stupid question. I would like to see CP1 field value in the MemberList. Is it possible?
SOLVED
of course... but you'll have to add the code to the memberlist file yourself...
I've some troubles with this mod.
Custom Profile Fields
There are two "buttons". One is Add (link) and another Save (button).
When i press Add nothing happens, page just reloads. Then i go somethere outside of admin panel (e.g. to board index) and go back to Custom Profile Fields - wow, there's "Unnamed Field" appeared.
Ok, i press setting, change settings, press save and go to profile... There are _two_ same fields. I've checked code, there's only one DisplayFieldsProfile(); in profile.template.php (though i'm not sure if checked right place).
Now, i want to delete that field. Press delete - nothing happens, page reloads, and there's still that field. Ok, let's now add another one - press add and... first one disappeared and nothing new appeared...
And now i can't add any field... They just won't appear.
SMF 1.1.5 custom theme based on Orange-LT and russian, but those bugs ARE on default theme and english.
Quote from: Rumbaar on May 29, 2008, 06:30:21 PM
You current default (or personal language) server language is the issue. Most likely you are using English-utf8, change it to English and change your personal settings to just English (or disable the ability to choose your own language) and it should be fixed.
I had same problem but it didnt help, i turned everything to english and disabled the personla language choosing option but it still looks like same than in his picture. I can see from packages that the mod is installed the version that i use is 1.1.5
Ach... i had one ; too much when i cheked the code
I have just updated the mod to version 3.18. This fixes a security vulnerability. It is crucial for you to upgrade.
Just to let everyone know I just upgraded mine and it was completely painless, even though I have a very modified theme.
I simply clicked "upgrade" and that was that. No manual editing needed at all. :D
Does this only work for Default?
Hi,
This might just be a simple question, I did a search and didn't find anything about it.
I'm using the "Selection Box" with three option, by default I want it left blank. So I added a forth box with nothing in it, which won't work.....all the options are gone then?
I want it like the "Gender" box in your profile, left blank unless you choose to pick one. How would I do that?
Thanks
I've had to update the mod to 3.19 due to a small but in the last update...sorry.
Cobra97, I *think* that you'll need to just put a space in the box.
just use
Quote from: Rumbaar on May 29, 2008, 06:30:21 PM
You current default (or personal language) server language is the issue. Most likely you are using English-utf8, change it to English and change your personal settings to just English (or disable the ability to choose your own language) and it should be fixed.
You just solved every problem I had not only with this modification but every other modification I ever installed and thought didn't work. Thank you so much.
I'm currently using SELECT ID_MEMBER FROM smf_themes WHERE variable = 'CP_instrument' ORDER BY value
SQL query to give me a list of IDs to then populate my hard copy membership list with.
It obviously sorts the IDs by CP_instrument (a custom profile field) which is great, but I'd also like to then apply a sort by realName which is a row in the smf_members table.
Is there a way of doing a query that will sort the IDs by cp_instrument and then realName, so I can display my members grouped by instrument and then sorted by name?
Thanks
Richard
I got a tricky question... I was wondering how to display a field in the profile by using $context['member']['options']['CP1'] but in the admin panel uncheck the box that says Show in Profile.
Here is the scenario... I want to display a personal photo, in a different place, so I was thinking to use one of the many scripts to do that, but so far I have this one
global $user_profile;
if (isset($modSettings['enable_CP1']))
{
$memID = $context['user']['id'];
loadMemberData($memID);
//print_r($user_profile);
echo "<p>Value is: <b>" . $user_profile[$memID]['options']['CP1'] . "</b><p>";
}
But this one only shows the field to the owner of the CP1, not to guests, then I discoverd the parse_BBC but didn't work, and finally I got the $context to work, but only if I check the show in profiles.
Anything will be helpful!
Quote from: winrules on June 09, 2008, 11:57:53 AM
I've had to update the mod to 3.19 due to a small but in the last update...sorry.
Cobra97, I *think* that you'll need to just put a space in the box.
Sorry to be entering this thread late, but I've been directed to this mod in another thread. To be honest I'm a complete nonothing when it comes to coding. I've downloaded your zip file version 3.19 and expanded it. Where should the files go? I've read the manual installation instructions but got confused and anyway I could not understand why it was necessary to mod a mod! So I uploaded CustomProfile.php to ./Sources folder and CustomProfile.english.php to ./Themes/Default/languages and of course it made no changes. What to do with the .xml files?
Thanks
Just upload the zip file via the package manager in the admin panel and install.
Quote from: ruckstande on June 23, 2008, 02:41:40 PM
Just upload the zip file via the package manager in the admin panel and install.
Did that OK thanks very much and I can see there are differences in the files, including a lot of files with a ~ after the extension. But I can see no changes to the forum itself in Features and Options or anywhere else. Oh I did apply update to from 1.1.4 to 1.1.5 just before.
Quote from: rob54 on June 23, 2008, 04:46:25 PM
Quote from: ruckstande on June 23, 2008, 02:41:40 PM
Just upload the zip file via the package manager in the admin panel and install.
Did that OK thanks very much and I can see there are differences in the files, including a lot of files with a ~ after the extension. But I can see no changes to the forum itself in Features and Options or anywhere else. Oh I did apply update to from 1.1.4 to 1.1.5 just before.
Did you go to your features and options menu in the admin panel?
Quote from: ruckstande on June 23, 2008, 06:04:14 PM
Quote from: rob54 on June 23, 2008, 04:46:25 PM
Quote from: ruckstande on June 23, 2008, 02:41:40 PM
Just upload the zip file via the package manager in the admin panel and install.
Did that OK thanks very much and I can see there are differences in the files, including a lot of files with a ~ after the extension. But I can see no changes to the forum itself in Features and Options or anywhere else. Oh I did apply update to from 1.1.4 to 1.1.5 just before.
Did you go to your features and options menu in the admin panel?
Yes I did and here attached (if attachments are allowed) are screenshots of most of the F & O basic features. No different to before mod.
are you running your board in English? (note: English UTF-8 is different from English)
Quote from: Kindred on June 23, 2008, 07:27:29 PM
are you running your board in English? (note: English UTF-8 is different from English)
No I wasn't - am now though! And lo and behold I have the Custom Profile Fields menu item in Features and Options. Great, thanks a lot for all the help. Now I can add what I wanted.
Hey guys, this mod is exactly what I need, just it doesn't seem to be working right for me :(
Got it all installed on 1.1.5 with default theme and english, and I've added my fields and saved them, changed them in my own profile as a test, and i can see them, but no one else on the site seems to be able to see them.
I've just switched to SMF from phpbb so I'm there may be some little thing i don't know about! Also, I'm runnng the SMF - Wordpress bridge plug-in for SMF, as well as the Wordpress - SMF plug-in on my wordpress install. Cheers for any help in advance.
would like to install this, and a test was successful, on default theme, which I am not using. I am using BacknBlack.
So I assume I'm going to have to do it manual install. However, I notice my theme does not have a lot of these files.
Profile.template.php
Display.template.php
PersonalMessage.template.php
Register.template.php
So now I'm not sure what to do
If your theme doesn't have those files... don't worry, that means that your theme is calling the templates from the default theme... so, they are modified already and will work with your theme.
Oh okay, thanks.
I'll give this mod a try ;)
Quote from: winrules on June 08, 2008, 12:09:18 PM
I have just updated the mod to version 3.18. This fixes a security vulnerability. It is crucial for you to upgrade.
Performed the upgrade and all seemed to go well.
Unfortunately my forum has developed an issue when new users attemt to register: -
Fatal error: Unsupported operand types in /home/rewind01/public_html/forum/Sources/Register.php on line 319
I've attached the Register.php file, if somebody could take a look it would be really appreciated.
Regards,
Rick.
Didnt realise there was another upgrade - 3.19 fixed the problem :D
Quote from: dannbass on June 25, 2008, 09:59:56 PM
If your theme doesn't have those files... don't worry, that means that your theme is calling the templates from the default theme... so, they are modified already and will work with your theme.
Thanks!
Just installed it today and it seems to work great!
ok i look at all 100 + pages and the codes that i tryed never work. the mod does.
im trying to get a list made in TPs Article when the user puts in the info it will show up
username PSN ID and so on
PSN ID is CP1 any help would be great i know very lite php/html
im use SMF 1.1.5 TP 1.0.5 mod version 3.19
Thanks,
DOOM666
I'm having a issue with the selection type of field... with one of them, the user's choice sticks just fine. With the other, once they go Save and look at the Profile options again, it has gone back to the first choice. Everytime they alter their profile, they'd have to go and reselect this again, or the original choice will be lost.
Example: the working selection box has Gamecube colors in it. I have "Platinum" selected (4th choice). It stays selected after I save. The other one has DS colors in it. I keep selecting "Ice Blue" but after I click save, it shows "(none selected)" (the first choice). However, the database still has "Ice Blue" saved... unless I were to click Save on my profile without reselecting Ice Blue.
Just for fun, I tried selecting other colors, and THEY stick when saved. I then went back to Ice Blue, and it didn't stick, went back to (none selected). :C
I have the latest copy of the board and the mod. (1.1.5 board and 3.19 mod)
the mod installed without any problem but where do i customize it ??? ???
i have smf 1.1.4
I read through but wasn't able to find exactly what I was looking for... I have a MySpace field added in using this mod, and it works just fine, however what I am trying to make it do is on the posts, only display a 16x16 icon (which I have stored locally on my server). I have the icon showing and it links to the specified myspace page, however it also has the text next to it.
So what I would like to see about doing is make it so it only displays an icon on the posts and not the text, but everywhere else (such as viewing the profile itself) will show the text. Also having an option of being able to include this custom field inside the "Member List" would be nice as well, and again, only the icon just like the different messengers already do.
Any thoughts? Thanks!
I have 3.17 installed. Is it possible to update the mod or do I need to uninstall 3.17 and then install 3.19?
If I I have to uninstall/reinstall, will I lose the currently stored data and fields?
Thanks in advance. :)
How does this mod work with Ultimate profile? do they play well with each other? or should I use one and not the other??
I assume this mod only mods the default profile??? right??
thanks
Icon
I was wondering the same thing, but while scanning through the UltimateProfile.template, I found a part of the code that says this:
/*
// This section is optional. You can paste code and display fields from Custom Profile fields mod.
echo '
So I'm guessing it plays well, since Jovan put that in the code.
I also found this reply over in the Ultimate Profile topic where someone was using this mod to embed a video player.
http://www.simplemachines.org/community/index.php?topic=183574.msg1587711#msg1587711 (http://www.simplemachines.org/community/index.php?topic=183574.msg1587711#msg1587711)
Excellent Lead !!!!! THANK YOU!!!! this opens up a ton of possibilities!!
thanks
kjparenteau,
that's not what the mod does... and doing so would require a fair amount of conditional and re-write...
(regarding showing one thing on posts and another in profile... the mod shows the entry in the CPF everywhere, period.)
There has been code posted in this thread regarding adding CPF fields into the memberlist display... but it does not do so by default... you will have to code it in yourself. try search?
CG Icon, several people have gotten CPF working with the UP Mod... However, as I understand it, the order of installation matters and some code tweaks are needed. It's been discussed a number of times... so try search.
and yes, as written, most mods only install into the default theme template files. (for mods for 1.1.x, mods for 2.x work differently)
found the code!,, got em working just fine and found a ton of other "tweaks" as well along the way...
I typically do search,, but often,,I get lazy to like everyone else... in a hurry..
So I do try and be a good little SMF'er :)
but thanks all
Got the blog, media, custom profile all in there.. and was able to move things around in the profile as I wanted.
I use themes D-NightHawk-Flash and user sms 1,1,5 .im finish modification display.template.php in my themes,but its noting work,so how it?
thanks
Hey ,
Im using this great modification and Im trying to add a custom profile field into my roster page which only lists some membergroups and contact info. I read like all the 104 pages which took me about 3 hours and I tried some of the stuff but nothing worked.
This is my code:
global $db_prefix, $scripturl, $txt, $settings, $options;
// These must be in the order you wish them to print out on your roster.
// VERY IMPORTANT!!!! -- they must be exactly the same as the group names in the database, including
// capitalization and spaces.
$rankorder = array(
'Nameless',
'High Admin',
'Multi Admin',
'Infection Admin',
'KreedZ Admin',
'Knife Arena Admin',
'StarWars Admin',
'GunGame Admin',
);
$groups = '';
//Does all the real work here for showing groups.
$query = db_query("SELECT ID_GROUP, groupName, onlineColor, stars
FROM {$db_prefix}membergroups", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($query))
{
$groups[$row['groupName']] = array(
'id' => $row['ID_GROUP'],
'color' => empty($row['onlineColor']) ? '' : $row['onlineColor'],
'stars' => empty($row['stars']) ? '' : substr($row['stars'],2),
);
}
mysql_free_result($query);
foreach ($rankorder as $rank)
{
//Now get all the users
$query2 = db_query("
SELECT ID_GROUP, ID_MEMBER, realName, avatar, usertitle,
emailAddress, hideEmail, lastLogin, location, personalText,
totalTimeLoggedIn, dateRegistered, ICQ, AIM, YIM, MSN,
hideEmail, emailAddress
FROM {$db_prefix}members
WHERE ID_GROUP = '" . $groups[$rank]['id'] . "' ", __FILE__, __LINE__);
if(db_affected_rows() != 0)
{
echo '<table border="0" cellspacing="1" cellpadding="5" align="center" class="bordercolor">
<tr><td colspan="7" class="catbg"><font size="4" face="verdana"><b>' . $rank . '</b></font></td></tr>
<tr><td rowspan="70" width="85" class="profilebg" valign="top">
<center><img src="' . $settings['images_url'] . '/' . $groups[$rank]['stars'] . '"></center></td>';
echo '<td class="catinfo" width="270"><b>GAMING ALIAS</b></td>';
echo '<td class="catinfo" width="130"><b>NAME</b></td>';
echo '<td class="catinfo" width="170"><b>LAST ONLINE</b></td>';
echo '<td class="catinfo" width="100"><b>LOCATION</b></td>';
echo '<td class="catinfo" width="175"><b>CONTACT</b></td></tr><tr>';
while ($row2 = mysql_fetch_assoc($query2))
{
echo '<td class="windowbg" height="40"><a href="' . $scripturl . '?action=profile;u=' . $row2['ID_MEMBER'] . '"><b><font color="' . $groups[$rank]['color'] . '" size="3" face="verdana">' . $row2['realName'] . '</b>';
echo '</font></font></a><br><font size="1"> ' . $row2['personalText'] . '</font></a></td><td class="windowbg2">ADD CUSTOM PROFILE FIELD HERE</td>';
echo '<td class="windowbg">' . timeformat($row2['lastLogin']) . '</td>';
echo '<td class="windowbg2" align="center">';
echo '<i>' . $row2['location'] . '</i>';
echo '</td><td class="windowbg">';
//Send email row
if($row2['hideEmail'] == 0)
echo '<a href="mailto:', $row2['emailAddress'], '"><img src="' . $settings['images_url'] . '/email_sm.gif" alt="email" /></a> ';
if($row2['ICQ'] != '')
echo '<a href="http://www.icq.com/whitepages/about_me.php?uin=' . $row2['ICQ'] . '" target="_blank"><img src="http://status.icq.com/online.gif?img=5&icq=' . $row2['ICQ'] . '" alt="' . $row2['ICQ'] . '" width="18" height="18" border="0" /></a> ';
if($row2['AIM'] != '')
echo '<a href="aim:goim?screenname=' . urlencode(strtr($row2['AIM'], array(' ' => '%20'))) . '&message=' . $txt['aim_default_message'] . '"><img src="' . $settings['images_url'] . '/aim.gif" alt="' . $row2['AIM'] . '" border="0" /></a> ';
if($row2['YIM'] != '')
echo '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($row2['YIM']) . '"><img src="http://opi.yahoo.com/online?u=' . urlencode($row2['YIM']) . '&m=g&t=0" alt="' . $row2['YIM'] . '" border="0" /></a> ';
if($row2['MSN'] != '')
echo '<a href="http://members.msn.com/' . $row2['MSN'] . '" target="_blank"><img src="' . $settings['images_url'] . '/msntalk.gif" alt="' . $row2['MSN'] . '" border="0" /></a> ';
//Send PM row
echo '<a href="' . $scripturl . '?action=pm;sa=send;u=' . $row2['ID_MEMBER'] . '"><img src="' . $settings['images_url'] . '/im_on.gif" alt="email" /></a></a>';
echo '</td>';
echo '</tr>';
}
echo '</table><br>';
}
}
I need to add my custom profile field where it says "Add CUSTOM PROFILE...." Im a total php noob but I would like to add this.
Thanks for the help
Overlapping selections apparently..
I am running a football site and I created 2 custom profile fields. Both are selection boxes.
One has 48 entries. Starting at 2008 and going back to 1961. 48 Entries total.
The other has 81 entries. In this format for each entry: Romo, Tony
I did this with the entire Cowboys roster so I would have all 81 players in the selection box.
The problem is, if I go to my profile and set a year and a player name both will wind up having the player name.
So instead of:
Fan since: 1992
Favorite Player: Romo, Tony
I get:
Fan since: Romo, Tony
Favorite Player: Romo,Tony
Any ideas?
EDIT: Nevermind. I am an idiot, I completely overlooked the ID and had them both the same.
OK, I've got the mod installed and updated the registration with items that I want and have done some testing and things appear to be working. At least when I look at a test 'member profile' I am able to see the information that I entered.
Now what I would like to do is use the entered information in another table outside the SMF forum. I have looked through the code and haven't seen anything about creating new DB tables or fields for the updated profile fields and haven't seen any changes in my tables in the MySQL DB that was created when I installed SMF in the first place. I'm very much a newbie to PHP, but am attempting to come up to speed as quickly as I can. I'll admit that I haven't gone through all 104 pages in this thread and maybe my answer, if there is one, is in here someplace. I realize that the answer if probably as plain as the nose on my face, but I'm having a hard time even finding my own nose the past couple of weeks :)
Any help would be appreciated.
try reading through this thread? This has been discussed.
this mod saves the data in the smf_themes table under the field names CP1, CP2, etc
At the risk of being chastised for asking, should I be able to see the added fields when I look at the smf_themes table via phpmyadmin?
if the user has actually INPUT something into that field.
Oh DUH!! I'll go sit in the corner with the dunce hat now. I was only displaying 30 fields/page and the information was on the next page.
:-[
Alright, I am trying to pull information from a Custom Field I created, but I keep getting all the fields getting pulled.
Like if I have 3 Custom Fields then all 3 will print on the page.
How do I get it to pull just 1 value and not all of them?
Quote from: lordtron on July 23, 2008, 02:05:03 AM
Alright, I am trying to pull information from a Custom Field I created, but I keep getting all the fields getting pulled.
Like if I have 3 Custom Fields then all 3 will print on the page.
How do I get it to pull just 1 value and not all of them?
It's possible you're having the same problem I did. Check up above a few posts. Your ID's might be the same.
Of no, I set them up to have different Field ID"s.
But can you show your code, cause I might be missing something.
Edit: Alright I got it to pull the right variable, but its showing everyone that has something entered in for that variable. How do I also select a certain ID_Member as well?
Figured it out, I needed to use a AND statement..
Hi winrules!
I really like your mod, thank you!
But I need to export a table with the extra fields. Is there a chance to get a table (or any kind of export) ?
Member (ID) | Value of Field1 | Value of Field2 | ...
Thanks, Anthony
you can build it... There is code listed in this thread indicating how to display the fields and the values. such a report does not exist in the mod, though.
I'm using this Mod on a heavily modified forum, is it possible for me to manually correct the moving field-issues? Since i have the version before that, and uninstalling + re-installing is not an option, because that wouldn't be possible because of the modifications (i would have to manually uninstall and reinstall). If so, what changes do i have to do? I tried scaning through the thread for answers reading here and there, but it was just to many posts.
Thanks in advance, Inno.
to uninstall manually just goto Custom Field Mod (http://custom.simplemachines.org/mods/index.php?mod=319) on the right there is "Manual Install Instructions for SMF" select your version and then hit submit. It will show you what files get changed and where.
Would it not be easier to somehow get info about what has changed, and change it? Since i would not be able to install automatically afterwards anyway?
I think it would be nice to have validations in text fields.
For example length => max chars allowed to enter by user
Not all users have good intentions and they are allowed to enter a lot of chars now because there is no limit.
Best regards,
Pablo.
Will this work with the 2.0 Beta 3.1?
Quote from: angrybanana5000 on July 30, 2008, 04:17:40 PM
Will this work with the 2.0 Beta 3.1?
I can't answer your question, but there is no need for it in 2.0 - custom profile fields are part of the core functionality of the software.
There are one or two less options, but for most purposes it's just fine.
Sunil
This is such a usefull Mod! Thank you very much for this nice add on !
Quote from: SunilDVR on July 30, 2008, 07:06:03 PM
Quote from: angrybanana5000 on July 30, 2008, 04:17:40 PM
Will this work with the 2.0 Beta 3.1?
I can't answer your question, but there is no need for it in 2.0 - custom profile fields are part of the core functionality of the software.
There are one or two less options, but for most purposes it's just fine.
Sunil
Oh I didn't know that. Thank you. :D
Hi,
I have been using SMF for a week or so now and find it really good, I'm just at a point where I need to ask if something can be done.
I have added the "Custom Profile Field Mod" for registration and I'd like to use a check box, if checked then member registering would be added to a specific member group but this would have to first be confirmed by Admin. If it wasn't checked then they would be added as a normal Newbie automatically without Admin interaction.
This option would be used for the new member to select whether they are a member of a paid up club or not.
Any suggestions would be appreciated.
Thanks.
Is there any way to have the search function search the profile fields? (existing and added)
I would like my members to be able to search other members by keywords that have entered into their profiles. (sports, schools, location, hobbies, etc.)
I'm not much of a coder, but I think it's just a matter of adding a keyword search, to the search that already exists.
Any help would be appreciated.
Thanks.
Hello:
I'm a newbie here. - Hope you can help
I need to run the Custom Profile Field Mod in Brazilian, however i can only make it work in English. I tried both Brazilian and Brazilian utf8
Can someone point me in the right direction?
I am using the SMF default theme core 1.1.5
Take all the English $txt[] strings installed by the mod and add them to the Brazillian equivalent language files. Translate the text to your needs. If you are using both versions 'plain' and UTF8 you'll need to put them in both languages.
I've installed the custom profile field mod and it shows installed and tested successful; however, I do not see anything on my administration page to set up the custom fields? What am I doing wrong?
Check your forums default language and see if it's not 'English', if it's different. Either set it to English (not English-utf8) or make sure you have inserted/converted the $txt[] strings to your forums default language/s.
When will it be updated for the latest smc version?! :'(
Quote from: altaaah on August 10, 2008, 05:46:12 PMWhen will it be updated for the latest smc version?! :'(
It will currently work with the latest version of SMF 1.1.5, or if you are referring to 2.x then that version already has a version of this incorporated into it's core functionality.
Checked both of the above mentioned, no luck. Any other ideas?
Try give this a read How do I ask support questions the smart way? (http://docs.simplemachines.org/index.php?topic=494) Link to your forum at least would help.
Are you looking in the right place?
2 questions:
1) Before I knew about this mod I went and changed the members table and added my own fields in the table. Will this mod overwrite the a current field or if a field is created already with the same name just leave it?
So what I am asking is, if I want to add say a user address field so it will show up in thier profile, but I have already created the address field, will this mod just use that current field?
2) Is there a way to delete certain field from peoples profile. Like ICQ and AIM, all my members will never use them. Any thoughts?
Ok guys I have tried looking through all 105 pages of support but I cant see where im going wrong, I have installed Custom Profile Field Mod on SMF 1.1.5, it all seems to install with no errors bit I cant find where to setup and edit fields, In features & Options but it dont seem to be there,,
Please guys what am i doing wrong???? :-\
@ ninedoors
1. This mod will us it's own settings and data and wont interfer or affect any other fields.
2. This isn't the place for that type of support, as it's not related to this mod. Do a search, there should be plenty of threads on how to remove certain details from template files.
@ TheNostradamus
Do all other mods install okay? Did you install all the $txt[] strings for your forums language? This mod will only install into the default theme and then only in 'plain' english. If you server settings are anything different to this you'll need to install the strings to those language files.
I installed the mod, and it says it installed successfully, but nothing is showing up in "Features and Options". Is there a way in fixing this?
@projektdeth
Quote from: Rumbaar on August 14, 2008, 06:01:09 PMDo all other mods install okay? Did you install all the $txt[] strings for your forums language? This mod will only install into the default theme and then only in 'plain' english. If you server settings are anything different to this you'll need to install the strings to those language files.
Yes, the rest of the mods work great, also I came up with another problem, my default theme doesnt show up any longer after I installed the mod.
Did it install without any errors?
no errors
So your forum working 100%, installed mod. Installed 100% without any Test failed errors. Then straight after the default CORE theme no longer works?
First off, kickass mod! Installed perfect, works perfect.
Second: how can i show the custom data in memberlist?
please read the previous messages in this thread and/or use search. That question has been asked (and answered) before.
I have the same problem with this mod - this one installed successfully but doesn't showed in Features and Options (SMF 1.5)
It's working on default forum on localhost correct but doesn't working with the same installation + smf_1-1-5_russian-utf8
I have readed how to install manually and all files - all modifications succesfully inserted (I have tried to change Theme to default - but this doesn't work too)
Can somebody help? Maybe problem in russian? But I don't understand why this can happen?
This has been answered several times in nearly every mod thread (including this one)
mods install in the default theme and english only, by default.
(english UTF -8 is different form english)
So, yes... russian is the "problem"
You need to add the text strings to your russian language file (modifications.russian.php)
i really like your addon, i thought id offer some feature requests though
it would be awesome if you could search member by the custom fields
also if you could toggle showing the field on the member list
seeing as how this function exists as standard in SMF 2.0, I doubt there will be any further features added....
besides, the features you ask for require a SIGNIFICANT amount of conditional coding.
Ive just added this mod to a 1.1. version, and it installed and applied 100%, but it only shows in your profile vire even after setting it to show under post count in posts..
106 pages in this thread.. might take we a while to find the answer..
are you running the default theme?
Dear SMF community,
I have installed the "custom profile fields mod" with SMF 1.1.4 and I would like to hide these fields from guests just like I can choose to hide the board members contact details from guests. I know this functionality must be present because one can just choose to hide "contact details" from guests. My wish would be to extend this option to not only hide contact details, it should also hide everything the board members have entered in the custom fields.
How can this be achieved? How do I have to modify the mod to achieve the result?
Thanks in advance for your highly appreciated help.
Best regards from Switzerland,
brans
How do I clear all previous custom fields? I've deleted them, but for some reason, when I add a new one, say an xfire field, it shows as a duplicate on the profile settings and summary.
I think it has something to do with the Field ID, but I couldn't find where they were kept in my database. I'd like to remove them, because I don't want the old ones, and my other admins aren't very inept with smf.
Please assist.
I even tried a search for "CP", in my database, and it came up with 0 results.
I uninstalled and reinstalled, and now even new fields are duplicating! This is frustrating.
Quote from: bfeo on August 25, 2008, 08:39:06 AM
I think it has something to do with the Field ID, but I couldn't find where they were kept in my database. I'd like to remove them, because I don't want the old ones, and my other admins aren't very inept with smf.
Please assist.
I even tried a search for "CP", in my database, and it came up with 0 results.
The field definitions are stored in the smf_settings table as CP{number}_type, CP{number}_id, ...
Should I uninstall mod, delete those definitions, and reinstall?
Quote from: Kindred on August 23, 2008, 07:00:49 PM
are you running the default theme?
im using the Classic YaBB SE Theme
Quote from: Mulgarus on August 25, 2008, 09:06:58 PMim using the Classic YaBB SE Theme
As with 99% of the 1.1.x mods, you need to add the code to any non default theme template files.
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Great mod!
It's possible with city and country (drop down?) field then show on a google map member all the members?
thanks
no. This is not the googlemap/location mod.
Search for the other mod to do that....
is there anyway to make what is someone puts into the custom field a hyperlink?
Quote from: Mulgarus on August 27, 2008, 01:32:24 AM
is there anyway to make what is someone puts into the custom field a hyperlink?
Parse BBC: yes
Text to display before field: <url=http://www.simplemachines.org/>
Text to display after field: </url>
yea, BUT i don't want to show the entire url in their profile or posts.
Quote from: Mulgarus on August 27, 2008, 02:56:56 AM
yea, BUT i don't want to show the entire url in their profile or posts.
I've corrected my posting.
Doing it this way the URL is not displayed
for x sample
http://s3.ikariam.org/index.php?view=city&id=166849
I know how to make a hyperlink, just not with it working with this custom field mod like i want it to :)
I would want them to enter their city ID# in a custom field, but not show the entire url(which it does now).
Parse BBC: yes
Text to display before field: <url=http://s3.ikariam.org/index.php?view=city&id=%1>ID=
Text to display after field: </url>
generates the following HTML (if ID=123)
<a href="http://s3.ikariam.org/index.php?view=city&id=123>ID=123</url>
just to note... this WAS already answered (several times) in this very thread.
Also... you probably want something like
before: [ url=http://http://s3.ikariam.org/index.php?view=city&id=
after:]CITY[/url ]
(without the spaces and using whatever text you actually want displayed in place of CITY.
Using %1 will display the contents of the actual field....)
Quote from: bfeo on August 25, 2008, 08:39:06 AM
How do I clear all previous custom fields? I've deleted them, but for some reason, when I add a new one, say an xfire field, it shows as a duplicate on the profile settings and summary.
I think it has something to do with the Field ID, but I couldn't find where they were kept in my database. I'd like to remove them, because I don't want the old ones, and my other admins aren't very inept with smf.
Please assist.
I even tried a search for "CP", in my database, and it came up with 0 results.
I uninstalled and reinstalled, and now even new fields are duplicating! This is frustrating.
Quote from: steiger on August 25, 2008, 12:46:41 PM
The field definitions are stored in the smf_settings table as CP{number}_type, CP{number}_id, ...
Quote from: bfeo on August 25, 2008, 01:58:02 PM
Should I uninstall mod, delete those definitions, and reinstall?
why would you uninstall/reinstall? Just remove any rows of CP1_type and CP1_id (and then do the same for the additional numbers, CP2, CP3, etc)
Another handy mod, quite easy additions, installed without a hitch.
Quote from: Kindred on August 27, 2008, 11:07:00 AM
why would you uninstall/reinstall? Just remove any rows of CP1_type and CP1_id (and then do the same for the additional numbers, CP2, CP3, etc)
I would also remove all the other CP rows like CP1_bbc, CP1_data1, ...
I deleted all CP related tables, and it still duplicates when I make new ones.
Dear all,
does anyone have a clue about the problem I posted earlier in this thread: http://www.simplemachines.org/community/index.php?topic=79004.msg1674225#msg1674225
It can't be so hard, I just don't know where to start searching for the solution.
Thanks in advance for your help,
brans
@bfeo
I hope you deleted all relevant rows (not tables).
Sorry, don't know why you are still getting duplicates.
@brans
You could try to modify the mod ;D
Look inside CustomProfile.php in function DisplayFieldsProfile(). There you could handle the output yourself.
A question about modifying the mod:
I have made two additional settings and contacted winrules (http://www.simplemachines.org/community/index.php?action=profile;u=12859) twice if he is interested.
No reply, no feedback, just ignorance.
As I am new in this community I do not know if there is a certain way to discuss such topics.
Is it?
Quote from: steiger on August 28, 2008, 03:32:26 AM
I have made two additional settings and contacted winrules (http://www.simplemachines.org/community/index.php?action=profile;u=12859) twice if he is interested.
No reply, no feedback, just ignorance.
Take note of his signature "Please do not PM me for support."
Hi there
I am sorry to be a nuisance, but I have looked all through thread and can't find anything similar.
I have running 1.1.5 and have installed this mod - no probs.
The problem is, I can't seem to find the Fields in Features and Options.
Is there something else I need to do, or can someone point me to a reference sheet that I can use.....
Or perhaps it is just me having a "blonde" day.
Again, sorry to be a nuisance, I am very new to this and would appreciate anyone pointing me in the right direction.
Cheers
Di
@jako7444, you don't see whats highlighted in the red.
Correction.
Hey there,
No, nothing looks different. Nothing in red.
Sorry, meant to say - no - that heading is not there
I have no idea why I did this, but I went into tracking IP addresses and found some error messages.
8: Undefined index: cp_cpfields
File: /home/ebook/public_html/forum/Sources/ModSettings.php
Line: 142
?action=featuresettings;sa=layout;sesc
Unable to load the 'CustomProfile.english-utf8' language file.
?action=featuresettings;sa=layout;sesc
2: fclose(): supplied argument is not a valid stream resource
File: /home/ebook/public_html/forum/Sources/Subs-Package.php
Line: 1908
?action=packages;sa=install;package=customprofile3-19.zip
2: fopen(/home/ebook/public_html/forum/Sources/Register.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/ebook/public_html/forum/Sources/Subs-Package.php
Line: 1901
?action=packages;sa=install;package=customprofile3-19.zip
I realy don't know what they mean, except that obviously there are errors in these docs on the lines mentioned. Would this be my problem? If so, any clues?
Cheers
Di
Quote from: wmcintosh on August 28, 2008, 05:20:58 AM
Quote from: steiger on August 28, 2008, 03:32:26 AM
I have made two additional settings and contacted winrules (http://www.simplemachines.org/community/index.php?action=profile;u=12859) twice if he is interested.
No reply, no feedback, just ignorance.
Take note of his signature "Please do not PM me for support."
I did not need support and this was not the reason for my PM.
It was only about possible inclusion of my enhancements.
I thought maybe I needed to change permissions on the pages, so I did this. I then uninstalled the package and then re-installed. The test shows everything is OK and I get a message that everything is installed OK, but I still don't get the Fields.
Also, do I need to post this somewhere else as I know this isn't supposed to be a support area.
Many apologies for my inexperience. I really don't wish to be a nuisance.
Cheers
Di
Quote from: jako7444 on August 28, 2008, 06:27:18 AM
Unable to load the 'CustomProfile.english-utf8' language file.
?action=featuresettings;sa=layout;sesc
This mod only ships english but not english-utf8.
It seems that you are running smf configured for utf8. Therefore the language file is missing.
Since re-installing, I went to my error log to have a look and there now only seems to be 2 problems
The first is
http://mokolesneymatchbox.com/forum/index.php?action=featuresettings
8: Undefined index: cp_cpfields
File: /home/ebook/public_html/forum/Sources/ModSettings.php
Line: 142
I had a look and Line 142 reads ......... 'title' => $txt['cp_cpfields'],
The second is
http://mokolesneymatchbox.com/forum/index.php?action=featuresettings
Unable to load the 'CustomProfile.english-utf8' language file.
Thanks Steiger for pointing out the issue with this last one. Any clue as to how I change this? And does it matter if I do?
Cheers
Di
I had a look at my server settings and yes, the default language is English-utf8.
I also got the message " These settings cannot be changed because Settings.php is read only."
Can I just change the settings to write and then change it, or will I screw something up?
Cheers
Di
Quote from: jako7444 on August 28, 2008, 07:15:24 AM
I had a look at my server settings and yes, the default language is English-utf8.
I also got the message " These settings cannot be changed because Settings.php is read only."
Can I just change the settings to write and then change it, or will I screw something up?
Did you configure smf for english-utf8 on purpose?
If not, change Settings.php to r/w and change to english
Yippee!!!!!
Thanks for pointing me in the right direction.
I changed the permission on settings.php. Changed the language to English. Uninstalled mod. Reinstalled mod.
And voila - I have Custome Fields.
THANKS, THANKS, THANKS
I am a very happy little vegemite!!!!
Cheers from Oz
Di
So there isn't any known solution for this duplication bug? I've tried everything. Deleting all CP rows, using IDs that haven't been previously used... everything. Could there somehow be code that's been duplicated from a reinstall? I had to reinstall my forums a while back. I don't think I pulled over any of the old code, but idk... I'm lost now.
It makes this mod useless.
Jako... why did you uninstall? With all that uninstalling and reinstalling, there is a very good chance that something got messed up (i.e. code was not completely removed and is now duplicated)
Remember... computers do not learn through repetition.
BFEO... the "bug" that you report, I suspect (as I indicated to Jacko above) is due to your uninstalling and reinstalling the mod multiple times.
At this point, I would suggest loading clean SMF files (thus removing ALL your mods) and re-installing your mods once each, one at a a time.
Brans, As steiger notes: What you request is not part of the mod... It is possible, but you'll have to modify the mod to code it yourself.
work perfect, with 1.5
Hello,
Firstly, thank you for sharing your mods with us...
I am using this mod in my web site www.sectit.com, i have a little question, i am writing contest mod ( or extension) for smf and i will use some extra profile information from your mod. I search my DB for collecting and showing informaion on Contest Page, but i just found mod content ( description, field name etc..) in smf_settings CP_XX_XX...So, I need to know where is user records ? where saved in table?
My sql query will be like this...
$member_hobbies_sql ="SELECT cp_tbl_hobbies from smf_????? where CP???_MEMBER_ID = 1"....
thanks for now...
QuoteAt this point, I would suggest loading clean SMF files (thus removing ALL your mods) and re-installing your mods once each, one at a a time.
Yea,... no.
No way that I'm gonna reinstall all of those manual installations and custom mod edits for this one. I appreciate the help, but that's simply not an option. 55 mods. A good many custom edits too.
Perhaps it's duplicated code, and not related to the database. If so, where do you suggest I look? There haven't been any duplicated code complaints from the forums, but perhaps it doesn't matter with this mod.
It doesn't duplicate in admin panel, just in the profile, for both the input fields and for viewing the summary.
Quote from: bfeo on August 29, 2008, 09:43:00 AM
It doesn't duplicate in admin panel, just in the profile, for both the input fields and for viewing the summary.
Have you looked at the smf_settings table if the CP rows are duplicated there?
Quote from: sectit.com on August 29, 2008, 08:38:34 AM
Hello,
Firstly, thank you for sharing your mods with us...
I am using this mod in my web site www.sectit.com, i have a little question, i am writing contest mod ( or extension) for smf and i will use some extra profile information from your mod. I search my DB for collecting and showing informaion on Contest Page, but i just found mod content ( description, field name etc..) in smf_settings CP_XX_XX...So, I need to know where is user records ? where saved in table?
My sql query will be like this...
$member_hobbies_sql ="SELECT cp_tbl_hobbies from smf_????? where CP???_MEMBER_ID = 1"....
thanks for now...
OK i solve problem, i found records in smf_themes :)
thanks...
I've deleted every single row with the letters CP in them. That's not where the problem is.
Either there is more information somewhere else in database, or it has to do with reinstalling the mod. Perhaps duplicated code that did not delete as it should have or something.
Quote from: bfeo on August 29, 2008, 09:58:04 AM
I've deleted every single row with the letters CP in them. That's not where the problem is.
Either there is more information somewhere else in database, or it has to do with reinstalling the mod. Perhaps duplicated code that did not delete as it should have or something.
Could you post a screenshot of a profile containing the duplicated entries?
Edit: Does it also show duplicates in Postings?
I'll reinstall the mod and take some screenies. As for that, I haven't tested with a value visible in posts.
Ok. I already had it still installed.
Uhm... it appears to duplicate the ID THREE times in posts. And one of them in a different spot. None of them are in the correct spot anyway. I chose for it to be under the post count.
OK, I don't know what happened to the posts but first let's compare the installed CustomProfile.php with the file from the package.
Then look at Profile.template.php of your theme where "DisplayFieldsProfile();" is found.
The same in Display.template.php for "DisplayFieldPostsPictures();" and "DisplayFieldPosts();"
You could also post these theme files but I am only able to look in a few hours.
bfeo,
from your comments, it seems that you installed/uninstalled, etc for a total of three installations... hence the 3 occurences.
as for the 55 mods... sheesh. it's a wonder you have anything working.
Profile.template.php of your theme where "DisplayFieldsProfile();"
DisplayFieldsProfile();
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldsProfile();
// Can they add this member as a buddy?
if (!empty($context['can_have_buddy']) && !$context['user']['is_owner'])
echo '
<a href="', $scripturl, '?action=buddies;sa=add;u=', $context['member']['id'], ';sesc=', $context['session_id'], '">[', $txt['buddy_add'], ']</a>';
echo '
</td>
</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr>
<td><b>', $txt[231], ': </b></td>
<td>', $context['member']['gender']['name'], '</td>
</tr><tr>
<td><b>', $txt[420], ':</b></td>
<td>', $context['member']['age'] . ($context['member']['today_is_birthday'] ? ' <img src="' . $settings['images_url'] . '/bdaycake.gif" width="40" alt="" />' : ''), '</td>
</tr><tr>
<td><b>', $txt[227], ':</b></td>
<td>', $context['member']['location'], '</td>
</tr><tr>
<td><b>', $txt['local_time'], ':</b></td>
<td>', $context['member']['local_time'], '</td>
</tr><tr>';
Display.template.php for "DisplayFieldPostsPictures();"
DisplayFieldPostsPictures();
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>';
Display.template.php for "DisplayFieldPosts();"
global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();
global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
// Show the member's custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
', $message['member']['title'], '<br /><br />';
global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();
Quote from: Kindred on August 29, 2008, 11:16:53 AM
bfeo,
from your comments, it seems that you installed/uninstalled, etc for a total of three installations... hence the 3 occurences.
as for the 55 mods... sheesh. it's a wonder you have anything working.
Working beautifully, at that. ;P
Of 57, 9 have to be manually installed.
Mod Name Version
1. Force Topic Read On Login Mod 1.0 [ Apply Mod ] [ List Files ] [ Delete ]
2. AJAX Instant Quick Reply 1.0.1 [ Uninstall ] [ List Files ] [ Delete ]
3. Admin Lock Thread 1.2 [ Uninstall ] [ List Files ] [ Delete ]
4. PM On Registration 1.0.2 [ Uninstall ] [ List Files ] [ Delete ]
5. Super Admin 1.0 [ Apply Mod ] [ List Files ] [ Delete ]
6. Treasury 2.11 [ Apply Mod ] [ List Files ] [ Delete ]
7. Signature Dropdown Choices 1.0 [ Uninstall ] [ List Files ] [ Delete ]
8. Topics Filter 2.5 [ Apply Mod ] [ List Files ] [ Delete ]
9. Titled Links 1.1c [ Uninstall ] [ List Files ] [ Delete ]
10. Ultimate Profile 0.8.5 [ Uninstall ] [ List Files ] [ Delete ]
11. Auto Embed Video/Audio Clips 3.1.2 [ Uninstall ] [ List Files ] [ Delete ]
12. SMF Poll Mod 1.2 [ Uninstall ] [ List Files ] [ Delete ]
13. Shop Item: Change Display Name CSS 1.0 [ Uninstall ] [ List Files ] [ Delete ]
14. Default Avatar 1.1.1 [ Uninstall ] [ List Files ] [ Delete ]
15. New Topic Button 1.0 [ Uninstall ] [ List Files ] [ Delete ]
16. Create Topic on Report to Moderator 0.2 [ Uninstall ] [ List Files ] [ Delete ]
17. BBC [you] 1.0 [ Uninstall ] [ List Files ] [ Delete ]
18. Hide Post 1.1 [ Uninstall ] [ List Files ] [ Delete ]
19. TinyPortal 1.052 [ Uninstall ] [ List Files ] [ Delete ]
20. nwsw.nwswAdminAttachAnything 1.1 RC3 [ Uninstall ] [ List Files ] [ Delete ]
21. The Rules 1.03 [ Uninstall ] [ List Files ] [ Delete ]
22. SMF Shop - Jeeves The Butler 1.0.2 [ Uninstall ] [ List Files ] [ Delete ]
23. Admin Notepad 1.0 [ Uninstall ] [ List Files ] [ Delete ]
24. Profile Music 1.0 [ Apply Mod ] [ List Files ] [ Delete ]
25. Drafts (for 1.1.5) 1.07 [ Uninstall ] [ List Files ] [ Delete ]
26. SMF Rivals 0.3.0 [ Uninstall ] [ List Files ] [ Delete ]
27. No Single Character Serach 1.0.3 [ Uninstall ] [ List Files ] [ Delete ]
28. Attachments Positioning 1.2 [ Uninstall ] [ List Files ] [ Delete ]
29. Change_Poster_Of_Topic_And_Message 1.0 [ Uninstall ] [ List Files ] [ Delete ]
30. Hide SMF Version 1.0.2a [ Uninstall ] [ List Files ] [ Delete ]
31. Ad Managment 2.3 [ Uninstall ] [ List Files ] [ Delete ]
32. ShowTopics 1.1 [ Uninstall ] [ List Files ] [ Delete ]
33. FelBlog for SMF 0.940 [ Uninstall ] [ List Files ] [ Delete ]
34. Member List Position Filter 1.1.0 [ Uninstall ] [ List Files ] [ Delete ]
35. Redirection Boards 2.01 [ Uninstall ] [ List Files ] [ Delete ]
36. Hide Board 1.1 [ Uninstall ] [ List Files ] [ Delete ]
37. Automatically Remove Inbox Label Mod 1.0 [ Uninstall ] [ List Files ] [ Delete ]
38. Custom Profile Field Mod 3.19 [ Uninstall ] [ List Files ] [ Delete ]
39. MCLegendII.2 2.0 [ Uninstall ] [ List Files ] [ Delete ]
40. Profile_Visitors 4.0 [ Apply Mod ] [ List Files ] [ Delete ]
41. Copy Topics 1.4 [ Uninstall ] [ List Files ] [ Delete ]
42. SMFShop 3.0 [ Uninstall ] [ List Files ] [ Delete ]
43. Member Notepad 1.0 [ Uninstall ] [ List Files ] [ Delete ]
44. EarnFromAmazonLinksMod 1.0 [ Uninstall ] [ List Files ] [ Delete ]
45. Repeating Calendar Events v1.2.6 1.2.6 [ Uninstall ] [ List Files ] [ Delete ]
46. Password Protect Boards 0.2 [ Apply Mod ] [ List Files ] [ Delete ]
47. Hide Tag 1.7.1 [ Uninstall ] [ List Files ] [ Delete ]
48. TopicLog 1.0 [ Uninstall ] [ List Files ] [ Delete ]
49. Increase/Decrease Postbox Size 1.0 [ Uninstall ] [ List Files ] [ Delete ]
50. Enhanced Quick Reply Box 2.0.2 2.0.2 [ Apply Mod ] [ List Files ] [ Delete ]
51. Referrals Mod 2.0.1 [ Uninstall ] [ List Files ] [ Delete ]
52. Allowed Groups Embedded Flash 1.2.3 [ Apply Mod ] [ List Files ] [ Delete ]
53. RemoveMessageIcons 1.0 [ Uninstall ] [ List Files ] [ Delete ]
54. Expand Pages Mod 1.0 [ Uninstall ] [ List Files ] [ Delete ]
55. Order Stickied Topics 1 [ Uninstall ] [ List Files ] [ Delete ]
56. View Single PM 1.3 [ Uninstall ] [ List Files ] [ Delete ]
57. Use [color] Tags in [code] Mod 1.0 [ Uninstall ] [ List Files ] [ Delete ]
Did you only post the code or also look at it.
At first sight I can see duplicate occurences of the Display* functions.
- Remove the mod
- Remove all mod code which is still here manually
- Install the mod
Yea but if there are duplications, what if I delete something that shouldn't be deleted? They don't appear to be text book replicas.
I can upload the files if you want.
I've attached both files.
I have tagged the problem locations with
//remove
Look yourself and test
Hi,
Thanks for this mod - I really like it and have been using it for over a year to keep track of donations.
I would like to know if it is possible to allow members to see their own custom profile field but not allow members to see the custom profile field of other members. In my case, this would enable forum members to see the details of the donation they made while at the same time keeping this information private for other members.
Thanks,
Kathy
Quote from: GL700Wing on August 30, 2008, 05:57:56 AM
Hi,
Thanks for this mod - I really like it and have been using it for over a year to keep track of donations.
I would like to know if it is possible to allow members to see their own custom profile field but not allow members to see the custom profile field of other members. In my case, this would enable forum members to see the details of the donation they made while at the same time keeping this information private for other members.
Hi Kathy,
this is similar to brans request.
It is possible but you have to code it yourself.
Michael
Hi Michael,
Thanks for your speedy reply. I did search this topic but I couldn't find a similar request - sorry for the duplication!!
Some time ago there was an 'enhanced' version of the Custom Profile Field mod which stored the CPF information in the SMF database instead of in the theme. Do you know if there any plans to change the behaviour of the 'standard' version to do this?
Thanks,
Kathy
Quote from: GL700Wing on August 30, 2008, 06:38:29 AM
Hi Michael,
Thanks for your speedy reply. I did search this topic but I couldn't find a similar request - sorry for the duplication!!
It's not really a duplication but just similar.
Quote
Some time ago there was an 'enhanced' version of the Custom Profile Field mod which stored the CPF information in the SMF database instead of in the theme. Do you know if there any plans to change the behaviour of the 'standard' version to do this?
I don't know about this enhanced version.
All I know is that the current version is storing the field information inside the SMF database (smf_themes table).
Michael
As far as I know, there are no plans to do anything further with this mod, since SMF 2.0 has the custom fields built in... (the field data is still stored in the themes table)
Why do you care whether it uses the theme's table or a separate table? I had this mod (and now smf 2.0) running on a forum with 32,000 members with no problems
It wasn't working, but in Profile.template.php you missed a duplicate of this code, Steiger. Thanks for the help. Looks fixed.
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
EditFields();
Quote from: bfeo on August 30, 2008, 12:53:58 PM
It wasn't working, but in Profile.template.php you missed a duplicate of this code, Steiger. Thanks for the help. Looks fixed.
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
EditFields();
Sure I missed that one because I wasn't looking for it.
Just looked for the Display* code.
Glad it's working again.
Quote from: GL700Wing on August 30, 2008, 06:38:29 AMSome time ago there was an 'enhanced' version of the Custom Profile Field mod which stored the CPF information in the SMF database instead of in the theme.
You sure you're not referring too the one done by rsw686 (http://www.simplemachines.org/community/index.php?action=profile;u=117131), he had one that wasn't approved but was supplying it to those that requested.
For Kindred:
Quote
Why do you care whether it uses the theme's table or a separate table? I had this mod (and now smf 2.0) running on a forum with 32,000 members with no problems.
I'm using SMF 1.1.5 and, as I understand it, all the CPF information is deleted from the theme when the theme reset option "Remove all members' options and use the defaults" is used and also because all the CPF information has to be manually re-entered if you change themes. I'd be more than happy if I was wrong on both counts!!
For Rumbaar:
Quote
You sure you're not referring too the one done by rsw686, he had one that wasn't approved but was supplying it to those that requested.
Yes - that's the one but I didn't realise there were two versions.
Kathy
I would like to see a field type - image, text or url.
(or has this been mentioned already?)
why? You can create this yourself...
use BBC
image...
before: [ img]
after: [ /img]
url...
before: [ url=
after: ]FIXED TEXT[ /url]
text...
just as it is...
Quote from: GL700Wing on August 30, 2008, 07:20:47 PM
For Kindred:
Quote
Why do you care whether it uses the theme's table or a separate table? I had this mod (and now smf 2.0) running on a forum with 32,000 members with no problems.
I'm using SMF 1.1.5 and, as I understand it, all the CPF information is deleted from the theme when the theme reset option "Remove all members' options and use the defaults" is used and also because all the CPF information has to be manually re-entered if you change themes. I'd be more than happy if I was wrong on both counts!!
That's very interesting to hear.
Feedback would be important for me too!
What would really be nice for this mod, would be the ability to create fields within sections in a user's profile...say "Computer Specs".
A link could be placed under a username in their posts, which, when moused over and/or clicked on...creates a pop-up or menu of the items within that category.
Just a thought...
Quote from: Kindred on August 30, 2008, 09:15:23 AM
As far as I know, there are no plans to do anything further with this mod, since SMF 2.0 has the custom fields built in...
Hi kindred,
could you please comment on GL700Wings posting about the profile fields being cleared when switching themes.
If this is correct (and if this is implemented the same way in 2.0) then it is a major flaw.
I have added this mod.
I created a field called BOS.
Where can I find this in the database (i've looked in the members table and it's not there)? I need to run a php script against the database using this field.
Thanks.
Quote from: matt_hardwick on September 03, 2008, 03:53:32 PM
I have added this mod.
I created a field called BOS.
Where can I find this in the database (i've looked in the members table and it's not there)? I need to run a php script against the database using this field.
This was answered just a few postings ago.
smf_themes ist the place to look.
Quote from: steiger on September 03, 2008, 04:03:45 PM
This was answered just a few postings ago.
smf_themes ist the place to look.
That's a really daft place to put it IMO. I can't run anything against that very easily. *sigh*
Quote from: matt_hardwick on September 03, 2008, 04:08:02 PM
Quote from: steiger on September 03, 2008, 04:03:45 PM
This was answered just a few postings ago.
smf_themes ist the place to look.
There isn't anything in there other than information about my themes.
Did you enter data for a custom field?
Then you should have a row in smf_themes with the userid of this user, variable=<fieldname>, value=<value>
It's a table like any other table. Key is ID_MEMBER.
Where is your problem?
I wanted information in the user table. Never mind.
Quote from: matt_hardwick on September 03, 2008, 04:14:20 PM
I wanted information in the user table. Never mind.
I think the custom information should be stored in its own table. The smf_members belongs to the core SMF and IMHO should not be modified.
If it should have it's own table why isn't it in smf_customFields?
Quote from: matt_hardwick on September 03, 2008, 04:28:15 PM
If it should have it's own table why isn't it in smf_customFields?
Don't ask me, I'm not the creator or owner.
ok... At least in 2.0, the CPF data will NOT be deleted...
QuoteRemoveTheme() function deletes all the information saved on the smf_themes table about the theme being deleted. However, all the custom profile field settings are saved with the theme ID 1 which is SMF Core Default Theme ID. And admins cannot delete core theme.
Also if you change theme, i.e. you use Babylon instead, the information will still be gathered, collected and kept.
QuoteRemoveTheme() function deletes all the information saved on the smf_themes table about the theme being deleted. However, all the custom profile field settings are saved with the theme ID 1 which is SMF Core Default Theme ID. And admins cannot delete core theme.
This is also true for 1.1.5
Quote
Also if you change theme, i.e. you use Babylon instead, the information will still be gathered, collected and kept.
But I haven't checked this.
Help, i get a blank page when i go to "features and settings".
I am trying to install this on a custom theme, and the "Register.template.php" was not in it.
Sorry for this question again. I've asked a similar question earlier on in the mod, but now I'd like to remove these colons from the register page. I was able to remove the colons from the forum post area (see attached), but I would like to remove them from the register page (see attached). There's 24 different instances of colons in the CustomeProfile.php and I'm not sure which ones to remove without creating major damage. Thanks in advance.
I expect, in order to change the display on the register page, one should look in register.template.php
Quote from: Kindred on September 07, 2008, 09:59:02 AM
I expect, in order to change the display on the register page, one should look in register.template.php
hey kindred, do you know what the problem for me could be...
Kindred,
I found this in the register.template.php
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
RegistrationFields();
echo '
</table>
</td>
</tr>
</table>';
but, no colons that can be removed. hmmm...
Quote from: bomdsquad on August 18, 2008, 12:54:51 AM
First off, kickass mod! Installed perfect, works perfect.
Second: how can i show the custom data in memberlist?
Thanks in advance.
I've searched for about 45 minutes and can't find the answer to this question. Also, I would like to remove the following from the memberlist: ICQ, AIM, YIM and MSN boxes and add my custom profiles. Any help with this would be great.
forummaker: removing/adding fields to the memberlist has been discussed... in general (around the forum), and in specific for this mod (in this very thread)
As I see now with that code, the function RegistrationFields is called... so find THAT function in the other PHP file and find the : in there...
Makaaveli,
Sorry, I have no idea... although a blank page is usually indicative of an error that was "trapped". Try turning off error catching and see what displays
Request:
I am using your "Custom Profile Field Mod" and it's great.
I am looking for a way to search the profile fields, both original and custom.
I am running a community site and would like members to be able to search other members.
I am using SMF 1.1.16
Any ideas?
Thanks Kindred,
I tried what you suggested and removed all the colons at the RegistrationFields area in the customprofile.php and it worked. There were still instances in other areas of the website, so what I did was just remove all the instances of colons that looked like this:
': </b>'
I removed just the colon. Now everything is great!..... for now.
Thanks again.
hello
how can a add a listbox that when he/she selects and option show an image in her/his post
example: i got 3 option
1
2
3
if he/she selects option 1 appear (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffarm4.static.flickr.com%2F3096%2F2416536111_43612895a8.jpg%3Fv%3D0&hash=207acfaf241bf9da5c39f842af72b375bf66ed58)
if he/she selects option 2 appear (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.bdfa.com.ar%2Fimagenes%2Fescudos%2Fpasto_p.gif&hash=6c939599888f9099f118accd1b077c22b82f87c9)
if he/she selects option 3 appear (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.bdfa.com.ar%2Fimagenes%2Fescudos%2Fnacional_par_p.gif&hash=30eb2337a485367a876ae14df0b1bc2d62838cbc)
thanks
Quote from: pibe86 on September 13, 2008, 03:06:03 PM
hello
how can a add a listbox that when he/she selects and option show an image in her/his post
before: [ img src=path_to_img/
after: .jpg][ /img]
The images must be named 1.jpg, 2.jpg, ...
Hi there!
I recently installed the mod, Custom Profile Field Mod, for SMF 1.1.6
When I try to go into the Features and Options page I see nothing. It is a blank page. What has happened?
Does anyone know how to fix this?
Thank You.
Please search the whole thread. Also more details, you mean it come up totally blank when you try to access the Features and Options page or you have blank sections? Also error log entries will help.
It is a totally blank page.
Here is the error code:
8: Undefined index:
File: /hsphere/local/home/username_hidden/domain_hidden.com/forum/Sources/ModSettings.php
Line: 146
Did the mod install 100% correctly without any Test Failed errors?
You'll need to check the code entered by the mod to see if it's entered correct. Take the backup you took, which I doubt you did, or the ModSettings.php~ file and make the manual changes to that and override the current corrupted one might help as well.
Ya! I will get a fresh copy of the mod file and then add it again one at a time making sure it is correct.
Take a look at the file as well first, it might be a simple thing like a miss-placed end of file or body of code you can fix easily. But yes it might be best to work from scratch.
It said that there is something wrong with line 146:
$subActions[$_REQUEST['sa']]();
Nothing looks wrong!
I fixed it!!!!! :D
Turns out that accidentally keeping one extra line in the code can mess everything up!
Thanks for your help.
I just added mod to 1.1.6, but i don't see any new options in admin area to configure new fields. What am i missing?
thanx.
are you running the default theme and English Language?
(english utf-8 is different from english)
No, I am running classic theme (english). Does this only work with default?
ALL mods (well, almost all) will only work, by default, in the default theme. (I will note that this statement has been mentioned at least 5 times in this thread, and probably in every other mod thread as well)
Any other themes will require you to do some manual installation.
All passed, and I am using a default template for SMF. Yet I cannot find the menu under the Features and Options for custom profile field.
Solution, please?
I just had a quick question about the checkbox/selection box entries. I don't really understand what it means by "Text to display when box is checked" and "Text to display when box isn't checked." Huh?
Also, I see there's no option for multiple choice, though I found some old threads about adding a list (presumably relevant to a previous version of smf)... or is that what a checkbox is ... or a selection box? Also would the older version instructions work with the 1.1.6 version?
Mo
Joshie,
Are you running in English (english utf-8 is different from english)
Quote from: Kindred on September 24, 2008, 10:49:35 PM
Joshie,
Are you running in English (english utf-8 is different from english)
I believe so, I think.
There's one time that I clicked "Convert HTML-entities to UTF-8 characters".
How can I go back to html-entitles?
EDIT
Nevermind, I found a way to go back to English
It was UTF-8 English but I changed it to only English at Default Forum Language option through Server setting.
ANNNNNNNNNNNNNNNNNNNNNNNNNNND
Edit.
I got it work, yep it worked when I changed to English.
What should i do, i have a problem...
Acctually when i create one field, i ve got in profile information and in posts i have 4 times same field...
????
sounds like you accidentally installed the mod 4 times... You will have to go in and manually remove the duplicate code
Can you add configurable statistics to this mod? Such as an interests/keyword cloud, find other users with this keyword/interest/preference etc. and bar graphs for preferences (ie. guild preference, sexuality, whatever the profile field is).
you COULD/CAN.... but it's not part of the mod, and unlikely to become so, since SMF 2.0 has it's own custom profile fields....
I'm running this mod (latest release) on SMF 1.1.6 and the latest version of TP. I would like to create an artical that displays users that have certain criteria from the custom profile stuff.
How could I have code search for a specific item created by custom profile then display everything for that user.
Example, I collect 'business name', 'address', 'city', 'county', and 'state'. I want to search for county then display anyone from that county along with the rest of the custom fields.
The variables are listed as CP1 - CP5 (default variable names)
Any help with this would be GREAT...
I'm trying to use this mod to make a "mood" selection for profiles/posts. I suppose similar to what someone else was trying to do, make a drop down list with stuff like "embarrassed, angry, happy" whatever, and the image show up on their profile instead of the word. Someone suggested using:
before: [ img src=path_to_img/
after: .jpg][ /img]
The images must be named 1.jpg, 2.jpg, ...
But that didnt work for me, maybe I didnt do it right? I was trying to just use the image code so it would show the images instead of the words for them to choose from, but that didnt work- whether i clicked to parse BBC or not.
Don't know why that's not working. Any suggestions? I did search thru this and that one post is the only one i found similar :(
I have no SMF to test for the moment, but try to name the images
embarrassed.jpg, angry.jpg, ...
Ok where do I need to have the files? Right now i just have them on photobucket. And do i do this using the regular image tags? or do i try to use words in there too?
?
Or am i suppose to using the other code listed? if so how exactly do i use that?
[img src=http://example.com/embarrassed.gif][/img]
? Cuz that's not working for me :( either way it just shows the whole code in the options at the edit profile screen, not the image.
that is not how you use the img BBC tag...
[img]http://example.com/embarrassed.gif[/img]
I know :) i was referring to when someone said in another post a couple pages back to do this:
before: [ img src=path_to_img/
after: .jpg][ /img]
The images must be named 1.jpg, 2.jpg, ...
and was asking how to use that? :) I know how to use the IMG tag but it is not working for me
his BBC code is wrong and won't work in that format.
use the version that I posted...
according to :
http://www.simplemachines.org/community/index.php?topic=267246.0
with $context['user'] I have all the users data, is there any similar variable that gives me his custom profile options? (the variable and value in theme table)
It is not in $context['user']['options'].
(I'm checking it, through a non-forum but SSI file included page)
no, there is not. the CPF are not loaded into the user array.. just in the database
Is the Custom Profile Field Mod compatible with SMF 1.1.6?
I have installed the mod yet I do not see it anywhere under Features and Options.
Am I missing something?
have you tried search?
Are you running in English and the default theme?
(note: english utf-8 is different from english)
Quote from: Kindred on October 11, 2008, 12:41:10 PM
have you tried search?
Yes, and I could not find any documentation stating that it was compatible. The mod info states that is compatible with 1.1.5 but says nothing about 1.1.6.
Quote from: Kindred on October 11, 2008, 12:41:10 PM
Are you running in English and the default theme?
(note: english utf-8 is different from english)
Yes and yes. No other mods running.
Ok... so this mod is obviously compatible with SM 1.1.6 but when I go into "Features and Options" what am I looking for?
I don't see any options related to this mod.
Please help, anyone?
If you don't see the options, and you are running in the default theme, then I will bet that you are not actually running in english, but are actually using english utf-8.
Quote from: Kindred on October 11, 2008, 08:21:57 PM
If you don't see the options, and you are running in the default theme, then I will bet that you are not actually running in english, but are actually using english utf-8.
Thanks Kindrid :D
You da man!!
WHOO HAA!!
Is there any way to have the custom fields appear before the default fields within the Registration form?
Quote from: Kindred on October 09, 2008, 09:20:08 PM
his BBC code is wrong and won't work in that format.
use the version that I posted...
Well even with that one it doesnt work :( I just tried using 2.0 and it doesnt work with that either. I guess my question is SHOULD it work? I know others have talked about doing it before, but nothing seems to work for me :(
I have created a music field in the user profile settings, which gets url of the music path from user and plays that on the profile.
I have done everything as shown on this page http://www.smfsupport.com/support/guides_and_tutorials/guide_custom_profile_fields-t3061.0.html (http://www.smfsupport.com/support/guides_and_tutorials/guide_custom_profile_fields-t3061.0.html)
but still there is no music playing on the user profile.
Can someone tell why?
How do I use php to just call one particular custom profile field and place instead of my avatar.
For instance,
I want to do,
if {the 1st CP field } = true
then
print {1st CP feild}
else
print $avatar
I installed this mod and have it working... maybe it's obvious to others but it took me a while to understand the saving process, which is a two-step process.
Anyway... I got it working for the most part. I just have one problem. And I apologise if this has already been covered in this thread somewhere. I tried to do a search for it but didn't find anything relevant.
Not always, but in some selection box fields, it won't save the results. I have tried comparing the problem fields with others that work, but I can see no discernable difference. Any idea why this would happen? Should I just try re-creating them to remove whatever glitch is causing this? Or has someone else found a solution... I use the 1.1.6 version with the DefaultMC_115 theme.
Thanks in advance.
Mo
Can any one tell me how to create a CUSTOM PROFILE field for MUSIC?
I have received no replies. Can any moderator tell me about it??
Hi, thanks for the mod...
Is there a way to force Existing users to fill this field in?
Also, what does parse bbc mean / do?
Thanks.
@chakotay2
Force input under "Show field on registration?", I think thats what you want.
Parse BBC is If someone added...
http://www.somesite.com (turns into an actual link, not just text)
or
:) (would show actual smiley in profile view)
ok, got the BBC part but as far as the other, I am referring to EXISTING users not just new users (registration)...
some chance for view it for smf 2?
why? This is built in as standard in smf 2.0
Quote from: Kindred on October 26, 2008, 01:48:28 PM
why? This is built in as standard in smf 2.0
oops sorry never saw this option thx for inform me :)
Is this something that is going to be available for 1.1.6 or is it not going to be updated since its already part of 2.0?
Quote from: Mulgarus on October 28, 2008, 02:08:07 PM
Is this something that is going to be available for 1.1.6 or is it not going to be updated since its already part of 2.0?
this mod (Custom Profile Fields) works on SMF 1.1.6, i have SMF 1.1.6 using custom theme and it works a treat.
Mathew
Quote from: Mulgarus on October 28, 2008, 02:08:07 PM
Is this something that is going to be available for 1.1.6 or is it not going to be updated since its already part of 2.0?
I'm sure I can say with confidence, no more development will be made for this mod in regards to 1.1.x version of the mod.
Quote from: genieuk on October 28, 2008, 05:01:46 PM
Quote from: Mulgarus on October 28, 2008, 02:08:07 PM
Is this something that is going to be available for 1.1.6 or is it not going to be updated since its already part of 2.0?
this mod (Custom Profile Fields) works on SMF 1.1.6, i have SMF 1.1.6 using custom theme and it works a treat.
Mathew
the one in the customize mods section say it works with 1.5, which i know works, but is that the same one that works with 1.6?
Yes.
I downloaded.. installed the Package.. (1.1.6) worked fine for the install, field showed up, I added it. it worked in the profile section, so i filled it in.
Then when I went to a post, i got an error. undefined function DisplayFieldPostsPictures() in Load.php line 478.
... I looked in Load.php, there is nothing calling it? odd..... any ideas?
I manually installed it... same problem
Fatal error: Call to undefined function DisplayFieldPostsPictures() in /home/content/s/t/a/stat1c/html/forums/Sources/Load.php(1740) : eval()'d code on line 478
and there is no Admin settings lol....hmmm
if i comment out DisplayFieldPostsPictures() then it works...
what does that function do?
Are you sure it 100% correctly installed without any test failed errors? Also if you are using a custom theme, like any mod, you need to add any applicable code to any applicable template files in that theme.
OK, help...
Installed, edited and it doesn't show up.
Uninstalled, deleted, re-uploaded, re-edited and still no dice.... Is there someplace I need to "turn this on" ???
Other mods:
1.0.14 to 1.1.6 update 1.0
SMF Media Gallery 1.0.1
Sarcasm smiley set 1.1
Email validator 1.0
custom profile field mod 3.19
Quote from: Rumbaar on October 29, 2008, 04:58:24 PM
Are you sure it 100% correctly installed without any test failed errors? Also if you are using a custom theme, like any mod, you need to add any applicable code to any applicable template files in that theme.
If you are using other then English you'll need to install the $txt[] strings into your language as well.
I will also note: computers do not learn by repetition... they do the same thing every time.
So installing, un-installing reinstalling won't do anything (good) and could cause errors (sometimes mods don't completely uninstall.... especially if you had some hand-coded edits
i would really like this mod but...
Type Action Description
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
Please try a search of this thread and/or the forum. That single Test Fail just means you'll need to perform the mod code changes to that file manually.
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
yes!
This mod is great!
now i dont need to manually add things....
Great mod!
reinstalling didn't make a difference. I wiped the edited files (hand edits per install guide) and loaded saved/clean versions of the changed files.... then tried it again. no dice. Didn't get any errors or anything the "field" button never did show up... I guess with no comments I'll try it once more, perhaps I missed a hand edit mistake or something (twice).
Quote from: Rumbaar on October 30, 2008, 04:53:54 PM
Quote from: Rumbaar on October 29, 2008, 04:58:24 PM
Are you sure it 100% correctly installed without any test failed errors? Also if you are using a custom theme, like any mod, you need to add any applicable code to any applicable template files in that theme.
If you are using other then English you'll need to install the $txt[] strings into your language as well.
Are you using a theme other than the CORE default theme? Are you using a language other than English? You should only have to do 'hand edit' on Test failed files and applicable custom theme template files.
i don't under stand it
i have installed it manually
i have added a text field called mood and it isn't appearing anywhere!
am i doing something wrong?
Well you only need to add manual code to that one Test Failed file. Did you use the Package Manager and then manually added the missing code to that one file? Did you add it to any custom themes template files, if you're not using the default theme. Did you translate and/or add the $txt[] to your forums language?
I'm sure the issue you are having is not an issue with this mod itself, but installation of mods in general.
Yet another attempt. Ok, didn't hand edit anything this time, god do aI feed dumb..
Uninstalled everything again, NO errors.
Reinstalled one more time. 6-6 "Test Successful"'s.
Uploaded the custom profile and custom profile english. They're on the server, double checked that one..
And yet... nothing. Basic Features, Layout and Options, Karma. That's it.
OK, maybe I'm just freekin' dense or something. What am I missing??
help..
e
Firstly via the Package Manager and installation via this method you should not have to manually upload any files to the server.
Please link to your site, as I've asked three times what server language you are using but it hasn't been confirmed it is plain english. You also haven't confirmed if you're using the CORE theme or not ...
Got it to work... or at least load up and becone visable. I did have to add -utf8 to the included english file which is labeled CustomProfile.english.php it was looking for CustomProfile.english-utf8.php
Seems to be working, kinda. Although it's duplicating each field 3 times on the registration page! have to look that one up ;-)
Well it probably more viable to set your forum default language to English. As for duplications it probably due to the number of times you've tried to install it and it added the code each time.
As for default server language please do a search for the pro and cons for that action.
3 times the fun! Found the duplication in several files. Hope I got them all ;-)
That -utf8 issue has come up a couple times w/mods...
Thanks for the help, I appreciate it!!
Is it possible to use images in selection field?
Ah, I don't know if anyone has requested this (I don't really fancy looking through 100-some pages), but would it be possible to have it display a column in the memberlist?
Quote from: The Cadet on November 03, 2008, 12:49:51 PM
Is it possible to use images in selection field?
[img]%1[/img] // Just make sure that Parse BBC is on and just supply a URL.
it's been requested.... and the code about how to do it discussed and even posted...
However, it is unlikely that this mod will be further developed, since custom profile fields are built in, standard, with SMF 2.0
So, i installed it but when i go to the features and options page all it shows is a blank page.
Anyone...?
A blank pages as a whole, so no other options? If that is the case you'll most likely have an error log entry. Which also indicates the automated/manual edits to your (most likely) ModSettings.php file have not been performed correctly. Try to access your backup of that file, perform the edits again manually (100% correctly) and see if that fixes your issue.
Is this mod work with SMF 1.1.6?
Quote from: FeDe.RuLeZ on November 07, 2008, 05:33:32 AM
Is this mod work with SMF 1.1.6?
Search this thread, I'm sure that has been asked and answered so many times. Also the benefit of searching is that you get an answer to your question almost instantaneously each time. You can even limit to just this thread.
Great Mod! Needed a Biography field, but it's not long enough. How do I add more characters or a larger area?
Thanks!
Okay I have set up the field, but can I access it through SSI.php. Can it appear in one of the arrays?
Thanks,
I have read this thread as much as possible, searched, everything.
It installed great, I've created a field, and everything. However, although I've selected the option, the field will not show up under the post count in posts!
Please help or direct me somewhere ASAP... Thank you very much!
I am using version 1.1.7.
@darrenbeige Not without some coding, not sure if it's been done within this thread already. Try a search.
@akateisakate You must put all applicable mod code into all applicable non CORE default theme template files. You're most likely using a custom theme and haven't put the code in. This is the same for any mod.
I installed this on a fresh 1.1.7 as well. The only mod I have installed is the Referrer mod. Everything seemed to work (I made sure to change my language to English instead of English-UTF), except when I create fields it will only create text fields!! I choose checkbox or selection and then settings and it only comes up with the specifications for text fields. I tried IE as well as Firefox. I know the Referrer mod does some crazy things with the Profile so maybe that's why it's messed up>? I'm trying to create a "singles site" so a profile with lots of info like Favorite books, what ur looking for, etc would be really useful. Any ideas, appreciated...
Question: When you choose say "Selection" and then click on "Settings" what does the URL looklike? Mine always says http://mysite.com/index.php?action=featuresettings;sa=profile;cp=2 no matter the type
Where exactly does it know you're changing the TYPE.
Quote from: Rumbaar on November 14, 2008, 05:18:18 PM
@darrenbeige Not without some coding, not sure if it's been done within this thread already. Try a search.
What code changes?
hello, i have a question please..
in our forum we have a navigationbar like a dropdownmenu and included a point for profile
and we have some custom profile fields
now i want to set a link in the profile-dropdown-menu to one of these special profile fields
i think it´s necessary to inform that there is another link inside of custom profile field
every user has their own board and the link in the c-profile-field get you to this board
so the link in the navi-bar should bring every user to the own board
i hope you understand what i want and help me coding the link
thx for answers
After finally getting the "selection box" to work, I have a problem with the placement. I want the user to choose from 5 images, but I just want the images to show up next to the other images in the profile when posting. I don't need the words, just the image (which I did as bbcode). There's no option for the "selection box" add-on to place next to the other images like the text one. Is there a simple way to give that option?
Thanks
Chris
This is a great mod and have a couple questions, or help that is. I downloaded the mod when I was using the classic template and it worked great with exception that I wanted the field name not visible under the post count, but the answer visible.
My main problem now is that I went to the Extreme 6 template and the stuff does not show up over there anymore. I tried uninstalling and reinstalling the mod and it still does not display it. Any help on these two points? At least the last one..
Update: the info is showing up in the profile section of the pm's but not in the regular postings on the board...
As with ANY custom theme, you will have to manually install any parts of ANY mod that install into a template file that exist in the custom theme...
i.e. in your case, I assume that display.template.php exists in your theme, and profile.template.php does not. So, you will have ot manually install the modifications into deisplay.template.php in order to get it it show on your posts.
(side note: This question is answered at least a dozen times in nearly every mod thread. Please try using search?)
I did use serach and after 15 minutes or so did not see an answer that I understood....I also don't know how to install the modifications into the display thing. Remember, we are all not coders here...
As with all mods you'll need to install applicable code into applicable custom theme template files for it them to work in non default CORE themes.
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg88.imageshack.us%2Fimg88%2F3023%2Fprofilezw7.png&hash=e078e70ce005cc98c6430f4ed81a90fe9e418c2e)
How do i blend the profile area so the custom text ie the xblgt and psnid fields look like the other fields?
Cheers
That's a theme related issue, and you'll need to address that possibly with the themes author. But take a look at the Display.template.php of that custom theme and alter the containing style to match the other areas. It will probably be a single cell containing all the fields and not separate ones for each entry.
Just an FYI. I run version 1.17. Your mod installed easily and works great!
Thanks as I had been looking for something like this for a while!
Hi,
I'm running smf 1.1.7 on my site, and I've installed Custom Profile Field Mod with no errors.
The problem is that I don't find where the options are. I've searched on "Features and Options" but I haven't found anything regarding this mod.
My default language is portuguese utf-8, could this be the problem?
Although I find strange that the package installs ok and then nothing appears on admin panel/features and options
All help will be appreciated.
Thanks in advance.
Best regards,
ENRESINADO
Problem solved, thanks anyway. :)
Regards,
Great mod. I'm using it with 1.1.7
I'm having some problem though. It seems like when I make a select field with a lot of options, these said options will overflow into the other select fields. Or in other words, they show up as options on other fields.
I wonder if anyone else is having this problem?
Oh, and I was wondering where are the values in the custom fields are stored. I can't seem to find them in the mysql database.
Thanks
values are stores in the themes table... (which has been stated a number of times in this thread)
I have just installed this mod on a 1.1.7 board and I have problems. I tried to create a location field for new members registering.
On the Custom Profile Field 1 Settings I changed the Name Field for Unnamed Field to Location
.
Show field on registration? Setting was changed to Force Input
And then saved
There is no sign of an extra field in the registration. The only sign of the mod having any changes on the board is in the Members Profile where it displays Unnamed Field
It's an easy mod script to do and I have added the additional files. So any ideas what I am doing wrong?
Are you using the default theme?
Quote from: Kindred on November 26, 2008, 02:55:09 PM
Are you using the default theme?
yes default theme being used
Quote from: Thundershot on November 19, 2008, 08:42:23 AM
After finally getting the "selection box" to work, I have a problem with the placement. I want the user to choose from 5 images, but I just want the images to show up next to the other images in the profile when posting. I don't need the words, just the image (which I did as bbcode). There's no option for the "selection box" add-on to place next to the other images like the text one. Is there a simple way to give that option?
Thanks
Chris
Just checking to see if anyone missed this..
Thanks
Chris
Thank you to the creators. I love this mod and am glad to see that it has been updated to work with the newer forums.
Just so individuals have one more search result or an answer to a question I saw asked at least twice but without any direct answer (that I could find anyway). Sorry if it was.
Ensuring that your language is set to "English" (simply English) will display the link at the top of you currently cannot see it.
Go to "Admin" > "Server Settings" > "Default Forum Language" (third grouping down) > "English"
Note: "English-utf8" will cause a space to appear where the link to the Custom Profile Field settings should be, but not actually display it.
Again, thank you to those are created and maintain this mod!
Edit: I did find my above situation answered a few pages back. So here it is again for the sake of having it appear a second time for nimrods like me :X
Hello it's me again. Just to recap: I'm using the default theme, have the default language set to English and have no errors in the mod install (please see below). In default and the custom theme (I know it won't work in the default theme unless I manually update it, but it isn't working in the default theme either) I do not see the field to edit or as empty.
Now here is the fun part: the custom field appears in BOTH my custom theme and the default them on the registry page. But it doesn't show up on the profile summary page or on the Forum Profile Information page where you make changes.
I have read the pages several times and perhaps haven't been able to put two and two together. Thank you.
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
Quote from: darthmole on November 27, 2008, 01:18:59 PMNote: "English-utf8" will cause a space to appear where the link to the Custom Profile Field settings should be, but not actually display it.
Actually this is because each language is a distinct different set of files, hence a mod installs to english only (most times). Like any other language as long as you translate and manually install the appropriate $txt[] into their language files it will work 100%. But in regards to english it's far easier to just change the server default and user default language to english.
This is usually an issue when forums are installed via Fantastico, as it's default setting is english-utf8
This line:
2. Execute Modification ./Themes/default/Profile.template.php Test successful
Means it's been installed and will work with the default CORE theme guaranteed. Are you 100% sure you've checked and were using the default CORE theme?
Unless I am overlooking yes I am certain. I'm including screen shots below in case I am indeed overlooking something. The last image has a red box around the custom field which is showing up on the registry page. I thank all in advance and apologize if this is a stupid mistake or me over looking something. Hopefully I'm not and at the same time it is a simple fix. Thank you.
img1
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.themig.ciwe.net%2Fcustomprofile1.jpg&hash=9b17ff5e684f0798b2c1a57fb33caa858df9dbaf)
img2
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.themig.ciwe.net%2Fcustomprofile2.jpg&hash=1e03b34b17464b3a9281e80ad3d84b882fbfa609)
img3
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.themig.ciwe.net%2Fcustomprofile3.jpg&hash=a6327997c8d1ef515f9848a8cfd817eea2dbe650)
img4
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.themig.ciwe.net%2Fcustomprofile4.jpg&hash=00d1ee2dca09dcc067860dcc329f8a1733a71c21)
img5
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.themig.ciwe.net%2Fcustomprofile5.jpg&hash=a403f458e7400366b49e661025d3cfdfa08d9e5e)
Well what is the setting for that custom field?
Screen shot of the settings.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fthemig.ciwe.net%2Fcustomprofile7.jpg&hash=589b996ebf308fe0d65dfd76a8519cdc8c4a0a37)
Annnnnnnnnnnnnnnd there in lies my stupidity.
While I have admin rights to actually work on the board it would seem that I am not part of the admin permissions group (another friend also works on the forum) so the field was being hidden from me. Further more for some reason I did not catch the "Only" at the beginning of those options which is why I wasn't seeing the field in the profile.
My sincere apologies for any time lost on this issue. Thank you very much for your support regardless, but still my apologies.
Hi All,
I have just manually installed this Mod to my forum, as the auto install would not work with my theme. I followed all the instructions correctly, and have the Profile Fields button showing in my features and options panel. But when I click on the button All I get is a blank field with a save box below it, but nothing to edit or change. I am lost to see where this has broken down. Maybe I'm looking too closely? Can someone help please??
I have attached a screen cap:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Faussienaturists.com%2Fausnatimages%2Fprofilelab.jpg&hash=0f38051290cfed9f4fcc8897dff3f714dfcf8ebf)
And my ModSettings.php
http://aussienaturists.com/ausnatimages/ModSettings.txt (http://aussienaturists.com/ausnatimages/ModSettings.txt)
If anyone can help me get this working I'd be ever so grateful.
Paul
I just set up smf this week. (Version 1.1.7) Just for practice I copied the default theme into a new theme and switched to it not thinking anything about it. It worked fine. Then I decided to add my first mod. (This mod.) I installed it with the package manager and all seemed to go well. I got all the successful messages and it completed without complaining. However when I went to the "features and options" menu there was no additional "profile" tab after the "karma" tab. Investigating further it was revealed that the mod only affects the 'default' theme. Good enough. I changed back to the default theme but still no profile tab. So I thought maybe it got hosed because I installed it when I was using another theme so I went back to the that theme and uninstalled the mod. Then I changed back to the default theme and re-installed the mod. Still no joy. Then I saw on the mod page something about manual installation instructions. I looked at those and compared them with the file changes that were auto-magically done and they were character for character correct. However I still get no profile tab in the Features and Options section of the admin panel. Any help on what I over looked? -thx-
@auss9960 Did you perform the normal automated part of the installations? Are there any errors logs? I will guess you are missing the appropriate mod specific additional .php files.
@wakewatcher any error log entries? What is your server default language? If it's not english then you'll need to set it as that or add the appropriate $txt[] strings to your language file.
Thanks for some hints. (In my excitement I didn't even see the Error Log.) My server default language is English. But despite the package manager claiming it installed successfully it does have errors. I have two errors:
Quote8: Undefined index: cp_cpfields
File: /home/steve/public_html/bvg/smf/Sources/ModSettings.php
Line: 142
and
QuoteUnable to load the 'CustomProfile.english-utf8' language file.
I assume the undefined index must be something in the missing file. However when I look at the package installation documentation it doesn't mention anything about the 'CustomProfile.english-utf8' language file. It does mention the 'CustomProfile.english.php' file which
is loaded in the the themes/default/languages directory.
Hmmm.....
I looked at the Mod zip file and there is no 'CustomProfile.english-utf8' included. I also looked at line 142 of ModSettings.php and it is referencing cp_cpfields but cp_cpfields seems to be defined in CustomProfile.php line 33 which was loaded. So I'm stumped.
Well that reference to english-utf8 would indicate to me that your server default language is still english-utf8 or your personal account settings are still set to english-utf8. Correct these to just plain english and you'll be set.
Thanks! This whole experience is like taking a drink from a fire-hose. (But it tastes great!) Since I just got started and don't have a user based etc. I just started over with version 2b4.
I'm not sure what you mean, but you can still have a personal account language setting different to the server default if you allow it. Now you can disable the ability for your users (including you) to choose their own. Which will force them use the default language.
Now that being said the Custom Profile feature is already included in SMF 2.0, so you don't need to install this mod.
Dear Rumbaar & wakewatcher,
I had realised the problem with the language file, but not the solution. I had already hardcoded the $txt['cp_cpfields'] to 'Profile Fields' to get a little further than Rumbaar did, in seeing the next blank page. But on changing my default language to english instead of english-utf8, I can now see the stuff on that blank page to enable the add fields link. Thanks for helping me solve this.
Auss9960
I've used this fantastic mod to create some custom fields specifically for my registration page.
One question: is it possible to make it so the text for the field name doesn't always show up as bold? I'd like to make it standard text and only have certain words in bold.
The field description text is normal but a smaller font so it would still stand out.
I just installed that mod and i´m having a big problem with it.
No matter what type of field i select i always get the page to create a text-field. :-[
OK, i solved my problem from above.
But now i have another one... :o
When i create an option-field i don´t have the possibility to make it required.
Hello... anybody out there? :(
Great work, thank you :)
Michael
Quote from: steiger on August 31, 2008, 02:00:44 PM
Quote from: GL700Wing on August 30, 2008, 07:20:47 PM
For Kindred:
Quote
Why do you care whether it uses the theme's table or a separate table? I had this mod (and now smf 2.0) running on a forum with 32,000 members with no problems.
I'm using SMF 1.1.5 and, as I understand it, all the CPF information is deleted from the theme when the theme reset option "Remove all members' options and use the defaults" is used and also because all the CPF information has to be manually re-entered if you change themes. I'd be more than happy if I was wrong on both counts!!
That's very interesting to hear.
Feedback would be important for me too!
Well I reset my default english theme and this hapenned.... :(
Anyway to restore data without using a backup? I notice that if a new registration is made my fields are working.
Link to forum? Have you been able to install other mods without issue?
I have a problem... for some reason the information stored in the smf_themes was deleted and now all the custom profile information is gone. Today I installed a couple of modifications that added tables to the database, and I'm afraid those deleted the information... if anyone wants to know I installed the TinyPortal Review and Glossary and the SMF Links.
I'm glad I have a backup of the database, is there a way to put back the information?
Thanks!!
Anyone know if this will work with 1.1.7? Thanks
Yes it does, why shouldn´t it?
Hello!
Nice mod!
I've got a question.
I have installed this mod, and works fine, but:
I have installed "Hide links from guests" to. In profiles and posts in linked custom fields i see information "Please register, or login...", not the informations about user.
Somebody knows how to fix that problem?
Sorry for my bad english.
You'll have to take that up with the 'Hide links from Guests' mod author, as that seems to be a functionality of that mod, not this one.
I just saw this :P.
Is there a way to edit various permissions for custom fields?
So I can change just the custom field to be viewable by only the own profile, and any profile for admins, etc?
http://www.simplemachines.org/community/index.php?topic=280831.msg1842878#new
I need to do that ^
:) hello
we love this mod, running with 1.1.7
sio there´s a mod to show a cpfield on memberlist, but only for 2.0 beta Link to mod (http://custom.simplemachines.org/mods/index.php?mod=1520)
i asked for changes to run that mod on 1.1.7 but they said i have to ask here
does anybody know how to solve my problem ?
thx Jessi
@Deacon Frost permissions are only available in the 2.0 version, there will be no further development of this mod for 1.1.x stream.
@Jessikard I don't understand why a different mod would be directed to this thread for changes and/or support. Either way there will be no further development of the 1.1.x stream.
i asked in that thread and they said i have to ask the developer of the original mod
so i try to explain what i want:
is it possible to get a link to an custom profile field like
http://www.forum.com/forum/index.php?action=profile;customfield=1
the number "1" is only a placeholder for the ID or name of the field
this link is necessary to include it in our menubar
Jessi
Quote from: Jessikard on December 30, 2008, 08:34:02 PM
i asked in that thread and they said i have to ask the developer of the original mod
so i try to explain what i want:
is it possible to get a link to an custom profile field like
http://www.forum.com/forum/index.php?action=profile;customfield=1
the number "1" is only a placeholder for the ID or name of the field
this link is necessary to include it in our menubar
Jessi
Elaborate on placement function & purpose please
i changed our menubar into a dropdownmenu
the submenu of the profile includes buttons like action=bookmarks (it´s a personel link for each user)
so we have a lot of custom profile field that contains links to special personel board of each user
and i want to get a link to put it in the submenu of the profile in the same way like the bookmarks-button
so every user can reach his own board by using the dropdown-menu instead of opening his profile
i hope you understand
How did you made it work with 1.1.7? I can't make it work :(
cp-fields work with 1.1.7 - just installed by paketmanager
if you get errors install manually by parser
thanks. got it to work when i changed the language to english :)
if you use another language , there´s a mod called "Load Standard Language"
so every mod, that´s not in your language will display in engl. and you can see, where you have to translate
I get the error on install Just downloaded it today
I'm running smf 1.1.7 just ran the upgrade from 1.1.6
I get this error
Quote from: Error on install
Type Action Description
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
I have the following mods installedModification Packages
Mod Name Version
1. SMF Staff Page 1.6 [ Uninstall ] [ List Files ] [ Delete ]
2. Remove SMF Logo 1.2 [ Uninstall ] [ List Files ] [ Delete ]
3. LogModAccountEdits 1.9 [ Uninstall ] [ List Files ] [ Delete ]
4. Custom Copyright 1.1 [ Uninstall ] [ List Files ] [ Delete ]
5. Auto Email Inactive Users 1.7 [ Uninstall ] [ List Files ] [ Delete ]
6. Aeva ~ Auto-Embed Video & Audio 5.1.28 [ Uninstall ] [ List Files ] [ Delete ]
7. Admin Notepad 1.0 [ Uninstall ] [ List Files ] [ Delete ]
8. FlashChat Integration 1.0 [ Uninstall ] [ List Files ] [ Delete ]
9. SMF 1.0.15 / 1.1.7 Update 1.0 [ List Files ] [ Delete ]
10. Custom Profile Field Mod 3.19 [ Apply Mod ] [ List Files ] [ Delete ]
11. Remove MySQL, PHP & W3C images to minimize footer size 1.2 [ Uninstall ] [ L
12. Reason For Editing Mod 1.14 [ Uninstall ] [ List Files ] [ Delete ]
13. Ad Managment 2.3 [ Uninstall ] [ List Files ] [ Delete ]
14. The Rules 1.2 [ Uninstall ] [ List Files ] [ Delete ]
I tried to manually add your changes in the modsettings.php as shown in the manual install directions , but then I can not even get it to show up in the "features & Setting" list
Well you either didn't put in the correct or all code required. Are using a language other than english and the $txt[] strings are missing. Error log entries?
What I did is installed the mod even if it said failed on modsettings.php then I downloaded and modified the modsettings.php
OK I think I found my problem I get this error
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/lanzafam/public_html/sdfsdfsfadf/tjoomla/tforum/Sources/ModSettings.php on line 126
here is my code
// Will need the utility functions from here.
require_once($sourcedir . '/ManageServer.php');
$context['page_title'] = $txt['modSettings_title'];
$context['sub_template'] = 'show_settings';
$subActions = array(
'aeiou' => 'ModifyAeiouSettings', 'aeva' => 'ModifyAevaSettings',
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
);
$subActions['rules'] = 'ModifyRulesSettings';
'profile' => 'ModifyProfileSettings',
);
// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];
Line 126 is
'profile' => 'ModifyProfileSettings', What did I do wrong? should that go after 'karma' => 'ModifyKarmaSettings', ?
well, what you have there is definitely NOT valid code. You can't have the declaration be outside of any array, as it appears to be there.
I suggest you take a look at an original copy of modsettings.php
Hello! Great mod, I have a suggestion to it.
On the selection box fields, please make it so you can enter an number of fields you want, not this "Add another Option" thing, very long process if you have any options! Also makes it difficult if you over shot it by one and were wishing to delete that one extra field...
Edit: Another suggestion...
I made a selection box custom field and put little images in it to be selected. It displays fine on profiles, but not when you select them. I made this image selectable from the choices:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.cybernations.net%2Fimages%2Fresources%2Faluminum.gif&hash=06a6b22ef619eccffb2dea0344e919326b4fb212)
Instead of displaying it when picking it out of the others (they are all suppose to be images, but display in a similar manner), it displays like this as a choice:
[img]http://www.cybernations.net/images/resources/aluminum.gif[/img]
Make it so you can select things as images! :)
Cheers!
Quote from: Rumbaar on December 30, 2008, 07:40:53 PM
... there will be no further development of this mod for 1.1.x stream.
... Either way there will be no further development of the 1.1.x stream.
D: Didn't read that, my bad. :P
I installed this on 1.1.7 and it works flawlessly - great mod!
I tried the WoW Names but got all kinds of errors on installation, so I deleted that. This one installed like a dream - thanks!
I'd like to use it for roleplaying threads, where you specify which of your characters should be displayed in each post. All I've been able to do so far is create the fields; I haven't found anything that will let someone post as different RP characters - in other words, pick the character to use at the time they post. Is there any way to do that with this mod?
that is not what this mod does... and I do not think this mod can be made to do that at all
Getting the following error after installing the Custom Profile Field Mod when I click on Features and Options:
'Fatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/spiritte/public_html/studyhallnotes/Sources/ModSettings.php:314) in /home/spiritte/public_html/studyhallnotes/Sources/ModSettings.php on line 319'
HELP!!!
you seem to have installed th emod twice (or more)
You will have to manually remove the duplicate code (and probably do the same from other files as well, since we don't know how much was duplicated)
I installed this mod on a new 1.1.7 board but have a couple of questions
When it is told to show under post count it shows above post count and the text i put in 'Field Description' shows bolded with : after it.
Since I don't want it above post count I changed it to 'show next to images'
When I tell it to 'show next to images' it looses the 'Field Description' and only shows what is entered in the profile field by the member.
When I add the text from 'Field Description' : as 'Text to display before field'
it shows the text: followed by the contents but then on profiles it show the 'Field Description' and the 'Text to display before field' both so you see in the profile view
DogsName:
Dogs Name: xxxxx, yyyyyyyyyy
Age/Born:
Age/Born: 0-00-07, 0-00-08
It also does not create a break or new line for each field which I have gotten around by adding <br /> at the beginning of the 'Text to display before field'
This break however offsets it by a line in profile view as above.
If I do not add the break tags as text before image every field wraps after the previous field, the first field starts at the last image with part of the text and it all wraps like one long line after it.
Is there a work around to have it not show the offset in profiles while still using the br tag so it's not all one long line? It looks ok with the added breaks for the 'Show in posts' but has the offset of a line in profile.
I guess it looses field description when shown after images so if you use more images it does not add field names but it would be a neat idea to have that as an option to choose in the admin panel.
I admit I have not read all 118 pages of this thread but have searched the thread using quoted terms and not found answers.
Is this thread supposed to be locked.
I don't think so Bigguy, and I can't even see in the logs where it was locked by someone. I can only think it's an automated thing linked to the mod site?
I guess we'll just leave it for now then. ???
I've unlocked it, I still think it's an active mod and thread for support still.
Greetings,
Is it possible to make the names bold? For example, I have them set up like this:
XBL:
PSN:
Wii:
Steam:
I want the names to be in bold and their text to be in normal (that's not an issue since it's like that default).
Please search the thread, I'm sure how to format the title text has been posted before.
Good morning all,
I apologize if this is a stupid question, but has this mod been discontinued? When I click the most recent download link it claims that it has not yet been approved - does anyone have an available copy? It looks like a great mod and it really seems to do what I need (whether or not my noob self can get it to work is another question altogether). Thanks in advance for any help that you can offer.
if it says it hasnt been approved yet then it is probably an update that is waiting for approval and it may be worth waiting for the updated version rather than an older version as it may have some bug fixes or improved options
Thanks! I'll keep seeing what else I can learn. I'm in way over my head at this point but frankly enjoying myself.
we all have to start somewhere, set up a test site (create a duplicate of your forum on another database) to do your testing of changes and installing mods and back files up before doing anything on your working forum
I don't think they are working on an update for 1.1.x based on the below post
Quote from: Kindred on January 03, 2009, 12:46:39 PM
Quote from: Rumbaar on December 30, 2008, 07:40:53 PM
... there will be no further development of this mod for 1.1.x stream.
... Either way there will be no further development of the 1.1.x stream.
Some of us who already have installed the mod and did not save the manual install directions offline. The directions are now gone. If we ever have to manually uninstall it wont those directions will be needed?
From reading on the forum, installing other mods may change files where uninstall does not work.
I followed this guide that was listed here to manually install it with my website:
http://modparser.dev.dansoftaustralia.net/index.php
I made all the changes as listed. It says to copy the customprofile.english.php file to the languages folder - I don't seem to have one. Has something changed in the versions?
Also, I made adjustments to the files and replaced them on my server (with backups of course!) but my forum looks the exact same - there's no tab listed in the admin section to change the registration tabs. Any other users have ideas?
Quote from: SilentMoon on January 09, 2009, 12:14:39 PM
I don't think they are working on an update for 1.1.x based on the below post
Quote from: Kindred on January 03, 2009, 12:46:39 PM
Quote from: Rumbaar on December 30, 2008, 07:40:53 PM
... there will be no further development of this mod for 1.1.x stream.
... Either way there will be no further development of the 1.1.x stream.
Some of us who already have installed the mod and did not save the manual install directions offline. The directions are now gone. If we ever have to manually uninstall it wont those directions will be needed?
From reading on the forum, installing other mods may change files where uninstall does not work.
you should always save the download file for a mod even if you manually install then you can use the package parser to get the uninstall directions if the mod is removed from the site
I saved the zip file is that what you mean?
What i did not save was the manual install directions that were mod site for 1.1.7
I have started saving those too just in case... This is a new board and I am new to smf I have not yet had a conflict of mods or had to manually uninstall. I just want to know that I can if needed :)
if you have the package archive, then you have the manual install instructions.
The XML in the package tells the system (and you) how to edit (or unedit) the forum
with 119 pages in this post, could someone tell me if this will be available again, or does someone have a copy as the download says the mod has been removed
The mod was removed due to an issue relating to possible security flaw in the coding. When and if a 'patched' version will be available I cannot say until the author responds or a member of the customizer team is able to address the concern.
Thanks
Uninstalling it now...
This mod is no longer available !
Please , I need it for v1.1.7 smf !
Quote from: SilentMoon on January 10, 2009, 07:20:01 PM
Thanks
Uninstalling it now...
I'm not entirely sure of the nature of the security issue, so not sure if that is necessary. But an option for any prudent forum administrator. There might be a possible patch to address the concern in the near future, but I can't guarantee that either.
Sorry to be so vague.
I understand the vagueness. If there is a patch released I will reinstall it but until then better safe than sorry.
Any news on this or anything like it? I need this for 1.1.7
I think something is in the works. The issue doesn't seem as bad as, I at least, thought it was.
What happens if i uninstall this mod? does the data in the fields disappear then? I've got them all hard-coded into my forum now, so i really don't need the mod any more? :)
Is something in the works, I need something like this for my forums, and I don't want to get my hopes up waiting for something that shall never be?
Quote from: Daezeee on January 20, 2009, 02:45:35 PM
Is something in the works, I need something like this for my forums, and I don't want to get my hopes up waiting for something that shall never be?
Same. I'm looking around at other options, but I think this one would be much preferred.
I'll keep tabs on the thread, I think.
use smf 2.0.... the custom profile fields are built in, standard.
Quote from: Kindred on January 25, 2009, 11:02:33 PM
use smf 2.0.... the custom profile fields are built in, standard.
Kindred... I am about ready to make the jump to 2.0... Is there anyway to keep the data that is now in the current custom profile fields and place them in the new ones created in 2.0?
Basically my forum is an alumni site for a high school... The Custom Profile field on my board is the members graduation year... So obviously I am wanting to keep this info... I would hate to do this and end up having to do it all my hand...
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3
File: /home/chatcraf/public_html/forum/Sources/CustomProfile.php
Line: 539
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.
Smf version: 1.1.7
It only happens when u try to edit "Forum Profile Information. Anyone?
Treslayr,
The data will not be "lost" but you would have to change the title fields for all of the entries. I did it for one of my upgrades, but I don't recall of the top of my head what the exact SQL command was. I'll try to re-look...
Enders, looks like you have a mis-entered code. Did you modify your CustomProfile.php file?
What's line 530-550?
I think the possibilty to upgrade this mod to the build-in function in 2.0 would be a great help for a lot of users. :)
Quote from: darkon on February 05, 2009, 02:31:00 PM
I think the possibilty to upgrade this mod to the build-in function in 2.0 would be a great help for a lot of users. :)
It is already a CORE feature of 2.x
I know, that the function is a core feature of 2.0, but at my testboard the data permitted by users under 1.1.7 and this mod wasn´t taken over to the 2.0 RC1
Thats what i meant with upgrading to the build in function, to upgrade the permitted data
Ah I see you mean an upgrade script to alter the current 1.1.x method of storage to the 2.x method of storage.
I do remember seeing an SQL script on this board a few months ago somewhere for upgrading 1.1.x data to native 2.0, but can't seem to locate it now!
Is there anything that will work with SMF 1.1.8 to customize the profile, or registration page? I have an alumni forum that people are using but I need to ask for their year of graduation and name.
The mod is not available anymore??? http://mods.simplemachines.org/index.php?mod=319
Quote from: rpalmer68 on February 06, 2009, 02:21:37 AM
I do remember seeing an SQL script on this board a few months ago somewhere for upgrading 1.1.x data to native 2.0, but can't seem to locate it now!
Yeah I'm looking for that too... someone has to have written one at some point.
Quote from: sdodc09 on February 06, 2009, 09:49:20 AM
Is there anything that will work with SMF 1.1.8 to customize the profile, or registration page? I have an alumni forum that people are using but I need to ask for their year of graduation and name.
X2 on that question
Quote from: Trashcan on February 11, 2009, 09:36:00 AM
Quote from: sdodc09 on February 06, 2009, 09:49:20 AM
Is there anything that will work with SMF 1.1.8 to customize the profile, or registration page? I have an alumni forum that people are using but I need to ask for their year of graduation and name.
X2 on that question
I'm confused. What are you guys looking for that this mod does not provide? Or is it just that there's some minor error in the installer?
What installer? The mod is not available anymore.
Quote from: drhamad on February 10, 2009, 11:33:04 AM
Quote from: rpalmer68 on February 06, 2009, 02:21:37 AM
I do remember seeing an SQL script on this board a few months ago somewhere for upgrading 1.1.x data to native 2.0, but can't seem to locate it now!
Yeah I'm looking for that too... someone has to have written one at some point.
OK FOUND IT!
Read these posts ...
http://www.simplemachines.org/community/index.php?topic=79004.msg1434228#msg1434228
http://www.simplemachines.org/community/index.php?topic=79004.msg1474177#msg1474177
Can anybody tell me where to get this mod?
My bad, didn't realize that. That's weird.
One question i haven't found the answer to.
When i upgrade to SMF 2.0 should i first uninstall this mod and then do the conversion for the inbuilt custom profile field in SMF 2.0. Will the data of this mod still be found in the database.
If i don't uninstall this mod before upgrading to SMF 2.0, will it maybe cause problems?
I would definitely uninstall all mods before upgrading. I don't know how this mod works, as it can't be downloaded. But I can't see why it should delete db settings. If the author did it right, he don't delete anything in the db. How should people then be able to upgrade to a newer version of his mod.
Okay.
I just downloaded the package for this mod from my Forum directory and read the package-info.xml. And it says uninstalling this mod won't loose any data.
The version of this mod i'm using is 3.16 (the newest is 3.19) and works with SMF1.1.8
So if you "akyhne" want, i can attach the package here.
I don't need it. It was just a guy in the scandinavian section asking why the mod could not be downloaded. But thanks anyway.
actually, if you are doing a major upgrade, by replacing all of the forum files, you don't need to waste time uninstalling mods.
By over-writing all forum files, you are removing all mods. (and since you can not use 1.1.x themes on 2.0, you don't even have to worry about changes you manually made to the custom themes.
Hello, I have a question:
In the Custom Profile Field Mod, I have 2 fields that uses select boxes. What I would like to do is add images to the text selections.
Is there a way to add images to the actual selection choices? If, so what it the best way of going about it?
ie: one of the selection choices is spices. I also want to add a small image of spices as well so that is looks like this in the selection choices:
"Spices (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ftournament.cybernations.net%2Fimages%2Fresources%2FSpices.GIF&hash=2f4255943c9fb3537f2bb13dc543dbe03f6133db)"
Thanks,
Thaisport
Can someone attach the package so it becomes available again? :o
Unless someone else gets permission from the original author, no.... the package was removed because it is no longer supported (and with the release of 2.0 no longer needed)
With SMF2 still in beta, am I better sticking with 1.1.8 for now?
I feel really impatient to have this mod for a new forum, and am wondering if I should just go with phpBB3.
Custom profile fields is build in to the SMF 2, so you don't need this mod for that version.
I never tried Custom Profile Field Mod for MSF 1.1.x, but the way it works in SMF 2 is just great. You have a lot of options to custom each profile field.
On the downloads page (http://download.simplemachines.org/), the team says, in no uncertain terms
Quote from: http://download.simplemachines.org/downloads pageNote: As this is not a final release, we do not recommend running SMF 2.0 RC1 on a production site.
Do you think it would be a good plan for someone who has never used SMF before to put this not-quite-gold release on a production site? Do you have any notion of how often the team will bring out new release candidates, and how soon until there is a stable, gold version of SMF2?
Thanks for your advice
I have a very important forum that I'm not upgrading before I see that RC1 is running stable. Then I have a pretty new forum (2 months old) that was installed as Beta 4 and later upgraded to RC1 that is important to me. I'm sure that if they find some important issues, we will be presented with some manual quick fixes.
I have a few strange things happened, but nothing serious that spoiled anything or was a great issue.
Then I have 5-6 other SMF forums in version 1.1.8 & 2.0 I use for testing of mods, developing mods etc. None of them runs unstable.
Without knowing anything about it, my guess is 3-6 months before a full release of SMF 2.0. There's only a few small issues to solve as far as I know. I don't think we will see any RC2 - or if we do, we will see it pretty soon.
Quote from: akyhne on February 17, 2009, 10:27:49 AM
I'm sure that if they find some important issues, we will be presented with some manual quick fixes.
I have a few strange things happened, but nothing serious that spoiled anything or was a great issue.
There's only a few small issues to solve as far as I know. I don't think we will see any RC2 - or if we do, we will see it pretty soon.
Thanks for the advice. I am SO on the fence! I do really want the custom profile fields. But there is still significant activity in "major" "crash" and "block" bugs at the moment, and applying the manual fixes may not be the best use of time. Maybe there will even be another RC or two before the gold release.
So maybe it is best to play it safe to avoid extra work and headaches -- maybe 1.1.8 is the best option for now. Too bad the custom profile field mod has been withdrawn! I wonder why?
If you read through the last few pages you'll see why it was removed. There is a process of getting a more sanitised version of the 1.1.x mod back on the download page.
Quote from: AngelinaBelle on February 17, 2009, 09:20:38 AM
With SMF2 still in beta, am I better sticking with 1.1.8 for now?
I feel really impatient to have this mod for a new forum, and am wondering if I should just go with phpBB3.
SMF 2 is in RC now...
Quote from: AngelinaBelle on February 17, 2009, 10:15:30 AM
On the downloads page (http://download.simplemachines.org/), the team says, in no uncertain terms Quote from: http://download.simplemachines.org/downloads pageNote: As this is not a final release, we do not recommend running SMF 2.0 RC1 on a production site.
Do you think it would be a good plan for someone who has never used SMF before to put this not-quite-gold release on a production site? Do you have any notion of how often the team will bring out new release candidates, and how soon until there is a stable, gold version of SMF2?
Thanks for your advice
Many forums (including this one) are running 2.0 in production. I'm on the last steps of development for my forum (~3m posts, 55k members). If you're just starting a new forum, I'd run 2.0 because it's easier to deal with than upgrading from 1.1 later. For most sites already on 1.1, I'd' stay on 1.1 unless you have a compelling reason to upgrade.
There's no way to predict 2.0 updates. It has been in production for a long time.
BINGO:
I've now figured out how to convert this mod's profile fields to 2.0 profile fields. The data is stored the same exact way. Therefore, all you need to do is change the variable in smf_themes.
Create the field in 2.0. DO NOT ENTER ANY DATA. Go into the database (using phpMyAdmin, or whatever your preferred method is), go into smf_themes and use this query:
UPDATE smf_themes
SET variable = "var1"
where variable = "var2"
Where var1 = the name of the field you just entered
and var2 = the name of the old (1.1) field.
THAT IS IT.
Quote from: drhamad on February 18, 2009, 01:48:57 PM
BINGO:
I've now figured out how to convert this mod's profile fields to 2.0 profile fields. The data is stored the same exact way. Therefore, all you need to do is change the variable in smf_themes.
Create the field in 2.0. DO NOT ENTER ANY DATA. Go into the database (using phpMyAdmin, or whatever your preferred method is), go into smf_themes and use this query:
UPDATE smf_themes
SET variable = "var1"
where variable = "var2"
Where var1 = the name of the field you just entered
and var2 = the name of the old (1.1) field.
THAT IS IT.
..worked like a dream, thanks!
Also, the variable name might not be exactly what you entered as the field name, so you might want to enter one user of data just to see what it has named it. You'll need to delete that afterwords though.
Mod is updated to 3.20. This version fixes a minor permission issue related to unauthorized editing of fields. Package includes upgrade from older versions.
Does this mod work with Ultimate Profile?
Hi I tried searching for the answer on this thread but get error "Unable to access the search daemon" whatever it means.
Anyway I have a question someone might know. I have this mod on 1.1.8 default and love it. I have my profiles all visible to guests. However, one field I created with this mod I want to restrict guests from seeing it. Can someone tell if this is possible? Which file I would go to to find these fields? What code would I put to restrict guests from viewing this one field?
Thanks for any assistance.
If you have it showing in the Display area then it can't be hidden from guests.
Quote from: Blue Dream on February 25, 2009, 01:19:24 PM
Mod is updated to 3.20. This version fixes a minor permission issue related to unauthorized editing of fields. Package includes upgrade from older versions.
After having updated from 3.19 to 3.20 I notice that data is not saved which our users are forced to enter at registration into custom profile fields. It can`t be found neither within phpmyadmin nor within SMF itself. Profiles dating from pre-update are not affected and still display correctly. Reverting to 3.19 makes everything work fine again.
I did a second test on a freshly installed SMF 1.1.8 on my local server (XAMPP) with the same result.
Any clues? Thanks in advance!
Quote from: Rumbaar on February 28, 2009, 03:43:55 AM
If you have it showing in the Display area then it can't be hidden from guests.
Darn.... ok thanks for the reply :)
Quote from: willj on February 26, 2009, 04:02:57 PM
Does this mod work with Ultimate Profile?
../Themes/default/UltimateProfile.template.php
Find:
<td>', $context['member']['last_login'], '</td>
</tr>
Replace:
<td>', $context['member']['last_login'], '</td>
</tr>';
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldsProfile();
echo '
</tr>
Quote from: Filipina on February 27, 2009, 08:37:54 PM
Hi I tried searching for the answer on this thread but get error "Unable to access the search daemon" whatever it means.
Anyway I have a question someone might know. I have this mod on 1.1.8 default and love it. I have my profiles all visible to guests. However, one field I created with this mod I want to restrict guests from seeing it. Can someone tell if this is possible? Which file I would go to to find these fields? What code would I put to restrict guests from viewing this one field?
Thanks for any assistance.
Sources/CustomProfile.php
Find:
if ($modSettings['CP' . $i . '_view'] && !$context['user']['is_admin'])
Replace:
if (($modSettings['CP' . $i . '_view'] && !$context['user']['is_admin']) || ($context['user']['is_guest'] && $modSettings['CP' . $i . '_id'] == 'FIELD_ID'))
Change FIELD_ID as the id of the field you want to hide. You can find the id in the field settings. Also, there are 3 instances of the code above in that file; the first two is for Display section and the third is for the Profile. If you change all 3, then it will be hidden for guests everywhere.Quote from: Perfektionist on February 28, 2009, 09:52:39 AM
Quote from: Blue Dream on February 25, 2009, 01:19:24 PM
Mod is updated to 3.20. This version fixes a minor permission issue related to unauthorized editing of fields. Package includes upgrade from older versions.
After having updated from 3.19 to 3.20 I notice that data is not saved which our users are forced to enter at registration into custom profile fields. It can`t be found neither within phpmyadmin nor within SMF itself. Profiles dating from pre-update are not affected and still display correctly. Reverting to 3.19 makes everything work fine again.
I did a second test on a freshly installed SMF 1.1.8 on my local server (XAMPP) with the same result.
Any clues? Thanks in advance!
Thankfully I wasn't able to reproduce this. Is it an admin-edit-only field you are testing with?
QuoteQuote from: Blue Dream on March 02, 2009, 03:25:27 AM
After having updated from 3.19 to 3.20 I notice that data is not saved which our users are forced to enter at registration into custom profile fields. It can`t be found neither within phpmyadmin nor within SMF itself. Profiles dating from pre-update are not affected and still display correctly. Reverting to 3.19 makes everything work fine again.
I did a second test on a freshly installed SMF 1.1.8 on my local server (XAMPP) with the same result.
Any clues? Thanks in advance!
Thankfully I wasn't able to reproduce this. Is it an admin-edit-only field you are testing with?
Thanks for your quick reply.
Yes, it is an admin-edit-only field.
Well, admin-edit-only field means only admins can set and edit it IMO. It does not let admin-edit-only fields to be set/edited during registration too. But winrules might be thinking as you did. I'll ask him then.
Quote from: Blue Dream on March 02, 2009, 04:40:08 AM
Well, admin-edit-only field means only admins can set and edit it IMO. It does not let admin-edit-only fields to be set/edited during registration too. But winrules might be thinking as you did. I'll ask him then.
Thanks, Blue Dream, that's the clue I have been looking for! :)
I have tested again and can confirm that field entries in registration are saved, if the field is not configured to admin-edit-only. (However, this was different in 3.19.)
In a way the new logic is more coherent, but nonetheless a little confusing. ;)
As we let registrants enter their real name, we don't want other members to see them. This can be prevented as long as "admin-view-only" is ticked. The only drawback is that memebers can not edit/update their own entries, since they can't view them. (This wasn't possible with 3.19 either.)
Therefore it would be great if you could configure that admins and profile owners can view and edit custom fields while other members can not view those fields on others profiles. Maybe this will be possible in SMF 2.0. (By the way: Will there be a converter from 1.1.x to 2.0 that also transfers the extended profile data?)
I use 1.18 and the test error is ModSettings.php. I have a lots of other mods installed. Will anyone tell me the allergic mods?
Perfektionist:
Well, if questions were to me; then winrules is the author of the mod, so I can't really have an answer. I'm sure he'll consider your ideas when he will have some time. If you were addressing winrules; then you didn't see this post. :P
Thauwa:
If you can attach your ModSettings.php file here I may have a look at it.
Quote from: Thauwa on March 02, 2009, 10:01:56 AM
I use 1.18 and the test error is ModSettings.php. I have a lots of other mods installed. Will anyone tell me the allergic mods?
you can parse it (maybe on smfportal.de) and do the changes manual
then installing this mod include the error ans it should work fine
that was the way i did - if you do it too, make a backup before (but on your own risk)
I am running 1.1.8 with many modifications. The test failed on the ./Sources/ModSettings.php and I tried to manually do the edits myself. I must've messed up somewhere because it is not saving properly. I can get into the settings and change the info, but when I hit save, it brings me to the "Layout and Options" screen and if I go back to the "Custom Profile Fields" screen the custom field is still labeled as "Unnamed Field" and all the settings have reverted back to default. My ModSettings.php file is attached. Thanks in advance for your help.
Try the attached one.
okay...here it is :P pls help!
Attached yours too.
The conflict was with Contact, Rules and Generic Avatars mods.
does that mean that those mods won't work?
Quote from: Thauwa on March 04, 2009, 08:22:45 AM
does that mean that those mods won't work?
No. They just edit the codes that Custom Profile Field Mod is searching to put its own codes. I've applied the changes manually for you. Ignore the error, install the mod and replace your file with the one attached.
Needless to say, take a back-up to be on the safe side.
thanks ill try
thanks for helping. You are great. :-*
Quote from: Blue Dream on March 02, 2009, 03:25:27 AM
Change FIELD_ID as the id of the field you want to hide. You can find the id in the field settings. Also, there are 3 instances of the code above in that file; the first two is for Display section and the third is for the Profile. If you change all 3, then it will be hidden for guests everywhere.
I don't know what to say but thanks Blue Dream! This has saved me from hours and hours of work and I am glad I checked back here :) I had no idea it was possible to do this with one field. I only changed the profile section of the file which seems to have done what I need to stop visitors from seeing the information when browsing profiles. I tested it and it is just what I neeed. Thanks again!
You're both welcome.
Thanks Blue Dream...you are a GOD!!!!! (umm...not exatly, but someone like him ;D). It WORKED!!!!!! Thanks!
Lol, my pleasure.
Thanks for your reply Blue Dream, I will have a go at adding it to Ultimate Profile probably tomorrow and let you know how I get on!
Quote from: drhamad on February 18, 2009, 01:48:57 PM
BINGO:
I've now figured out how to convert this mod's profile fields to 2.0 profile fields. The data is stored the same exact way. Therefore, all you need to do is change the variable in smf_themes.
Create the field in 2.0. DO NOT ENTER ANY DATA. Go into the database (using phpMyAdmin, or whatever your preferred method is), go into smf_themes and use this query:
UPDATE smf_themes
SET variable = "var1"
where variable = "var2"
Where var1 = the name of the field you just entered
and var2 = the name of the old (1.1) field.
THAT IS IT.
Also, if you need to figure out what var1 is, you can look in the db in the table smf_custom_fields.
Got this working just fine with Ultimate Profile thanks to Blue Dream, so thank you!!!
I made a german translation:
<?php
// Don't translate FIELDNAME in the below string.
$txt['cp_enable'] = 'Feld "FIELDNAME" aktivieren';
$txt['cp_text'] = 'Text';
$txt['cp_textarea'] = 'Textfeld';
$txt['cp_checkbox'] = 'Checkbox';
$txt['cp_selectbox'] = 'Auswahlliste';
$txt['cp_type'] = 'Feldtyp';
$txt['cp_addfield'] = '[Neues Feld hinzufügen]';
$txt['cp_name'] = 'Name';
$txt['cp_profileshow'] = 'Im Profil anzeigen?';
$txt['cp_dontshow'] = 'Nicht zeigen';
$txt['cp_underpostcount'] = 'Unter Anz. Beiträge zeigen';
$txt['cp_underimages'] = 'Neben Bildern zeigen';
$txt['cp_showposts'] = 'In Beiträgen zeigen?';
$txt['cp_parsebbc'] = 'Bulletin Board Code (BBC) erlauben?';
$txt['cp_before'] = 'Text davor (BBC falls erlaubt)';
$txt['cp_after'] = 'Text dahinter (BBC falls erlaubt)';
$txt['cp_fieldid'] = 'Feld ID';
$txt['cp_hrule'] = 'Horizontale Linie vor Feld einfügen?';
$txt['co_optinput'] = 'Freiwillige Angabe';
$txt['cp_forceinput'] = 'Pflichtfeld';
$txt['cp_showreg'] = 'Feld bei Registrierung zeigen?';
$txt['cp_adminedit'] = 'Nur Admins das Ändern erlauben?';
$txt['cp_adminview'] = 'Nur für Admins sichtbar?';
$txt['cp_recreate'] = 'Feld neu erstellen';
$txt['cp_checked'] = 'Anzuzeigender Text wenn Checkbox aktiv';
$txt['cp_notchecked'] = '... wenn nicht aktiv';
$txt['cp_show'] = 'Zeigen';
// Don't translate OPTIONNUMBER in the below string
$txt['cp_option'] = 'Option OPTIONNUMBER';
$txt['cp_addoption'] = 'Option hinzufügen';
$txt['cp_cpfields'] = 'Mod: "Custom Profile"';
// Don't translate FIELDNUMBER in the below string
$txt['cp_fieldsettings'] = 'Mod: "Custom Profile" - Feld FIELDNUMBER';
// Don't translate FIELDNAME in the below string
$txt['cp_regerror'] = 'Bitte Feld "FIELDNAME" ausfüllen.';
$txt['cp_moveup'] = '[ Auf ]';
$txt['cp_movedown'] = '[ Ab ]';
$txt['cp_delete'] = '[ Entfernen ]';
$txt['cp_unnamed'] = 'Unbenanntes Feld';
$txt['cp_settings'] = '[ Einstellungen ]';
$txt['cp_hrsummary'] = 'In Profilzusammenfassung';
$txt['cp_hredit'] = 'Auf "Profil bearbeiten" - Seite';
$txt['cp_onboth'] = 'Auf beiden Seiten';
$txt['cp_desc'] = 'Beschreibung';
?>
Maybe it's not the best, but surely better than having no config tab in admin area while using german language pack.
Same Sources/ModSettings.php error as others. Beyond me whats needed done.
Thanks
Fixed. From another topic used http://resourcez.biz/PackageParser/index.php and I was able to add the missing code.
Quote from: wmcintosh on March 13, 2009, 12:23:27 PMFixed. From another topic used http://resourcez.biz/PackageParser/index.php and I was able to add the missing code.
You realize that feature is available in the download section of every mod on here?
Quote from: Rumbaar on March 13, 2009, 05:17:06 PM
You realize that feature is available in the download section of ever mod on here?
Not a clue, that link from another topic is first time ever seeing it.
Quote from: wmcintosh on March 13, 2009, 07:53:49 PM
Quote from: Rumbaar on March 13, 2009, 05:17:06 PM
You realize that feature is available in the download section of ever mod on here?
Not a clue, that link from another topic is first time ever seeing it.
"Manual Install Instructions"
Quote from: drhamad on March 13, 2009, 07:57:30 PM"Manual Install Instructions"
May be thats way I never seen it, never looked or used it.
I attach CustomProfile.hungarian.php (encoded in charset=ISO-8859-2).
Can that be included in the next release?
(The only function which I'm not sure of is cp_recreate.)
there will not be another release. This capability is built in standard to SMF 2.0
Quote from: Kindred on March 15, 2009, 08:17:44 PM
there will not be another release. This capability is built in standard to SMF 2.0
That's OK. But is this the right place to post the language file, anyway?
Go ahead. I'm sure other users might find it useful. Besides if SMF releases a 1.1.9 the mod might be updated for that.
Sorry for asking this here. I'm not sure where to ask it though.
I'm also using Tiny Portal, and I would like to add some "Custom Profile Field" information in the block that I'm already currently using. I just can't figure out the code that pulls the information from the CPF that I want to show.
SMF 1.1.8
Here is the code I have now:
It's a PHP block:
global $memberContext;
echo '<div align="center"></div>';
$user_id = $context['common_stats']['latest_member']['id'];
loadMemberData(array($context['common_stats']['latest_member']['id']));
loadMemberContext($user_id);
if (!empty($memberContext[$user_id]['avatar']['image']))
echo '<div align="center">'.$memberContext[$user_id]['avatar']['image'].'<BR>'.$context['common_stats']['latest_member']['link'].'</div>';
else
echo '<div align="center">( No Avatar Yet )<BR><BR>'.$context['common_stats']['latest_member']['link'].'</div>';
global $memberContext;
echo '<div align="center"></div>';
$user_id = $context['common_stats']['latest_member']['id'];
loadMemberData(array($context['common_stats']['latest_member']['id']));
loadMemberContext($user_id);
if (!empty($memberContext[$user_id]['location']))
echo '<div align="center">'.$memberContext[$user_id]['location'].'</div>';
I've attached before and after images.
Thanks in advance for any advice.
Hmm I installed this mod. The only other mod I have is Trader feedback. I get the following error when I click "Features and options"
"Fatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/mystical/public_html/forums/Sources/ModSettings.php:314) in /home/mystical/public_html/forums/Sources/ModSettings.php on line 324"
I then removed the mod. Now all PM's and posts say the following in the field below the username.
"Fatal error: require_once() [function.require]: Failed opening required '/home/mystical/public_html/forums/Sources/CustomProfile.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mystical/public_html/forums/Sources/Load.php(1726) : eval()'d code on line 311"
So I'm now stuck with errors. I'd like to use the custom profile field. What should I do? Thanks!
First error means the code for the mod has been installed twice. The section error means when you removed the mod all the code, most likely duplicate, wasn't removed.
Try a search of this thread for more answers. Or try the parser and manually remove all mod specific code.
Can someone post a screen shot of the Mod in action please
Quote from: Rumbaar on March 16, 2009, 11:57:46 PM
First error means the code for the mod has been installed twice. The section error means when you removed the mod all the code, most likely duplicate, wasn't removed.
Try a search of this thread for more answers. Or try the parser and manually remove all mod specific code.
Thank you, got it fixed!
This is a very high level question!
I can't seem to find where the data from my fields are going. I don't see a smf_custom_fields or any new entries under smf_members.
Where is this data stored for members?
smf_themes
So it is!
Thanks!
:D
Hi Again!
Now I can see where and how the data is being stored there's something I'd like to raise.
Say, hypothetically, I wanted to create 5 attributes for members to fill in. At present this will make 5 new entries under smf_themes for each member. Now multiply the membership by say... I donno 100. This would be 500 extra rows in smf_themes?
Would it be possbile to create a new column under smf_members, one for each new attribute instead? That way, the number of extra records are reduced to... well zero as they are now entries under the membership data?
I guess what I'm saying here is that I'm not sure why we're putting this info in one table, possible growing at a fast rate when we could opt to add/delete custom profile data as columns in smf_members. Does anyone know why it was made this way?
that would change the way the mod works. You COULD do it... but you'd have to change the very infrastructure of the mod's db calls, etc.
Hi,
I added a field and it works fine but on registration the field shows up two times. How do i get rid of the extra duplicate?
Thanks,
Gibs
Is it for all fields or just that one? If it's all field being duplicated, then I would assume the mods code has been duplicated in the Register.template.php. Take a look at your themes file and check to make sure the appropriate code isn't in twice.
Quote from: Rumbaar on March 23, 2009, 10:48:38 PM
Is it for all fields or just that one? If it's all field being duplicated, then I would assume the mods code has been duplicated in the Register.template.php. Take a look at your themes file and check to make sure the appropriate code isn't in twice.
Thanks for the reply. Ok i just checked and there is no duplicated code there. Though there was a duplicate code in /Sources/Register.php. I removed and went to register a user and the duplicate field is still there. I am only using one field which is all i need.
Thanks,
Gibs
Ah, yes sorry the source files would be the place to look.
There might be additional duplicated code, you might have to check all file affected by the mod for duplicate code.
HELP
I found duplicate code in the themes/default/Register.template.php
I took it out and now the forum will not work. I reverted back to the original file and it still will not work.
I changed this:
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
RegistrationFields();
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
RegistrationFields();
echo '
</table>
</td>
</tr>
</table>';
to this:
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
RegistrationFields();
echo '
</table>
</td>
</tr>
</table>';
And both ways the board will not come up. I now receive this error:
Template เà¸à¸´à¸"à¸,้à¸à¸œà¸´à¸"พลาà¸"!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.
You should just remove:
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
RegistrationFields();
But make sure you use a decent text editor, what are you using to edit your files? and how? FTP to your computer use Notepad++, edit, save, upload and you should be set.
That is exactly what i did. I used MS frontpage to edit. Never had a problem with it. Works the same as dreamweaver.
Now what can i do? I don't want to start all over because of this one file.
Thanks,
Gibs
Well do not use any of those to edit your php text files, I've found that can alter encoding or add hidden code that can corrupt text based php files.
okay.. so now what? Delete the forum and start over?
No, if it's just that file and you don't have a backup. You can get it from the Large Upgrade package. Then perform any mod specific changes to it and upload it to your forum.
slick mod, thanks for it!
I have this mod installed and everything is working great!
I would like to take the information captured from these custom profile fields and display them on my memberlist page. I have worked out the details to modify the memberlist.php and my column headings are displaying correctly.
Can anyone tell me what code is necessary to display a custom profile field on my memberlist.template.php? For testing, I am using the default naming of the mod, so "CP1" is the name of the first custom profile, etc. I have tried to use something like:
<td class="windowbg" align="left">', $member['options']['cp1'], '</td>
and different variations, but keep striking out.
Any help would be greatly appreciated. Of course I would like to get it right so that my forum error log does not fill up with index event errors too :)
If you were using 2.0 RC1, you could use this mod.
Mod (http://custom.simplemachines.org/mods/index.php?mod=1520)
But there might be something in there that will help.
Well, I solved my issue of displaying the custom profile field on the memberlist page. I am still receiving undefined index event errors in my error log. Any suggestions what to check? Is this stemming from something missing in my index.english.php file? What prompts undefined index event errors in the forum error log?
Example:
8: Undefined index: CP1
File: /home/content/html/Themes/default/Memberlist.template.php
Quote from: Kindred on March 15, 2009, 08:17:44 PM
there will not be another release. This capability is built in standard to SMF 2.0
Wow, cool!
Will the information of custom profile mod converted to the integrated function SMF 2.0?
you will have to do a manual transition... the code for which has been stated 3 or 4 times in this thread.
Quote from: Kindred on March 28, 2009, 05:08:39 PM
you will have to do a manual transition... the code for which has been stated 3 or 4 times in this thread.
Owowowooo, you are totally right, shame on me. I see it now.
Quote from: drhamad on February 18, 2009, 01:48:57 PM
BINGO:
I've now figured out how to convert this mod's profile fields to 2.0 profile fields. The data is stored the same exact way. Therefore, all you need to do is change the variable in smf_themes.
Create the field in 2.0. DO NOT ENTER ANY DATA. Go into the database (using phpMyAdmin, or whatever your preferred method is), go into smf_themes and use this query:
UPDATE smf_themes
SET variable = "var1"
where variable = "var2"
Where var1 = the name of the field you just entered
and var2 = the name of the old (1.1) field.
THAT IS IT.
Kindred, thanks for your kind answer
Don't know if I am doing something wrong here, but I am having one minor issue with some supporting problems as well. My issue is that I cannot view the custom profile fields that I have created when I try and edit my profile. I can see the custom field when I am viewing the profile though. The other problems I found is with editing the php pages for this mod to work.
I was unable to find this line of code in ./Themes/default/Profile.template.php
Find: [Select]
// If karma is enabled let the admin edit it...
Replace With: [Select]
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
EditFields();
// If karma is enabled let the admin edit it...
The closest I found to that line of code was this:
// If karma enabled show the members karma.
The other problem is finding this line of code in: ./Sources/Profile.php
Find: [Select]
$erase_options = array();
Replace With: [Select]
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
CheckFieldInput('profile');
$erase_options = array();
I couldn't find anything close either. Can anyone please give me a hand?
Can any1 tell me where this info is stored in the database? I was trying to find it in smf_members but couldnt find it? I need to know where it is in the database so I can get it out with a socket on a mIRC script.
EDIT: I found it. Stores it in themes ^^
thx for making this mod anyways.
I've added (2) fields, Real Name (mbrRealName) and Member# (mbrChapterNo) to the profile. I have them marked for "Force Input" on the registration page, which does work (errors if I leave them blank). I also have "Member Approval" setup, but when I register a user, then go to their profile page to check those values, they are blank.
It looks like the registration page is not inserting the data into the database. I just registered a test user, filled in the fields, but they aren't in the database :( If I fill them in on an existing user from the Profile page, it works fine.
Do I need to add something somewhere else because of the custom theme? I am using the Dark Rain theme as the "site default" and have TP, SMF Gallery and this mod (downloaded today) loaded and SMF 1.1.8.
Make sure that field is not an admin edit only field.
Wow! That was simple! Thanks BD!!!
Hi,
I would like to find where is stored the values. For exemple I added a text field that only admins can modify. it is called VirtualCoppers and its id is CP5.
I was able to find all this in the smfsettings
I changed the value of My Virtual Coppers to 30. where in the DB is this value
What I need is an external application that is connect to the DB that has nothing to do with SMF to fetch that value.
Thanks,
It's in smf_themes table.
Thanks :)
I have a really dumb question. I just installed this MOD, and it seems as though the Custom Fields are for things like Skype and other things like that, but what my intent in using it is for Phone Numbers and such. Things that don't necessarily link to anywhere.
Can someone please run me through what I need to put in each field? I am very confused.
Thanks,
victoryrock
Just make a text field then. You don't have to link to anything.
Still don't see anything. Here's my screen shot. I entered values in but still don't see anything in the PROFILE tab. Do I have to turn something on...?
Quote from: Rumbaar on April 22, 2009, 12:46:36 AM
Just make a text field then. You don't have to link to anything.
Will this be updated to the 2.0.x versions?
Quote from: Conay on April 22, 2009, 03:55:45 PM
Will this be updated to the 2.0.x versions?
Why would it? Custom fields is already standard in 2.0
Quote from: Kindred on April 22, 2009, 04:25:06 PM
Quote from: Conay on April 22, 2009, 03:55:45 PM
Will this be updated to the 2.0.x versions?
Why would it? Custom fields is already standard in 2.0
Oops :P
Hi!
i am working with smf1.1.8 version and i have installed the mod successfully. now i am searching for the way how i can edit the searching and memberlist template.
i would like to customize the search template like the customized profile. i would like to search and find members as the customize field contents.
is there anybody who knows how to do that?
i am happy about any helping!
forwarding thxs, cooloolo
sorry for my mistaking english, i am from germany...
this mod does not include a search function nor does it include the addition to the memberlist.
Doing either of those would have to be manually coded.
ok, it´s a pity....but i need this funktion...
does anybody knows how i have to write the code for?
EDIT: i think this work is too complex, so i will use the normal search and i will open a profile board...
Quote from: Kindred on April 22, 2009, 04:25:06 PM
Quote from: Conay on April 22, 2009, 03:55:45 PM
Will this be updated to the 2.0.x versions?
Why would it? Custom fields is already standard in 2.0
Rearangement of profile fields is not possible in 2.0 and it is very much needed. Anyone now the solution to that?
Hi.
On my forum I use this mod. It rulez but misses one feature - field type "Image" would be great. I want members to upload their portrait besides avatar.
Didn't find any plugin doing this.
This mod is not going to be further developed, since the functionality has been incorporated into SMF 2.0.
Geko, If you want that, then you should request a new 2.0 mod to do specifically that... you should not piggyback a new (and unrelated) request in this mod thread.
Hi,
I am using this mod on SMF 1.1.8 and recently checked the error logs and was wondering if anyone has this error and is it related to this mod? I would think so. I am also using thai language and english template.
8: Undefined index: registration_language_template_field
ไฟล์: /home8/moretele/public_html/poodarai/Themes/default/Register.template.php (before sub template - eval?)
บรรทัด: 157
Thanks,
Gibs
Hello all.
I successfully installed this mod, but I would like to be able to move the custom field(s) to the top of the registration process.
Is this possible?
Thanks in advance.
Gerry.
you'll have to move the code around in register.template.php
I've tried to cut and paste it in about a dozen places, but I always get errors.
My register.template.php is listed below. Can you show me where to move the code to? The section that calls the extra fields is about 172 lines in.
Thanks in advance.
// Before registering - get their information.
function template_before()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Make sure they've agreed to the terms and conditions.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function verifyAgree()
{
if (document.forms.creator.passwrd1.value != document.forms.creator.passwrd2.value)
{
alert("', $txt['register_passwords_differ_js'], '");
return false;
}';
// If they haven't checked the "I agree" box, tell them and don't submit.
if ($context['require_agreement'])
echo '
if (!document.forms.creator.regagree.checked)
{
alert("', $txt['register_agree'], '");
return false;
}';
// Otherwise, let it through.
echo '
return true;
}';
if ($context['require_agreement'])
echo '
function checkAgree()
{
document.forms.creator.regSubmit.disabled = isEmptyText(document.forms.creator.user) || isEmptyText(document.forms.creator.email) || isEmptyText(document.forms.creator.passwrd1) || !document.forms.creator.regagree.checked;
setTimeout("checkAgree();", 1000);
}
setTimeout("checkAgree();", 1000);';
if ($context['visual_verification'])
{
echo '
function refreshImages()
{
// Make sure we are using a new rand code.
var new_url = new String("', $context['verificiation_image_href'], '");
new_url = new_url.substr(0, new_url.indexOf("rand=") + 5);
// Quick and dirty way of converting decimal to hex
var hexstr = "0123456789abcdef";
for(var i=0; i < 32; i++)
new_url = new_url + hexstr.substr(Math.floor(Math.random() * 16), 1);';
if ($context['use_graphic_library'])
echo '
document.getElementById("verificiation_image").src = new_url;';
else
echo '
document.getElementById("verificiation_image_1").src = new_url + ";letter=1";
document.getElementById("verificiation_image_2").src = new_url + ";letter=2";
document.getElementById("verificiation_image_3").src = new_url + ";letter=3";
document.getElementById("verificiation_image_4").src = new_url + ";letter=4";
document.getElementById("verificiation_image_5").src = new_url + ";letter=5";';
echo '
}';
}
echo '
// ]]></script>
<form action="', $scripturl, '?action=register2" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator" onsubmit="return verifyAgree();">
<table border="0" width="100%" cellpadding="3" cellspacing="0" class="tborder">
<tr class="titlebg">
<td>', $txt[9001], '</td>
</tr><tr class="windowbg">
<td width="100%">
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tr>
<td width="40%">
<b>', $txt[98], ':</b>
<div class="smalltext">', $txt[520], '</div>
</td>
<td>
<input type="text" name="user" size="20" tabindex="', $context['tabindex']++, '" maxlength="25" />
</td>
</tr><tr>
<td width="40%">
<b>', $txt[69], ':</b>
<div class="smalltext">', $txt[679], '</div>
</td>
<td>
<input type="text" name="email" size="30" tabindex="', $context['tabindex']++, '" />';
// Are they allowed to hide their email?
if ($context['allow_hide_email'])
echo '
<label for="hideEmail"><input type="checkbox" name="hideEmail" id="hideEmail" class="check" checked="checked" /> ', $txt[721], '</label>';
echo '
</td>
</tr><tr>
<td width="40%">
<b>', $txt[81], ':</b>
</td>
<td>
<input type="password" name="passwrd1" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr><tr>
<td width="40%">
<b>', $txt[82], ':</b>
</td>
<td>
<input type="password" name="passwrd2" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr>';
if ($context['visual_verification'])
{
echo '
<tr valign="top">
<td width="40%" valign="top">
<b>', $txt['visual_verification_label'], ':</b>
<div class="smalltext">', $txt['visual_verification_description'], '</div>
</td>
<td>';
if ($context['use_graphic_library'])
echo '
<img src="', $context['verificiation_image_href'], '" alt="', $txt['visual_verification_description'], '" id="verificiation_image" /><br />';
else
echo '
<img src="', $context['verificiation_image_href'], ';letter=1" alt="', $txt['visual_verification_description'], '" id="verificiation_image_1" />
<img src="', $context['verificiation_image_href'], ';letter=2" alt="', $txt['visual_verification_description'], '" id="verificiation_image_2" />
<img src="', $context['verificiation_image_href'], ';letter=3" alt="', $txt['visual_verification_description'], '" id="verificiation_image_3" />
<img src="', $context['verificiation_image_href'], ';letter=4" alt="', $txt['visual_verification_description'], '" id="verificiation_image_4" />
<img src="', $context['verificiation_image_href'], ';letter=5" alt="', $txt['visual_verification_description'], '" id="verificiation_image_5" />';
echo '
<input type="text" name="visual_verification_code" size="30" tabindex="', $context['tabindex']++, '" />
<div class="smalltext">
<a href="', $context['verificiation_image_href'], ';sound" onclick="return reqWin(this.href, 400, 120);">', $txt['visual_verification_sound'], '</a> | <a href="', $scripturl, '?action=register" onclick="refreshImages(); return false;">', $txt['visual_verification_request_new'], '</a>
</div>
</td>
</tr>';
}
## Start MOD Are You Human?
if (!empty($modSettings['are_you_human_s']))
echo '
<tr valign="top">
<td width="40%" valign="top">
<b>', $context['are_you_human_question'], ':</b>
<div class="smalltext">', $txt['are_you_human_desc'], '</div>
</td>
<td>
<select name="', $_SESSION['are_you_human']['name'], '" tabindex="', $context['tabindex']++, '" class="select">',
$context['are_you_human_answers'], '
</select>
</td>
</tr>';
## End MOD Are You Human?
// Are there age restrictions in place?
if (!empty($modSettings['coppaAge']))
echo '
<tr>
<td colspan="2" align="center" style="padding-top: 1ex;">
<label for="skip_coppa"><input type="checkbox" name="skip_coppa" id="skip_coppa" tabindex="', $context['tabindex']++, '" class="check" /> <b>', $context['coppa_desc'], '.</b></label>
</td>
</tr>';
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
RegistrationFields();
echo '
</table>
</td>
</tr>
</table>';
// Require them to agree here?
if ($context['require_agreement'])
echo '
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="5" class="tborder" style="border-top: 0;">
<tr>
<td class="windowbg2" style="padding-top: 8px; padding-bottom: 8px;">
', $context['agreement'], '
</td>
</tr><tr>
<td align="center" class="windowbg2">
<label for="regagree"><input type="checkbox" name="regagree" onclick="checkAgree();" id="regagree" class="check" /> <b>', $txt[585], '</b></label>
</td>
</tr>
</table>';
echo '
<br />
<div align="center">
<input type="submit" name="regSubmit" value="', $txt[97], '" />
</div>
</form>';
// Uncheck the agreement thing....
if ($context['require_agreement'])
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
document.forms.creator.regagree.checked = false;
document.forms.creator.regSubmit.disabled = !document.forms.creator.regagree.checked;
// ]]></script>';
}
I'm OK now. I struggled through it.
Thanks anyhow.
g.
I noticed that the new custom field that we created (CP1) is not displayed in the user profile or member lists even though I have it configured to do so.
I'm not using the default theme. Is there something I should be coding into my theme templates?
G.
yup... on 1.1.x, you will have to manually install any code into your custom theme template files.
Hi all
I want show field in staff page, but i m getting this error
8: Undefined index: member
Dosya: /home/xxx/public_html/forum/Themes/default/languages/Staff.english.php (main sub template - eval?)
Satır: 177
echo '<td class="windowbg" align="left">', $context['member']['options']['cp1telefon'], '</td>';
full code:
line 177. http://pastebin.com/m33ce869c
??? Why is there an echo statement in your language file?
i dont know :)
can you Shows the right way?
echo statements like that belong in TEMPLATE files... I don't know specifically what you are trying to do, but I would suggest checking out the staff.template.php file
How can we calculate different variants of the field "selection box" and check the results.
For example, there's a box "test" type "selection box". There 3 options one, two, three. Here's how to calculate how many users chose option one, but two, but three and set them on the forum ..? Thanks
Quote from: Kindred on May 06, 2009, 01:28:28 PM
yup... on 1.1.x, you will have to manually install any code into your custom theme template files.
I am using the Orange Line theme and it does not have its own Profile.template.php, Display.template.php, PersonalMessage.template.php, or Register.template.php.
Those are the templates listed in the manual parse. I'm new to this and I dont understand what other templates would need coding. Please explain.
Thanks.
Gerry.
Technically you shouldn't need those file as SMF should read them from the default file if they don't exist in a custom theme. Just change the ones you do have then if the mod doesn't work on the theme, try coping the missing files from the default theme to your custom.
Quote from: Garou on May 08, 2009, 07:10:42 AM
Technically you shouldn't need those file as SMF should read them from the default file if they don't exist in a custom theme. Just change the ones you do have then if the mod doesn't work on the theme, try coping the missing files from the default theme to your custom.
I tried this with copying the four templates into the OragneLine theme directory and it did not effect the mod at all.
Still no custom field info showing up anywhere in profiles or the member list.
Kindred ----> What am I doing wrong? I went through all the templates by hand and all the mod lines are in there.
is the code added into profile.php in the sources directory?
Quote from: Kindred on May 08, 2009, 10:11:10 PM
is the code added into profile.php in the sources directory?
yes. i went through the parse and it made all those changes. But there is no sign of the custom field anywhere in my profile or member list.
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
CheckFieldInput('profile');
$erase_options = array();
I looked through my database and didnt see any sign of the custom field either. I found all the other member info, but no CP1.
?
the data from custom fields gets added into the smf_themes tale of the database... search for anything with CP
Quote from: Kindred on May 09, 2009, 09:34:33 AM
the data from custom fields gets added into the smf_themes tale of the database... search for anything with CP
The entries are not being made into smf_themes during the registration process....but if i go into the Forum Profile Information page I can see the custom field (and it's blank). If I enter something manually and click "Change Profile" it will accept it and successfully write it into the database.
I must be something in the registration portion. Would it generate an error log somewhere if there was one?
Thanks.
Gerry.
Quote from: ehsizzup on May 09, 2009, 11:27:16 AM
Quote from: Kindred on May 09, 2009, 09:34:33 AM
the data from custom fields gets added into the smf_themes tale of the database... search for anything with CP
The entries are not being made into smf_themes during the registration process....but if i go into the Forum Profile Information page I can see the custom field (and it's blank). If I enter something manually and click "Change Profile" it will accept it and successfully write it into the database.
I must be something in the registration portion. Would it generate an error log somewhere if there was one?
Thanks.
Gerry.
Apparently, I am an idiot.
You must set the field to editable by members or it wont write the custom field during registration. I thought that preference referred to after registration only.
Thanks for the help....
g.
How can I edit like this: (for a clan forum, meaning we have guests, members & leaders aka admins).
Guests CANNOT edit a field.
Members CAN edit this field for their own.
and admins CAN edit any fields.
At the moment its like either admin only edit, or every can edit... ANy1 please help?
thx!
I'd like to post here a feature request.
If you have created an option for "selection box" field, you can not remove or move Up/Down this option anymore. Please, add [ Delete ] , [Move Up] & [Move Down] buttons for existing field options.
I understand this mod is not going to be further developed... since it is incorporated into 2.0 - but I'll give this a shot anyway ;D
I have a custom profile field entitled "location".
I was just trying to add a field to MY search members form.... like... http://www.simplemachines.org/community/index.php?action=mlist;sa=search
<label for="fields-location"><input type="checkbox" name="fields[]" id="fields-location" value="location" class="check" /> ', $txt['mlist_search_location'], '</label>
When trying to run a search for location, I am getting a syntax error....
Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIKE '%texas%'
AND is_activated = 1' at line 4
File: /users/Sources/Memberlist.php
Line: 465
Looking at line 465 of Memberlist.php... I see....
$request = db_query("
SELECT COUNT(*)
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
WHERE " . implode(" $query OR ", $fields) . " $query$condition
LINE 465----> AND is_activated = 1", __FILE__, __LINE__);
list ($numResults) = mysql_fetch_row($request);
mysql_free_result($request);
Is there anyway to make these pre 2.0 custom profile fields searchable? That would be a HUGE bonus at my site.
Thanks in advance.
digit
I thought that this feature was supposed to be in the 2.0 version? I just installed 2.0 and I don't see custom fields anywhere. Can someone direct me to it? or if i misunderstood, let me know that too. thanx.
turn on Advanced profile fields in the configuration > Core features
configuration > features and options > profile fields
Quote from: Kindred on May 12, 2009, 08:46:58 AM
turn on Advanced profile fields in the configuration > Core features
configuration > features and options > profile fields
Awesome, thank you!
QuoteI have a really dumb question. I just installed this MOD, and it seems as though the Custom Fields are for things like Skype and other things like that, but what my intent in using it is for Phone Numbers and such. Things that don't necessarily link to anywhere.
Can someone please run me through what I need to put in each field? I am very confused.
Thanks,
victoryrock
This is just what I want to do, but can't! Um, I've been trying to figure this out, and I am not finding anything in my search attempt of this topic- so- How do I get my custom field to act like the current AIM and MSN links? I just want a DA link added.
Right now, I have the custom field set as text, and I have parse BBC selected. I have the prefix as
[url]http://
and the suffix as
.deviantart.com[/url]
Then the user enters their user name and a very long link appears under the avatar.
I want a DA icon to show up instead of the entire url. Basically, I want it to be just like the AIM and MSN chat icons (and positioned right next to them).
Anyone know of a way?
EDIT: After searching for hours before coming across this: http://www.smfsupport.com/support/guides_and_tutorials/guide_custom_profile_fields-t3061.0.html (http://www.smfsupport.com/support/guides_and_tutorials/guide_custom_profile_fields-t3061.0.html) I realized I needed to change my code to this:
Prefix:
[url=http://
Suffix:
.deviantart.com][img]Themes/hero/images/da.gif[/img][/url]
Works like a charm! Now it's time to go take an asprin. O_o
Quote from: alexandervba on May 10, 2009, 12:25:22 PM
How can I edit like this: (for a clan forum, meaning we have guests, members & leaders aka admins).
Guests CANNOT edit a field.
Members CAN edit this field for their own.
and admins CAN edit any fields.
At the moment its like either admin only edit, or every can edit... ANy1 please help?
thx!
I really need some help here, any1 can gimme a start please? I can probs do this myself if u tell me how to start...
when i add 1 field for registration page,it gives me 2 of them on it....any support?
Nice extension, but I have an suggestion how to improve it to make it better.
My idea: add an 2 select boxes (one for add and one for remove) with number values.
Explanation:
User could use it to type how much fields he (or she) like to add (or remove).
The maximal count of fields should be configurable from the administration panel.
as previously notes, this mod is no longer being developed, because custom profile fields are standard in SMF 2.0
Quote from: Kindred on May 20, 2009, 09:26:30 AM
as previously notes, this mod is no longer being developed, because custom profile fields are standard in SMF 2.0
shame too, cuz i wont be upgrading as most of my installed mods arent supported.....
however, if we are still permitted to ask questions on this one:
my custom field is a checkbox.
i have text displayed when the box is check, and have input text to be displayed when unchecked.
the unchecked text however, does not display.
i am using a custom theme. anyone can point me in the direction of where to look?
I installed custom-profile 3-20 on SMF 1.1.9 successfully without "failed tests" on the components.
However, when i am clicking on "Features and Options" it is giving me a blank page.
Any idea why?
Thanks in advance.
suspect: English versus English UTF-8 (more specifically, make sure your board is running in English, not English UTF-8... OR add the text strings into your modifications.englishutf8.php
Is this an ongoing thread for any questions on the Custom Profile Mod?
I want to add "Display name" and "Graduation Year" to my registration page. I have successfully applied the mod and added the two fields. When I test it and look under members list it does not show up. When I login as admin. and look in the members list both items are there.
Now, How do I add this information to the members list for all to see? How do I enable the search option so that people can search members by graduation year?
I can be reached via msn
[email protected] or email at
[email protected].
Thanks for anyone willing to help me with this.
Quote from: Kindred on May 26, 2009, 06:09:38 PM
suspect: English versus English UTF-8 (more specifically, make sure your board is running in English, not English UTF-8... OR add the text strings into your modifications.englishutf8.php
thanks for the reply Kindred. I am running english, NOT english UTF-8.
How do i add or what should i add in the modifications.englishutf8.php.
Thanks in advance.
Uncle Don,
This mod does not add anything into the memberlist-list. It only adds the fields into profile, registration and the message display. There is no search option by field.
If you want that, you should upgrade to SMF 2.0.
Balcen,
I am not sure off the top of my head. Look in modifications.english.php and find the custom profile txt strings and then copy them into the other file.
I think that this mod is conflicting with my Custom Tab mod because I took a look at the Manual Install Instructions, and where it wants me to place this
'profile' => 'ModifyProfileSettings',
);
// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];
Where this is
);
// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];
I get this instead
);
$subActions['custom'] = 'ModifyCustomTabSettings';
// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];
What can I do?
Thanks,
EDSucation
I have a near similar issue here too..The mod installed fine on my heavily modified forum but when i click on the admincpan>>featureas ......it shows error on my modsettings.php file.
"Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/afrowall/public_html/Sources/ModSettings.php on line 126"
why is that?
here is my modsettings file
Quote from: EDSucation on June 01, 2009, 12:39:28 AM
I think that this mod is conflicting with my Custom Tab mod because I took a look at the Manual Install Instructions, and where it wants me to place this
'profile' => 'ModifyProfileSettings',
);
// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];
Where this is
);
// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];
I get this instead
);
$subActions['custom'] = 'ModifyCustomTabSettings';
// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];
What can I do?
Thanks,
EDSucation
If you are installing it manually or editing that file manually then all it wants you to do is put this
'profile' => 'ModifyProfileSettings',
above where it says this
);
that extra bit of code you have for the other mod is probably preventing it from installing without errors but if you then edit that file manually as per the above then it should be ok.
Remember to always back up all files etc before editing any of them or installing any mods. :)
Quote from: afrowall.com on June 01, 2009, 01:28:13 PM
I have a near similar issue here too..The mod installed fine on my heavily modified forum but when i click on the admincpan>>featureas ......it shows error on my modsettings.php file.
"Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/afrowall/public_html/Sources/ModSettings.php on line 126"
why is that?
here is my modsettings file
Actually the error is on line 124...
'ultprofile' => 'ModifyUltProfileSettings'
It needs a comma after.
'ultprofile' => 'ModifyUltProfileSettings',
Ok, Thanks
This will hold me until SMF 2.x goes gold!
Bug
Contents of selection field replace contents of preceding text field
Circumstances
First I added 4 custom profile fields. Then I added a selection field (CP5).
Logged on as administrator, I edited a regular users's custom profile fields.
As soon as I saved, the contents of the selection field (CP5) replaced the contents of the preceding text field (CP4).
This behavior persisted even if I disabled field CP5, and ceased when I deleted the selection field
Workaround
I added an unneeded text field (CP5), followed by the desired selection field (CP6), then disabled CP5. I don't care what the contents of CP5 are, as nobody can see the field. Works fine.
Hello.
how do you get this mod to work with these profile boxes
http://www.dzinerstudio.com/index.php?topic=2520.0
because my forum looks like this..
http://i526.photobucket.com/albums/cc343/BMilnez/piccyforum.jpg
ok, I was in the same boat as it seems everyone, but I figured it out
First, you have to find the Custom Profile number (the CP#)
My "Custom Profile Field ID"s were in the database under
"smf_themes"
To find the specific one I needed, I just exported the table, searched for a string that I knew was in the spot I wanted, and I had my number.
If you're still not finding it, then modify a profile with something that is unique (like a limerick or something) you just need it in there long enough to find the CP# you're looking for.
Now, you need to label your new column, I went to "\Themes\default\languages\index.english.php"
and just plugged in
$txt['Etsy1'] = 'Etsy Store';
I don't think it matters where (I put mine under MSN) but do make sure you use a unique code, or it could mess something up!
Then, I went to "\Sources\memberlist.php"
found the columns
// Set up the columns...
$context['columns'] = array(
'isOnline' => array(
'label' => $txt['online8'],
'width' => '20'
),
'realName' => array(
'label' => $txt[35]
),
'emailAddress' => array(
'label' => $txt[307],
'width' => '25'
),
'websiteUrl' => array(
'label' => $txt[96],
'width' => '25'
),
'ICQ' => array(
'label' => $txt[513],
'width' => '25'
),
'AIM' => array(
'label' => $txt[603],
'width' => '25'
),
'YIM' => array(
'label' => $txt[604],
'width' => '25'
),
'MSN' => array(
'label' => $txt['MSN'],
'width' => '25'
),
'ID_GROUP' => array(
'label' => $txt[87]
),
'registered' => array(
'label' => $txt[233]
),
'posts' => array(
'label' => $txt[21],
'width' => '115',
'colspan' => '2'
)
);
and I added mine to the end, making sure that all my parentheses and semi-colons were correct
and also making sure I used the code I plugged into the index file
'posts' => array(
'label' => $txt[21],
'width' => '115',
'colspan' => '2'
),
'CP10' => array(
'label' => $txt['Etsy1'],
'width' => '25',
)
);
Then I went to "\Themes\default\memberlist.template.php"
And I found where the info was-
// Assuming there are members loop through each one displaying their data.
if (!empty($context['members']))
{
foreach ($context['members'] as $member)
echo '
<tr style="text-align: center;"', empty($member['sort_letter']) ? '' : ' id="letter' . $member['sort_letter'] . '"', '>
<td class="windowbg2">
', $context['can_send_pm'] ? '<a href="' . $member['online']['href'] . '" title="' . $member['online']['text'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $member['online']['image_href'] . '" alt="' . $member['online']['text'] . '" align="middle" />' : $member['online']['label'], $context['can_send_pm'] ? '</a>' : '', '
</td>
<td class="windowbg" align="left">', $member['link'], '</td>
<td class="windowbg2">', $member['hide_email'] ? '' : '<a href="mailto:' . $member['email'] . '"><img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . ' ' . $member['name'] . '" /></a>', '</td>
<td class="windowbg">', $member['website']['url'] != '' ? '<a href="' . $member['website']['url'] . '" target="_blank"><img src="' . $settings['images_url'] . '/www.gif" alt="' . $member['website']['title'] . '" title="' . $member['website']['title'] . '" /></a>' : '', '</td>
<td class="windowbg2">', $member['icq']['link'], '</td>
<td class="windowbg2">', $member['aim']['link'], '</td>
<td class="windowbg2">', $member['yim']['link'], '</td>
<td class="windowbg2">', $member['msn']['link'], '</td>
<td class="windowbg" align="left">', empty($member['group']) ? $member['post_group'] : $member['group'], '</td>
<td class="windowbg" align="left">', $member['registered_date'], '</td>
<td class="windowbg2" width="15">', $member['posts'], '</td>
<td class="windowbg" width="100" align="left">
', $member['posts'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $member['post_percent'] . '" height="15" alt="" />' : '', '</td>
and added my code after the posts, and before the closing <tr>
<td class="windowbg2">', !empty($member['options']['CP1']) != '' ? '<a href="' . $member['options']['CP1'] . '" target="_blank"><img src="http://etsysteamteam.com/forum/Themes/default/images/etsystore.gif"></a>' : '', '</td>
at the end
Then (still in Memberlist.template.php) I did a search of all
colspan="12
and replaced them with
colspan="13"
save & upload your files and you're good.
My code had custom stuff in it, the etsy image specificly. To have something without the image you would just adjust accordingly..
If you have very little knowledge of PHP (like me) then just copy one of the other entries
I'd go with the website one for url links-
<td class="windowbg">', $member['website']['url'] != '' ? '<a href="' . $member['website']['url'] . '" target="_blank"><img src="' . $settings['images_url'] . '/www.gif" alt="' . $member['website']['title'] . '" title="' . $member['website']['title'] . '" /></a>' : '', '</td>
and the group one for text
<td class="windowbg" align="left">', empty($member['group']) ? $member['post_group'] : $member['group'], '</td>
hope I could help!
I am trying to install this one SMF 1.1.9 using the Parse but I cannot find the following in the ModSettings.php
);
// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];
And
);
// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
So if one of you fine people could help me with this I would really appreciate it :D
Any way we could add a message above the form ? For instance maybe some special instructions of some sort ? Maybe in new release ?
DirtRider both lines are in the file but if yours is modified you may have to just do a search through your file for "basic" eventually you should stumble upon it.
V@POR, unfortunately there will be no new release for this. In the future if you want this feature you will have to upgrade to 2.x as it is an included feature of 2.0
I tried that and found where I thought it should go but ended up with an error :'(
Quote from: Garou on June 15, 2009, 11:40:08 AM
unfortunately there will be no new release for this. In the future if you want this feature you will have to upgrade to 2.x as it is an included feature of 2.0
Garou, you saying this won't work in SMF V2?
There is a limitation of 255 characters in the 'in built' version of SMF V2, which is a bit restrictive when you want to use drop-down lists.
Does the 'Custom Profile Field Mod' have a similar limitation?
DirtRider, don't know what to tell you other then trial and error. It should work, others have gotten it to, me as well on a clean forum just to see if I it was possible. If you are running into problems it has to be due to conflicts with other mods. It will work its just going to take some work.
Urbanite, its been stated in this thread multiple times that there will be no more upgrades to this mod. In the event that there are any major changes in the 1.1.x series of SMF, I'm sure someone might list the fix but nothing new will be added to this mod nor will it be updated to work on 2.x as the functionality is in there.
As for modifying the existing code in 2.x you can ask in the SMF Coding Discussion board for help with it.
also note that this functionality is already present in SMF 2.0
I mentioned that. :)
In saying that they should ask in the coding discussion boards, I was referring to the fact that one of the reasons Urbanite and others have an issue with the 2.x feature is the 255 character limitation. Which I now see of course has been addressed in the SMF 2.x Support.
Quote from: regularexpression on February 08, 2009, 02:01:31 PM
the max length is 255 characters. This is limited by the field type which is set to tinytext (which has max lenght of 255)
That's the reason but a work around hasn't been suggested yet. I would suggest that one change the field type to some other setting but that's a discussion for the other board. ;D
Right now all the Custom fields appear at the bottom of the registration form.
Can the custom fields be sorted within the standard SMF fields? (ie. not all at the bottom of the form)
is there a way to limit the length of a custom field?
is the a way to change the size of the text boxes?
Quote from: ehsizzup on June 22, 2009, 03:38:54 PM
Right now all the Custom fields appear at the bottom of the registration form.
Can the custom fields be sorted within the standard SMF fields? (ie. not all at the bottom of the form)
not possible with the current implementation
(SMF v 1..1.9)
I used to have the Custom Profile Field Mod installed but thought i had uninstalled it (doesn't appear in "installed packages" list, and is in my packages list with "apply mod" next to it).
But users are getting errors when trying to change profile details - and I get the same when i try to assign membergroups to users. The error is
QuoteAn Error Has Occurred!
You did not fill in the "Please type something here to show you're a human" field.
Needless to say, this field doesn't appear anywhere (any more). And as the mod isn't installed I don't have the relevant options under "Features and Options".
I've tried reinstalling the mod (with the intention to then uninstall it again...) but get an error
Quote1. 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 failed
4. Execute Modification ./Themes/default/PersonalMessage.template.php Test failed
I've checked the 3 failed above against freshly downloaded v1.1.9 versions and they're the same.
Any ideas?
Are you sure this is from this mod or is that the are you human (http://custom.simplemachines.org/mods/index.php?mod=999) mod?
I get each field appearing twice in my register page (smf 1.1.9, cleanblue theme). I've searched the forums and found the guy who had the fields appearing three times, but no real answer was given - does anyone have any ideas. ???
looks like you installed the mod twice.
you will have to go into register.template.php and remove the duplicate code
:D Many thanks, that was the error - things working fine now. 8)
@Garou
Yes, it was this mod (although used for the same purpose as the "Are you human" mod). I simply had a forced input extra field which could have anything in it.
The best I can recommend is using the package parser and removing the mod manually. You will also want to double check for everything again even after its been removed as it seems as if there are some parts left behind from a previous uninstall.
hey, it is possible to make a graphic field? I mean someone user wanna set in profile favorite weapon, so he check "ak-47" (text field) and next in profile summary all members can see ak-47 graphic (small img)... it is possible? thanks for help.
yes, using the prefix and suffix fields, you can set BBC images
This has actually been mentioned before in this thread, you might try doing a search.
prefix
[img]
suffix
[/img]
with the url of the image in the field.
How add some custom profile field to memberlist? It's possible to be optional in each field page?
Quote from: Kindred on July 03, 2009, 11:57:12 AM
yes, using the prefix and suffix fields, you can set BBC images
This has actually been mentioned before in this thread, you might try doing a search.
prefix
[img]
suffix
[/img]
with the url of the image in the field.
ok done. (tip: use emoticons... like :weapon:)
I have created a custom field with name = "money"
I would need to have each user, this field is automatically filled in for the value = "0"
Where in the database is stored data?
./Sources/ModSettings.php Failed
ModSettings.php attached
Help, please.
SosniTo.sk: Try using search? This has been answered about 30 times. This data is stored in the smf_themes table
MF30, just use the mod parser and apply the changes. :)
Thank you,
Could not be saved to smf_members?
My forum has 36 000 users, and thus to be opaque.
this is really a nice mod!
i installed it manually using parse.
after installation, when i have to go to my admin>features and settings, i see blank page.
i am using dilber mc, smf version 1.1.9. my other mods are simple portal, latest media gallery, dozen pages and shoutbox.
how do i fix this pls?
Sosni.... no, it uses smf_themes table... I have 40,000+ members and I deal with it...
psynx... make sure that you are running in english (not english utf-8) and that the dilber theme does not have a copy of modifications.english.php n the language folder.
And it can be done to each user automatically displayed value = "0".
it could be... but no, it only ads a row to the table if the user has a non-null value.
Quote from: Garou on July 01, 2009, 01:23:17 PM
The best I can recommend is using the package parser and removing the mod manually. You will also want to double check for everything again even after its been removed as it seems as if there are some parts left behind from a previous uninstall.
Thanks - triple checking worked ;D
In an earlier post, I thought I had found a work-around for a bug:
Quote from: AngelinaBelle on June 04, 2009, 02:56:45 PM
Bug
Contents of selection field replace contents of preceding text field ...
But I have discovered that I haven't fixed the problem. No matter what I do now, some custom profile field is overwriting the contents of some other custom profile field. It is very confusing. I'm working with 4 text fields and one selection. I keep adding, removing, and reordering fields to see what kind of behavior I get, and I can't figure out the pattern. One of the earlier text fields comes back with exactly the same contents as one other field, but I can't predict which one will take the hit.
Has anyone else seen this bug?
it sounds like you have at least two fields that are sharing the same ID...
Quote from: Kindred on July 14, 2009, 02:12:45 PM
it sounds like you have at least two fields that are sharing the same ID...
D'oh! That's it! Those field IDs are automatically generated, so I completely ignored them.
I didn't check to see if the mod repeated any of them!
But that's exactly what has been happening. Sometimes, a new field gets an old field ID. But not always. And I've been doing quite a bit of fiddling to try to figure out what's going on. All without looking at the field ID.
Rationalizing the field IDs seems to have fixed the problem.
Thanks for suggesting the bleeding obvious.
AB
I installed the mod automatically and everything went fine. I checked that it was installed and all is good.
Unfortunately, I still cannot use it because I cannot find it under "Features and Options". Any ideas?
Thanks!
If you are using a custom theme you have to manually make the changes for the default theme on your custom theme.
Hi,
I got a question about this mod, I was told it could be used in this way.
I want a field for birthdate upon registering to my website, and then have it applied to the already existing birthdate field in the users profile. So that users dont have to manually change their profile to add their birthdate.
Like for example
Birthdate: field field field
Year (YYYY) - Month (MM) - Day (DD)
I am on the default theme. Any other ideas I might be able to try?
Quote from: Garou on July 23, 2009, 06:05:03 AM
If you are using a custom theme you have to manually make the changes for the default theme on your custom theme.
Skuggan, no, that is not how this mod works. This mod ads additional fields, it makes no changes to the existing fields and has no effect on the existing fields.
Jiimbo, what language are you using? remember english and english utf-8 are different
That did it! I guess the English utf-8 is the default since I had never touched that.
Dude, thanks so much for that tip! --- Jimbo
Quote from: Kindred on July 23, 2009, 08:43:04 PM
Jiimbo, what language are you using? remember english and english utf-8 are different
Hello, im having the smae problem as Jimbo, what do I do?
Quote from: King Death II on July 25, 2009, 05:53:59 PM
Hello, im having the smae problem as Jimbo, what do I do?
try using search?
but if you need it handed to you, change your forum language to english
Hello, I'm trying to display one of the custom profile fields on the Admin -> Members page ( within ManageMembers.template.php )
I tried ', $member['default_options[CP5]'], ' but with no luck
any ideas?
Is it possible to create URL fields like the default one for Website (That is, one field for the title, one for the actual URL)
Hi,
I've tried to search the topic for any hints without luck so here goes: Is there any current way to get some statistics on the custom fields. For example if there are a couple of checkboxes, could you see how many have filled in each of the checkboxes?
If this doesn't exist then any hints as to where and how the data is saved in the database would be most welcomed so I can create a separate page for it myself.
Thanks in advance.
So I've got my users using custom profile fields.
And I want to upgrade to SMF 2.0 pretty soon now -- RC1 seems to be progressing well.
Should I be investigating the SQL for creatiing SMF2.0 profile fields to match this mods' profile fields and stuffing the data in, or would I be reinventing the wheel -- is somebody more savvy than me already working on this?
Thanks for the info
AB
Quote from: Kindred on July 25, 2009, 07:13:55 PM
Quote from: King Death II on July 25, 2009, 05:53:59 PM
Hello, im having the smae problem as Jimbo, what do I do?
try using search?
but if you need it handed to you, change your forum language to english
Same prob as Jimbo had. Under default it is english utf8, only option available, is this correct?
What exactly did you do to get it working, Jimbo?
I have this installed and it worked great but ever since I installed Ultimate Profile it doesnt work. I know i need to edit something for it to work with ultimate profile but im not sure what.
May I get some help please? or am I in the wrong thread? :D
Quote from: steelsheen on August 06, 2009, 03:01:35 PMSame prob as Jimbo had. Under default it is english utf8, only option available, is this correct?
You only have english-utf8 under the language dropdown option in your server settings?
You would have gotten numerous installation errors when installing mods that needed the english only language files to install into?
QuoteYou only have english-utf8 under the language dropdown option in your server settings?
Yes, Rumbaar, english-utf8 is the only option. English IS in the language folder though.
I don't have any errors showing.
I have def gray theme installed and that's what I usually use but I'm on the default theme right now
What's installed:
Select Admin for Notifications - works fine
Custom Profile Field Mod - not working
1.0.16 / 1.1.8 Update
1.0.17 / 1.1.9 / 2.0 RC1 Update
1.0.18 / 1.1.10 / 2.0 RC1-2 Update
OK I lied I am getting errors:
Undefined index: cp_cpfields
File: /home/userID/public_html/forum/Sources/ModSettings.php
Line: 142
Unable to load the 'CustomProfile.english-utf8' language file.
------------------
Any Ideas?
Great mod ty :)
I have a required field that ask the member to add there Union number upon registration, What I would like to know is there anyway that I could add a search for the field, under the Search for members page ???
I am running SMF 1.1.10
@steelsheen
As long as you have english and english-utf8 (or any other language file, well technically on the index.{language}.php is required) it will be an option to use that language. If that is not the case then there is something else wrong with your forum.
lesmond... that would take some custom coding.
however, SMF 2 already has that capability by default with no further modifications
How easy is it to migrate custom profile fields to SMF2, and get the contents properly stowed in the right tables?
it's pretty easy... but you have to run some SQL statements after you create the new custom fields in smf 2. Look back in this thread... we've listed them at least twice.
Thanks! I finally found it! :)
Silly me :-[ -- I had tried SMF's search feature to search this topic for single terms like "upgrade", "2.0" "SQL", "SET" "UPDATE", "join" and even "table", but had no luck at all. :(
I guess I've learned not to depend on SMF2.0's search feature when I actually want to find something.
So I randomly flipped back to March and discovered a helpful posting, which can be found by searching on "BINGO" or "convert", but not any of the other terms.
http://www.simplemachines.org/community/index.php?topic=79004.msg1995522#msg1995522
So -- update the contents of the field variable in smf_themes for each of the CP fields to reflect the newly-created SMF2.0 profile fields. That's easy.
Thanks.
There is the option for fields to be viewable only to admin, I would like to extend that view to Global Moderators as well. How can this be done?
Thanks!
you would have to modify the code (not sure exactly where)
it's not a standard permission, if I recall correctly.
Thank you Kindred.
I suspected that was the case.
Where are the fields located in the Database?
I need to be able to call up each field individually in a post and on the profile.
Thanks,
Labradoodle-360
try reading the thread? This has been answered at least 5 times.
So... for you folks who can't be bothered... the field values are stored in the themes table
Can anyone help me with the code changes I need?
Quote from: Rumbaar on August 10, 2009, 05:53:34 PM
@steelsheen
As long as you have english and english-utf8 (or any other language file, well technically on the index.{language}.php is required) it will be an option to use that language. If that is not the case then there is something else wrong with your forum.
Umm, well everything seems to be working just fine. utf8 is the only option for any of the languages.
Nevermind...I really don't feel like messing with it
Nice Mod, thanks!
Have a German translation for you:
<?php
// Don't translate FIELDNAME in the below string.
$txt['cp_enable'] = 'FIELDNAME aktivieren';
$txt['cp_text'] = 'Textzeile';
$txt['cp_textarea'] = 'Textfeld';
$txt['cp_checkbox'] = 'Häkchen';
$txt['cp_selectbox'] = 'Auswahl';
$txt['cp_type'] = 'Art';
$txt['cp_addfield'] = 'Feld hinzufügen';
$txt['cp_name'] = 'Name';
$txt['cp_profileshow'] = 'Im Profil anzeigen?';
$txt['cp_dontshow'] = 'Nicht anzeigen';
$txt['cp_underpostcount'] = 'Unter Beitragszähler zeigen';
$txt['cp_underimages'] = 'Neben Benutzerbild zeigen';
$txt['cp_showposts'] = 'In Beiträgen anzeigen?';
$txt['cp_parsebbc'] = 'BBC umwandeln?';
$txt['cp_before'] = 'Text, der vor dem Feld angezeigt werden soll (BBC-fähig wenn aktiviert)';
$txt['cp_after'] = 'Text, der nach dem Feld angezeigt werden soll (BBC-fähig wenn aktiviert)';
$txt['cp_fieldid'] = 'Feld ID';
$txt['cp_hrule'] = 'Horizontalen Trennstrich vor dem Feld anzeigen?';
$txt['co_optinput'] = 'Freiwillige Angabe';
$txt['cp_forceinput'] = 'Eingabe erzwingen';
$txt['cp_showreg'] = 'Feld bei Registrierung anzeigen?';
$txt['cp_adminedit'] = 'Nur Administratoren Feldänderungen erlauben?';
$txt['cp_adminview'] = 'Nur Administratoren Einsicht erlauben?';
$txt['cp_recreate'] = 'Feld wiederherstellen';
$txt['cp_checked'] = 'Anzeigetext wenn Häkchen';
$txt['cp_notchecked'] = 'Anzeigetext wenn kein Häkchen';
$txt['cp_show'] = 'Anzeigen';
// Don't translate OPTIONNUMBER in the below string
$txt['cp_option'] = 'Antwort OPTIONNUMBER';
$txt['cp_addoption'] = 'Antwort hinzufügen';
$txt['cp_cpfields'] = 'Eigene Profilfelder';
// Don't translate FIELDNUMBER in the below string
$txt['cp_fieldsettings'] = 'Einstellungen für Profilfeld Nr. FIELDNUMBER';
// Don't translate FIELDNAME in the below string
$txt['cp_regerror'] = 'Du hast das "FIELDNAME"-Feld nicht ausgefüllt.';
$txt['cp_moveup'] = '[ Nach oben ]';
$txt['cp_movedown'] = '[ Nach unten ]';
$txt['cp_delete'] = '[ Löschen ]';
$txt['cp_unnamed'] = 'Neues Feld';
$txt['cp_settings'] = '[ Einstellungen ]';
$txt['cp_hrsummary'] = 'In Profilzusammenfassung';
$txt['cp_hredit'] = 'Im Profiländerungsbildschirm';
$txt['cp_onboth'] = 'In beiden';
$txt['cp_desc'] = 'Feldbeschreibung';
?>
Works for me so far, should be ok.
I just have one problem: the Custom Fields are not displayed in posts, whatever setting I choose. My template is fire_09, could this be the problem?
yes... as with any mod on the 1.1.x series of smf, you will have to manually install the mod code into any custom themes (i.e. any theme other than the default theme)
Sure! Did that already for other mods I fighted with today, just forgot, thank you! Now it's working. 8)
If like me you get an error like this:
Call to undefined function DisplayFieldPosts Pictures()
Here is the workaround:
in Display.template.php
FIND:
DisplayFieldPostsPictures();
BEFORE ADD:
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
in PersonalMessage.template.php
FIND:
DisplayFieldPostsPictures();
BEFORE ADD:
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
And that should get you rid of those annoying and fatal errors! ;)
is it possible to send an admin/all admins a message/email whenever a field is editted? Or have like an approval function. if some1 wants to edit a field... The admin would have to verify it first?
Thx, great mod!
To come back at some1 else's question:
The fields are stored in SMF_Themes.
Hi - I'm having a problem with this mod. Apologies if this has been dealt with lots of times but I didn't have any luck with the Search.
I've set up two custom fields which appear on the registration screen as mandatory fields. This works fine, and the fields show up in the user's profile - but they're blank. The information doesn't get transferred from registration to profile.
What might I be doing wrong? I'm using SMF 1.1.10, and I had to install the mod manually.
I tried switching back to the default theme, which seems to be the answer to a lot of problems, but no joy.
Thanks!
Quote from: alexandervba on September 03, 2009, 12:14:13 PM
is it possible to send an admin/all admins a message/email whenever a field is editted? Or have like an approval function. if some1 wants to edit a field... The admin would have to verify it first?
Sending a message when the field is edited is possible; in theory you'd drop a call it to send a PM to the admins. Having an approval function is a LOT more work though.
At its simplest, you'd just add a hook into addSettings() in CustomProfile.php to send a PM, however that wouldn't be smart enough to check what had changed - simply that it had been called upon to be changed, so you'd get another query, pull out the existing values, then do a comparison on them. It's not a huge amount of work but it's enough to be getting on with.
I am using 1.1.10 and I have an error to report.. forgive me if its already been reported and dealt with, but here's what I get when I install the package:
QuoteError 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.
and:
Quote1. 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 Modification ./Themes/default/Register.template.php Test successful
6. Execute Modification ./Sources/Register.php Test successful
7. Execute Modification ./Sources/Profile.php Test successful
8. Extract File ./Sources/CustomProfile.php
9. Extract File ./Themes/default/languages/CustomProfile.english.php
That suggests both of those files have already been modified by another mod - what mods do you already have in place?
Uhm, we have:
1. Member Awards 1.1.1
2. [HTML] Permission Mod 1.01
3. Global Headers Footers 1.4.1
4. Custom Profile Field Mod 3.20
currently installed.
I suspect the Member Awards mod is interfering with the Custom Profile Field mod.
Unfortunately that means you will have do a manual install - Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
will this be compabilited with SMF 2.0 RC1.2 Soon?
2.0 has this functionality - a good chunk of it - at least built in.
ok awesome cant wait to test it with the Other mod Profile fields on Memberlist :O
So I followed these instructions:
QuoteIn 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 in the before spot and (http://www.myspace.com/%1) in the after spot, and it would just show the username but link to the site.
Because I wanted to add a persons gamertag (Xbox Live) to there profile on the forums with it hyperlinking to there profile www.xbox.com The trouble is it only works if there gamertag is one word, if it's two words it's broken. For example if a gamertag is: "Justin" the link works fine but if it's "Just In" it's broken.
Any help would be great, if you need to upload a file that cool, just let me know what file and where I can find it.
try entering it as Just%20In. The truth is that spaces in stuff like that cause problems all over the internet and should never be used. Its better to do something like JustIn or Just_In
Quote from: Garou on September 13, 2009, 07:00:48 AM
try entering it as Just%20In. The truth is that spaces in stuff like that cause problems all over the internet and should never be used. Its better to do something like JustIn or Just_In
The gamertag is something that is set, not to be changed. While entering %20 might work I can expect all my users to add it, since most people wouldn't know, and I'm not doing it manually. I know it can be done because another gaming forum has the same custom field and it works space or no space.
a space in a url will NEVER work. Some browsers are smart enough to convert the space to %20...
alternatively, you could modify the code to use html entities rather than straight text... not sure how much work would be involved though.
So I've figured it out this was the original URL code I had:
And this is the one that works if a space is present:
[url=http://live.xbox.com/en-US/profile/profile.aspx?pp=0&GamerTag=%1]
All I did was remove the "/" at the end before %1 and everything works fine. (http://live.xbox.com/en-US/profile/profile.aspx?pp=0&GamerTag=/%1)
Hi
I have been using this mod on a forum for sometime now. Works really great. I have a small question. Is it possible to have the values for a check box display in different colour. For example if the check box had a Yes and No value could Yes display as green text and No as red text
use BBC color tags...
Hi,
I have used this mod before in SMF ver. 1.1.5 and MOD ver. 3.15 with no problems at all.
NOW I have SMF-ver. 1.1.10 and MOD ver. 3.20 and have a problem..use it only for member registration.
When I have the setting "Only allow admins to edit field?" marked, it shows up as an field when a member register. BUT the data in the field wont be stored in the database..as it did before in the earlier version.
I don't want my members have the possibilty to edit this field afterwords.
.. I have attached a pic over my settings.
PLS can anyone help me with this.
Is there any way to set different custom fields for different membergroups? It does not appear so, but would it be difficult to add that functionality?
worthog.... no, that is not possible with the mod as designed... and doing so would involve a coding to add another field for each entry, including database read and writes as well as the selection... so, not a minor task.
Quote from: Deb on September 21, 2009, 11:33:58 AM
Hi,
I have used this mod before in SMF ver. 1.1.5 and MOD ver. 3.15 with no problems at all.
NOW I have SMF-ver. 1.1.10 and MOD ver. 3.20 and have a problem..use it only for member registration.
When I have the setting "Only allow admins to edit field?" marked, it shows up as an field when a member register. BUT the data in the field wont be stored in the database..as it did before in the earlier version.
I don't want my members have the possibilty to edit this field afterwords.
.. I have attached a pic over my settings.
PLS can anyone help me with this.
This behavior was changed in 3.20. You can revert it back by making this change:
Sources/CustomProfile.php
elseif ((!empty($modSettings['CP' . $i . '_edit']) || empty($modSettings['enable_CP' . $i . ''])) && isset($_POST['default_options'][$modSettings['CP' . $i . '_id']]))
unset($_POST['default_options'][$modSettings['CP' . $i . '_id']]);
// elseif ((!empty($modSettings['CP' . $i . '_edit']) || empty($modSettings['enable_CP' . $i . ''])) && isset($_POST['default_options'][$modSettings['CP' . $i . '_id']]))
// unset($_POST['default_options'][$modSettings['CP' . $i . '_id']]);
ummmm.... Sinan? maybe I misread it, but I think both of those code bits are the same
There are two slashes for each line at the beginning, commenting them out. ;)
@ SiNaN
Thank you so much for your help, now it works great as it supposed to do. :D
Quote from: Kindred on September 22, 2009, 12:49:23 AM
worthog.... no, that is not possible with the mod as designed... and doing so would involve a coding to add another field for each entry, including database read and writes as well as the selection... so, not a minor task.
OK, well thanks for the quick response. I will rethink my strategy.
LOL! I told you I might have misread it. I completely missed the comment //
Help!
I just installed this package and I loved it until I noticed that whatever info people have used to login, it didn't show on the profiles so I uninstalled it and installed it again. Now I get a fatal error message that goes something like this.
Fatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home4/lifemode/public_html/heavensculture/Sources/ModSettings.php:334) in /home4/lifemode/public_html/heavensculture/Sources/ModSettings.php on line 344
I looked through other posts to resolve this matter but I didn't know what to do with the modsettings.php file.
I was able to fix the error but for some reason, it is not allowing me to choose the "check box" and "selection box" and also, the info is not showing on the profiles upon registration, which makes filling out the info pointless.
Please help because I depend on this mod.
you seem to have installed the mod twice (hence the redeclare error)
It probably has other duplicate code which is interfering as well... you will have to go through the manual install instructions to find all of the places where themod edits code and make sure only one edit was made in each place.
(and FYI: Your original question has been answered in just about every mod thread on the board...)
Hello, I have same problem with one person who wrote here, and didn't get any answer:
QuoteI've set up two custom fields which appear on the registration screen as mandatory fields. This works fine, and the fields show up in the user's profile - but they're blank. The information doesn't get transferred from registration to profile.
What might I be doing wrong? I'm using SMF 1.1.10, and I had to install the mod manually.
I tried switching back to the default theme, which seems to be the answer to a lot of problems, but no joy.
So, after registration, smf_themes table is not being updated, and I can't see written informations on the person's profile. What might the problem be?
Wish you will reply soon, thanks a lot.
Thanks!
So how did you install it?
Quote from: Arantor on September 27, 2009, 03:52:26 PM
So how did you install it?
At first, I installed with package service, and it was working until some mods I installed. So, I saw that you are telling to install it manual under this topic. I deleted the mod and installed it manually, but it didn't work. These are mods I installed:
1.Count unread topics on index 1.1
2.Custom Action Mod 2.04
3.SMF Media Gallery 1.5.6
4.SMF Arcade 2.0.18
5.Users Online Today Mod 1.4.0
6.arcwdm_v2.3
If it was installed manually, likely that means one or more of the edits was missed, which is probably why it fails to work as intended.
I'm sure nothing is missing cause I reinstalled a few times carefully. Anyway, thanks for help.
By the way, I didn't solve the problem, continues. So, I'm waiting for somebody's help still.
Quote from: rahmetli61 on September 28, 2009, 07:07:16 PM
By the way, I didn't solve the problem, continues. So, I'm waiting for somebody's help still.
Are you using a text field, drop field, or what? I was just messing around with this, and I don't have it as mandatory for registration, but the text field I added works fine. I'd try to make it not mandatory just for the time being and see if filling it in after changes anything.
Quote from: Rhyme on September 28, 2009, 07:48:49 PM
Quote from: rahmetli61 on September 28, 2009, 07:07:16 PM
By the way, I didn't solve the problem, continues. So, I'm waiting for somebody's help still.
Are you using a text field, drop field, or what? I was just messing around with this, and I don't have it as mandatory for registration, but the text field I added works fine. I'd try to make it not mandatory just for the time being and see if filling it in after changes anything.
I use mandatory text fields. Why?
Just test it out please, if it works with out the mandatory fields it might help us to figure out what is causing the problem.
can this make certain fields a requirement?
Quote from: DaBrute on September 29, 2009, 05:59:42 PM
can this make certain fields a requirement?
Yes it can. When you go to use the mod you can choose whether or not you want it to be mandatory.
awesome!!! about to install!
after installing this and clicking on features and options it went blank index.php?action=featuresettings
I uninstalled and tried to click it again and now its a blankscreen.
So, what's in the server error log?
A blank screen means an error. Only the server error log will tell us where.
Quote from: Arantor on September 29, 2009, 08:23:09 PM
So, what's in the server error log?
A blank screen means an error. Only the server error log will tell us where.
where can i find this? I see form error
even my register area isn't working now..GOOD GRIEF. I should have left these mods alone
This mod also messed up my register error
2: require_once(/hsphere/local/home*****/****.com/forum/Sources/CustomProfile.php): failed to open stream: No such file or directory
File: /hsphere/local/home/****/*****.com/forum/Themes/default/Register.template.php (before sub template - eval?)
Line: 193
Quote from: DaBrute on September 29, 2009, 08:24:49 PM
where can i find this? I see form error
In your cPanel from your host.
This is what I have added
1. Ultimate Profile 0.9 [ Uninstall ] [ List Files ] [ Delete ]
2. Yarex 2 smiley set 2.0.0.1 [ Uninstall ] [ List Files ] [ Delete ]
3. Track IP on ip-adress.com 1.0 [ Uninstall ] [ List Files ] [ Delete ]
4. Restrict Email Providers on Registration 1.2 [ Uninstall ] [ List Files ] [ Delete ]
5. Aeva ~ Auto-Embed Video & Audio 6.9.101 [ Uninstall ] [ List Files ] [ Delete ]
6. Welcome Topic Mod 2.0.2 [ Uninstall ] [ List Files ] [ Delete ]
7. Floating Bar Mod 1.1 [ Uninstall ] [ List Files ] [ Delete ]
8. SMF Gallery Lite 2.0.8 [ Uninstall ] [ List Files ] [ Delete ]
9. AjaxChat Integration 3.2.1 [ Uninstall ] [ List Files ] [ Delete ]
10. Affiliates 1.4 [ Uninstall ] [ List Files ] [ Delete ]
11. Country Flags 1.0.3 [ Uninstall ] [ List Files ] [ Delete ]
12. Ad Managment 2.3.1 [ Uninstall ] [ List Files ] [ Delete ]
13. Trim Url 1.0.2 [ Uninstall ] [ List Files ] [ Delete ]
14. Twitter mod 1.5
Without examining every file in the source it's very hard to track down. You might want to ask your host about enabling the error log.
Quote from: Arantor on September 29, 2009, 08:53:22 PM
Without examining every file in the source it's very hard to track down. You might want to ask your host about enabling the error log.
i will look into it..this sucks...and i never did a back up..but it is the mod.
The mod makes quite a few changes. Without knowing exactly which change it is, or where the problem is actually occuring it's next to impossible to debug.
I'd ask your host about the error log.
i have it...i never turned it on...i will get back to you and thanks!
Im wondering after uninstalling can i somehow remove all the files for the database or something? Like a reversal, because i know even after removing a mod and deleting it, the files still remain if I happen to re-install it with the same settings.
Many mods do not remove their database settings, in case you reinstall them later. No database issue was the cause of your blank screen however, so you're fine to leave the database stuff alone.
this what i see so far
[Tue Sep 29 20:50:03 2009] [error] [client 98.218.145.247] File does not exist: /hsphere/local/home/*****/******.com/favicon.ico they have this down several times.
You can ignore that for the most part. A favicon.ico file is simply the little icon you get for websites that gets used in bookmarks in the browser.
Quote from: Arantor on September 29, 2009, 10:01:37 PM
You can ignore that for the most part. A favicon.ico file is simply the little icon you get for websites that gets used in bookmarks in the browser.
this is what the error shows.. can i paypal u or something to check out my site? i can give you access to it and even my cp and ftp. this is so important to me. I'm trying to learn as I go..but it's hard :(
Are there any other errors?
Quote from: Arantor on September 29, 2009, 10:12:50 PM
Are there any other errors?
well i installed the mod back and changed the default template and the register screen works.... but i ran the erro and it came up with this
[Tue Sep 29 21:06:46 2009] [error] [client 98.218.145.247] ModSecurity: Warning. Match of "rx (?:\\\\b(?:(?:i(?:nterplay|hdr|d3)|m(?:ovi|thd)|(?:ex|jf)if|f(?:lv|ws)|varg|cws)\\\\b|r(?:iff\\\\b|ar!B)|gif)|B(?:%pdf|\\\\.ra)\\\\b)" against "RESPONSE_BODY" required. [file "/hsphere/local/config/httpd2/modsecurity-core-rules/modsecurity_crs_50_outbound.conf"] [line "51"] [id "970903"] [msg "ASP/JSP source code leakage"] [severity "WARNING"] [hostname "*******.com"] [uri "/forum/index.php"] [unique_id "SsK9Nkj5qcIAAC4EFy0AAAAH"]
Argh, that's mod_security, bane of many app coders' lives.
You won't be able to use that mod without a complete rewrite AFAIK unless you can turn mod security off, but most hosts don't like you doing that.
With the mod installed back..the register worked fine, but i still get a blank screen when i click on my Features and Options section.
Quote from: Arantor on September 29, 2009, 10:19:38 PM
Argh, that's mod_security, bane of many app coders' lives.
You won't be able to use that mod without a complete rewrite AFAIK unless you can turn mod security off, but most hosts don't like you doing that.
they just did something to it so i can use that welcome topic mod. so its a mod rewrite issue? so should it be on or off to work with all mods?
Yes, because it's being blocked by mod_security.
It's not a mod_rewrite issue. mod_security ideally needs to be off, but I doubt your host will let you.
mind you... if it works on the default theme and not on your other theme(s), then that pretty much indicates that you did not fully complete the manual install into your custom theme(s)
it works with all my themes. so the mod security all host normally keep off correct?
Quote from: rahmetli61 on September 27, 2009, 03:19:43 PM
Hello, I have same problem with one person who wrote here, and didn't get any answer:
QuoteI've set up two custom fields which appear on the registration screen as mandatory fields. This works fine, and the fields show up in the user's profile - but they're blank. The information doesn't get transferred from registration to profile.
What might I be doing wrong? I'm using SMF 1.1.10, and I had to install the mod manually.
I tried switching back to the default theme, which seems to be the answer to a lot of problems, but no joy.
So, after registration, smf_themes table is not being updated, and I can't see written informations on the person's profile. What might the problem be?
Wish you will reply soon, thanks a lot.
Thanks!
This:
Quote from: [SiNaN] on September 22, 2009, 02:51:28 AM
Quote from: Deb on September 21, 2009, 11:33:58 AM
Hi,
I have used this mod before in SMF ver. 1.1.5 and MOD ver. 3.15 with no problems at all.
NOW I have SMF-ver. 1.1.10 and MOD ver. 3.20 and have a problem..use it only for member registration.
When I have the setting "Only allow admins to edit field?" marked, it shows up as an field when a member register. BUT the data in the field wont be stored in the database..as it did before in the earlier version.
I don't want my members have the possibilty to edit this field afterwords.
.. I have attached a pic over my settings.
PLS can anyone help me with this.
This behavior was changed in 3.20. You can revert it back by making this change:
Sources/CustomProfile.php
elseif ((!empty($modSettings['CP' . $i . '_edit']) || empty($modSettings['enable_CP' . $i . ''])) && isset($_POST['default_options'][$modSettings['CP' . $i . '_id']]))
unset($_POST['default_options'][$modSettings['CP' . $i . '_id']]);
// elseif ((!empty($modSettings['CP' . $i . '_edit']) || empty($modSettings['enable_CP' . $i . ''])) && isset($_POST['default_options'][$modSettings['CP' . $i . '_id']]))
// unset($_POST['default_options'][$modSettings['CP' . $i . '_id']]);
My webhost emailed me back and said.
Hello,
My suggestion would be to contact the developer of the mod and see if they can address the issue of executable code within their their response to users requests since removing the rule would allow for a known security risk to pass through our systems. I apologize for the inconvenience.
I've installed this in 1.1.10. It correctly adds the field to the registration page, but does not display in posts.
Attached are my settings.
Am I doing something wrong...or is this just something that does not work in 1.1.10?
Thanks!
PS. If it helps, here is a test post on my forum: http://www.chnetwork.org/forum/guidelines-orientation-and-technical-help/test-post/new/#new
You'll see that I have the field completed in my profile, but it's not showing in my post.
Thank you!
That likely means you have a custom Display.template.php in your theme which will need to be manually edited. If you go to the mod page, select 1.1.10 and 'Parse', it'll tell you the edits that get made to the default theme's Display.template.php file, which would have to be mirrored in your theme's file.
[30-Sep-2009 07:31:32] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /hsphere/local/home/****/******.com/forum/Sources/ModSettings.php on line 123
My host said this was the source of the blank screen.
Backup your working ModSettings.php file, reinstall the mod, attach the modified ModSettings.php file here, then restore the file - and I'll take a look at what broke it. Likely it clashes with another mod.
Quote from: Arantor on September 30, 2009, 08:43:38 AM
Backup your working ModSettings.php file, reinstall the mod, attach the modified ModSettings.php file here, then restore the file - and I'll take a look at what broke it. Likely it clashes with another mod.
well wouldn't it be the damaged file if I back it up? I will attach it when i get off work. lol sucks not having ftp at work., Thanks for your help!
I thought your forum was currently usable, thus the backup would be a known good file. If that's not the case, just attach it as-is and I'll look it over.
Quote from: Arantor on September 30, 2009, 08:49:10 AM
I thought your forum was currently usable, thus the backup would be a known good file. If that's not the case, just attach it as-is and I'll look it over.
not it is. i can't edit that certain section in my admin cp.
index.php?action=featuresettings this gives me the blank screen.
Then please just attach that file when you have the opportunity and I'll take a look.
Quote from: DaBrute on September 30, 2009, 09:00:22 AM
Quote from: Arantor on September 30, 2009, 08:49:10 AM
I thought your forum was currently usable, thus the backup would be a known good file. If that's not the case, just attach it as-is and I'll look it over.
not it is. i can't edit that certain section in my admin cp.
index.php?action=featuresettings this gives me the blank screen.
Do you have an FTP you're using? Because if you can't edit in the ACP, your next step would be going into the server itself through an FTP and editing the files there.
Rhyme: he already said he doesn't have FTP at work but will later on.
Quote from: Arantor on September 30, 2009, 09:36:17 AM
Rhyme: he already said he doesn't have FTP at work but will later on.
Well that's what happens when I enter in the middle of a conversation. Sorry XD
No worries - as and when DaBrute is able, he'll post the file and I'll take a look.
Quote from: thezkitten on June 09, 2009, 04:11:22 PM
ok, I was in the same boat as it seems everyone, but I figured it out
Thank you! That was a big help, and I got it done without crashing my forum. :D
Quote from: Arantor on September 30, 2009, 09:58:04 AM
No worries - as and when DaBrute is able, he'll post the file and I'll take a look.
im home..now what file should i post?
modsettings but my other profile was for the Features and Options=forum/index.php?action=featuresettings what file would that be?
Now my index
I do notice ultimate profile uses the same mod setting and the test failed when I tried to uninstall. Before I added custom mod, i had no problems doing so.
The error related to ModSettings.php - that's the first place to look. I note you've posted it, I'll take a look now - no need to post any further files for the moment.
EDIT: Try this version. You'll have to rename it back to ModSettings.php before uploading. Ultimate Profile kinda broke it.
Quote from: Arantor on September 30, 2009, 05:10:53 PM
The error related to ModSettings.php - that's the first place to look. I note you've posted it, I'll take a look now - no need to post any further files for the moment.
EDIT: Try this version. You'll have to rename it back to ModSettings.php before uploading. Ultimate Profile kinda broke it.
So download it like normal?
Yes. Then rename it back to ModSettings.php. Then upload it.
Quote from: Arantor on September 30, 2009, 05:20:38 PM
Yes. Then rename it back to ModSettings.php. Then upload it.
IT WORKED!!!!!!! I LOVE YOU!!!! What was the problem? Would this mod work since i have ultimate profile installed? THANKS!!!
There were three problems.
Two of them concerning Ultimate Profile (two instance of this):
'ultprofile' => 'ModifyUltProfileSettings'
'profile' => 'ModifyProfileSettings',
'profile' => 'ModifyProfileSettings',
Which should have been:
'ultprofile' => 'ModifyUltProfileSettings',
'profile' => 'ModifyProfileSettings',
And ModifyProfileSettings was listed twice.
Quote from: Arantor on September 30, 2009, 05:34:23 PM
There were three problems.
Two of them concerning Ultimate Profile (two instance of this):
'ultprofile' => 'ModifyUltProfileSettings'
'profile' => 'ModifyProfileSettings',
'profile' => 'ModifyProfileSettings',
Which should have been:
'ultprofile' => 'ModifyUltProfileSettings',
'profile' => 'ModifyProfileSettings',
And ModifyProfileSettings was listed twice.
THANKS MAN....how do you know all this stuff? TEACH ME MASTER!! LOL
Well, all I did was drop the file into my intranet and tried to run it. It told me where the errors were, then I just took a look.
If you want to learn to do something similar, grab a book on PHP (php.net itself isn't a bad site to visit for the manual actually) and have a read. Once you understand the basics, it will become clearer what everything is doing.
Quote from: Arantor on September 30, 2009, 05:51:05 PM
Well, all I did was drop the file into my intranet and tried to run it. It told me where the errors were, then I just took a look.
If you want to learn to do something similar, grab a book on PHP (php.net itself isn't a bad site to visit for the manual actually) and have a read. Once you understand the basics, it will become clearer what everything is doing.
cool!! thanks man! *dapz*
hi
1st time to try your mod
installed ok - but nothing happened??
I went to Features and Options?
am I leaving something out?
fyi =
v.1.1.10
english.utf8= default language
here are my other mods
1. FontandSizeDropdown_
2. Rename *Child Board* | S-Ace 1]
3. Custom Profile Field Mod
4. Custom Fields On Memberlist
(which does not work on my version - so i guess it is not really installed??
5. Display Name On Registration 1.8
6. Shiny Smiley Icons 1.0
7. Custom Board Sort 1.0.1
8. Anti-Bot Registration Puzzles 1.2
9. Cristalab Icon Set
I will browse your topic for idea(s)
ty
**********************
just found this on post 120 !
Quoteonce again, it would help if people would bother to READ previous posts in the thread.
so... for the twentieth time in this thread:
You are running your forum in English UTF-8. Mods only install into English. Therefore, you either need to add the text strings to your modifications.engliushutf8.php or switch your forum to English.
BUT
none of your edits seem to go INTO english files ! I checked
in fact = here is my post on the normal support forum
Quoteok
I found that mod and installed it
but, saw NO way to use it!
have already learned that other mods that I installed did not work, until I observed that they were modding English files (not the English.utf8 that I had as my Major language)
so i would always go in and tweak the utf8 files
but I do not see any 'language specific files in eh mod
might go back and change my language to 'plain' English
not sure what mods I hand tweaked (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsmileys%2Fsimple%2Fsad.gif&hash=7d3ac9fa88da5220ddbd50bf7b1bd57d3a933b84)
can you think of any other reason why this mod is not working?>
I go to the Features and Options page as instructed - but see nothing there to do???
so, as you can see - I AM aware of the utf8 issues ;D
will keep scanning your topic(s)
Quote from: Rumbaar on August 10, 2009, 01:17:52 AM
Quote from: steelsheen on August 06, 2009, 03:01:35 PMSame prob as Jimbo had. Under default it is english utf8, only option available, is this correct?
You only have english-utf8 under the language dropdown option in your server settings?
You would have gotten numerous installation errors when installing mods that needed the english only language files to install into?
see my post back around page 136 #2710
I do NOT have a plain english option
in fact ALL my options have utf8 tags at end
was also told - cannot revert to english only anyway
and , I never had ANY errors on installing mods
(although sometimes they did not work - so I hand edited the utf8 files
BUT as I said - there are NO English files in this mod
(I got it on Sep 30, 2009)
and it HAD a file called CustomProfile.english.php
and I searched all the other files in this mod, and could not find any reference to the term English
if your forums does not have an modifications.english.php and other ***.english.php files then you are going to have issues with EVERY MOD. Mods, in general, ONLY install in english (and once again, english UTF-8 is DIFFERENT from english)
You will have to take the manual instructions, find the changes to the ***.english.php files (usually modifications.english.php, but sometimes also others) and manually apply them to your englishutf8 files.
Quote from: Kindred on October 01, 2009, 12:27:12 AM
if your forums does not have an modifications.english.php and other ***.english.php files then you are going to have issues with EVERY MOD. Mods, in general, ONLY install in english (and once again, english UTF-8 is DIFFERENT from english)
You will have to take the manual instructions, find the changes to the ***.english.php files (usually modifications.english.php, but sometimes also others) and manually apply them to your englishutf8 files.
let me REPEAT my info
1. I have 8 mods = NEVER had ANY error/trouble because I use utf8
at worse, the mod simply 'did not work''
so, I made the edits by hand - ALL then worked JUST fine!
2, I also noted that the current release of this mod
HAD NO ENGLISH edits for me to EMULATE into utf8
so, now what ?
I installed the mod, which is working perfectly in the default theme. Nearly everyone on the forum uses the Reflection theme, though. What do I need to do to get it to work in the other theme? Reflection already has a CustomProfile.php and a CustomProfile.English.php so if that's what I need to add, would you please tell me what part of those files needs to be added, so I can add it to the current files?
Check out the package parser http://custom.simplemachines.org/mods/index.php?action=parse;mod=319;attach=88169;smf_version=1.1.10
Everywhere it says ./Themes/default/some file you will want to change ./Themes/your theme/some file. If the file doesn't exist in your theme then by default SMF should read it from the default core theme. If you still have issues you might want to copy the missing files from the default them to your custom theme.
Quote from: Garou on October 06, 2009, 11:12:18 AM
Check out the package parser http://custom.simplemachines.org/mods/index.php?action=parse;mod=319;attach=88169;smf_version=1.1.10
Everywhere it says ./Themes/default/some file you will want to change ./Themes/your theme/some file. If the file doesn't exist in your theme then by default SMF should read it from the default core theme. If you still have issues you might want to copy the missing files from the default them to your custom theme.
Fantastic - I'll give this a shot as soon as I get home! I appreciate the quick reply. :)
It seems the only thing I needed to do was copy display.template.php from the default theme into the theme we're using and it worked like magic.
Thanks tons! Awesome mod. :)
So I want a field on my register page, and I made it optional, and included it in profiles, but only admin can view and edit.
It shows the field, I typed in it, registered it, etc. However when I view it, it's blank, has no value in it. I can edit it and have a value, but won't process on register?
*bump* please help
*bump* maybe this is causing it?
Guest October 05, 2009, 07:14:50 AM
Apply Filter: Only show the error messages of this IP address 67.76.161.118 Apply Filter: Only show the error messages of this session f29fbd88f27e759544a0334c8759a905
Apply Filter: Only show the error messages of this URL http://www.detectorsparadise.com/index.php?action=register2
Apply Filter: Only show the errors with the same message
8: Undefined variable: memID
File: /home/fayt/public_html/Sources/Register.php
Line: 220
*bump* still bugged.
Well I just checked "memID" and its not used in this mod or in ./Sources/Register.php for 1.1.10.
Perhaps you using an older version of SMF or you have other mods that edit the file, or maybe removed from it in the past?
Well I am not 100% sure that error is connected to this mod or not. Everything else seems to work fine for the mod, just this one little bug persists.
Well that's what I was trying to say, I just didn't do it plainly enough I guess. :-[
The problem is cause by another mod that you either have or had on the site in the past (that didn't install properly). The problem is either in that mod itself, the breadcrumbs left behind from an uninstalled mod, or that it is conflicting with this one for some unknown reason.
To fix it, it should just be a matter of tracking down what mod it is and comparing files then modifying them as needed.
Hmm, but the only spot that is causing it, is saving the value by sending it to the database when someone registers. So where would that part be? file I mean.
I couldn't say for sure without knowing what other mods you have and possibly looking through your existing files. Personally I would start with checking through your Register.php for "memID". If it is in your file (as I said its not in a fresh copy of the file) it might help you to track down the mod that is causing the problem.
Hi all , this mod really looks great but the problem is i can not see any choice under "forum features " after i ve installed it . thatz why i couldnt use it . Please somebody help me asap . i m using 1.1.10
Quote from: ozcantekil on October 12, 2009, 09:38:29 AM
Hi all , this mod really looks great but the problem is i can not see any choice under "forum features " after i ve installed it . thatz why i couldnt use it . Please somebody help me asap . i m using 1.1.10
Do you mean you couldn't see it in Administration in order to name the field and have it show, or do you mean you couldn't see it on the profile in order to fill it in?
If you mean you didn't see it in Admin, you need to go to the main Features and Options page, then click on the tab that says CUSTOM PROFILE FIELDS (for mine, it's in all caps like that and is the third tab out of four).
If you mean you didn't see it as an option on the profile page, click on Forum Profile Information and it's on the main page, all the way at the very bottom.
i think , after i installed it when i click main features , then i should see an area named " Custom Fields etc." . the problem is , there isnt anything like this .
Using the default theme, you should see the tab here:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fkarynsplace.net%2Fimg%2FCustomFieldMod.png&hash=cf5b824c5fe0528b3acaef8fbf1dc4c364bba316)
thanks for your fast replys .
The problem was because of theme and language .
Now i can view the "Custom Profile Field" but when i create new field , i can not view it in registration form , at the begining i have create two fields as an example they were working but then i ve deleted them , and now i can not add any field anymore .
any comments ?
i am sorry , i am pretty newbie in forums as you can understand from my questions .
one more silly question ,
how can i search in a topic , for exp. this topic has hundreds of pages . it is impossible to scan whether somebody has faced with the same problem or not . so there should be a easy way
right ?
The quick search at the top of this page (while you're viewing the topic) will do just that.
Quote from: ozcantekil on October 12, 2009, 07:58:37 PM
thanks for your fast replys .
The problem was because of theme and language .
Now i can view the "Custom Profile Field" but when i create new field , i can not view it in registration form , at the begining i have create two fields as an example they were working but then i ve deleted them , and now i can not add any field anymore .
any comments ?
Do you no longer have the text link to add new fields, as below?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fkarynsplace.net%2Fimg%2FCustomFieldMod2.png&hash=1a7a76a041981d371dea14ca15e068417ea9ec4c)
i have , but when i add and save , nothing comes
by the way , i have tried to restore backup files which i ve back up right after fresh smf installation ,
do you think any problem related to DB ? i couldnt find any area in DB which look belongs to this MOD .
Quote from: ozcantekil on October 12, 2009, 08:36:03 PM
by the way , i have tried to restore backup files which i ve back up right after fresh smf installation ,
do you think any problem related to DB ? i couldnt find any area in DB which look belongs to this MOD .
I'm too new to this stuff to be of any further help to you. I hope someone else knows the answer for you. :)
thank you tough , i m sure u r doing ur best .
take care
anybody know where is it locates in Database ?
(It's been answered about 20 times...)
this mod stores information in the smf_themes table
i think you mean smf_settings . because the other 20 answer say so . : )
No. The entries as to what fields are what should be in smf_settings AFAIK, but the actual values for each user's answers are smf_themes. Slightly different in 2.0 though.
Hello,
I installed this mod yesterday.
The fields show up on the registration form, but do not show up in the member's profile, even thought that is enabled. Can anyone tell me why?
Thanks,
Mike
Does your theme have a custom Profile.template.php file?
Quote from: Arantor on October 14, 2009, 01:50:40 PM
Does your theme have a custom Profile.template.php file?
I use the default theme, and there is a profile.template.php file that was changed yesterday (I'm sure when I installed the mod).
Mike
Hmm.
Did you configure the fields to show up on the profile area? They don't generally IIRC.
Also, what other mods do you have?
Quote from: Arantor on October 14, 2009, 04:40:13 PM
Hmm.
Did you configure the fields to show up on the profile area? They don't generally IIRC.
Also, what other mods do you have?
Yes, I checked the "show in profile" check box for the fields.
The other mods I have:
Admin Notepad, Topics Filter, Copy Topics, Custom Board Sort, Simple Portal
Thanks
Hmm. Any errors in the error log?
I figured out what it the issue is. Seems like a bug to me, but maybe I don't understand it completely.
In Configuration,
The "Only Allow Admin To Edit Field" check box has to be unchecked.
There has to be a value for the "Text To Display Before Field" field
If either of the above is not true for a custom field, the value for the field entered at registration will not dosplay in the profile.
Thanks,
Mike
Using v1.1.10 which I installed yesterday. This is for a non-profit ... no IT pros working here ... just me on a volunteer basis. We would like to get a forum going but it will not be open to the general public ... members of the non-profit only.
I installed the Custom Profile Field Mod successfully (used the package manager) and added two fields (name and member id#) to member registration and made them "force input" so I could check eligibility before approving membership (I have registration set to "member approval"). I checked the "only allow admins to edit field" and "only allow admins to view field" thinking that the info would be visible to me in the Profile Information "summary" tab.
I then logged out as administrator and registered with a phony bunch of info. Everything worked as planned ... I was forced to enter a name and id# ... to complete registration.
Logged back in as administrator and went looking for the extra info but cannot find it anywhere. It's not in the Profile Info "summary" tab for the member I created. It's not in the Modify Profile "acct related settings" tab. The two fields are shown in the Modify Profile "forum profile info" tab but they are blank. (BTW ... I don't want this info to show on any page except one an admin can see ... users will have no need to relate real names to user names or know anyone elses member ID#) It's not shown in the "members awaiting approval" section, either. That just shows the username and e-mail address.
I'm using the default theme. And the only other mod I've installed is View_Only_Boards_1.2a
Any hints appreciated. I've spent an hour or so going thru 30 or so pages of this 138 page thread and am getting burned out. I am not a coder and my head is starting to hurt from reading some of this stuff. Important points are 1. added info needed to verify eligibility for memebership and 2. added info should only be viewable to administrator and of course 3. where is the added info being entered going?
I tried what KnowNothing said and went in and unchecked the "Only allow Admin to edit field" in both new fields and now the required info shows up in the Modify Profile > Forum Profile Info tab for the user. I guess the work around for now is to go in and manually delete that info for each member after I okay registration. Cumbersome. I see from searching this thread that version 2 will have this functionality built in. Will RC2 be stable enough to use live, do you think?
Well, this forum runs RC2 as you can tell, as are a number of the Charter members (since they get a preview of it), but RC2 public should be stable enough to do so.
In fact, RC1.2 (which is publicly available) is stable enough. I use it on my sites.
my problem is that i dont see custome fields bar in features and options... i have custom theme...and i think my mod settings is not good... my version is 1.1.10
in my attachment is mod settings... and i dont have PersonalMessage.template.php in custom theme what should i do?
If you don't have PersonalMessage.template.php in your custom theme, edit PersonalMessage.template.php in Themes/default instead.
If you have the admin options it's already in ModSettings.php IIRC.
yea but its not there, look at picture attachmant... somethings wrong:( should i just transfer php's that i dont have in custome? OR?
Ah, that's because your theme is missing some changes in some of the language strings. It should be generating errors in your forum error log, presumably because edits were made to Themes/default/Modifications.english.php that weren't made to your theme's Modifications.english.php file.
unfortunately i dont have modifications.english.php in custome theme/language... only settings.english.utf8.php..
i see the error... its:
Apply Filter: Only show the errors with the same message
Unable to load the 'CustomProfile.english-utf8' language file.
what am i suposed to do?
P.S. sorry 4 all the trouble.. im still learning:P
Copy CustomProfile.english.php to CustomProfile.english-utf8.php.
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>
Would this edit limit character length for all added fields if you have more than one? Say you set it at 8 ... would all added fields be limited to 8 characters?
I have two added fields but only want to set a character length limit for the 2nd one. I found the code mentioned on two lines (lines 30 and 88 in my file). I changed the one on line 88 thinking it would limit the 2nd field but it had no effect. Do I need to change both? If I change both, will it effect all added fields?
BTW, the code in my file doesn't exactly match the one Kindred posted. It doesn't have the 'max length'. It looks like this:
<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="50" value="', @$context['member']['options'][$modSettings['CP' . $i . '_id']], '" /></td>
I guess what I'm asking is how do I set a character size limit for a particular added field.
Thanks.
you can not set it on a per field basis... you would need to make the changes to both locations and it would affect all fields of that type.
Bummer. But thanks for the quick reply.
Quote from: J-Bird on August 22, 2009, 04:52:06 PM
There is the option for fields to be viewable only to admin, I would like to extend that view to Global Moderators as well. How can this be done?
Thanks!
Garou was able to assist me with the code changes successfully.
WTG Garou!!
In customprofile.php find
if ($modSettings['CP' . $i . '_view'] && !$context['user']['is_admin'])
and replace with
if ($modSettings['CP' . $i . '_view'] && (!allowedto('edit_news')))
Then make sure whatever membergroup you want to have access, you give them access to the task of "edit news".
This can be changed to work with any membergroup, and any task.
Dont forget that here are three instances of the line in the functions of that script...
function DisplayFieldsProfile()
function DisplayFieldPostsPictures()
function DisplayFieldPosts()
Depending on your exact needs you'll probably need to change it in all three.
The key is to tie it to a permission that you wouldn't give to just any user but you wouldn't mind allowing a few certain people to use. The one for the news was the one I thought fit that criteria best but you cant tie just about any permission that way.
I'm really stuck... I installed this (I have 1.1.10) but I cant find anywhere where you can actually add the custom profile feilds... Help!
Quote from: PurpleCrow on October 23, 2009, 11:48:07 AM
I'm really stuck... I installed this (I have 1.1.10) but I cant find anywhere where you can actually add the custom profile feilds... Help!
Are you using a custom theme or the default theme?
Custom theme - CS Classic
Quote from: PurpleCrow on October 23, 2009, 01:38:20 PM
Custom theme - CS Classic
That I can't help with, then, other than to say that if the Custom Profile Fields section doesn't show up under Features and Options in the Admin section, then go the mod link (http://mods.simplemachines.org/index.php?mod=319), parse it for 1.10.0, and then make the listed changes to the files that are in your custom theme. Change the files that start ./Themes/default/, as those are the ones that aren't being changed by the mod installation. If that doesn't work, one of the more knowledgeable folks can probably help. :)
After installation files seems ok (have changed), but I don't see the difference, same thing with other mods.
I use default theme. :o
@edit
It was because of different language. :P
Quote from: Kardell on October 27, 2009, 05:55:55 PM
After installation files seems ok (have changed), but I don't see the difference, same thing with other mods.
I use default theme. :o
Go to the main Features and Options page in Administration. There should be a tab that says CUSTOM PROFILE FIELDS (for mine, it's the third tab out of four). It should look like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fkarynsplace.net%2Fimg%2FCustomFieldMod.png&hash=cf5b824c5fe0528b3acaef8fbf1dc4c364bba316)
I agree, but if I change language this tab dissapears.
Thank you for your efforts :)
Quote from: Kardell on October 27, 2009, 06:33:53 PM
I agree, but if I change language this tab dissapears.
Thank you for your efforts :)
Ah, I certainly can't help with that. Good luck. :)
Hmm When you are changing languages do you mean just changing the languages in SMF or have you created a language file based on the original? Something like...
/Themes/default/languages/CustomProfile.your language.php
If you are converting the language file yourself how are you changing it?
For exapmple language string like this in CustomProfile.english.php...
$txt['cp_enable'] = 'Enable FIELDNAME';
would need to be changed in CustomProfile.spanish.php to...
$txt['cp_enable'] = 'Habilitar el CAMPO NOMBRE';
So Garou I just do switch to other original language downloaded from SMF website (default board language -> Server settings).
I see changes in profile and reg. form, but I cannot access this tab in options, so I have to toggle back to english everytime. Same thing with Ranks for time online mod.
:)
I'm not familiar with the other mod but with most any mod if it doesn't contain support for a given language then you with have to write the translation file yourself or find someone else that knows both languages well to write the file.
For this mod you will want to make a copy of the CustomProfile.english.php and rename the copy to, CustomProfile.your language.php. Open it up in notepad then for every line in the file that says something like...
$txt['tag'] = 'tag description;
The tag description would need to be changed to your language.
Once everything has been translated, drop your file in the /Themes/default/languages folder and it should work.
Hi,
I am new to SMF so please use small words in short sentences. ;)
I am running SMF 1.1.10 with the Default theme in English. I have installed the package and the admin panel tells me the install is fine and that I have the current version of the mod in place. However, I do not see the tab to configure the Mod in the Features and Options panel.
I see the Mod page does not list 1.1.10 as a compatible version, so I went through the listed files and found that the edits that are called for have already been made.
What am I missing? I am about cross-eyed from checking and double checking, so I am certain that whatever it is, will be painfully obvious in the end.
Thanks for helping a newb.
are you running English or English UTF-8 (which is different from English)
Quote from: Kindred on November 04, 2009, 09:27:20 PM
are you running English or English UTF-8 (which is different from English)
Woo hoo! You are my hero.
I am NOW running plain ol' English and all is well.
Thank you!
I installed 3.2 but It wil not show me the new tab under FEATURES & OPTIONS.
im using smf 1.1.10 and the default core theme.
and are you running in English? (hint english utf-8 is not english_
i assumed im runningn it in english. i never changed the language. how do i determine which one im running? and if im running the wrong english one, how do i change it to regular english?
Quote from: KnowNothing on October 14, 2009, 05:54:00 PM
I figured out what it the issue is. Seems like a bug to me, but maybe I don't understand it completely.
In Configuration,
The "Only Allow Admin To Edit Field" check box has to be unchecked.
There has to be a value for the "Text To Display Before Field" field
If either of the above is not true for a custom field, the value for the field entered at registration will not dosplay in the profile.
Thanks,
Mike
OK I had a similar issue to this and found that the fields where I had
Only allow admins to edit field? set then they would not be displayed in the profiles. This is on that I really need as I want to force people to use a real name and membership number on registration to make sure they have access to a members only forum. But I also want to make sure there real name is visible as this makes them more acountable when their real name appears on everypost. But if they are allowed to change it after they have registered they only become accountable to the moderators and not their peers which is what i want.
Had this work fine on the previous version this only seems to have happed when upgrading to 1.1.10
Any Ideas how to get round this.
Quote from: shane is my name on November 08, 2009, 09:52:15 PM
i assumed im runningn it in english. i never changed the language. how do i determine which one im running? and if im running the wrong english one, how do i change it to regular english?
You will find a dropdown box at Features and Options - Server Settings
thanks. i found it, yes mine was running in english utf 8.. whats is this for? should i just switch to regular english? whats the difference?
English UTF8 is for when the forum is running in UTF8 generally, pretty much essential if you're running a forum with multiple languages.
Quote from: drhamad on February 18, 2009, 01:48:57 PM
BINGO:
I've now figured out how to convert this mod's profile fields to 2.0 profile fields. The data is stored the same exact way. Therefore, all you need to do is change the variable in smf_themes.
Create the field in 2.0. DO NOT ENTER ANY DATA. Go into the database (using phpMyAdmin, or whatever your preferred method is), go into smf_themes and use this query:
UPDATE smf_themes
SET variable = "var1"
where variable = "var2"
Where var1 = the name of the field you just entered
and var2 = the name of the old (1.1) field.
THAT IS IT.
I think I'm missing something... because I cannot find the field I created in 2.0 RC2 over the smf_themes table, is it stored some other place?
Can't find it anywhere but maybe someone can tell me how to add a membergroup other than admin to the view in profile option....
I am looking in the DisplayFieldsProfile function, but not sure if thats where to start......
You mean to display more than one membergroup? There's a mod for that for 1.1.x on the mod site.
no I mean.......if you have 'Only allow admins to view field?' but I want one other membergroup to also view the custom field.
Ah, that's a bit more complex.
More than one membergroup? Is it a post count group?
No its a sort of 'members only' group that I personally add people to.....they have access to a lot more stuff than the average user...but no admin privileges...but have the need to see certain custom fields that the average user should not be privy to.
Using SSI.php I have normally just called up the user_info['groups'] but I don't think that will work in the CustomProfile.php file
$user_info is declared in Load.php which runs earlier so it should be doable if added to the list of global variables at the start of the function.
Yeah that works......
For any one who wants to do this....this is what I did
Modify the CustomProfile.php file in the Sources dir
Find:function DisplayFieldsProfile()
{
global $context, $modSettings;
and change to:
function DisplayFieldsProfile()
{
global $context, $modSettings, $user_info;
Then in the same function find:
if ($modSettings['CP' . $i . '_view'] && !$context['user']['is_admin'])
and replace with:
if ($modSettings['CP' . $i . '_view'] && !$context['user']['is_admin'] && !in_array(#, $user_info['groups']))
Of course replace '#' with the membergroup id you wish to view this field along with your admin.
:)
Thanks for the help Arantor and if you get a chance could you check my work!
First glance it looks right, certainly the syntax is right. If it works for you and doesn't have any side effects you can find, it's probably all you need to do.
There is also the work around that I posted on another forum and J-Bird re-posted here http://www.simplemachines.org/community/index.php?topic=79004.msg2322565#msg2322565.
Ideally a whole new permission should be created since many people want to allow groups other then the admin to be able view these fields. Since there wont be anymore updates to the mod, either of these will work as a quick fix/hack. The admin just needs to remember that they have implemented one of these workarounds and they don't put the wrong people in the groups that have access. :)
Using default theme on 1.1.10. Had this mod running good when I decided to upgrade to 2.0 RC2. Long story but I came back to 1.1.10. Did a restore of database and overwrote RC2 upgrade files with 1.1.10 upgrade files. Then re-installed mods. (Forum is now back to looking and acting how I want it.)
My three added profile fields are still there and working so no problem there. BUT .... I cannot access the custom profile page to add new fields or edit the ones I have. In Admin CP > features and options, there are five tabs:
1. Basic Features
2. Layout and options
3. Custom Profile Field
4. Karma (karma is disabled)
5. Custom Tab (links to the front page of the website this forum belongs to)
Clicking on any of the tabs except Custom Profile Field opens the appropriate page for that option. Clicking on Custom Profile Field always takes me back to the Basic Features page.
During the upgrading and downgrading I suspect the redirect got corrupted somehow. Any hints on where to look to get the page to open again?
Also, the default font for added fields seems to be bold. Any way to change that? Two of the extra fields I have added are on the registration page and are required to be filled in. I would like the requested info in bold but have added text that explains why I need that info. I would like that explaination to not be bold. Possible?
Thanks.
Bump.
I don't need to add any fields right now but will need to soon, I think. Implementing suggestions/requests at my relatively new forum will require new added fields and right now I can't.
Hi every one,
I just installed the mod and it seems to work fine.
Thank you very much for the mod.
I'd like to know how can we manualy extract data from custom fields on other parts of the website. I've looked for new fields in smf_members table but I haven't found any...
The fields are stored in the smf_themes table, one row per member per value.
Right !
Thank you very much
Does anyone have any ideas or suggestions on how to regain access to this mod so I can add and edit added profile fields? See my post above. Thanks.
Does anyone have any ideas about which file to look in for the instructions set that direct the custom profile fields setting page to open when you click Admin CP > Configuration > Features and Options > Custom Profile Fields? According to the parsing instructions the mod edits 7 files and adds 2 new ones.
Does anyone have any ideas about which instruction set directs the proper page to display?
Using 1.1.10 & default theme.
Any help appreciated. I an not a programmer or coder so not sure exactly what to look for. I am/was a carpenter. Retired. If you have any questions re: building anything feel free to ask.
Off hand I'd suggest that's done by the edits to ModSettings.php and/or Admin.php.
Quote from: gastan on November 21, 2009, 03:00:53 PM
Does anyone have any ideas about which file to look in for the instructions set that direct the custom profile fields setting page to open when you click Admin CP > Configuration > Features and Options > Custom Profile Fields? According to the parsing instructions the mod edits 7 files and adds 2 new ones.
Does anyone have any ideas about which instruction set directs the proper page to display?
Using 1.1.10 & default theme.
Any help appreciated. I an not a programmer or coder so not sure exactly what to look for. I am/was a carpenter. Retired. If you have any questions re: building anything feel free to ask.
ok,
is the "CustomProfile.php" file in the right spot? (./Sources/)
and is the "CustomProfile.english.php" also in the right spot? (./Themes/default/languages)
If they are, i'd check ModSettings (./Sources/ModSettings.php)
where i'd specificly check in that file,-
find this--
// Load up all the tabs...
$context['admin_tabs'] = array(
'title' => &$txt['modSettings_title'],
'help' => 'modsettings',
'description' => $txt['smf3'],
'tabs' => array(
make sure that above, you have this
loadLanguage('CustomProfile');
and under, in the array (somewhere) you have the custom profile array, mine's located just above the karma array
'profile' => array(
'title' => $txt['cp_cpfields'],
'href' => $scripturl . '?action=featuresettings;sa=profile;sesc=' . $context['session_id'],
),
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
'is_last' => true,
),
also, make sure that somewhere in the subactions arrays (there's two, they look like this)
$subActions = array(
you have a line in it that says this
'profile' => 'ModifyProfileSettings',
you'll also want to make sure that your function is there, (mine is just above the karma function)
function ModifyProfileSettings()
{
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
CustomFieldSettings();
}
if you're missing any of them, or if all these are correct, you can go to the mod listing itself (http://custom.simplemachines.org/mods/index.php?mod=319)
and just under the download link is an option to parse the info, select the 1.1.10 and click parse, that will show you what files need to be altered, and what/where the alterations need to go..
hope that helped!
Thank you both for the pointer. Especially you, thezkitten, for telling me exactly what to look for.
Thank youn.
I was missing the 'profile' => 'ModifyProfileSettings', line in both places. Everything is working just fine now. ;D ;D ;D
glad to help :)
Hi, I just installed the mod over 1.1.6 smf and I wanted to work with this database stored custom data with another program.
My question is, is there any possibility to replace the data over smf_themes fields and add to smf_members? like MSN/ICQ entries? thanks
Not without a total rewrite of the mod, and taking your forum offline while it rebuilds the members table every time you change a field.
I will also note that you need to upgrade your forum ASAP. 1.1.6 is 4 versions old and has KNOWN security issues.
Thanks for the answers, I was wondering why these fields weren't on members list table. With the actualization, we're working in it, testing in another test forum with the same mods to 1.1.6 to 1.1.10, no problems. So we will get update this week. Thanks again
they are not in the memberlist table because it's much harder to add things on the fly to that table. SMF has built in capability to add fields and values to the themes tale and to track those on a per user basis.
I am having a basic problem. I don't get the Custom Profile Fields option in Admin CP > Configuration > Features and Options.
I'm on the 1.1.10 release using English but with a different Theme. I'm using the Half-Life theme. I reverted to the Default theme but that didn't help.
I've checked the Server Settings and my language is set to English. (In fact I don't even have a UTF8 option.)
Thanks for any help!
Does this mod has support for smf ver1.1.11? When I install it, i got this msg when i go to Features and Options: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/myscoote/public_html/Sources/ModSettings.php on line 122
tnx
Quote from: Pupo on December 08, 2009, 01:52:33 PM
Does this mod has support for smf ver1.1.11? When I install it, i got this msg when i go to Features and Options: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/myscoote/public_html/Sources/ModSettings.php on line 122
tnx
I fix this, Install before "Ultimate profile" mod and in modsetting in string
'ultprofile' => 'ModifyUltProfileSettings'
missing end point. Ofc should be
'ultprofile' => 'ModifyUltProfileSettings',
Now, I have new problem :( ( probably because I tried several times to install the mod) Finally, I have to manually insert mod, and works, but I have two fields in profile page :( and one field under avatar :)
Quote from: winrules on March 19, 2008, 03:33:16 PM
Quote from: res6cue on March 19, 2008, 09:49:37 AM
Quote from: Kindred on March 18, 2008, 09:30:26 PM
meh... at this point, I wouldn't worry about this mod... :) SMF 2.0 has custom fields built in, standard.
The real question now becomes: Will there be a way for us to import all the existing data from this mod into the SMF 2.0 format? This is going to be critical for my forum to keep this data!
Yes. To do this, after upgrading to 2.0 and enabling advanced profile fields, create a new field when the exact same name as the field ID (not the name, should be something like "CP1") of the field you want to input. After creating the field you can then rename the field to what you want. For example if I have a field using this mod on SMF 1.1 called "Favorite Food" with a field ID of "CP3", I would create a new field in SMF 2.0 called "CP3", hit save, then modify the field that I just created and change the name to "Favorite Food".
Quote from: Kindred on March 19, 2008, 05:36:58 PM
I posted this a month ago... :)
BTW: To convert this to the standard 2.0 custom fields...
UPDATE `smf_themes` SET `variable` = '*NewFieldName*' WHERE `variable` = 'CP1'; (or CP2, or CP2, etc)
I would like to import the data from the custom profile fields mod into the new 2.0 profile fields feature.
I tried what winrules explained in the above quote but it didn't work.
Kindred, I would like to try what you say in your quote above but I'm not sure I understand it.
I looked in smf_themes table and the data is there for those members who filled it in, but there is no mention of CP1, CP2 fields etc. Instead, the variables seem to be called things like "text_fav_food" or "text_fav_movie" so will running the command in your quote work for me?
What happens if you had CP fields with selection boxes, is all that saved with the options for the selections boxes or only the options that members chose?
Sorry but I'm a bit confused with this.
~thanks
perplexed,
The SMF 2.0 fields use the named fields... this mod's settings use CP1, CP2, etc... (at least they did when I used the mod) see this bit where I say *NewFieldName*... by that I mean put in the new field name
thanks kindred, but I don't know which of the old CP fields would match up as when I look in phpmyadmin all I see is "text_fav_whatever" as the variable so I don't know what CP number that used to be, in order to match it up in 2.0. so if I for example entered "text_fav_movie" in the newfieldname where variable = CP1, then CP1 might not have been fav movie so I would get the fields back but the data would be in all the wrong fields I think?
Shouldn't I be able to see "CP1, CP2" etc in phpmyadmin when looking at the theme table instead of just text names?
yes, you should be able to see the CP1, etc added from this mod.
Read and searched through the thread, trying to see if this was possible, but haven't been able to get it to work.
What I'm trying to do: Use a check box field as an option to enable code on *any page* not just profile pages. (ie: load the custom profile setting on index.template.php)
I created a new check box field, it works great, it is in the database properly - everything there is good. My mod works, I just need to load it on the rest of my pages.
This is what I'm trying to put in my theme's index.template.php
if (!$context['member']['options']['mycheckboxfield']=='1')
{
run script
}
The error I receive is
8: Undefined index: member
File: myurl.net/web/public/smf/Themes/default/TPortal.template.php (tp_above sub template - eval?)
I'm running tiny portal, but I can tell that I'm trying to call to search $context['member']['options'] before it has been loaded.
I've tried adding the following code (before the call above) to index.template.php and SSI.php, but it didn't help any
require_once($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);
I got that from This post (http://www.simplemachines.org/community/index.php?topic=79004.msg539409#msg539409). That post also referenced there would be a way to do it with SSI later? If there was a way added, I don't know how to utilize the SSI so that is no help right now for me.
Is what I'm trying to do possible?
I would just like a user-configurable check box that enables/disables a script on my page.
Quote from: Kindred on December 12, 2009, 10:10:57 PM
yes, you should be able to see the CP1, etc added from this mod.
Ok I looked at more entries. I only looked at the first 500 and they all had names rather than CP1, CP2 etc, but after I looked at a few thousand entries the CP field names started to appear.
I've worked out what most of them should be but I can't get the data into the fields now.
I created a new field in features and options > profile fields using the instructions given above by winrules. I called it CP1 then saved it, then modified it to the correct display name. Then I ran the sql code that you posted in the post quoted above. I just have an empty field with no data in it.
I think I'm doing something wrong but I don't know what.
Quote from: quiteperplexed on December 13, 2009, 07:37:04 AM
Quote from: Kindred on December 12, 2009, 10:10:57 PM
yes, you should be able to see the CP1, etc added from this mod.
Ok I looked at more entries. I only looked at the first 500 and they all had names rather than CP1, CP2 etc, but after I looked at a few thousand entries the CP field names started to appear.
I've worked out what most of them should be but I can't get the data into the fields now.
I created a new field in features and options > profile fields using the instructions given above by winrules. I called it CP1 then saved it, then modified it to the correct display name. Then I ran the sql code that you posted in the post quoted above. I just have an empty field with no data in it.
I think I'm doing something wrong but I don't know what.
I still cannot get this to display the data from the old CP fields using the instructions above. I don't know where I'm going wrong but it's very frustrating.
I can get it to change the field names but I don't get any of the data displayed from the old fields.
Looking through the themes table, I have variables called CP1, CP2, etc but also variables with the old name of the field. I think it is called CP1, CP2, etc if the member has not filled any data in the field, but for those members who did fill in data in the old fields, they have field names like "text_fav_movie" instead of "CP1"
Is that right?
Anyway, I can change the field name using the sql code above but it does not display the data entered in the fields.
no... if a user has not entered data, then there will not be any entry at all...
but for the people who have entered data, that is not displaying either. In phpmyadmin some of the vaiables (with data) are called for example "text_fav_movie" and the same fields without data are called "CP1" so I have tried it both ways using "text_fav_movie" as the old field name and using "CP1" as the old field name (testing it with different fields not the same one!) and I still get no data displayed in the fields for members who have entered it. The field name has changed looking in phpmyadmin and the data is in the field but it won't display in the forum.
here's a couple of examples
for the field - fav browser- called CP9 and "text_favorite_browser"
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi279.photobucket.com%2Falbums%2Fkk151%2Fstillperplexed%2FtestforumCPFproblembrowserfield.png&hash=f3a307e21c02b18bbd09b5c0d7b16b5106c1f2a9)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi279.photobucket.com%2Falbums%2Fkk151%2Fstillperplexed%2FtestforumCPFproblembrowserfield2.png&hash=ddd587343e21a939afa737af3a6d89c03865b664)
and did you set up the new fields in your smf 2.0 installation? What, specifically are the new field names?
I set up the new field in 2.0 and called it for example CP1 as per the instructions in winrules' post. Saved it. Then modified it and gave it the original name. That created a field but with no data in the field.
Then I tried it your way with another field.
Quote from: Kindred on March 19, 2008, 05:36:58 PM
I posted this a month ago... :)
BTW: To convert this to the standard 2.0 custom fields...
UPDATE `smf_themes` SET `variable` = '*NewFieldName*' WHERE `variable` = 'CP1'; (or CP2, or CP2, etc)
tried it with new field name being 'FavFilm' when old field name was CP14, still no data in the field even if member had it previously.
Also tried it again with a different field, giving it an entirely new name for the old CP field.
Also tried with another field calling it 'text_fav_whatever' ie the name in the variable and old CP number.
I don't know where I'm going wrong but it might be creating new empty fields instead of overriding what's there?
Sorry if this was asked before, but 142 pages are a bit longer than my available time... :-[
I have a problem.
Actually, on the Forum Profile Information page, the Enters in the Text Area fields are recognised, while they aren't on the main Profile Screen.
I'm using SMF 1.1.11 with Hungarian-UTF-8 coding.
What theme are you using? If your theme has a custom Display.template.php file you will likely have to edit it yourself.
That could be possible. I use BlackDay.
Thanks... I hope I can find the relevant edits in the xmls...
If you go to the mod's page, you can select your version and press Parse and it'll tell you all the edits needed.
Can this be used in 1.1.11 yet?
Quote from: quiteperplexed on December 14, 2009, 10:02:21 AM
I set up the new field in 2.0 and called it for example CP1 as per the instructions in winrules' post. Saved it. Then modified it and gave it the original name. That created a field but with no data in the field.
Then I tried it your way with another field.
Quote from: Kindred on March 19, 2008, 05:36:58 PM
I posted this a month ago... :)
BTW: To convert this to the standard 2.0 custom fields...
UPDATE `smf_themes` SET `variable` = '*NewFieldName*' WHERE `variable` = 'CP1'; (or CP2, or CP2, etc)
tried it with new field name being 'FavFilm' when old field name was CP14, still no data in the field even if member had it previously.
Also tried it again with a different field, giving it an entirely new name for the old CP field.
Also tried with another field calling it 'text_fav_whatever' ie the name in the variable and old CP number.
I don't know where I'm going wrong but it might be creating new empty fields instead of overriding what's there?
Can anyone help - I don't know what I'm doing wrong but it still won't display the field data.
Quote from: nza2k on November 16, 2009, 08:49:59 PM
I'd like to know how can we manualy extract data from custom fields on other parts of the website. I've looked for new fields in smf_members table but I haven't found any...
So I've been trying to do this as well; although I'm not sure
how to manually extract the data. I tried the following below (from my post earlier)
Quote from: BLueSS on December 13, 2009, 03:06:33 AM
Read and searched through the thread, trying to see if this was possible, but haven't been able to get it to work.
What I'm trying to do: Use a check box field as an option to enable code on *any page* not just profile pages. (ie: load the custom profile setting on index.template.php)
I created a new check box field, it works great, it is in the database properly - everything there is good. My mod works, I just need to load it on the rest of my pages.
This is what I'm trying to put in my theme's index.template.php
if (!$context['member']['options']['mycheckboxfield']=='1')
{
run script
}
The error I receive is
8: Undefined index: member
File: myurl.net/web/public/smf/Themes/default/TPortal.template.php (tp_above sub template - eval?)
I'm running tiny portal, but I can tell that I'm trying to call to search $context['member']['options'] before it has been loaded.
I've tried adding the following code (before the call above) to index.template.php and SSI.php, but it didn't help any
require_once($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);
I got that from This post (http://www.simplemachines.org/community/index.php?topic=79004.msg539409#msg539409). That post also referenced there would be a way to do it with SSI later? If there was a way added, I don't know how to utilize the SSI so that is no help right now for me.
Is what I'm trying to do possible?
I would just like a user-configurable check box that enables/disables a script on my page.
Is there a simple way to just call the custom field per user in the database like nza2k was bringing up?
Can this be used in 1.1.11 yet?
It probably works on 1.1.11 already, have a read of the past page or so, no doubt someone will have documented it.
Quote from: The Grinch on December 22, 2009, 12:53:52 PM
It probably works on 1.1.11 already, have a read of the past page or so, no doubt someone will have documented it.
While yes, he could have read the previous; your post doesn't help anyone who *has* read the thread and searched, but only sees a user who had trouble with the mod.
In addition, searching for "1.1.11" in this topic only gets the last post, not all of them.
There isn't any definite answer yet.
Guess I'll have to test it then.
I am using this mod on a site with 1.1.9 and quite like it, am now working on a new site with 2.0 RC2, am wondering if there are any plans in the works for a version of Custom Profiles that will work with RC2?
jayr
Quote from: jay.clark on December 25, 2009, 02:17:34 PM
I am using this mod on a site with 1.1.9 and quite like it, am now working on a new site with 2.0 RC2, am wondering if there are any plans in the works for a version of Custom Profiles that will work with RC2?
No because the functionality is part of 2.0 out of the box. It's a little different, but it's a core feature nonetheless, so no point making a mod for it.
Quote from: Arantor on December 25, 2009, 04:06:59 PM
o because the functionality is part of 2.0 out of the box. It's a little different, but it's a core feature nonetheless, so no point making a mod for it.
I have been trying to use the built in functionality of 2.0, but it seems to lack the ability to do check boxes and radio buttons, which I think was in the Custom Profile Field Mod.
I put in ultimate profile but it seems aimed at letting the user do things to their individual profile.
I have in mind a rather complex profile for my system and need the check boxes and radio buttons, also would like to make them part of registration as a way of pre-screening signups
Well... radio buttons can be emulated using dropdowns; the same result is there, that you have a required choice of a preset list. Check boxes... fairly sure you can do but haven't tried it in a long time.
Its all there jay.clark if you look.
When you add a profile field in 2.0 RC2 then you scroll down to "Input Settings", under "Field Type:" you have the choice of Text, Large Text, Select, Radio, and Check boxes once you choose one it pops up the fields to fill out for that type of field. There is also an option to show and require on registration.
I just checked :)
Quote from: Garou on December 28, 2009, 08:03:33 AM
When you add a profile field in 2.0 RC2 then you scroll down to "Input Settings", under "Field Type:" you have the choice of Text, Large Text, Select, Radio, and Check boxes once you choose one it pops up the fields to fill out for that type of field. There is also an option to show and require on registration.
First of all let me apologize for not poking around more to discover the pull down choices.
I found them and radio buttons work as advertised, however when I select check boxes, I see a single box, and I can check it, however there is no place to enter text, and there is no option shown for adding more boxes as there is in the radio buttons mode.
Am I just being dumb and/or lazy again?
jayr
The Checkbox feature as they have designed it is a simple true/false or actually yes/no designation. If you check the box in the admin area it will automatically be checked for the user, if not the vice versa. You would enter any relevant text in the "Name" and "Description" areas then the user would check or un-check the box based on the criteria listed in the description. What Text is displayed next to the user input on the view profile page would be entered in "Show Enclosed Within Text (Optional):"
If you're using an older version of Custom Profile Field mod, and upgrading to SMF 2, then consider this:
All your data they put inside the fields is in the smf_themes table, with the "variable" as your field name (in my case, "Biography")
The data in the smf_custom_fields table is the list of what custom fields you have. 'col_name' in SMF2 may not match 'variable' in your smf_themes table.
When I made the fields with the same name in SMF 2, it added "cust_" and a bit to the col_name. This was my fix:
UPDATE `thewes8_DraconityDB3`.`smf_custom_fields` SET `col_name` = 'Biography' WHERE `smf_custom_fields`.`col_name` = 'cust_Biog' LIMIT 1 ;
Quote from: Garou on December 28, 2009, 11:18:02 AM
The Checkbox feature as they have designed it is a simple true/false or actually yes/no designation.
I was finally able to make it work as you describe, however it does not do what I want it to do.
Basicly I am looking for setup functionality similar to the radio buttons, on registration or when they edit their profile I want the user to see either a standard pull down, or a table of check boxes that they can select or deselect.
In use when someone checks the user profile they would see an "Interests" listing that contained all of the items that the user had checked during registration or modification.
I tried using it with my 1.1.11 and it does not work. :( Are there any other ways to create profile fields? I wish it was default...LOL.
it is default, in smf 2.0
I made a post earlier (http://www.simplemachines.org/community/index.php?topic=79004.msg2402652#msg2402652)
What I'm trying to do: Use a check box field as an option to enable code on *any page* not just profile pages. (ie: load the custom profile setting on index.template.php)
Is there any way of doing this? My post had previous mentions of what I tried/better explanation.
Quote from: LBizGrl on December 22, 2009, 12:30:11 PM
Can this be used in 1.1.11 yet?
Yes.. regarding this post and your other on last page.
Just go to mod page and under the download link select 1.1.11 and bring up manual install. Do the modsettings.php file yourself, reupload it and you should be good to go. If not still. Make sure it did not double up on code snips from the install itself.
so basically what you have to do is to edit that modsettings file.. then install package. it will let you then. But then you might have an error when u visit "features and options" tab. If thats the case re-download the modsettings file after install also. then open it up and check to see if doubles had entered around line 350 or 340.
Just did it and works fine. Need further assistance let us know. Also might have to edit the install xml file as well to set the intall to 1.1.11 inside the xml. (before upload and install step 1 here i posted)
I have just done a manual install for this mod on version 1.1.11 and when I go to the features and options page in the admin section I get the following error:
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/liveforf/public_html/grassroots/Sources/ModSettings.php on line 184
Any ideas??
looks like you either mis-copied some code or put the code in a place it does not belong.
look at line 184 and the previous 4-5 lines... I suspect that you are missing an echo statement or a closing semicolon or quote.
Thanks for your help, I re-done the whole modsettings file and it worked so must have done it wrong the first time, cheers.
Is it possible to require a certain text be entered into a field?
I'll use this as an example;
If, upon registration, there was a description that said, "Type 'cookies' in the field".
Would it be possible, to have it so that in order to continue with the registration, the user must type "cookies" into the field?
I know it's possible to have required fields, but can we have required information inside of the required fields?
no, that is not what this mod is for... there are other mods that do just that
hello,
i love this mod.
but i have one question. how about adding a custom profile field in the registration page such as an option for the user to upload its picture? or a required field to upload his/her photos during registration?
thanks.
Nobody has commented on this yet, so repost.
I made a post earlier (http://www.simplemachines.org/community/index.php?topic=79004.msg2402652#msg2402652)
What I'm trying to do: Use a check box field as an option to enable code on *any page* not just profile pages. (ie: load the custom profile setting on index.template.php)
Is there any way of doing this? My post had previous mentions of what I tried/better explanation.
It may be, really really depends on what you're trying to do, especially as there may be a better way of doing it.
Using version 1.1.11 with default theme.
Is it possible to create a field with two check boxes and force a choice between them?
What I would like to do is add a question to the registration form and force people to tick either a yes or a no box -- just like they are forced to tick the "I Agree" box at the bottom of the registration page.
I have already added two text fields to the registration page that require input but am finding the check box and selection box choices confusing.
Thanks.
no, I do not believe that is possible.
Although, you could maybe simulate that by using 2 radio buttons...
This mod is great, but it doesn't work on my 1.11.11. I installed it and the custom fields are displayed everywhere except in posts even though I should be able to see the custom profile under the user count. What is wrong? I am using a different template than the default one so might that be what causes the problem? :'(
yup... you will have to manually add the mod changes to your custom theme.
I'm running 1.1.11 and tried to install this mod and this is the error I get how do I fix it to install this mod?
I'm also running TinyPortal if this has something to do with it.
Installing this package will perform the following actions: Type Action Description
1. Execute Modification ./Sources/ModSettings.php Test failed
2. Execute Modification /home/users/web/b611/sl.lakestcl/public_html/smf/Themes/default/Profile.template.php Test successful
3. Execute Modification /home/users/web/b611/sl.lakestcl/public_html/smf/Themes/default/Display.template.php Test successful
4. Execute Modification /home/users/web/b611/sl.lakestcl/public_html/smf/Themes/default/PersonalMessage.template.php Test successful
5. Execute Modification /home/users/web/b611/sl.lakestcl/public_html/smf/Themes/default/Register.template.php Test successful
6. Execute Modification ./Sources/Register.php Test successful
7. Execute Modification ./Sources/Profile.php Test successful
8. Extract File ./Sources/CustomProfile.php
9. Extract File /home/users/web/b611/sl.lakestcl/public_html/smf/Themes/default/languages/CustomProfile.english.php
that means that you will have to manually apply the mod changes to the file(s) which failed
Quote from: Kindred on February 09, 2010, 12:14:29 PM
that means that you will have to manually apply the mod changes to the file(s) which failed
Well that is outta my capabilities...I'm not good with code.
This is the most important mod I have on my forum. It was working fine until ?? ?? All of a sudden, as I was showing someone step by step how to register, I learned that it was not working anymore. Don't know when it stopped (haven't had anyone register in 7-14 days) but I suspect it was when I upgraded to version 1.1.11.
I have 3 added fields that must be completed. "Force input" is selected for all 3 fields. The 3 fields are still on the registration page and they must still be filled in before the registration will go thru. But when I go to the registrants profile page to check the info (so I can verify it before approval) the 3 fields are there but they are empty. No information.
I used package manager to uninstall the mod. It said that ./Sources/ModSettings.php test failed. I uninstalled anyway. Then I used package manager to re-install the mod. ModSettings.php failed test again. I re-installed anyway.
Then I got the parse info and checked the file and everything matches a manual install except where it says:
Find:
);
// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];
Replace with:
'profile' => 'ModifyProfileSettings',
);
// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];
My file says:
);
$subActions['custom'] = 'ModifyCustomTabSettings';
// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];
There are 2 places where the $subActions['custom'] = 'ModifyCustomTabSettings'; line is after the ); in the way of where parse instructions say to install new code. I tried adding the correct code after it in both places but the mod still didn't work. And afterwards I could not access Admin > Features and Options. Replaced the saved backup file and can get back into "Features and Options" but mod still does not work.
Anyone able to help, please. I'm pretty good at following instructions but having code in the file that the parsing instructions doesn't show is throwing me off. The parse instructions say to put the new code before the ); but then that leaves the ModifyCustomTabs code in there when the parse instructions don't show it. Should I add another ); after the ModifyCustomTabs code line and then the 'profile' => 'ModifyProfileSettings', code and than another ); ? I tried adding the 'profile' => 'ModifyProfileSettings', code before the ); and left the ModifyCustomTabs code where it was but that didn't work, either. ??
Oh yeah, I do have a customs tab mod installed and it is working fine (but it was installed long before Custom Profile Field stopped working correctly). Using default theme.
bump
After installing ir normally and even by hand It still is not working with version 1.1.11
It creates a tab in the Features and Options but it does not have a name nor does it have anything to modify when clicked on (no tab in default theme)
This was off a fresh install only addition was the theme
I would like to get this working proper, please pm me if anyone has a fix
images below
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.roflegion.org%2Ftrucker%2Fdefual.jpg&hash=30a85cd85a7b84d9a10223a020624199d63b503e)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.roflegion.org%2Ftrucker%2Fkanitab.jpg&hash=b36cf6c669d80c891969598c04fc5de21dfcd432)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.roflegion.org%2Ftrucker%2Fkanifeatures.jpg&hash=b16ba3b5ff1a044a2c28988dba25f6788d36f00d)
i'm having some issues with the 1.1.11 upgrade, and while working on the test forum i set up to make sure everything would work, i ran into the same problem!- the custom field tab disappeared!
what worked (at least it's the thing that I think did it), was copying all the info (minus the <?php and ?>) from the
CustomProfile.english.php
to the end of
ModSettings.english.php
(before the ?>)
you can find them in /Themes/default/languages
like i said, i think that's what worked, but it's about 100 steps behind what i'm working on right now, so i'm not totally sure.
copying the info over won't harm anything, just make sure to add, don't copy over!
:)
Hi All,
Sorry to seem naive and all but i have installed this mod and am unable to find the option where it has been enabled.
It has been installed successfully on my website. However i am unable to find the option under Features and Options.
Advise where to activate it ...
Under Admin, go to "Features and Options" and choose Custom Profile Fields.
That'll be .../index.php?action=featuresettings;sa=profile
Once you add a field, you can enable it and change its settings, and it will show where you've told it to show up.
please note: Mods install in the default theme and English only. (English utf-8 is not the same as English)
If you are not running in English then the language strings may not be displaying...
if you are using a custom theme, it may require you to manually make the changes in order for the mod to work
Quote from: AngelinaBelle on February 28, 2010, 09:45:05 PM
Under Admin, go to "Features and Options" and choose Custom Profile Fields.
That'll be .../index.php?action=featuresettings;sa=profile
Once you add a field, you can enable it and change its settings, and it will show where you've told it to show up.
It dosent show the " custom profile field " tab in my profile.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.concepteducation.com%2Fimages%2F123.bmp&hash=bd53943a179a89981ca94fafe8866ae6763671ae)
Please let me know what i am doing wrong. I thank you for your advise.
Quote from: Kindred on February 28, 2010, 10:19:11 PM
please note: Mods install in the default theme and English only. (English utf-8 is not the same as English)
If you are not running in English then the language strings may not be displaying...
if you are using a custom theme, it may require you to manually make the changes in order for the mod to work
Quote from: Kindred on February 28, 2010, 10:19:11 PM
please note: Mods install in the default theme and English only. (English utf-8 is not the same as English)
If you are not running in English then the language strings may not be displaying...
if you are using a custom theme, it may require you to manually make the changes in order for the mod to work
Mods Installed in Default theme only. I have not installed any other theme (Core Theme) and the language is set to English Only. Still no success. Can any one tell me how it is supposed to look like. May be with a screenshot. Again the help is appreciated.
This was an important mod for me in 1.1.11 and now I'm on 2.0 RC2 and it's not working :(
There is built-in functionality in SMF 2.0 RC2 for additional profile fields. My question is: Where in the DB does this mod place all the fields, and has anyone made a script that would bring it to the 2.0 db table (smf_custom_fields)? My members really want this and I'd like to script it over.
Thanks!
Ummmm, it's in the same place, smf_themes table. smf_custom_fields only lists what the fields are.
In this mod, they're stored in the themes table, against theme = 1, id_member matches the user, and "variable" matches CF1, CF2, CF3 etc.
In 2.0, they're not called that. So you have to find out the names of the fields as they are in 2.0, and have it rename the items in the themes table.
Alternatively, use 2.0, create fields in 2.0's admin panel called CF1, CF2 etc, then rename them to whatever you want them to actually be called.
just like this mod, the 2.0 function stores the data in the smf_themes table of the database.
There have been a few code snips for transferring the data in this thread, try using search?
didnt find the existing scripts but it was pretty easy to do myself in the db, thanks guys. didnt know it was in smf_themes!
Great mod, easy install! Thanks a lot!
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/content/a/l/i/alitaptap/html/Sources/ModSettings.php on line 127
got that error when i click features & options.... im using smf 1.1.8
here's my other installed mod
Mod Name Version
1. SMF Staff Page 1.6 [ Uninstall ] [ List Files ] [ Delete ]
2. Anti-Spam Verification Questions 1.02 [ Uninstall ] [ List Files ] [ Delete ]
3. Disable Right Click v3 3.1 [ Uninstall ] [ List Files ] [ Delete ]
4. Top Stats 1.1 [ Uninstall ] [ List Files ] [ Delete ]
5. Aeva ~ Auto-Embed Video & Audio 5.2.56 [ Uninstall ] [ List Files ] [ Delete ]
6. SMF Arcade 2.0.17 [ Uninstall ] [ List Files ] [ Delete ]
7. Welcome Topic Mod 2.0.3 [ Uninstall ] [ List Files ] [ Delete ]
8. Top Karma On Stats 1.0 [ Uninstall ] [ List Files ] [ Delete ]
9. SimplePortal 2.2 [ Uninstall ] [ List Files ] [ Delete ]
10. SMF 1.0.16 / 1.1.8 Update 1.0 [ List Files ] [ Delete ]
11. Simple Award System 2.0.2 [ List Files ] [ Delete ]
12. SMF Media Gallery 1.5.6 [ Uninstall ] [ List Files ] [ Delete ]
13. Advanced Reputation System 0.1.5 [ Apply Mod ] [ List Files ] [ Delete ]
14. Karma Buttons 1.1 [ Uninstall ] [ List Files ] [ Delete ]
15. SMFShop 3.0 [ Uninstall ] [ List Files ] [ Delete ]
16. Stars And Badges 2.1 [ Uninstall ] [ List Files ] [ Delete ]
17. SMF Articles 1.2 [ Uninstall ] [ List Files ] [ Delete ]
18. Eliana Mod 2.0 [ Apply Mod ] [ List Files ] [ Delete ]
19. Simple staff color legend 1.1 [ Uninstall ] [ List Files ] [ Delete ]
20. Enhanced Quick Reply Box 2.0.2 2.0.2 [ Uninstall ] [ List Files ] [ Delete ]
21. Global Announcements 1.0 [ Uninstall ] [ List Files ] [ Delete ]
22. Admin Notepad 1.0 [ Uninstall ] [ List Files ] [ Delete ]
23. VisualWarning 1.42 [ Uninstall ] [ List Files ] [ Delete ]
24. zCommunity 0.8.1 [ Uninstall ] [ List Files ] [ Delete ]
25. Tinypic Plugin 1.0.0 [ Uninstall ] [ List Files ] [ Delete ]
26. Member Awards 1.0.2 [ Uninstall ] [ List Files ] [ Delete ]
27. Invite 1.14 [ Uninstall ] [ List Files ] [ Delete ]
28. Affiliates 1.4 [ Uninstall ] [ List Files ] [ Delete ]
29. Welcome Back 1.0 [ Uninstall ] [ List Files ] [ Delete ]
30. eFloating Bar for Guest & Members 0.1 [ Uninstall ] [ List Files ] [ Delete ]
31. Header Rotator 1.1.0 [ Uninstall ] [ List Files ] [ Delete ]
32. Irritate lurkers with 0 posts 0.1 [ Uninstall ] [ List Files ] [ Delete ]
33. Enhanced PM Warning Message 1.0 [ Uninstall ] [ List Files ] [ Delete ]
34. Top 10 Posters Stats (Today, This Week, This Month) 1.5 [ Uninstall ] [ List Files ] [ Delete ]
35. Highslide Image Viewer 1.3 [ Uninstall ] [ List Files ] [ Delete ]
36. Force Topic Read On Login Mod 2.1 [ Uninstall ] [ List Files ] [ Delete ]
37. Karma Description Mod 2.6.7 [ List Files ] [ Delete ]
38. Googlebot & Spiders Mod 2.0.4 [ Uninstall ] [ List Files ] [ Delete ]
39. Menu Buttons 1.1 [ Uninstall ] [ List Files ] [ Delete ]
40. Twitter and Facebook Publisher mod 2.2 [ Uninstall ] [ List Files ] [ Delete ]
41. Limit A Guests Daily PageViews Mod 2.1 [ Uninstall ] [ List Files ] [ Delete ]
42. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0 [ Apply Mod ] [ List Files ] [ Delete ]
43. SMF Archive 2.0 [ Uninstall ] [ List Files ] [ Delete ]
44. Users Online Today Mod 1.4.0 [ Uninstall ] [ List Files ] [ Delete ]
45. Location on memberlist SMF2 1.2 [ List Files ] [ Delete ]
46. Add IP2Location to Track IP 1.3 [ Uninstall ] [ List Files ] [ Delete ]
47. Location on memberlist SMF2 1.2 [ List Files ] [ Delete ]
48. Reply Button in All Posts 1.1 [ Uninstall ] [ List Files ] [ Delete ]
49. Best 3 0.1 [ Uninstall ] [ List Files ] [ Delete ]
50. Locked Topic Color 1.0 [ Uninstall ] [ List Files ] [ Delete ]
51. Cbox Integration 1.0 [ Uninstall ] [ List Files ] [ Delete ]
52. SMFShop 3.1.5 [ List Files ] [ Delete ]
53. Ultimate Profile 0.9 [ Uninstall ] [ List Files ] [ Delete ]
54. Custom Profile Field Mod 3.20 [ Apply Mod ] [ List Files ] [ Delete ]
Thanks
I'm having no trouble with this mod, but I know there's a way to edit something.
I'm on SMF1.1.11
I want it so the NAME of the custom profile field, and the colon " : " do not show up in mini profiles.
EX. The NAME of one of mine is Brawl Friend Code
So, naturally, it displays in mini-profile as ...
Brawl Friend Code: ####-####-####
I just want the title NAME of the profile field removed from the mini profile, so it only display what the member put into that field.
Quote from: hcfwesker on March 12, 2010, 01:18:45 AM
I'm having no trouble with this mod, but I know there's a way to edit something.
I'm on SMF1.1.11
I want it so the NAME of the custom profile field, and the colon " : " do not show up in mini profiles.
EX. The NAME of one of mine is Brawl Friend Code
So, naturally, it displays in mini-profile as ...
Brawl Friend Code: ####-####-####
I just want the title NAME of the profile field removed from the mini profile, so it only display what the member put into that field.
Not sure what the bump rule is, but I know it's been over 24 hours. Really need help on this :(
Ok. I got the above to work, so disregard my posts before this one. I'm on SMF 1.1.11
How can I change this option ... Text to display before field (BBC is ok if enabled above)
I want the text or BBC image to display ABOVE the field members input. So what they enter in their edit profiles, Actually Displays below the text (BBC image)
And, also, the "Selection" option does not work in my AdminCP for this feature. ( for drop down box options) I've checked and rechecked my php files, and didn't find an errors.
you would have to edit the display.template.php code that reads out the custom field
Well, I'm kinda brand new at this :( I attached the codes that this package adds, if you could please tell me what line needs to be edited. I tried randomnly placing a <br /> tag throughout, but always came back with errors.
<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();
global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();
// Show how many posts they have made.
Quote from: bhaveshtolia on February 28, 2010, 11:05:54 AM
Hi All,
Shttp://www.simplemachines.org/community/Smileys/default/smiley.giforry to seem naive and all but i have installed this mod and am unable to find the option where it has been enabled.
It has been installed successfully on my website. However i am unable to find the option under Features and Options.
Advise where to activate it ...
Hi there
Having the same problem as several other users. Have installed mod in version 1.1.11. (Have also manually checked each file) - all installed correctly. Using Default Theme and English Language.
Tab is not showing under 'Features and Options'. Using direct link to tab...
index.php?action=featuresettings;sa=profile
...opens the tab, but it is blank with only a SAVE button.
Sounds like a great mod - would really like to use. Does anyone have a fix?
Thanks
Tim
I am betting you are not actually using English, but rather are using English UTF-8 (which is not the same thing)
hcfwesker, I was wrong... you'll have to edit DisplayFieldPosts in CustomProfile.php'
I've looked, and I'm lost :( Here's that portion of the code, though. If you, or anyone can help me on this.
function DisplayFieldPosts()
{
global $context, $modSettings, $messagevars;
$i = 1;
while (isset($modSettings['enable_CP' . $i . '']))
{
if ($modSettings['enable_CP' . $i . ''] && isset($messagevars['member']['options'][$modSettings['CP' . $i . '_id']]) && !empty($messagevars['member']['options'][$modSettings['CP' . $i . '_id']]) && $modSettings['CP' . $i . '_post'])
{
if ($modSettings['CP' . $i . '_view'] && !$context['user']['is_admin'])
{
$i++;
continue;
}
if ($modSettings['CP' . $i . '_type']=='text' || $modSettings['CP' . $i . '_type']=='textarea')
{
if ($modSettings['CP' . $i . '_post']!='text')
{
$i++;
continue;
}
$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;
}
echo '
' . $field . '<br />';
}
if ($modSettings['CP' . $i . '_type']=='select')
{
if ($modSettings['CP' . $i . '_bbc'])
{
$field = parse_bbc($messagevars['member']['options'][$modSettings['CP' . $i . '_id']]);
}
else
{
$field = $messagevars['member']['options'][$modSettings['CP' . $i . '_id']];
}
echo '
' . $modSettings['CP' . $i . '_name'] . ': ' . $field . '<br />';
}
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 ($messagevars['member']['options'][$modSettings['CP' . $i . '_id']])
{
echo '
' . $modSettings['CP' . $i . '_name'] . ': ' . $modSettings['CP' . $i . '_data1'] . '<br />';
}
else
{
echo '
' . $modSettings['CP' . $i . '_name'] . ': ' . $modSettings['CP' . $i . '_data2'] . '<br />';
}
}
}
$i++;
}
}
Yay, I found it through so much Trial & Error
Under CustumProfile.php , under the heading DisplayFieldPosts
}
$before = preg_replace('/%1/', $messagevars['member']['options'][$modSettings['CP' . $i . '_id']], $modSettings['CP' . $i . '_data1']) . '<br />';
$after = preg_replace('/%1/', $messagevars['member']['options'][$modSettings['CP' . $i . '_id']], $modSettings['CP' . $i . '_data2']);
if ($modSettings['CP' . $i . '_bbc'])
I seen that . '<br />' used elsewhere and gave it a shot anywhere I seen CP1, or data 1, since that's the first field I customized.
you could also put it here
echo ' ' . $modSettings['CP' . $i . '_name'] . ':<br />' . $modSettings['CP' . $i . '_data1'] . '<br />';
Hi,
I installed this mod on my SMF and the configuration panel disappeared from the options and settings admin page when I upgraded SMF from 1.1.5 to 1.1.11.
I guess I have to replace some code in the sources or themes files, but where ?
Thanks for your help
Greetings,
I'm currently using this on my forums and I'm wondering if it's posable to have different sections in the profile for example;
Game Usernames:
Battlefiled Username: TextBox
Call of Duty Username: TextBox
Other Usernames:
Tournament Users TextBox
I'm running RC2
Thansk :)
why are you using this with 2.0? The functionality is standard in 2.0
I think it came with it actually. If I remember correctly I just had to enable it.
if that is so, then the smf 2.0 basic feature is NOT the same as this mod.
I'm on SMF 1.1.11
The fields work great and all, but none of the added custom field appear in the member's profile page. they work fine on all pages, excect being displayed on that member's profile summary page.
Anything extra I need to do?
EDIT:
Just realized the Ultimate Profile code may have conflicted with the regular profile display.
There is a problem with the modification.xml script.
<add><![CDATA[
'profile' => 'ModifyProfileSettings',
);
You need to get rid of the trailing comma after 'ModifyProfileSettings', because you are inserting this as the LAST item of the array - otherwise ModSettings.php will not display at all.
Ideally, you want to include the CR/LF in your search and replace it with ,CR/LF then the code if possible (I'm not a php guy).
There are several places where this was an issue in my ModSettings.php file after I installed, so I had to go in and edit the file by hand.
I think this is also why the button is not showing up for some people.
After I fixed the comma, the mod is now working fine.
HTH
Just tried installing this mod by uploading the file to 1.1.11.
Although Package Manager states it was successful it doesn't seem to have altered anything!
Do I have to load this manually?
Just sorted it! :) Language to English!
Next question: can I now add another field in the registration page?
Rgds E.S
Quote from: euroslob on March 25, 2010, 11:07:10 AM
Just sorted it! :) Language to English!
Next question: can I now add another field in the registration page?
Rgds E.S
do you mean in general? Then yes. Just select that you want to add the field to the registration page and indicate whether you want it to be compulsory or not :)
OK - I'm new at this but I got the mod to install and have browsed thru some of the code but have gotten myself lost.
I have added custom fields but they are showing up twice on the user registration page. Where do I fix this?
Thanks.
sounds like you double installed the mod...
Yes, that is probably what I did.
How do I fix that? I'm pretty sure I can't double uninstall.
no, you'll have to manually go through the edited files and remove duplicate coding. Look at the manual installation instructions on the mod page and check each file for double coding.
Thanks. Wasn't so hard after all. Just needed an experienced hand to push in the right direction.
Very good mod, but..
Here is a bug in Custom Field Mod - don't check for maxinum allowed charasters in field
Please fix
Thanks
Hello,
I've just installed this mod and have a few questions:
1- I have to switch language to English to be able to edit the fields. Will they be accessible on registrations once I swap to Portuguese?
2- The main reason to install this mod is to make every new member fill out their Location. Would it appear as a double field in the profile if I create a new "Location" field with this mod?
Thanks in advance, for your help.
1- no... you will have to add the Portuguese text strings to your modifications.portuguese.php
2- yes, if you create a new field, location, it will be doubled in the profile, since SMF already has a location field.
Quote from: Kindred on April 07, 2010, 12:34:33 PM
1- no... you will have to add the Portuguese text strings to your modifications.portuguese.php
I'm a quick learner and a lover of the DIY, could you give me some hints so I can get started? :)
Quote from: Kindred on April 07, 2010, 12:34:33 PM
2- yes, if you create a new field, location, it will be doubled in the profile, since SMF already has a location field.
Anyway to go "around" question #2? :P
I once found on this forum a way to - manually - edit the php files and display the "location" field on the register form and make it mandatory, but for some reason it would only work with Firefox, thats why I nixed it and reverted to the original form. I searched again and couldnt find that info...
On my forum it is very important to source / discriminate the location of each member. Any other suggestion to accomplish this?
Thanks again for the input.
Miguel
EDIT: I could "delete" the standard Location field on SMF, right? And then create one with this mod. This would solve my problem...
you probably want
http://custom.simplemachines.org/mods/index.php?mod=1651
as for the text strings, look in modifications.english.php, find the text strings for this mod and copy them into modifications.portuguese.php, then translate them in that file.
Quote from: Kindred on April 07, 2010, 01:50:42 PM
you probably want
http://custom.simplemachines.org/mods/index.php?mod=1651
as for the text strings, look in modifications.english.php, find the text strings for this mod and copy them into modifications.portuguese.php, then translate them in that file.
Thats a no-go...
I've installed the mod, edited the PT file you refered to and still nothing... :(
Shouldnt I be modding also the .php file that is used for the registering form?
Thanks
hi, winrules ,
Your Custom Profile Field Mod is very good. I want to use it on my SMF 2.0 RC3 forum, but it can't support SMF2 now.
Will you make one for SMF2?
Thanks.
the feature is built in to SMF 2.0 so, no, this mod will not be updated.
Sorry, I did not noticed that.
I will try to find this option out.
Thanks.
Sorry again, I tried but I can't find the Custom Field option, could you please give me some tip?
Thanks.
Admin > Configuration > Core Features > turn on 'Advanced Profile Fields'.
Thank you, now I found this in "Core Features" and turned it on.
But, how can I add a new custom field?
BTW, I really think the SMF2 team had a bad design for this feature, it is so difficult to find it!!!!
Once you've enabled it, and pressed save, "Advanced Profile Fields" is a clickable link to the configuration.
The designer for this feature is a genius! he just know how to make an feature so difficult to find and configure.
Thanks for your help.
This stupid method just cost me almost 60 minutes in the admin area!!!!
I'm trying to get information from one of my custom profile fields to show up in a modification on our members management page. We implemented manual registration approval, and one of out custom profile fields that shows up on the registration page is "why do you want to join our forum" which is Id CP1.
We want that information to appear on the manage member approval page. Currently we have to go to the member profile to see it, then back to the approval page. I have everything I need other then getting the custom field information to show up. :-\ Any Ideas?
What I have is this in MangeMembers.template.php
else
{
foreach ($context['members'] as $member)
echo '
<tr>
<td class="windowbg2" width="5%">', $member['id'], '</td>
<td class="windowbg">
<a href="', $member['href'], '">', $member['username'], '</a>
</td>
<td class="windowbg"><a href="mailto:', $member['email'], '">', $member['email'], '</a></td>
<td class="windowbg2"><a href="', $scripturl, '?action=trackip;searchip=', $member['ip'], '">', $member['ip'], '</a></td>
<td class="windowbg">', $member['dateRegistered'], '</td>
<td class="windowbg" width="5%">
<input type="checkbox" value="', $member['id'], '" name="todoAction[]" class="check" />
</td></tr>
<tr><td class="windowbg2"><b>', $member['username'], '\'s reason for joining:</b></td><td class="windowbg" colspan="4">' ,$member['options']['CP1'] , '</td>
</tr>';
I have also tried ' . $context['member']['options']['CP1'] . '
Or you could save yourself a lot of hassle and just use the 'Join Reason' mod...
Well, that works too! I knew it was a good idea. Thank you for pointing that one out to me.
Hello,
I modified the post to include the SMF version...
Installed the mod into a 1.1.11 SMF site and can no longer access the "Features and Options" link...
It takes me to the following:
http://www.mywebsite.com/forums/index.php?action=featuresettings
Internal 500, website cannot display page
Before that the forum has been up for about a year with no new mods until this one.
I also get an error in the log:
8: Undefined index: session_var
File: /Themes/default/languages/Post.english.php (portal_above sub template - eval?)
But that may be unrelated
Any help with what I need to do to fix at least the missing Features and Options page would be greatly appreciated.
SMF Version: 1.1.11
Currently installed theme:
Implied (Crip)
Currently installed mods:
1. Advanced News 1.0
2. Caps_Lock_Detection_on_Login 1.1
3. Contact Page 1.1
4. Custom Copyright 1.1
5. Downloads System 1.2.4
6. RSS Feed Icon 1.1
7. Twitter mod 1.5
8. Ultimate Profile 0.9
9. reCAPTCHA for SMF 0.9.6
10. Event Registration Mod 0.17 BETA
11. SMF Gallery Lite 2.0.7
12. SimplePortal 2.3
13. SMF 1.0.19 / 1.1.11 Update 1.0
14. Custom Profile Field Mod 3.20
george_park: What version of SMF?
Arantor I'm running SMF 1.1.11
I run 1.1.11 on GoDaddy. I edited all the files as per instructions and added the 2 other files.
I got the new Custom Profile Fields menu in Admin and added 3 fields. 2 are text fields (player position and #) and enabled for registration (optional) and I said to show on the Profile (below the Post count). 1 field (team name) I added is a "select box" (with 12 options) and mandatory on registration and also to show on the Profile (below the Post count).
All 3 fields show up on the Register page.
All 3 fields show up on my profile but the Team (select list) was defaulted to the first selection (not what i chose when I registered) and the # field was empty. When I add them back in then they show up on my Profile (post). So something was not saved when i registered.
Thx!
Update: I deleted my account and registered again. Now it seems to work. I think maybe when I registered and failed to enetr the correct CAPTCHA it reset those fields.
is this compatible with 2.0rc3
this is standard in 2.0, so... no.
Hello, I am new to SMF and I've just installed Custom profile fields mode. I can't find anywhere these custom fields of the possibility to create them. Please tell me where to look.
Thanks for the help.
In SMF 1.1.11 I get error in the Modsettings.php file :(
ispasov: As the mod page says: look in Features and Options
zamg0d1: I can't read your mind to determine what errors you're getting, care to post them?
Worked, edited the ModSettings.php fully manually following the instructions in the modification.xml :D
I just installed this in the boards 1.1.11 and it all works good but it doesn't show the Fields on the threads underneath my post counts.
Quote from: Sefket on May 03, 2010, 03:35:46 PM
I just installed this in the boards 1.1.11 and it all works good but it doesn't show the Fields on the threads underneath my post counts.
Custom theme?
Quote from: Arantor on May 03, 2010, 05:24:10 PM
Quote from: Sefket on May 03, 2010, 03:35:46 PM
I just installed this in the boards 1.1.11 and it all works good but it doesn't show the Fields on the threads underneath my post counts.
Custom theme?
Not sure what that is. My Administrator got it from a site and edited the images to make the site look nice.
So you're not using the default SMF theme, basically.
You will need to edit the theme you have to add the details of fields in threads. Take a look at the mod site listing for this mod, it has an option to "Parse". Find the version of the mod you have, find your SMF version, hit Parse and look for the edits to Display.template.php, you will have to apply those changes manually to your site.
I'm having trouble finding "/Sources/ModSettings.php" in the ACP.
You can't edit it from the ACP, you have to edit it through FTP.
If the ONLY thing missing is the display in threads but you can otherwise configure it, the changes are already made to ModSettings.php, meaning you have to just edit Display.template.php
Thanks, how come it shows this and it's white in the background instead of boxes?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi39.tinypic.com%2F5qo91.png&hash=f0dfd343b9da620bfc17009e3d44ca0ebf9d6617)
Because your theme uses different code to the default theme. Since we can't see the theme's code you'll have to attach the Display.template.php (NOT just post its contents) so we can look at it.
I appreciate you helping me out especially on your own free time.
No, that file is damaged now, the idea isn't to just copy/paste the contents, you will need to use FTP to download the file itself (because the file I give you will have to be uploaded back)
Hm, here.
I don't use FTP nor do my friends. I got it from the ACP.
Yes, and it's STILL damaged, and if I give you the edits, it'll be damaged again.
The contents of the file:
Beginning on line 1:
<?php
// Version: 1.1; Display
Beginning on line 3:
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
// Show the anchor for the top and for the first message. If the first message is new, say so.
echo '
<a name="top"></a>
This is NOT how it should be since I can't even test it properly to check it'll work for you even if I do make the edits, since I won't be giving you a file you can put back into the ACP!!
Oh, the content part is all hidden and it only shows in the PHP File in FTP? I'll have to get FTP access and I'll post it here.
Is there any other possible way I can do this without FTP though? Since none of my Administrators use it.
Not really, no, because the inbuilt editor is designed for smaller editor parts.
And really, if you're going to run a site, learning to use a basic tool like FTP, that's been around for nearly 25 years is really something of a requirement - you can even get plugins for browsers to make it easier to use, or heck even cPanel would be preferable at this stage.
Hi Hi, I install this mod on my forum, version 1.1.11, and I have one problem, when I put settings for Text and Text Area, shows all the options, but when I put settings for Check Box and Selection Box, shows the options for Text and Text Area. I need the options for Selection Box for add option 1, option 2, etc...
When I put settings for Selection Box, appears this options:
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?
Show field on registration?
Only allow admins to edit field?
Only allow admins to view field?
Nothing more, please help me ^^!
The other mods that I have installed are:
Spoiler BBCode
Hide Tag Special
YouTube BBCode
FontandSizeDropdown_1.3
SimplePortal
That, thanks ^^!
PS: Sorry for my english, i speak spanish xD! And by the way, my forum is in spanish too..
Quote from: Arantor on May 03, 2010, 07:44:09 AM
ispasov: As the mod page says: look in Features and Options
zamg0d1: I can't read your mind to determine what errors you're getting, care to post them?
Well, This is what I've done:
I extracted the mode locally and upload it to the Packages directory. Applied the mode from package manager. After that I couldn't find any options of that mode anywhere in administration part of the forum.
Also I got errors in Error log:
Undefined index: cp_cpfields
File: ......../Sources/ModSettings.php
Line: 142
and
my-forum/index.php?action=featuresettings;sa=layout;sesc
Language file 'CustomProfile.bulgarian-utf8' can't be loaded
My admin part is in Bulgarian, so I made the translation of the upper errors.
My questions are: How to manage these errors and how to make this mode work.
Thanks :)
why did you extract it? Leave it as an archive and upload to your site using the package manager functions.
Your error indicates that the DB update file did not get run.
I did it your way and the errors are the same. Now what?
I am using SMF 1.1.11.
oh... two other things.
1- if you are using a theme other than default, you will have to manually install the mod into that (or those) theme(s).
2- if you are using a language other than English, you will have to manually add the language strings into modifications.YOURLANGUAGE.php
10x for the help.
I downloaded it on the CPanel.
:P
=/
Try attached file. But with that, it will show every custom profile field in one table.
Eh, I don't want it all in one line. I want one to say IRC: then <br>RSN:
Find this in ./Sources/CustomProfile.php:
function DisplayFieldPosts()
{
global $context, $modSettings, $messagevars;
$i = 1;
while (isset($modSettings['enable_CP' . $i . '']))
{
if ($modSettings['enable_CP' . $i . ''] && isset($messagevars['member']['options'][$modSettings['CP' . $i . '_id']]) && !empty($messagevars['member']['options'][$modSettings['CP' . $i . '_id']]) && $modSettings['CP' . $i . '_post'])
{
if ($modSettings['CP' . $i . '_view'] && !$context['user']['is_admin'])
{
$i++;
continue;
}
if ($modSettings['CP' . $i . '_type']=='text' || $modSettings['CP' . $i . '_type']=='textarea')
{
if ($modSettings['CP' . $i . '_post']!='text')
{
$i++;
continue;
}
$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;
}
echo '
' . $modSettings['CP' . $i . '_name'] . ': ' . $field . '<br />';
}
if ($modSettings['CP' . $i . '_type']=='select')
{
if ($modSettings['CP' . $i . '_bbc'])
{
$field = parse_bbc($messagevars['member']['options'][$modSettings['CP' . $i . '_id']]);
}
else
{
$field = $messagevars['member']['options'][$modSettings['CP' . $i . '_id']];
}
echo '
' . $modSettings['CP' . $i . '_name'] . ': ' . $field . '<br />';
}
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 ($messagevars['member']['options'][$modSettings['CP' . $i . '_id']])
{
echo '
' . $modSettings['CP' . $i . '_name'] . ': ' . $modSettings['CP' . $i . '_data1'] . '<br />';
}
else
{
echo '
' . $modSettings['CP' . $i . '_name'] . ': ' . $modSettings['CP' . $i . '_data2'] . '<br />';
}
}
}
$i++;
}
}
Replace with:
function DisplayFieldPosts()
{
global $context, $modSettings, $messagevars;
$i = 1;
while (isset($modSettings['enable_CP' . $i . '']))
{
if ($modSettings['enable_CP' . $i . ''] && isset($messagevars['member']['options'][$modSettings['CP' . $i . '_id']]) && !empty($messagevars['member']['options'][$modSettings['CP' . $i . '_id']]) && $modSettings['CP' . $i . '_post'])
{
if ($modSettings['CP' . $i . '_view'] && !$context['user']['is_admin'])
{
$i++;
continue;
}
if ($modSettings['CP' . $i . '_type']=='text' || $modSettings['CP' . $i . '_type']=='textarea')
{
if ($modSettings['CP' . $i . '_post']!='text')
{
$i++;
continue;
}
$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;
}
echo '
<div class="windowbg4">' . $modSettings['CP' . $i . '_name'] . ': ' . $field . '</div>';
}
if ($modSettings['CP' . $i . '_type']=='select')
{
if ($modSettings['CP' . $i . '_bbc'])
{
$field = parse_bbc($messagevars['member']['options'][$modSettings['CP' . $i . '_id']]);
}
else
{
$field = $messagevars['member']['options'][$modSettings['CP' . $i . '_id']];
}
echo '
<div class="windowbg4">' . $modSettings['CP' . $i . '_name'] . ': ' . $field . '</div>';
}
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 ($messagevars['member']['options'][$modSettings['CP' . $i . '_id']])
{
echo '
<div class="windowbg4">' . $modSettings['CP' . $i . '_name'] . ': ' . $modSettings['CP' . $i . '_data1'] . '</div>';
}
else
{
echo '
<div class="windowbg4">' . $modSettings['CP' . $i . '_name'] . ': ' . $modSettings['CP' . $i . '_data2'] . '</div>';
}
}
}
$i++;
}
}
Thank you so much.
Can this be used with Tiny Portal? If yes, is there already a post with instructions? I have portal and 1.1.11 and want profile fields...
OK, found my issue here:
Quote from: web5 on March 17, 2010, 09:22:57 PM
Quote from: bhaveshtolia on February 28, 2010, 11:05:54 AM
Hi All,
Shttp://www.simplemachines.org/community/Smileys/default/smiley.giforry to seem naive and all but i have installed this mod and am unable to find the option where it has been enabled.
It has been installed successfully on my website. However i am unable to find the option under Features and Options.
Advise where to activate it ...
Hi there
Having the same problem as several other users. Have installed mod in version 1.1.11. (Have also manually checked each file) - all installed correctly. Using Default Theme and English Language.
Tab is not showing under 'Features and Options'. Using direct link to tab...
index.php?action=featuresettings;sa=profile
...opens the tab, but it is blank with only a SAVE button.
Sounds like a great mod - would really like to use. Does anyone have a fix?
Thanks
Tim
and this solutions....
Quote from: Kindred on March 18, 2010, 01:16:07 AM
I am betting you are not actually using English, but rather are using English UTF-8 (which is not the same thing)
hcfwesker, I was wrong... you'll have to edit DisplayFieldPosts in CustomProfile.php'
but I do not know where to change English from UT8 to correct???
YEAh...HOPE I did it right...LOL...
I went into the actual file and simply took out the UTF-8 part, saves and ftp'd back to site. I can see the tab now and add a field. :)
Sorry if this is not the way I am to communicate about the mod. It is great. Something happened and now the custom profile is present at registration as it should be; however, even though to enter the profile data, the data never makes it to the database and the fiels are blank in the profile section for the member, older data is there but nothing after the 46th member.
Any help is appreciated.
Thanks,
Mark
Is it an admin-edit-only field? The behavior for those fields on registration was changed with 3.20 version. Non-admins are no longer able to save admin-edit-only field data, even on registration. If you want to revert that behavior for registration:
Sources/CustomProfile.php
(!empty($modSettings['CP' . $i . '_edit']) || empty($modSettings['enable_CP' . $i . '']))
empty($modSettings['enable_CP' . $i . ''])
Help needed please
Hi all
I have installed the custom profile field mod by winrules
I have set a field up so that members have to put in their postal town on registration.
The problem is that yes it does make you put it in to register but when you go to approve the member the field does not show?
If I then look at their profile the custom box is empty.
I have set all the setting but it does not seem to transfer the information from the registration to their profile.
Any help would be greatly appreciated.
Cliff
Hiya,
I tried to install this mod on SMF 1.1.11 and got one error:
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
The mods I have are here:
1. Anti-Spam Verification Questions 1.02
2. New In Topic View 1.1
3. Advanced Contact Form 1.1
4. Aeva ~ Auto-Embed Video & Audio 5.1.28
5. Auto Email Inactive Users 1.7
6. Bookmarks 2.2.1
7. SMF 1.0.16 / 1.1.8 Update 1.0
8. SMF 1.0.16 / 1.1.8 Update 1.0
9. New RSS Button Per Board 1.0
10. Enhanced Profile Header 1.0
11. Social Bookmarks 1.1
12. Google Talk Field 1.0.6
13. Custom Copyright 1.1
14. SMF File Manager 2.1.3
15. Colorize Boards 3.0
16. ColorizePost 1.2
17. vMulticolor-Stars Mod 1.00
18. SMF 1.0.19 / 1.1.11 Update 1.0
19. Use color Tags in code Mod 1.0
20. Color And BgColor BBCode Bar 3.3.1
21. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0
22. SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update 1.0
23. Enhanced PM Warning Message 1.0
24. Active Users Privacy 0.1
25. Child Dropdown for Board Index 1.1
26. Ad Managment 2.3
27. Twitter and Facebook Publisher mod 2.4
28. RSS Feeder 1.1.4
29. Custom Profile Field Mod 3.20
30. RSS Feed Poster 2.1
Avatar Packages
Mod Name Version
1. game avatars 1.0
2. Sci-Fi Avatars 1.0
3. 183 High Quality Sci-Fi and Fantasy Avatars 1.0
4. 3D ART Avatars 1.1
as with any mod... a failed file just means that you will have to manually add the code to that file
Hiya Kindred,
So I just need to modify the Source file?
Thanks in advance,
A
Quote from: Kindred on June 22, 2010, 12:48:41 PM
as with any mod... a failed file just means that you will have to manually add the code to that file
Quote from: Flapman on June 22, 2010, 01:14:03 PM
Hiya Kindred,
So I just need to modify the Source file?
Thanks in advance,
A
Quote from: Kindred on June 22, 2010, 12:48:41 PM
as with any mod... a failed file just means that you will have to manually add the code to that file
Yes in ModSettings.php
I am using RC2 and I can not find how to add Custom Profile Fields. I had a mod in the previous ver. but I ws told that RC2 had that feature built in?
Thanks
Can someone tell me if this will work properly in 1.1.11? I have installed and activated it, but after doing so my Features and Settings admin page will not load at all.
Hey there. I used the parse instructions for smf 1.1.11 During install my only error was the test failed on the modsettings.php file... so I went through, very carefully changed what the parse instructions said to change... and when I got finished, I tried to load the features and settings page... got this error:
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/s043eri/public_html/forum/Sources/ModSettings.php on line 126
Installed Mods:
1. Custom Profile Field Mod 3.20
2. Hide Unused Profile Display Fields 1.0
3. Picture Signature Field 1.0
4. Moderator and Administrator Comment Tags 1.8
5. The Rules 1.3
6. Bakers Dozen Pages 1.2
7. Menu Buttons 1.1
8. Auto Refresh Who Index 1.0
9. Member Notepad 1.0
10. Treasury 1.04
11. Ultimate Profile 0.9.1
12. Admin Notepad 2.0.1
13. Signature Dropdown Choices 1.2
14. SMF Staff Page 1.7
I am using the KozaKelebegi.zip theme.
Not sure what files you need so including what I hope will help below.
Update: Figured it out.
How the parse info said to put it:
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'ultprofile' => 'ModifyUltProfileSettings',
);
$subActions['pages'] = 'ModifyDozenPagesSettings';
$subActions['rules'] = 'ModifyRulesSettings';
'profile' => 'ModifyProfileSettings'
);
// By default do the basic settings.
How it should have been:
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'ultprofile' => 'ModifyUltProfileSettings',
'profile' => 'ModifyProfileSettings'
);
$subActions['pages'] = 'ModifyDozenPagesSettings';
$subActions['rules'] = 'ModifyRulesSettings';
// By default do the basic settings.
Quote from: [SiNaN] on May 29, 2010, 05:37:43 AM
Is it an admin-edit-only field? The behavior for those fields on registration was changed with 3.20 version. Non-admins are no longer able to save admin-edit-only field data, even on registration. If you want to revert that behavior for registration:
Sources/CustomProfile.php
(!empty($modSettings['CP' . $i . '_edit']) || empty($modSettings['enable_CP' . $i . '']))
empty($modSettings['enable_CP' . $i . ''])
I'm not sure if that would answer my question, but here it goes ....
I have some custom fields that are set to "admin only" to edit. Is there any way to add additional member groups to these particular fields to allow other staff, besides the Admin group to modify as well?
QuoteVersion Information:
Forum version: SMF 1.1.11
Current SMF version: SMF 1.1.11
hello guys, no error here ... it works like a charm, but i have one question:
what file i have to edit to autogenerate the custom fields ( name & value ) in table cell like in this photo
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi221.photobucket.com%2Falbums%2Fdd106%2Fzacurtici%2Fmodphpbb.jpg&hash=9419418c0bd603f0b273896fe6ef6305de0f1867)
Hello,
I've been trying for hours to get this mod working!
First tried the normal installation but had no result (and no errors).
Just tried to manually edit all files, but still no change, I just don't get the extra tab for the options (and no errors).
Please help me out! What do I do wrong?
Kind regards!
EDIT: Using SMF 1.1.11
Theme: Altar_111v2
No other Mods installed
smf version? What theme(s)?
Using SMF 1.1.11
Theme: Altar_111v2
No other Mods installed
so, with 1.1.x and a non-default theme, you will have to manually install the mod into the additional theme(s)
Allright...I tried the manual installation guide...do I have to copy those files to the theme folder?
no, you have to manually edit the template files that are already IN your custom theme folder.
I know I'm not the only one but it seems to be different. I solved the install isues in modifications.php and created an english utf-8 language file. but now I stick on the following case.
I can add a custom profile field. It is always unnamed. If I change the name and try to save the foillowing errors occurs:
8: Undefined index: pm_posts_verification
8: Undefined index: max_pm_recipients
8: Undefined index: pm_posts_per_hour
File: <removed by immo>/forum/Sources/ModSettings.php
Line: 291
I dont know how to solve. Could please anybody give me a hint ?
List of installed plugins:
1. Manage Members Membergroups 1.0.0 [ Uninstall ]
2. Additional Membergroups on Profile 1.0 [ Uninstall ]
3. Language Drop 1.5.1 [ Uninstall ]
4. Gallery 2 Integration 1.0 RC1 [ Uninstall ]
5. Timezone Select 1.1.2 [ Uninstall ]
6. Custom Action Mod 2.04 [ Uninstall ]
7. Add Honey Pot to Track IP 1.1 [ Uninstall ]
8. httpBL 2.3.4 [ Uninstall ]
9. Default Membergroup on Registration 1.1 [ Uninstall ]
10. Custom Profile Field Mod 3.20 [ Uninstall ]
I am running SMF 1.1.11. On our profiles we have a custom field with is our local union number. We would like to have this so we can sort members by local numbers. On our members board we have these fields show up, email, website, ICQ, AIM, YIM, MSN, position, date registered, and posts.
How can I make this custom field show up and be sortable on our members page. I wonder if it would be clicking on the Parse BBC?
Sorry if this has been addressed before but I could not find it.
http://www.simplemachines.org/community/index.php?topic=79004.msg2102120;topicseen#msg2102120
Been trying to activate this on my forum forever. I had no other mods installed, and yet this will not work. HELP?
Quote from: Kindred on September 29, 2010, 12:28:14 PM
http://www.simplemachines.org/community/index.php?topic=79004.msg2102120;topicseen#msg2102120
Way over my head
On SMF 1.11
Current patches:
Pretty URLs 1.0RC2a
Global Headers Footers 2.0
Share This Topic 2.3
SMF Sitemap 1.2.2
Error:
Type Action Description
Execute Modification ./Sources/ModSettings.php Test failed
Execute Modification ./Themes/default/Profile.template.php Test successful
Execute Modification ./Themes/default/Display.template.php Test successful
Execute Modification ./Themes/default/PersonalMessage.template.php Test successful
Execute Modification ./Themes/default/Register.template.php Test successful
Execute Modification ./Sources/Register.php Test successful
Execute Modification ./Sources/Profile.php Test successful
Extract File ./Sources/CustomProfile.php
Extract File ./Themes/default/languages/CustomProfile.english.php
ARGH! Why does no one read the thread? ??? This question is answered multiple times in **EVERY** mod thread.
Quote from: Kindred on June 22, 2010, 12:48:41 PM
as with any mod... a failed file just means that you will have to manually add the code to that file
Except that isn't completely true in this case and it doesn't answer the question why is this happening when no other modules have this problem. It turns out I had to uninstall all other modules and install this one first which I eventually found on this post.
Yes the answer to any install problem can be manual intervention but that isn't really a reasonable solution to a broken package.
BTW This post is 150 pages! It isn't unreasonable for someone to get lost in it and miss something.
this is not a broken package. Some packages modify the same code.... and the ONLY thing we check (in terms of installation) when we approve a mod is "Does it install on a CLEAN copy of SMF without errors"
This mod does... we do not check to see if mod a and mod B work together or in what order you should try to install them. So, yes... manuall installation *IS* a reasonable and realistic expectation, especially as you install more mods that affect the same areas of code.
Yes, this post is 150 pages. There is a search function.... and as I said, this *SAME* question is answered in almost EVERY mod thread.
I think it is worth pointing out the reason there are so many posts on this issue is that on the Package page it explicitly states:
"Note: If you are getting "test failed" errors, please post the error you are getting and what other mods you have installed here."
It does not say search 150 pages for an answer - it says post your error. It looked like it was implying the answer was different based on your modules.
It's a great module but I would suggest that the reason there 150 pages here are poor instruction on how to handle errors right from the package page. It's easy to get frustrated with users but generally fixing the problem quiets them down quicker than blaming them.
I moaned about it, but I also gave you the answer.... The reason I complain about it is that too many people post without even bothering to TRY to search for the answer first. No offense to you specifically, but the attitude seems to be "Oh there are 150 pages. That's too much for me to waste my time, so I'll post my question, even though it may have already been answered and waste other people's time"
and most of the 150 pages of posts in this thread are actually not related to errors in the mod.
I m using smf version 1.1.11
Installed this mod successfully
but no effect in 'Features and Setting' page for this mod.. :(
Any help ?
are you using the default theme and english?
Yes its in English but ...
I am using Soft-White Theme by Lorenz
I am NOT using default theme
switch yourself to the default theme and re-check.
(do note English UTF-8 is *NOT* the same a English)
But i want this mod running in the theme which i have installed ...
I am not running my forum in Default theme...
I am using " Soft-White Theme by Lorenz " for my forum ...
Any Help ?
I tried and switched my forum to the default theme and re-checked.
But still no effect in Features and Setting Page for this mod ....
Any Help ...
DO NOT BUMP.
If no one has responded, then edit your previous message,
Either the mod did not actually install (check each file to confirm that the edits were actually made)
or you are not actually running in English.
Quote from: Kindred on October 09, 2010, 08:39:27 AM
(do note English UTF-8 is *NOT* the same a English)
I just recently upgraded my forum to 2.0 RC3 from 1.1.9 We had this mod installed prior and obviously it is not needed in my current version. I do have one question though. How do I restore the old fields i had under 1.1.9 to 2.0RC3? I really do not want to have to go through and enter all this info again for each member. Please Help!!!
Quote from: Kindred on March 19, 2008, 05:36:58 PM
BTW: To convert this to the standard 2.0 custom fields...
UPDATE `smf_themes` SET `variable` = '*NewFieldName*' WHERE `variable` = 'CP1'; (or CP2, or CP2, etc)
OK guys, I apologize in advance if this is already answered. I've seen it asked in here, but never found a solution that applied to my situation.
I've applied the mod and "Installed Packages" shows that I'm running "Profile Field Mod 3.20"
I'm running SMF 1.1.11
I'm running the Default Theme & I'm running "English," not "EnglishUT8" or anything else. Just "English."
The mod installed, but when I go to Admin > Features and Options all I have is "Basic Features," "Layout and Options," and "Karma." The "Custom Profile Fields" does not exist.
I'm experienced as board mod and admin and have been solving people's tech issues in other areas for years, but I'm very new to Linux and what goes on under the hood, so I guess it's time for me to ask for help instead of giving it. Therefore if there is any tweaking to be done via FTP and a text editor, please don't assume I know how to do any of it.
Thanks for your help.
P.S. Just noticed that "CustomProfile.php" in "./Sources", and "CustomProfile.english.php" in "./Themes/default/languages" both have a file size of 0. Not sure if that's relevant, but thought I'd add it.
P.P.S. If I try to Uninstall get an error telling me not to proceed unless I really know what I'm doing.
RESOLVED:
During installation none of the listed files were modified and the two files I mentioned above were added with a file size of 0. This led me to believe we had a rights issue on installation. To resolve I changed all files to writable, forced the uninstall, then reinstalled and set the rights back to normal. The menu items now appear, and I've created a custom field named "Occupation" just like I have at another board running this mod, however the field is not appearing in the user profiles.
it would seem that your server prevented the upload of the files... and probably stopped the edits from happening as well. Check the files to see if edits were actually made.
You're right on the mark Kindred. I deleted the two 0 byte files, forced the uninstall, reinstalled and the mod now appears.
Thanks.
Ok, I am unsure if this has been answered. And I would like you to be warned that my experience with SMF is limited atm. Also I am not the root admin for the site.
Anyway, I downloaded the file and uploaded it. Installed it. Checked features and options And it didn't work.
So I tried once more just to be sure, It didn't work.
I realized that our forum was not updated, I updated, Installed it to try it and it didn't work BUT instead this time it gave me an error when I tried to enter the 'Features and Options' section.
Just so you know, SITE NAME is just me replacing our URL.
QuoteFatal error: Cannot redeclare modifyprofilesettings() (previously declared in /home/ambitwe1/public_html/SITE NAME.com/Sources/ModSettings.php:314) in /home/ambitwe1/public_html/SITE NAME.com/Sources/ModSettings.php on line 324
So I
uninstalled the custom fields script, and this appeared when opening up any thread on the forum
Quote
Fatal error: require_once() [function.require]: Failed opening required '/home/ambitwe1/public_html/SITE NAME.com/Sources/CustomProfile.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ambitwe1/public_html/SITE NAME.com/Sources/Load.php(1733) : eval()'d code on line 318
I have since reinstalled the script, which allows threads to be viewed. but not the Feature's and options page.
Current things installed are
Mod Name Version
1. Custom Profile Field Mod 3.20 [ Uninstall ] [ List Files ] [ Delete ]
2. Another URL Popup 1.0 [ Uninstall ] [ List Files ] [ Delete ]
3. SMF 1.0.20 / 1.1.12 Update 1.0 [ Uninstall ] [ List Files ] [ Delete ]
I have a gut feeling the custom theme could be the problem but doubtful cause I don't know to much on forums.
I haven't had a chance to try anything as of yet, as the forums are sort of in it's peak hour so to speak, And prefer to do it at a time that noone is on. So I decided to post here, see if the error has happened before. I'm sorry I coulden't check through the last 151 pages as my time is short atm :P
are you using smf 1.1.x with a custom theme? If so, you would have to manually install the mod into those template files.
Since you double installed, there is no easy way to get it out... you will have to manually check all of the edited files for any remaining code.
Quote from: Kindred on November 09, 2010, 04:59:07 PM
are you using smf 1.1.x with a custom theme? If so, you would have to manually install the mod into those template files.
Since you double installed, there is no easy way to get it out... you will have to manually check all of the edited files for any remaining code.
The theme I believe is custom installed.
I don't understand the second part (double install and how to get out of it) can you please elaborate on that for me?
A custom theme is any theme other than "default" (mods generally only install in the default theme for the 1.1.x series)
When you did the double install (evidenced by the "can not redeclare" error SOME code got duplicated and some didn't. So, when you uninstalled, you only uninstalled some portion of the edits...
you are going to have to use the package parser (on the mod download page), find what each edit was and then check each files which was edited to confirm that the code has been removed.
I hope this isn't a repeat -- I tried searching and didn't see anything that matched.
We just upgraded to 1.1.12. There was a problem with the install through the SMF admin area because we didn't have enough space, so we had to install by FTPing the "large upgrade package". We're now up and running, but it looks like this mod isn't working for us now. I tried re-uploading it, and that seemed to work, but we aren't seeing the custom fields on our registration page. I've tried to find a place to configure the mod, but don't see it. Any ideas what I'm not doing/doing wrong?
If I've left out any pertinent info, just let me know.
Thanks in advance.
using the large upgrade package will basically remove all mods from the code. They will have to be reinstalled
Yes, sorry, I should have said that I upgraded it and installed it. It shows as active on our site, but it apparently needs configuring and I'm not seeing where to do that.
When checking the settings for each custom profile field that i have created, i have noticed that the permissions as to who is allowed to edit those fields, are very limited, as i see only the admin can be allowed otherwise all other membergroups are allowed to edit that field. Can a complete permissions system be made available for this mod? For example, i want my admins, moderators and global moderators to be able to edit those custom fields, but no other membergroups should be able to edit those fields. This should be possible. Can someone please explain how to do it? I think an upgrade for this mod would be most welcome. :)
Also, i found a bug, albeit an annoying one, when selecting the settings for any created custom field, i put nothing in the Name and Field Description blanks, as i want to display only a small image for that custom field in some of my members' profiles. But when the image is shown, it starts with ":" (minus the double hyphens) followed by the image, which should be corrected to display only the image without ":" in front of it. Please fix it!
Hello,
I just find this nice Mod. But doesn't work very well with SMF 1.1.12
It's only possible to create field name. Impossible to create TextArea or ckack box or Selection box.
The Add horizontal rule doesn't work either.
I try with the default Theme core also. I also check all the file with the Parse example, everything is in the good place but... doesn't work.
Any idea ? Or I don't understand something in the configuration ???
Thanks.
Stéphane
well, my bets suggestion is: upgrade to 2.0 RC4.
That's an idea. But is the 2.0 RC4 is stable enough ?
many people use it live, others wish to wait till it goes gold. you could always setup a test install and check it out for yourself before making it live.
Yes I will try that. Is SMF 2 is much better ?
Thanks.
Ok, i hate to post cause im sure its on these forums somewhere, but ive been looking for hours and browsed most of these pages and still havnt found my issue. this mod installed correctly, i can adjust all the fields and everything. However i want to be able to view what they input on the member summary.. i see where it would be and everything is blank.. even though i inputed stuff on registration.. I have "show in profile" checked. i dont know if im missing something or if there is an issue with the mod.. I know the maker is long gone, but i know alot of you users are alot smarter then me ;) if anyone could help me out that would be great. This is a great mod if i could get it working. Im running SMF 1.1.11 you think maybe if i upgrade to 1.1.12 it would get it working??
Hello,
I think there is some problem with this MOD in SMF 1.1.12.
When I tested it it was only possible to add field text.
Like Kindred suggest it I change for SMF 2 RC4 and this mod is already include in it. Everything is working well in SMF 2.
Excepted the setting layout made with float div in % that mess up all the fields if we change the browser size.
Hello.
1. How can I deny user to register if he didn't input the text I want? For example, I want him to solve an equation or choose the correct answer from the selection box.
2. If the 1st one is feasible, how can I randomize these "tasks" (randomly choose one of several questions) during the registration?
The forum is 1.1.12.
Thanks in advance.
this is not the correct mod to use for anti-bot/spam...
I'm having a problem where every time I try to change the name of the field, it remains as "unnamed field". Attached is my modsettings.php file.
Quick question about this mod. I see it's not listed as being compatible with 1.1.12, but I decided to go ahead and give it a shot. (If it fails, just uninstall, right?) I backed up the files about to be modded, installed it (successfully) but do not get any indication in the admin section (Features and Options) that it's active or installed.
Has anyone come up with this before?
^^ I just installed this mod fine, and I'm running 1.1.12. It should say "Custom Profile Fields" in the menu in Features and Options (or try this link - xxxxxx/index.php?action=featuresettings)
I just wanted to pop in and say thanks for the cool mod. I run a gaming forum and wanted something that let people choose what games they were playing at the moment and this mod seemed like it could do what I wanted. With a tiny bit of tweaking I was able to remove the bits I didn't want to see and customise the layout. Was a fun exercise trying not to break anything, and it worked :D
Thought I'd add some screens as well to maybe give people other ideas of what they could do-
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi94.photobucket.com%2Falbums%2Fl92%2Fmcrat_85%2Fgames-choose.jpg&hash=15c0b5d0afa5ebf341302d5c8f897e201ac42440) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi94.photobucket.com%2Falbums%2Fl92%2Fmcrat_85%2Fgames-post.jpg&hash=5ad2d9127c2391418fc19f2eb1bc1c86e14179b3) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi94.photobucket.com%2Falbums%2Fl92%2Fmcrat_85%2Fgames-profile.jpg&hash=691f170af288b9ecf889274dd6d2c6fc4defcc2d)
Might become a bit of a nightmare as I keep adding games, but will cross that bridge when I come to it.
My problem is that i want to get rid of the ":" in front of the image in the profiles of some of my members without any title/description. Can anyone help? I am using SMF 1.1.12 with default theme.
That's in the CustomProfile.php file.
Find the DisplayFieldPosts() function and then find the if statement which corresponds with the type of custom profile you chose. For example if you are using a select box and want to remove the ":", find the if statement that ends in =='select' within the DisplayFieldPosts() function. It looks like this-
if ($modSettings['CP' . $i . '_type']=='select')
{
if ($modSettings['CP' . $i . '_bbc'])
{
$field = parse_bbc($messagevars['member']['options'][$modSettings['CP' . $i . '_id']]);
}
else
{
$field = $messagevars['member']['options'][$modSettings['CP' . $i . '_id']];
}
echo '
' . $modSettings['CP' . $i . '_name'] . ': ' . $field . '<br />';
}
Then simply delete the ":" which I've highlighted in red above (leave the quotation marks, just simply delete : ). You will then also need to do this within the DisplayFieldsProfile() function as well.
If you're not using select box, just find the if statement for the one you need. Hope that helps.
Quote from: mcrat on January 19, 2011, 08:24:55 AM
^^ I just installed this mod fine, and I'm running 1.1.12. It should say "Custom Profile Fields" in the menu in Features and Options (or try this link - xxxxxx/index.php?action=featuresettings)
Well this is just odd. I uninstalled and reinstalled and everything went smoothly, but still nothing in the "Features and Options" section of the admin. I've tried all of the installed themes (thought the core theme would be a shoe-in) and it's just not there.
Frustrating I tell ya....
Quote from: AceTW on January 21, 2011, 08:45:24 PM
Quote from: mcrat on January 19, 2011, 08:24:55 AM
^^ I just installed this mod fine, and I'm running 1.1.12. It should say "Custom Profile Fields" in the menu in Features and Options (or try this link - xxxxxx/index.php?action=featuresettings)
Well this is just odd. I uninstalled and reinstalled and everything went smoothly, but still nothing in the "Features and Options" section of the admin. I've tried all of the installed themes (thought the core theme would be a shoe-in) and it's just not there.
Frustrating I tell ya....
Try changing your forum language under Admin > Server Settings > "Default Forum Language". Make sure the default is set to English, not English-utf8 (something like that).
I had this problem awhile back, and that fixed it. Not sure if it'll do the same for you. but worth a try. Unless your default language is already set to English.
Ok, stranger still. It's set to English-UTF8, but the only options in there are English, French and German, all UTF8 versions....
Quote from: hcfwesker on January 21, 2011, 08:51:14 PM
Try changing your forum language under Admin > Server Settings > "Default Forum Language". Make sure the default is set to English, not English-utf8 (something like that).
I had this problem awhile back, and that fixed it. Not sure if it'll do the same for you. but worth a try. Unless your default language is already set to English.
There is "no" option for just plain "English"????
That's going to be the problem, since the language file for this MOD, CustomProfile.english.php , is looking for the "English" file.
You can rename the file name to, under themes/default/languages/CustomProfile.english.php to CustomProfile.english-utf8.php <--- try that ;)
^^ And you are officially the "Helper of the Hour"! Changing the filename took care of it! WooT! :)
Now to figure out where the regular English stuff is... Many thanks hcfwesker!
Your welcome :) Might want to contact your host, or ask here on SMF about getting "English" on your server settings. You're gonna run into more problems like this later on.
Quote from: sharks on January 19, 2011, 11:08:26 AM
My problem is that i want to get rid of the ":" in front of the image in the profiles of some of my members without any title/description. Can anyone help? I am using SMF 1.1.12 with default theme.
This one's a tricky fix. I removed this on mine, but don't have the original file, and can't exactly remember how it looked before. Can you attach your Sources/CustomProfile.php file.
Are you talking about on the profile pages, or in the mini-profiles with posts/messages?
i have version 1.1.12 and i installed that mod but it doesn't show in my Features and Option WHY?
Has anyone managed to install this on 2.0 RC4? Will this mod be updated for it? Dx This looks like a really great mod. >_< *has RC4*
...it's a core feature in 2.0. Go to Core Features and turn on Advanced Profile Fields.
Oh yeah, I am using that, but doesn't this one allow a person to section off each profile field with a horizontal line? Currently my custom profile fields are lumped together, and I can't seem to get a horizontal line to divide them. :S
Edit:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1127.photobucket.com%2Falbums%2Fl635%2Firinaqueer%2Fmisc%2Fcustomfields.png&hash=bc9492e6ac5fd9542c12a3a8cb9629797bb919d7)
^ It shows up like that. I want a horizontal line between the RPP and Biography section.
Don't know, but I really don't see this mod being ported to 2.0 seeing how the guy who wrote this mod later became a dev for SMF and was the one who implemented it in the core...
you could modify profile.template.php to add the HR before the start of the custom fields.
Quote from: Kindred on January 28, 2011, 09:36:04 AM
you could modify profile.template.php to add the HR before the start of the custom fields.
^That. Or you could use the
Show Enclosed Within Text (Optional): box when modifying custom profile fields ... and add this in the box.
<hr>{INPUT}
And, the very bottom/last of your custom profile fields in profiles, use this, to add a horizontal line underneath
<hr>{INPUT}<hr>
I think that could also work.
Thanks for the tips, guys! :3 Caltan ended up having to help me with inserting the horizontal rule between the custom profile fields. XD
Quote from: mcrat on January 20, 2011, 06:34:26 AM
That's in the CustomProfile.php file.
Find the DisplayFieldPosts() function and then find the if statement which corresponds with the type of custom profile you chose. For example if you are using a select box and want to remove the ":", find the if statement that ends in =='select' within the DisplayFieldPosts() function. It looks like this-
if ($modSettings['CP' . $i . '_type']=='select')
{
if ($modSettings['CP' . $i . '_bbc'])
{
$field = parse_bbc($messagevars['member']['options'][$modSettings['CP' . $i . '_id']]);
}
else
{
$field = $messagevars['member']['options'][$modSettings['CP' . $i . '_id']];
}
echo '
' . $modSettings['CP' . $i . '_name'] . ': ' . $field . '<br />';
}
Then simply delete the ":" which I've highlighted in red above (leave the quotation marks, just simply delete : ). You will then also need to do this within the DisplayFieldsProfile() function as well.
If you're not using select box, just find the if statement for the one you need. Hope that helps.
Hi hcfwesker
I would not like to completely get rid of the ":" but only when i have no description for the image link. Otherwise the ":" should be visible.
Maybe you could use an "if" statement to fix that? I'm not good with PHP, so i only have a very vague idea of what could be done, but i honestly don't know how.
Hello,
I want to use the information of a custom profile field twice:
the output in the profile should be "CP1 [img]http://www.lfsworld.net/isonline.CP1[/img]"
So if the input of field CP1 is SJB you should see "SJB [img]http://www.lfsworld.net/isonline.SJB[/img]"
edit: or even "LFS Username: [url=http://www.lfsworld.net/?win=stats&racer=CP1]CP1 [img]http://www.lfsworld.net/isonline.CP1[/img][/url]" ;)
LFS Username: SJB (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.lfsworld.net%2Fisonline.SJB&hash=79a22fcba9ee9ce60525f1f81109c9d7e9ae2561)
I think you could insert some tricky code in "Text to display after field" ;)
I hope you understand me :D
Atm I use 2 custom fields, but you have to enter the username twice ::)
Regards, SJB
Good day,
I'm running on SMF v1.1.12 with a custon theme (AS) and installed the mod using Package Manager. It was installed successfully without any errors. The problem is when I go to "Features and Options", the menu doesn't show. But there's a blank portion (as seen from the attached) available for the custom field tab/link. When you click it, it shows a blank page with only a "Save" button available (see attached). What did I missed in here?
I checked all the affected files manually and the changes were there. Both the CustomProfile.php and CustomProfile.english.php are there, too. I even save the CustomProfile.english.php file to CustomProfile.english.utf8.php since Im using English.utf8 language.
Did I missed something? Appreciate any help guys.
Thanks
Quote from: arbil on February 02, 2011, 12:34:15 AMI even save the CustomProfile.english.php file to CustomProfile.english.utf8.php since Im using English.utf8 language.
That was going to be my first suggestion.
BUT, reading your post CAREFULLY.... I noticed this "english.utf8"
It has to be changed to CustomProfile.english-utf8.php
A dash, not a period, between english-utf8 :)
Should fix the problem.
Quote from: hcfwesker on February 02, 2011, 12:46:49 AM
Quote from: arbil on February 02, 2011, 12:34:15 AMI even save the CustomProfile.english.php file to CustomProfile.english.utf8.php since Im using English.utf8 language.
That was going to be my first suggestion.
BUT, reading your post CAREFULLY.... I noticed this "english.utf8"
It has to be changed to CustomProfile.english-utf8.php
A dash, not a period, between english-utf8 :)
Should fix the problem.
Oh my... how did I missed that one... :-[ see how a single character affects a lot... ;D
thank you so much hcfwesker for pointing that out...
It's working fine now... :D
Quote from: arbil on February 02, 2011, 01:05:30 AM
thank you so much hcfwesker for pointing that out...
No problem, bud. I'm learning it as I go, too :)
Any possibility of updating this to allow the change of permissions? I have various Mod groups on my forum but only want these custom profiles available to a few groups...
Thanks for the info
20 days and no answer... this project is dead... *remove it from my forum*
I hope this works in 1.1.13 :/
Quote from: Jessica. on February 20, 2011, 09:31:15 PM
I hope this works in 1.1.13 :/
Installed it when I installed 1.1.12, no problems after upgrading either.
----------------------
Back to the issue I was working on regrading permissions...
Since apparently it doesn't look like my request for changing permissions per usergroup to see these fields will occur anytime soon, any able to help me with the code?
if ($modSettings['CP' . $i . '_view'] && !$context['user']['is_admin'])
What I want to do is allow (2) other member groups to see these fields as well, but no one else. I would assume there would have to be a way to call the group id and check to see if it is equal to the one I specify...
example:
&& $group_id == 5 && $group_id == 8)
I know the above example isn't right, but I am hoping someone knows how to call this properly.
Quote from: Kindred on November 28, 2010, 03:48:54 PM
well, my bets suggestion is: upgrade to 2.0 RC4.
I made some test in my localhost forum and I see that SMF2RC4 don't recognize the custom profile fields after update. I have a SMF 1.1.11 runing online and I want update to SMF 2RC5, but I don't want lose the data of the custom profile field mod. Any solution?
I posted this 3 years ago...
Quote from: Kindred on March 19, 2008, 05:36:58 PM
BTW: To convert this to the standard 2.0 custom fields...
UPDATE `smf_themes` SET `variable` = '*NewFieldName*' WHERE `variable` = 'CP1'; (or CP2, or CP2, etc)
I installed this last year with 1.1.11 and now updated to SMF 1.1.13.
I think I had to manually edit the files.
When i look at my Admin area and Packages this mod is not listed.
Is that because I made the edits directly in the files?
Just curious..
Thx
I have been trying to learn how to echo my custom profile field that I named 'custom_script' to the screen.
I've spent a considerable amount of time trying to understand how to go about doing this.
I am confused with the message(s) below and I am asking for some clarification.
Am I supposed to make these changes to the SSI.php file ? (or) has a new version since been released ?
Would I use a command like
echo $context['member']['options'][custom_script]
Thank you,
Terry Mullins
Quote from: 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.
Quote from: hcfwesker on January 21, 2011, 08:51:14 PM
Quote from: AceTW on January 21, 2011, 08:45:24 PM
Quote from: mcrat on January 19, 2011, 08:24:55 AM
^^ I just installed this mod fine, and I'm running 1.1.12. It should say "Custom Profile Fields" in the menu in Features and Options (or try this link - xxxxxx/index.php?action=featuresettings)
Well this is just odd. I uninstalled and reinstalled and everything went smoothly, but still nothing in the "Features and Options" section of the admin. I've tried all of the installed themes (thought the core theme would be a shoe-in) and it's just not there.
Frustrating I tell ya....
Try changing your forum language under Admin > Server Settings > "Default Forum Language". Make sure the default is set to English, not English-utf8 (something like that).
I had this problem awhile back, and that fixed it. Not sure if it'll do the same for you. but worth a try. Unless your default language is already set to English.
FYI - I just installed this MOD with 1.1.13 (using the automated install) and experienced the same situation. No problems displayed, but no
Custom Profile Fields tab in my
Features and Settings menu.
After I changed my Default Forum Language as suggested above, the tab displayed just fine...
Now to add some fields... :-)
I`ve got his mod installed before (3.15). Now I running 1.1.13 and tried to install 3.20, but failed. Inspite of [Install] button I have [Upgrade] one... If I push it, I can see message that I have to remove previous version of this mod before. But there is no [Uninstall] button near by previous mod. Then I deleted files of 3.15, but nothing has changed. What should I do now? Should I remove and install it manualy?
I`ve done it manually, it was not difficult :)
Hey i searched all forum i did not anything unfortunatly
guys,
how can i add an images when registration.?
just like country flag but in custom field.
They choise program name tex field side is a jpg.
i found this solution but idon want; using bbcode.
Maybe this question asked before but i did not.
i hope i ll find it
Is there a way to have the custom fields show up in the email that goes to admins when a new member signs up? I know my fields are CP1, CP2, etc.. and I know I can edit the email content in Login.english.php. I just don't know how toreference the field there.
Thanks!
not easily...
Hello, I am having an issue with this mod where it doubles the field...for example if I use Age: 25 its suppose to just be one field stating there age, however it doubles like so:
Age: 25
Age: 25
please help! I'm using SMF 1.1.13
You installed twice.... You will have to manually remove the duplicate code
Where do you see it displaying the age? I have two fields defined and have them set to display in the profile page, but I don't see them anywhere.
Thanks.
I installed this mod originally in December 2009 when it was at version 3.19.
I recently changed one if the fields to a dropdown and I am getting people applying to join with words appearing in that field that are not one of the options. They are obviously time wasters as the text replies in the other fields are nonesense.
How is it that someone can get something in that dropdown field that is not one of the options? Attached is what the registration looks like to someone registering.
Would installing version 3.20 help and if I did would it mess with what I have already?
Hi, sorry for being thick but where do I find out where the data for my custom profile fields is being stored?
The mod works great and is so so useful :)
I've been looking at my MySql database and can find the members table but can't find the custom profiles data there or anywhere. Any help is much appreciated.
smf_themes table
Quote from: Kindred on October 19, 2010, 04:20:35 PM
Quote from: Kindred on March 19, 2008, 05:36:58 PM
BTW: To convert this to the standard 2.0 custom fields...
UPDATE `smf_themes` SET `variable` = '*NewFieldName*' WHERE `variable` = 'CP1'; (or CP2, or CP2, etc)
Thanks for that!
Great mod! :-)
But how to read them with php from within a block of the "SimplePortal" mod?
Or just: how to read them from the DB?
Thank you for your help
Greetz
Uni
column names are listed in my previous post
Quote from: Kindred on February 24, 2011, 06:12:33 PM
I posted this 3 years ago...
Quote from: Kindred on March 19, 2008, 05:36:58 PM
BTW: To convert this to the standard 2.0 custom fields...
UPDATE `smf_themes` SET `variable` = '*NewFieldName*' WHERE `variable` = 'CP1'; (or CP2, or CP2, etc)
kindred, while this guidance works.....there is one caveat that may have caused trouble for novice forum admins like myself.
That is, SMF 2.0 creates a custom field name for the custom profile fields. I actually populated the field for one member and ran a query in phpmyadmin to reveal the correct ID to use in your magic formula.
For clarity:
My old Custom Profile Field in SMF 1.1.13 for "Favorite Ice cream Flavor" is CP3
My new Custom Profile Field in SMF 2.0 RC5 for "Favorite Ice cream Flavor" is FavIceCream
However, in phpmyadmin the field is created automagically as "cust_favicec" by SMF 2.0 RC5 and NOT FavIceCream
so my SQL script reads like this:
UPDATE smf_themes
SET variable = "cust_favicec"
where variable = "CP3"
and not
UPDATE smf_themes
SET variable = "FavIceCream"
where variable = "CP3"
Hope this helps someone.
And just want to say thanks again to the author for this awesome mod. It was truly a joy to install and use over the past few years.
Almost sad to leave it behind in our move to SMF 2.0 Gold.
I know this mod was posted some time ago but i am new to SMF. i'm running version 1.13 and installed your mod to add a text field to the registration page which i have successfully done. i want that field to show up in the users profile but it doesn't even though i've checked the box "show in profile". the reason i downloaded this mod is that i want to use this custom field to verify that new registrants are part of our organization before i grant them access. therefore i need this field would be visible in the profile of members awaiting approval. will it be visible there? my settings for this field are: show in profile: checked, show in posts: no, parse BBC: checked, text to display: none, field id: CP1, add rule: no, show field: force input, only allow admins to edit field: checked, only allow admins to view field: not checked.
Thanks, Larry
are you running in the default theme? Do you have some other profile mod, like ultimate profile running?
sorry. i'm using the default theme and i have no other mods installed
Will this mod be updated for 2.0 RC5?
SMF 2.0 is already include this feature name Advanced Profile Fields (http://wiki.simplemachines.org/smf/Core_Features#Advanced_Profile_Fields).
With the risk that this has already been raised
I want to migrate the content from this mod to SMF 2.0. On several occasions in this thread it is said that custom fileds are saved in smf_themes (even in 2.0) but in my database it is saved in smf_custom_fields. I have not got any profile mods installed and are not using the default theme (using Headline).
Thanks!
Johan
If you are using this mod, then the data is saved in the themes table. I can not answer for the data if you modified itnfurther or used a different mod.
Thanks for the quick reply! I have'nt modified this mod. The issue was regarding the posibility to migrate the content from the fields in smf_themes (from this mod) to the native custom filed fature in SMF 2.0 (which is apperently are stored in smf_custom_field in the database).
/Johan
I guess I have to move the created fields from this mod to smf_custom_fields somehow. Have anyone attempted to do this?
/Johan
I'm also having the same trouble converting this mod to 2.0 profile fields.
Looks like 2.0 is saving the data to smf_custom_fields table now, and i don't know a way to move the data from smf_themes table
hmmmm..... try this:
Do my original instructions for renaming the fields in the smf_themes table and then re-run upgrade.php
remember --- ALWAYS take a backup before doing anything like this! !!!
Thanks Kindred for the advice.
It's just that when i first enabled 2.0 profile fields, I tried to do it like Winrules instructed, by naming the fields to CP1 first and then rename it to anything I want.
And now when i look at the smf_custom_fields table, the field name is cust_cp1.
So if i run a query in smf_themes table like this.
UPDATE smf_themes SET variable = "cust_cp1" where variable = "CP1"
And then run upgrade.php it might work?
Luckily it's still our testforum i'm working with before we upgrade the main forum to 2.0
it might work... yes... if the field was alreayd recreated in 2.0, it might conflict... but I'd suggest trying that first.
Maybe a stupid question.
I ran the query, uploaded upgrade.php from the large upgrade package, tried to run it but the installation tells me there are some files missing. (didn't tell me what files)
And i thought the upgrade.php would be enough.
So do I have to upload the entire large upgrade, or what?
Or have I screved up with something?
Themes/default/languages/Install.english.php
and the upgrade*.sql files
Thanks Illori
I'm using Finnish as my language right now so i could upload install.finnish.php or switch to english before running upgrade.
And upload the upgrade*.sql files also of course.
Let's see how it works out.
I'll be back. ;D
I'm back. But can't convert this mod to 2.0 profile fields.
Ran the query, ran the upgrade.php, but no change. The (location) field doesn't show up for any user.
Anybody have an idea what to try next?
Here are my Mods & Errors on attachment. I would love to have this mod up.
To find out how to get 1.1.x fields created with this mod to show up after upgrade to 2.0, please search this topic for BINGO
Quote from: Kindred on February 24, 2011, 06:12:33 PM
I posted this 3 years ago...
Quote from: Kindred on March 19, 2008, 05:36:58 PM
BTW: To convert this to the standard 2.0 custom fields...
UPDATE `smf_themes` SET `variable` = '*NewFieldName*' WHERE `variable` = 'CP1'; (or CP2, or CP2, etc)
for those to lazy to search... :P
I just wanted to let you know that on behalf of the community, I would like to say we would really appreciate a 2.0.1 compatible version/installer!
Quote from: grafitus on June 02, 2011, 12:48:36 PM
SMF 2.0 is already include this feature name Advanced Profile Fields (http://wiki.simplemachines.org/smf/Core_Features#Advanced_Profile_Fields).
Wow, that's embarrassing....
Hi folks,
I love the Custom Profile Mod ... but I am trying to move a newly created dropdown custom field below the standard location details ... can this be done?
Example:
--------------------------------------------------------------------------------
My Time Zone: Eastern Standard Time (EST)
--------------------------------------------------------------------------------
Gender: Male
Age: N/A
Location: New York
Country: United States
Local Time: November 12, 2011, 02:03:12 PM
(WOULD LIKE the custom field 'My Tome Zone' HERE!)
.. looked at Index, Display and Profile.php files, but can't see how to identify the custom field and place it below Local Time?
Any help appreciated, thank you!
Cal :)
.. guess this is a tougher query than I first thought!
Oh well, thanks anyway.
All the best,
Cal :)
Sometimes you just have to be patient. I'm not 100% sure on this, but I'll try my best ...
Quote from: Calman on November 13, 2011, 01:53:17 PM
.. guess this is a tougher query than I first thought!
.. looked at Index, Display and Profile.php files, but can't see how to identify the custom field and place it below Local Time?
I seen you try Profile.php , is that from Sources/Profile.php?
you should check
/Themes/default/Profile.template.phpFind
<td><b>', $txt['local_time'], ':</b></td>
<td>', $context['member']['local_time'], '</td>
</tr><tr>';
Add this directly BELOW
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldsProfile();
then you will have to remove the same code from the spot it was riginall added from the MOD, or it'll show in 2 different places.
Find
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldsProfile();
// Can they add this member as a buddy?
Replace with
// Can they add this member as a buddy?
Be sure to download and save the file, in case any errors or this doesnt work and you want to revert back.
Only thing is, I'm not too familiar with SMF1 mods anymore, but i think all your custom fields will show, you cant separate them on SMF1 if i remember correctly.
Technically you could use this mod to create your very own custom profile, why have I over-looked this for so long!
Quote from: Illori on September 25, 2011, 07:38:46 AM
Quote from: grafitus on June 02, 2011, 12:48:36 PM
SMF 2.0 is already include this feature name Advanced Profile Fields (http://wiki.simplemachines.org/smf/Core_Features#Advanced_Profile_Fields).
But how can one get the custom fields to be listed in the Members List??? (version 2.0.1)
Quote from: gastan on October 21, 2009, 11:00:09 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>
Would this edit limit character length for all added fields if you have more than one? Say you set it at 8 ... would all added fields be limited to 8 characters?
I have two added fields but only want to set a character length limit for the 2nd one. I found the code mentioned on two lines (lines 30 and 88 in my file). I changed the one on line 88 thinking it would limit the 2nd field but it had no effect. Do I need to change both? If I change both, will it effect all added fields?
BTW, the code in my file doesn't exactly match the one Kindred posted. It doesn't have the 'max length'. It looks like this:
<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="50" value="', @$context['member']['options'][$modSettings['CP' . $i . '_id']], '" /></td>
I guess what I'm asking is how do I set a character size limit for a particular added field.
Thanks.
Max length can not be set on a per field basis. :(
I would love to see a maxlength field added to the custom profile field settings area. My users are abusing these fields. :( (hopefully just an edit or two i can make without uninstalling and reinstalling!)
Thanks for an awesome mod.
well, since this is already a feature in 2.0, I don't believe that any further development is being done with this mod...
you would have to create a new database field and add it to the admin area...
$modSettings['CP' . $i . '_maxlen']
and then call it in the input tag....
Is there a mod that allows you to put any/all of the custom fields on a report?
If there isn't - I need to have a report of my membership data including the custom fields. Anyone wants to take on the challenge?
This mod is exactly what I need, but when I try to install it, I get "Test Failed" on almost every file in the list.
The only other things I have installed are Proxy Blocker, Bad Behavior, and Stop Spammer.
SMF version?
2.0.2
then you don't need the mod at all. custom profile fields are a standard feature in 2.x
For 2.0.2
Admin> Configuration > Core Features > Here you can activate Custom Profile Fields already built in.
Thanks, and sorry for the late reply. I couldn't get the forum to accept a reply last night.
I've seen the built-in custom field, but it looks like it's pretty basic (i.e. I can have a text field, or a checkbox, etc). It looks like this mod would give me the ability to have a multiple choice field, like this for example:
Your favorite type of cycling:
[ ] Road
[ ] Mountain
[ ] BMX
[ ] Cyclocross
[ ] Trials
And the person could check each item they're interested in and have it show with their posts.
Unless I'm not getting the gist.
You should be able to do that in 2.0....
This mod was not updated for 2.0 and probably will not be.
Thanks, I'll play with the built-in one.
I installed this on SMF 1.1.16 and nothing appears in the profile settings when I try a few test edits. I checked that all the coding for 1.1.16 and file moves were done correctly. Can anyone advise what is blocking the operation? I have Aeva Media 1.4 installed.
Jane
BTW I am using a custom theme not the standard. If that could explain my problem can someone let me know, also what files need to be edited in that case?
Jane
if you are using a custom theme on 1.1.x, you will have to manually add/change the code in the template files for your custom theme(s).
See the mod parser on the mod download page for instructions on what edits to make to what files
feature request:
expanding this mod something like this Custom Fields On Memberlist (http://custom.simplemachines.org/mods/index.php?mod=1520)
I installed this mod on SMF 1.1.15 and copied over the relevant files from default to the custom theme, making sure all moves done as described. But after adding a text or text selection, it doesn't appear in my admin profile when I click in the profile tab.
Any ideas on what I might have done wrong?
Jane
I have used this mod a few year on SMF 1.1.16 and really like it.
We use it for new user to select a softball team name when they register on the site.
However some team names have changed and I can add those for new users who register (as a new option for that Field)
But how do i get the team name to change that is attached to the user's profile (the old name shows up when they post a message)? I suspect this is cast into the database and nothing I can do with this mod to affect those who registered prior.
Thoughts?
correct... you would have to do such a change directly in the database
Like others who have used this mod, I have a pretty huge database of custom fields, is there a script to move the information in this mod over to the custom fields built into 2.02? Or should I just tell my users to start from scratch?
did you bother to search? I have posted the SQL script at least three times...
I apologize! I'm so sorry I missed it!
Thank you.
When I try to install this mod I get error
QuoteInstallations actions for "Custom Profile Field Mod":
Installing this package will perform the following actions: Type Action Description
1. Execute Modification ./Sources/ModSettings.php Test failed
2. Execute Modification /home/users/web/b611/sl.lakestcl/public_html/smf/Themes/default/Profile.template.php Test successful
3. Execute Modification /home/users/web/b611/sl.lakestcl/public_html/smf/Themes/default/Display.template.php Test successful
4. Execute Modification /home/users/web/b611/sl.lakestcl/public_html/smf/Themes/default/PersonalMessage.template.php Test successful
5. Execute Modification /home/users/web/b611/sl.lakestcl/public_html/smf/Themes/default/Register.template.php Test successful
6. Execute Modification ./Sources/Register.php Test successful
7. Execute Modification ./Sources/Profile.php Test successful
8. Extract File ./Sources/CustomProfile.php
9. Extract File /home/users/web/b611/sl.lakestcl/public_html/smf/Themes/default/languages/CustomProfile.english.php
Running 1.1.19
http://wiki.simplemachines.org/smf/Error_in_mod_installation
I'd be planning an upgrade to 2.0 at this point personally, where this is a core feature.
Quote from: Kindred on December 05, 2013, 02:24:45 PM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Thanks. I think I'm going to start looking at upgrading forum to 2.0 seems alot of the older mods aren't working anymore. Just not very code savy so always concerns me to upgrade to a version I'm not familar with.
Luckily for you, this very long thread contains a way to upgrade from this mod to the SMF 2.0 inbuilt custom profile fields.
Just search this topic for "Guidance"
It can be tough to find replacements for favorite old mods in the newest version. I feel the same concern about my favorite gallery mod.
Sooner or later, though, you are going to want to make that leap.
You can get lots of information on upgrading mods on the various mod boards -- for the new mods you want to move to.
And also a lot of general upgrade information on the general support boards.
You'll be fine.
Is it possible to delete the ":" because i want to make awards system with pictures and it bothers me! sorry for my english!
Quote from: no-one on July 06, 2014, 02:50:46 PM
Is it possible to delete the ":" because i want to make awards system with pictures and it bothers me! sorry for my english!
Yes, it can be removed, but just so we're clear, you are talking about THIS mod installed for SMF 1.1.xx or the custom field default feature for SMF 2.0.x?