News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Custom Profile Field Mod

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

Previous topic - Next topic

Kindred

yup... you will have to manually add the mod changes to your custom 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."

lakestclair

I'm running 1.1.11 and tried to install this mod and this is the error I get how do I fix it to install this mod?

I'm also running TinyPortal if this has something to do with it.

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

Kindred

that means that you will have to manually apply the mod changes to the file(s) which failed
Сл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."

lakestclair

Quote from: Kindred on February 09, 2010, 12:14:29 PM
that means that you will have to manually apply the mod changes to the file(s) which failed

Well that is outta my capabilities...I'm not good with code.

gastan

#2864
This is the most important mod I have on my forum.  It was working fine until ?? ??  All of a sudden, as I was showing someone step by step how to register, I learned that it was not working anymore.  Don't know when it stopped (haven't had anyone register in 7-14 days) but I suspect it was when I upgraded to version 1.1.11.

I have 3 added fields that must be completed.  "Force input" is selected for all 3 fields.  The 3 fields are still on the registration page and they must still be filled in before the registration will go thru.  But when I go to the registrants profile page to check the info (so I can verify it before approval) the 3 fields are there but they are empty.  No information.

I used package manager to uninstall the mod.  It said that ./Sources/ModSettings.php test failed.  I uninstalled anyway.  Then I used package manager to re-install the mod.  ModSettings.php failed test again.  I re-installed anyway. 

Then I got the parse info and checked the file and everything matches a manual install except where it says:
Find:
);


// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];


Replace with:

'profile' => 'ModifyProfileSettings',
);

// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];


My file says:
);


$subActions['custom'] = 'ModifyCustomTabSettings';


// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];


There are 2 places where the $subActions['custom'] = 'ModifyCustomTabSettings'; line is after the ); in the way of where parse instructions say to install new code.  I tried adding the correct code after it in both places but the mod still didn't work.  And afterwards I could not access Admin > Features and Options.  Replaced the saved backup file and can get back into "Features and Options" but mod still does not work.

Anyone able to help, please.  I'm pretty good at following instructions but having code in the file that the parsing instructions doesn't show is throwing me off.  The parse instructions say to put the new code before the ); but then that leaves  the ModifyCustomTabs code in there when the parse instructions don't show it.  Should I add another ); after the ModifyCustomTabs code line and then the 'profile' => 'ModifyProfileSettings',  code and than another ); ?  I tried adding the 'profile' => 'ModifyProfileSettings', code before the ); and left the ModifyCustomTabs code where it was but that didn't work, either.  ??

Oh yeah, I do have a customs tab mod installed and it is working fine (but it was installed long before Custom Profile Field stopped working correctly).  Using default theme.


gastan


truckerpete

#2866
After installing ir normally and even by hand It still is not working with version 1.1.11

It creates a tab in the Features and Options but it does not have a name nor does it have anything to modify when clicked on  (no tab in default theme)
This was off a fresh install only addition was the theme
I would like to get this working proper, please pm me if anyone has a fix
images below




thezkitten

i'm having some issues with the 1.1.11 upgrade, and while working on the test forum i set up to make sure everything would work, i ran into the same problem!- the custom field tab disappeared!

what worked (at least it's the thing that I think did it), was copying all the info (minus the <?php and ?>) from the
CustomProfile.english.php
to the end of 
ModSettings.english.php
(before the ?>)

you can find them in /Themes/default/languages

like i said, i think that's what worked, but it's about 100 steps behind what i'm working on right now, so i'm not totally sure.
copying the info over won't harm anything, just make sure to add, don't copy over!

:)
http://zkitten.com  :|:  http://chaoticlycreative.com  :|:  http://etsysteamteam.com [nofollow]

Lots O Smileys not working for you? This may be it!  Also, Need to Show Custom Fields in Memberlist? this could help! (for 1.1.x)

bhaveshtolia

Hi All,

Sorry to seem naive and all but i have installed this mod and am unable to find the option where it has been enabled.

It has been installed successfully on my website. However i am unable to find the option under Features and Options.

Advise where to activate it ...

Angelina Belle

Under Admin, go to "Features and Options" and choose Custom Profile Fields.

That'll be .../index.php?action=featuresettings;sa=profile

Once you add a field, you can enable it and change its settings, and it will show where you've told it to show up.




Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Kindred

please note: Mods install in the default theme and English only.  (English utf-8 is not the same as English)
If you are not running in English then the language strings may not be displaying...
if you are using a custom theme, it may require you to manually make the changes in order for the mod to work
Сл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."

bhaveshtolia

Quote from: AngelinaBelle on February 28, 2010, 09:45:05 PM
Under Admin, go to "Features and Options" and choose Custom Profile Fields.

That'll be .../index.php?action=featuresettings;sa=profile

Once you add a field, you can enable it and change its settings, and it will show where you've told it to show up.

It dosent show the " custom profile field " tab in my profile.


Please let me know what i am doing wrong. I thank you for your advise.

Kindred

Quote from: Kindred on February 28, 2010, 10:19:11 PM
please note: Mods install in the default theme and English only.  (English utf-8 is not the same as English)
If you are not running in English then the language strings may not be displaying...
if you are using a custom theme, it may require you to manually make the changes in order for the mod to work
Сл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."

bhaveshtolia

Quote from: Kindred on February 28, 2010, 10:19:11 PM
please note: Mods install in the default theme and English only.  (English utf-8 is not the same as English)
If you are not running in English then the language strings may not be displaying...
if you are using a custom theme, it may require you to manually make the changes in order for the mod to work

Mods Installed in Default theme only. I have not installed any other theme (Core Theme) and the language is set to English Only. Still no success. Can any one tell me how it is supposed to look like. May be with a screenshot. Again the help is appreciated.

Leemy

This was an important mod for me in 1.1.11 and now I'm on 2.0 RC2 and it's not working :(

There is built-in functionality in SMF 2.0 RC2 for additional profile fields.  My question is:  Where in the DB does this mod place all the fields, and has anyone made a script that would bring it to the 2.0 db table (smf_custom_fields)?  My members really want this and I'd like to script it over.

Thanks!

Arantor

Ummmm, it's in the same place, smf_themes table. smf_custom_fields only lists what the fields are.

In this mod, they're stored in the themes table, against theme = 1, id_member matches the user, and "variable" matches CF1, CF2, CF3 etc.

In 2.0, they're not called that. So you have to find out the names of the fields as they are in 2.0, and have it rename the items in the themes table.

Alternatively, use 2.0, create fields in 2.0's admin panel called CF1, CF2 etc, then rename them to whatever you want them to actually be called.
Holder of controversial views, all of which my own.


Kindred

just like this mod, the 2.0 function stores the data in the smf_themes table of the database.

There have been a few code snips for transferring the data in this thread, try using search?
Сл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."

Leemy

didnt find the existing scripts but it was pretty easy to do myself in the db, thanks guys. didnt know it was in smf_themes!

NumLock

Great mod, easy install! Thanks a lot!

azhriel

#2879
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/content/a/l/i/alitaptap/html/Sources/ModSettings.php on line 127

got that error when i click features & options.... im using smf 1.1.8

here's my other installed mod
Mod Name  Version 
1. SMF Staff Page 1.6 [ Uninstall ] [ List Files ] [ Delete ]
2. Anti-Spam Verification Questions 1.02 [ Uninstall ] [ List Files ] [ Delete ]
3. Disable Right Click v3 3.1 [ Uninstall ] [ List Files ] [ Delete ]
4. Top Stats 1.1 [ Uninstall ] [ List Files ] [ Delete ]
5. Aeva ~ Auto-Embed Video & Audio 5.2.56 [ Uninstall ] [ List Files ] [ Delete ]
6. SMF Arcade 2.0.17 [ Uninstall ] [ List Files ] [ Delete ]
7. Welcome Topic Mod 2.0.3 [ Uninstall ] [ List Files ] [ Delete ]
8. Top Karma On Stats 1.0 [ Uninstall ] [ List Files ] [ Delete ]
9. SimplePortal 2.2 [ Uninstall ] [ List Files ] [ Delete ]
10. SMF 1.0.16 / 1.1.8 Update 1.0 [ List Files ] [ Delete ]
11. Simple Award System 2.0.2 [ List Files ] [ Delete ]
12. SMF Media Gallery 1.5.6 [ Uninstall ] [ List Files ] [ Delete ]
13. Advanced Reputation System 0.1.5 [ Apply Mod ] [ List Files ] [ Delete ]
14. Karma Buttons 1.1 [ Uninstall ] [ List Files ] [ Delete ]
15. SMFShop 3.0 [ Uninstall ] [ List Files ] [ Delete ]
16. Stars And Badges 2.1 [ Uninstall ] [ List Files ] [ Delete ]
17. SMF Articles 1.2 [ Uninstall ] [ List Files ] [ Delete ]
18. Eliana Mod 2.0 [ Apply Mod ] [ List Files ] [ Delete ]
19. Simple staff color legend 1.1 [ Uninstall ] [ List Files ] [ Delete ]
20. Enhanced Quick Reply Box 2.0.2 2.0.2 [ Uninstall ] [ List Files ] [ Delete ]
21. Global Announcements 1.0 [ Uninstall ] [ List Files ] [ Delete ]
22. Admin Notepad 1.0 [ Uninstall ] [ List Files ] [ Delete ]
23. VisualWarning 1.42 [ Uninstall ] [ List Files ] [ Delete ]
24. zCommunity 0.8.1 [ Uninstall ] [ List Files ] [ Delete ]
25. Tinypic Plugin 1.0.0 [ Uninstall ] [ List Files ] [ Delete ]
26. Member Awards 1.0.2 [ Uninstall ] [ List Files ] [ Delete ]
27. Invite 1.14 [ Uninstall ] [ List Files ] [ Delete ]
28. Affiliates 1.4 [ Uninstall ] [ List Files ] [ Delete ]
29. Welcome Back 1.0 [ Uninstall ] [ List Files ] [ Delete ]
30. eFloating Bar for Guest & Members 0.1 [ Uninstall ] [ List Files ] [ Delete ]
31. Header Rotator 1.1.0 [ Uninstall ] [ List Files ] [ Delete ]
32. Irritate lurkers with 0 posts 0.1 [ Uninstall ] [ List Files ] [ Delete ]
33. Enhanced PM Warning Message 1.0 [ Uninstall ] [ List Files ] [ Delete ]
34. Top 10 Posters Stats (Today, This Week, This Month) 1.5 [ Uninstall ] [ List Files ] [ Delete ]
35. Highslide Image Viewer 1.3 [ Uninstall ] [ List Files ] [ Delete ]
36. Force Topic Read On Login Mod 2.1 [ Uninstall ] [ List Files ] [ Delete ]
37. Karma Description Mod 2.6.7 [ List Files ] [ Delete ]
38. Googlebot & Spiders Mod 2.0.4 [ Uninstall ] [ List Files ] [ Delete ]
39. Menu Buttons 1.1 [ Uninstall ] [ List Files ] [ Delete ]
40. Twitter and Facebook Publisher mod 2.2 [ Uninstall ] [ List Files ] [ Delete ]
41. Limit A Guests Daily PageViews Mod 2.1 [ Uninstall ] [ List Files ] [ Delete ]
42. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0 [ Apply Mod ] [ List Files ] [ Delete ]
43. SMF Archive 2.0 [ Uninstall ] [ List Files ] [ Delete ]
44. Users Online Today Mod 1.4.0 [ Uninstall ] [ List Files ] [ Delete ]
45. Location on memberlist SMF2 1.2 [ List Files ] [ Delete ]
46. Add IP2Location to Track IP 1.3 [ Uninstall ] [ List Files ] [ Delete ]
47. Location on memberlist SMF2 1.2 [ List Files ] [ Delete ]
48. Reply Button in All Posts 1.1 [ Uninstall ] [ List Files ] [ Delete ]
49. Best 3 0.1 [ Uninstall ] [ List Files ] [ Delete ]
50. Locked Topic Color 1.0 [ Uninstall ] [ List Files ] [ Delete ]
51. Cbox Integration 1.0 [ Uninstall ] [ List Files ] [ Delete ]
52. SMFShop 3.1.5 [ List Files ] [ Delete ]
53. Ultimate Profile 0.9 [ Uninstall ] [ List Files ] [ Delete ]
54. Custom Profile Field Mod 3.20 [ Apply Mod ] [ List Files ] [ Delete ]


Thanks

Advertisement: