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?
(http://i2.tinypic.com/v2zcdy.png)
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?
(http://i2.tinypic.com/v2zcdy.png)
You can't delete fields in this version. But if you disable it it won't show up anywhere besides the admin interface.
Quote from: sbarnes on April 09, 2006, 04:51:39 PM
Hi there,
Great little mod, have successfully installed it first time and appears to work great on the default theme.
I am also using a copy of the default theme with just a different style.css
I have copied the following modified files from my default theme directory to my second theme directory:
register.template.php
personalmessage.template.php
profile.template.php
display.template.php
What else do I need to do to get it to work on my second theme.
All admin settings and pages appear but mod sections in the profile and posts pages are missing.
Are you sure there are any field enabled? Because if there aern't then nothing will show up. Also you really don't need to copy all those files, just make the changes I specify in the first post of this topic.
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'
(http://img356.imageshack.us/img356/2237/customfields4ak.jpg) (http://imageshack.us)
Then I've created a PHP block (I'm using Tinyportal as CMS) with this code:
if ($context['member']['options']['realm']=='******')
ssi_recentTopics();
// it's only an example
And in my profile I've selected '******' as realm.
What it's wrong?
><" 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
(http://img132.imageshack.us/img132/2549/capture16xd.jpg)
(http://img69.imageshack.us/img69/1028/capture27eq.jpg)
john109, I will try to have all the Mambo/Joomla Porblems fixed ASAP.
Quote from: domipedro on April 11, 2006, 07:02:55 PM
Hello
exuse me for my poor english.
This is a very good mod, but i have a problem when i force input a field in registration.
When i register a account, i chek the box, when i validate, i have the error:
"You did not fill in the "Operateur" field."
This is a bug?
I have tested in 3 forum for test.
thank
by
(http://img132.imageshack.us/img132/2549/capture16xd.jpg)
(http://img69.imageshack.us/img69/1028/capture27eq.jpg)
Is the problem that the error message is in english or that it isn't supposed to give an error message?
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
(http://i24.photobucket.com/albums/c1/dyinfree/customprofile1.jpg)
Link#1
Quotehttp://www.mysite.com/joomla/index.php?option=com_smf&Itemid=29&action=featuresettings;sa=profile;sesc=528fa4fc1e539a4059f6b6a1f64004ba
Link#2
Quotehttp://www.mysite.com/smf/index.php?action=featuresettings;sa=profile;cp=1
Does that shed some light on this? I'm a noob at all this so I wouldn't know where to make any modifications.
Quote from: john109 on April 13, 2006, 05:36:09 PM
(http://i24.photobucket.com/albums/c1/dyinfree/customprofile1.jpg)
Link#1
Quotehttp://www.mysite.com/joomla/index.php?option=com_smf&Itemid=29&action=featuresettings;sa=profile;sesc=528fa4fc1e539a4059f6b6a1f64004ba
Link#2
Quotehttp://www.mysite.com/smf/index.php?action=featuresettings;sa=profile;cp=1
Does that shed some light on this? I'm a noob at all this so I wouldn't know where to make any modifications.
Basically the 2nd link isn't getting wrapped. It should be (mabey with the session ID)
Quote
http://www.mysite.com/joomla/index.php?option=com_smf&Itemid=29&action=featuresettings;sa=profile;cp=1
I don't know exactally how the preg_replace (or str_replace, not sure which on the bridge uses) works with the bridge. You could manually code in the option=com_smf&Itemid=29, but that would make upgrades hard.
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....
(http://www.worlddatabase.com/example.gif)
so I need to do something like....
for each charter member (WHERE ID_GROUP = 4) - print that line.
I have also created two checkbox fields...
"Appear in List?" (CP5) and "Show Amount Contributed?" (CP6)
I only want their member name to appear in the list IF CP5 is checked... and only want "amount contributed" (CP2) visible if CP6 is checked. (is THAT doable?)
That brings up a question... if the field is set so only the admin can see it, is it possible to make it visible though SSI.php? (yikes!)
... and finally, I would have the same question as Kalimas... I would like only users from ID_GROUP 4 to be able to view and edit some fields.
Any help would be most appreciated!!!!!!!!!!
Thanks!
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.
(http://i24.photobucket.com/albums/c1/dyinfree/customprofile2.jpg)
But in posts it shows like this. What can I add to get it starting on its own line?
(http://i24.photobucket.com/albums/c1/dyinfree/customprofile3.jpg)
Is it also possible so that if they don't enter anything in that custom field nothing shows in the posts/pm's ? If I leave the field blank the text I set to print before and/or after the field still gets printed. Maybe for the future some might want the choice to show or not show if the field is empty?
Edit - Forget everything I said above. I'm still figuring things out. I had set it to show in posts next to the pictures. That's why it looked like that in my screenshots. ::)
Still though how about when the field is empty? Choice of whether or not to still print the text?
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):
(http://www.flipdesign.nl/aKC/editbox.png)
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.
(http://i24.photobucket.com/albums/c1/dyinfree/customprofile4.jpg)
Is there a way I can upgrade manually? Is there a big difference between the two versions that I should upgrade or should I stay with 2.12. If it ain't broke why fix it right? :D
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.
(http://i24.photobucket.com/albums/c1/dyinfree/customprofile4.jpg)
Is there a way I can upgrade manually? Is there a big difference between the two versions that I should upgrade or should I stay with 2.12. If it ain't broke why fix it right? :D
theres no need to uninstall, you can just upgrade.
Quote from: yutt on April 19, 2006, 03:15:05 PM
I'm having issues when trying to access "Features and Options" after installing 2.13.
Parse error: parse error, unexpected '<' in [...]/Sources/ModSettings.php on line 441
Here's what the code looks like in that area. Clearly something was not changed as intended in the file.
438: function ModifyKarmaSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
441: </operation>
<operation>
<search position="replace"><![CDATA[
445: );
There were some major issues with the install package, could you please uninstall that package, redownload it, and then install again?
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:
(http://img244.imageshack.us/img244/5220/login5tx.th.gif) (http://img244.imageshack.us/my.php?image=login5tx.gif)
Believe or not, this is RC2 default theme. Think about my manuel modification to the theme, and how difficult it is for me to upgrade your package now :)
Quote from: HarzeM on May 04, 2006, 04:19:01 PM
Quote from: winrules on May 04, 2006, 03:56:17 PM
you should be able to just find and replace all the text strings in the file.
I can't, because I have modified your code for translation, so they no longer match.
And also, I can't find many codes due to template modifications. I will give a picture of my register page:
(http://img244.imageshack.us/img244/5220/login5tx.th.gif) (http://img244.imageshack.us/my.php?image=login5tx.gif)
Believe or not, this is RC2 default theme. Think about my manuel modification to the theme, and how difficult it is for me to upgrade your package now :)
HarzeM, I know this would be hard to do. I will put the text in language files in the next minute version. It would be preety much impossible to implement custom fields on registration with that template without modifying the mod's code.
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:
(http://img509.imageshack.us/img509/8185/customfields8kg.png) (http://imageshack.us)
Quote from: NEOhidra on May 07, 2006, 10:43:21 AM
Кирил is data that users enter. It look like this:
(http://img509.imageshack.us/img509/8185/customfields8kg.png) (http://imageshack.us)
That looks like a problem in the way SMF handles profile fields, not in this mod, because I tried it in different fields and it didn't work either. I know there are some internationalization issues with RC2.
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':
(http://www.flipdesign.nl/aKC/editbox.png)
Quote from: GJ-tje on May 07, 2006, 07:23:30 PM
As I have requested before, is it possible to make a (adjustable) fixed width for the text(area) type for custom profile fields? Because they can now sometime screw a profile up...
And about my other request, about the 'editor' for BBC? I really think it would make a needo feature for the mod itself and I also think that more users will try your mod!
I meant this 'editor':
(http://www.flipdesign.nl/aKC/editbox.png)
There were no new features in 3.0. I will consider all of those things for 3.1.
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?
(http://i78.photobucket.com/albums/j97/nndth/phpmyadmin.gif)
look at the left column
------------------------------------
Or, I have to download again the forum and upload again the files?
Quote from: NND on May 25, 2006, 04:00:04 PM
Does anyone know where the packages are stored in the database?
(http://i78.photobucket.com/albums/j97/nndth/phpmyadmin.gif)
look at the left column
------------------------------------
Or, I have to download again the forum and upload again the files?
Packages aern't stored in the database...There stored in the /Packages directory.
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...
(http://www.flipdesign.nl/aKC/editbox.png)
This is an image of what I mean...
Is this added, if not, could it be added, because I think it would make a lot easier for a lot of users!
Many thanks in advance!
Quote from: GJ-tje on June 09, 2006, 01:51:33 PM
I can't find if it's added, so that's why I am asking this...
Some time I ago, I asked to add a feature for textfields where users can use the editbox, so that they don't have to know the BB code...
(http://www.flipdesign.nl/aKC/editbox.png)
This is an image of what I mean...
Is this added, if not, could it be added, because I think it would make a lot easier for a lot of users!
Many thanks in advance!
Sorry, but I just don't think many people would use that. If I get requests for it from other users I may add it, but I just don't see many people using it.
Quote from: winrules on June 09, 2006, 03:44:49 PM
Quote from: GJ-tje on June 09, 2006, 01:51:33 PM
I can't find if it's added, so that's why I am asking this...
Some time I ago, I asked to add a feature for textfields where users can use the editbox, so that they don't have to know the BB code...
(http://www.flipdesign.nl/aKC/editbox.png)
This is an image of what I mean...
Is this added, if not, could it be added, because I think it would make a lot easier for a lot of users!
Many thanks in advance!
Sorry, but I just don't think many people would use that. If I get requests for it from other users I may add it, but I just don't see many people using it.
I think that many users will use it... Especially the users without much knowledge of BB code... ;)
You can't expect from users that they know any BB code as well... :)
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:
(http://img348.imageshack.us/img348/4084/lolaw0.jpg)
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:
(http://img76.imageshack.us/img76/3585/naamloos3232ox5.th.jpg)
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 (http://www.thesoulgirl.com/emote/Happy/bigcuddleee.gif)
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.