News:

Wondering if this will always be free?  See why free is better.

Main Menu

Custom Profile Field Mod

Started by winrules, March 30, 2006, 02:21:25 PM

Previous topic - Next topic

Kindred

Are you using the default theme?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

babyfiats


Thundershot

Quote from: Thundershot on November 19, 2008, 08:42:23 AM
After finally getting the "selection box" to work, I have a problem with the placement. I want the user to choose from 5 images, but I just want the images to show up next to the other images in the profile when posting. I don't need the words, just the image (which I did as bbcode). There's no option for the "selection box" add-on to place next to the other images like the text one. Is there a simple way to give that option?


Thanks
Chris

Just checking to see if anyone missed this..


Thanks
Chris

darthmole

#2303
Thank you to the creators. I love this mod and am glad to see that it has been updated to work with the newer forums.

Just so individuals have one more search result or an answer to a question I saw asked at least twice but without any direct answer (that I could find anyway). Sorry if it was.

Ensuring that your language is set to "English" (simply English) will display the link at the top of you currently cannot see it.

Go to "Admin" > "Server Settings" > "Default Forum Language" (third grouping down) > "English"

Note: "English-utf8" will cause a space to appear where the link to the Custom Profile Field settings should be, but not actually display it.

Again, thank you to those are created and maintain this mod!

Edit: I did find my above situation answered a few pages back. So here it is again for the sake of having it appear a second time for nimrods like me :X

darthmole

Hello it's me again. Just to recap: I'm using the default theme, have the default language set to English and have no errors in the mod install (please see below). In default and the custom theme (I know it won't work in the default theme unless I manually update it, but it isn't working in the default theme either) I do not see the field to edit or as empty.

Now here is the fun part: the custom field appears in BOTH my custom theme and the default them on the registry page. But it doesn't show up on the profile summary page or on the Forum Profile Information page where you make changes.

I have read the pages several times and perhaps haven't been able to put two and two together. Thank you.


Installing this package will perform the following actions:
Type   Action   Description
1.   Execute Modification   ./Sources/ModSettings.php   Test successful
2.   Execute Modification   ./Themes/default/Profile.template.php   Test successful
3.   Execute Modification   ./Themes/default/Display.template.php   Test successful
4.   Execute Modification   ./Themes/default/PersonalMessage.template.php   Test successful
5.   Execute Modification   ./Themes/default/Register.template.php   Test successful
6.   Execute Modification   ./Sources/Register.php   Test successful
7.   Extract File   ./Sources/CustomProfile.php   
8.   Extract File   ./Themes/default/languages/CustomProfile.english.php   

Rumbaar

Quote from: darthmole on November 27, 2008, 01:18:59 PMNote: "English-utf8" will cause a space to appear where the link to the Custom Profile Field settings should be, but not actually display it.
Actually this is because each language is a distinct different set of files, hence a mod installs to english only (most times).  Like any other language as long as you translate and manually install the appropriate $txt[] into their language files it will work 100%.  But in regards to english it's far easier to just change the server default and user default language to english.

This is usually an issue when forums are installed via Fantastico, as it's default setting is english-utf8

This line:
2.   Execute Modification   ./Themes/default/Profile.template.php   Test successful
Means it's been installed and will work with the default CORE theme guaranteed.  Are you 100% sure you've checked and were using the default CORE theme?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

darthmole

Unless I am overlooking yes I am certain. I'm including screen shots below in case I am indeed overlooking something. The last image has a red box around the custom field which is showing up on the registry page. I thank all in advance and apologize if this is a stupid mistake or me over looking something. Hopefully I'm not and at the same time it is a simple fix. Thank you.

img1


img2


img3


img4


img5



Rumbaar

Well what is the setting for that custom field?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

darthmole


darthmole

Annnnnnnnnnnnnnnd there in lies my stupidity.

While I have admin rights to actually work on the board it would seem that I am not part of the admin permissions group (another friend also works on the forum) so the field was being hidden from me. Further more for some reason I did not catch the "Only" at the beginning of those options which is why I wasn't seeing the field in the profile.

My sincere apologies for any time lost on this issue. Thank you very much for your support regardless, but still my apologies.

auss9960

Hi All,
        I have just manually installed this Mod to my forum, as the auto install would not work with my theme. I followed all the instructions correctly, and have the Profile Fields button showing in my features and options panel. But when I click on the button All I get is a blank field with a save box below it, but nothing to edit or change. I am lost to see where this has broken down. Maybe I'm looking too closely? Can someone help please??

I have attached a screen cap:



And my ModSettings.php

http://aussienaturists.com/ausnatimages/ModSettings.txt [nofollow]

If anyone can help me get this working I'd be ever so grateful.

Paul

wakewatcher

I just set up smf this week.  (Version 1.1.7) Just for practice I copied the default theme into a new theme and switched to it not thinking anything about it.  It worked fine.  Then I decided to add my first mod.  (This mod.)  I installed it with the package manager and all seemed to go well.  I got all the successful messages and it completed without complaining.  However when I went to the "features and options" menu there was no additional "profile" tab after the "karma" tab.  Investigating further it was revealed that the mod only affects the 'default' theme.  Good enough.  I changed back to the default theme but still no profile tab.  So I thought maybe it got hosed because I installed it when I was using another theme so I went back to the that theme and uninstalled the mod.  Then I changed back to the default theme and re-installed the mod.  Still no joy.  Then I saw on the mod page something about manual installation instructions.  I looked at those and compared them with the file changes that were auto-magically done and they were character for character correct.  However I still get no profile tab in the Features and Options section of the admin panel.  Any help on what I over looked?  -thx-
smf 2.0.18

Rumbaar

@auss9960 Did you perform the normal automated part of the installations?  Are there any errors logs?  I will guess you are missing the appropriate mod specific additional .php files.

@wakewatcher any error log entries?  What is your server default language?  If it's not english then you'll need to set it as that or add the appropriate $txt[] strings to your language file.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

wakewatcher

Thanks for some hints. (In my excitement I didn't even see the Error Log.)  My server default language is English.  But despite the package manager claiming it installed successfully it does have errors.   I have two errors:
Quote8: Undefined index: cp_cpfields
File: /home/steve/public_html/bvg/smf/Sources/ModSettings.php
Line: 142
and
QuoteUnable to load the 'CustomProfile.english-utf8' language file.

I assume the undefined index must be something in the missing file.  However when I look at the package installation documentation it doesn't mention anything about the 'CustomProfile.english-utf8' language file.  It does mention the 'CustomProfile.english.php' file which is loaded in the the themes/default/languages directory.

Hmmm.....
smf 2.0.18

wakewatcher

I looked at the Mod zip file and there is no 'CustomProfile.english-utf8' included.  I also looked at line 142 of ModSettings.php and it is referencing cp_cpfields  but cp_cpfields seems to be defined in CustomProfile.php line 33 which was loaded.  So I'm stumped.
smf 2.0.18

Rumbaar

Well that reference to english-utf8 would indicate to me that your server default language is still english-utf8 or your personal account settings are still set to english-utf8.  Correct these to just plain english and you'll be set.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

wakewatcher

Thanks!   This whole experience is like taking a drink from a fire-hose.  (But it tastes great!)  Since I just got started and don't have a user based etc.  I just started over with version 2b4.
smf 2.0.18

Rumbaar

I'm not sure what you mean, but you can still have a personal account language setting different to the server default if you allow it.  Now you can disable the ability for your users (including you) to choose their own.  Which will force them use the default language.

Now that being said the Custom Profile feature is already included in SMF 2.0, so you don't need to install this mod.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

auss9960

Dear Rumbaar & wakewatcher,
                                                 I had realised the problem with the language file, but not the solution. I had already hardcoded the $txt['cp_cpfields'] to 'Profile Fields' to get a little further than Rumbaar did, in seeing the next blank page. But on changing my default language to english instead of english-utf8, I can now see the stuff on that blank page to enable the add fields link. Thanks for helping me solve this.

Auss9960

Blinker

I've used this fantastic mod to create some custom fields specifically for my registration page.

One question: is it possible to make it so the text for the field name doesn't always show up as bold? I'd like to make it standard text and only have certain words in bold.

The field description text is normal but a smaller font so it would still stand out.

Advertisement: