Custom Profile Field Mod

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

Previous topic - Next topic

worthog

Another newbie here.  I have a fresh SMF install with the default theme and language as English.  I installed the Custom Profile Mod, but cannot find where to add my custom fields.  All I have under "Features and Options" is Basic Features, Layout and Options and Karma.  Under none of those tabs can I find reference to Custom Fields.  Restarting my web server made no difference.

(As an aside, I see the package is still zipped up in the Packages directory.  Is that SOP?)

Thanks!
worthog

Kindred

yes, the zipped package is there for record keeping and uninstallation.

Are you running English or English UTF-8? (mods, by default, only install on the default theme and in english (not english utf-8)
Сл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."

worthog

English--no other choices.  SMF 1.1.4.   So the zip file isn't from where the files are read?  Then maybe something went wrong.  Here is a dump of my Packages directory:

drwxrwxr-x 2 root   apache 4096 2008-02-19 08:33 backups
-rwxrwxrwx 1 apache apache 6422 2008-02-19 08:32 customprofile3-17.zip
-rw-r--r-- 1 root   apache  324 2007-09-25 12:27 index.php
-rwxrwxr-x 1 root   apache   81 2008-02-19 08:33 installed.list
drwxrwxr-x 2 root   apache 4096 2008-02-19 09:14 temp


I added the temp directory manually, based on a previous post I saw.

worthog

BTW, I tried an uninstall and then a reinstall, but no change in the interface.  What files should be changed?  Do the mods actually work like kinda like diff files and actually make changes to existing SMF code?

Kindred

yes, the package manager uses the mod instruction file to make changes to files in the /Sources and /Themes/default directories.

Сл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."

worthog

Hmmm...  Well, I'll read over the manual installation instructions and see if I can figure out if any changes were made or not.  I have this installed on my local machine as a test environment.  Everything is writable by the user "apache" so I shouldn't think the problem is permissions-related.

Kindred

#1766
BTW: To convert this to the standard 2.0 custom fields...
UPDATE `smf_themes` SET `variable` = '*NewFieldName*' WHERE `variable` = 'CP1'  (or CP2, or CP2, etc)


note: This hint is for people who have upgraded to SMF 2.0
Сл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."

worthog

Is that something I have to do anyway?  Would not doing so cause the problem I'm having?

res6cue

Regarding the "Only allow admins to edit field?" option, I need a way to allow Global Moderators to also have the ability to edit these custom fields.

BitBass

Awesome mod!  It's just lacking one thing for me.  I'd like to use it for users to be able to plug in personal contact info.  I'd only like that to viewable by certain member groups, and not just Admins.  Is there an easy way to do that?

worthog

FWIW, I got this install figured out.  My files were mostly owned by user root and group apache and since I had g+rw on everything, I figured that was fine.  Changing ownership on everything to user apache solved the problem.  Now, I just have to get the rollgen mod uninstalled without getting an error and I'll be fine--but that's a story for another topic!

Thanks, Kindred!
worthog

igniteryan

How do I use this mod with SSI.php?

Kender

for some reason, when i change themes, it forgets what custom answers were, then i need to reselect the options

ie: 
user selects checkboxes in custom fields
i change forum default theme
fields no longer visible in profile, but selectable again in the "Forum profile information" page
once selected, it displays properly in that theme (unless i change again, or change back)
http://chucknorris2012.com  Avoid a roundhouse kick to the head!  Sign the petition

Kindred

hmmm... yup, I can see that happening. The information is stored in the Themes table....   and is directly tied to the theme that the user has when they answer the questions.
Сл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."

Kender

#1774
Quote from: Kindred on February 22, 2008, 07:18:47 AM
hmmm... yup, I can see that happening. The information is stored in the Themes table....   and is directly tied to the theme that the user has when they answer the questions.
is there a way to correct this?
i dont mind altering some code if necessary

but i am glad i didnt screw up the code when modifying the themes!  thanks for relieving that stress
http://chucknorris2012.com  Avoid a roundhouse kick to the head!  Sign the petition

DHC

Quote from: winrules on April 06, 2006, 12:57:45 PM
Quote from: Killian on April 06, 2006, 12:28:10 PM
winrules, you rock!  Love the mod!!  Know of any way we can do a search based on these custom fields?  Thank you so much!
I might make it so you can sort the member list based on fields, but it wont be in 2.1.

Can the custom fields be used to sort the member list?

DHC

Which table contains the Custom Profile fields and data?

Kindred

DHC...  try using search?   That question has been answered at leats 6 times in this thread.

the themes table. under the variable name CP1, CP2, etc.

And no...  the custom profile fields are not even IN the memberlist, as standard. There is code further back in this thread about how to add them to your member list, but I don't know if the coder ever put in a sort capability.

On the other hand, the custom profile fields in SMF 2.0 can be added to the member list and can be sorted on.
Сл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."

afe

Hey I am not getting any errors, however, I cannot find the configuration under "Features and Options"...

Please help and thank you.

pixelpeter

#1779
Hi @all.
Sadly I have some issues with this mod.

Just updated my board from 1.1.2 to 1.1.4 and to be sure everythings valid I'm also using the updated version of the orange-lt theme.

So far everything is working a expected.

Now I need to make modifications to the Profile.template.php, that's why I copied a version from the default theme to my version of the orange-lt theme.

As soon as this file is in this directory the mod stopped to work  :(

So the next thing I tried was to remove Profile.template.php from the custom theme and make my modifications directly in the default-Theme Profile.template.php.
Then the mod is working, but my modifications are not showing up.

Is there a way to fix this ?
I know CustomProfileFields will be there in Version 2 of SMF but I don't want to upgrade to a beta version.

Thanks in advance
pp
Opel-GT-Forum [nofollow] - ... und wieder ist nur fliegen schöner
Proudly build with SMF 1.1.4

Advertisement: