• Welcome to Simple Machines Community Forum. Please login or sign up.
December 06, 2021, 10:30:55 PM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


Custom Profile Field Mod

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

Previous topic - Next topic

sparky33

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
www.dublinforums.org

www.renaultforums.co

Halorne

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

henri.bourme

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
Merci à tous ceux qui pourront m'aider

Lotti

Hello. We can show a custom field in the member list page?

Kindred

only with some modification to the member-list table...    and adding a variable number of fields to that table is problematic, at best.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

winrules

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.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Saladin

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.

Kindred

it's not storing it in a file. It is storing it in the database, under the themes table.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Saladin

Thx, i was searching in db, but i wouldn't ever imagined that it will be in smf_thmes.
Thx again

wilsy

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.



Busy RewindBikers offered to Good Home! 1000+ members, loads of mods, SMF Gallery PRO, TinyPortal installed with great use of blocks, ultimate profiles, PAID SUBSCRIPTIONS (works flawlessly), great theme, 1,500 posts per month - PM or email me if interested.

henri.bourme

January 10, 2007, 02:10:19 PM #790 Last Edit: January 10, 2007, 02:12:27 PM by henri.bourme
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? ??? ??? ??? ???
Merci à tous ceux qui pourront m'aider

winrules

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


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


henri.bourme

Merci à tous ceux qui pourront m'aider

henri.bourme

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
Merci à tous ceux qui pourront m'aider

winrules

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


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Beatrix

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?

Kindred

if you do not have a display.template.php, then the theme will use the default file...   so you should be all set.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Beatrix

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.

henri.bourme

 :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']);
Merci à tous ceux qui pourront m'aider

winrules

Beatrix - Are you sure the fields are set to display in posts (in the field settings)?


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Advertisement: