Advertisement:

Author Topic: Custom Profile Field Mod  (Read 942670 times)

Offline sparky33

  • Jr. Member
  • **
  • Posts: 315
    • Renault Forums
Re: Custom Profile Field Mod
« Reply #780 on: January 07, 2007, 11:33:50 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

Offline Halorne

  • Newbie
  • *
  • Posts: 8
Re: Custom Profile Field Mod
« Reply #781 on: January 07, 2007, 07:03:47 PM »
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

Offline henri.bourme

  • Newbie
  • *
  • Posts: 6
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #782 on: January 08, 2007, 12:20:10 PM »
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

Offline Lotti

  • Semi-Newbie
  • *
  • Posts: 58
  • Gender: Male
    • Lotti's DevLog
Re: Custom Profile Field Mod
« Reply #783 on: January 08, 2007, 01:01:38 PM »
Hello. We can show a custom field in the member list page?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,629
  • Gender: Male
    • Kindred-999 on GitHub
Re: Custom Profile Field Mod
« Reply #784 on: January 08, 2007, 01:11:34 PM »
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.

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #785 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.
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline Saladin

  • Semi-Newbie
  • *
  • Posts: 16
Re: Custom Profile Field Mod
« Reply #786 on: January 09, 2007, 11:41:51 AM »
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.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,629
  • Gender: Male
    • Kindred-999 on GitHub
Re: Custom Profile Field Mod
« Reply #787 on: January 09, 2007, 12:06:54 PM »
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.

Offline Saladin

  • Semi-Newbie
  • *
  • Posts: 16
Re: Custom Profile Field Mod
« Reply #788 on: January 09, 2007, 12:22:08 PM »
Thx, i was searching in db, but i wouldn't ever imagined that it will be in smf_thmes.
Thx again

Offline wilsy

  • Jr. Member
  • **
  • Posts: 220
    • RewindBikers
Re: Custom Profile Field Mod
« Reply #789 on: January 10, 2007, 01:09:28 PM »
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.

Offline henri.bourme

  • Newbie
  • *
  • Posts: 6
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #790 on: January 10, 2007, 02:10:19 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? ??? ??? ??? ???
« Last Edit: January 10, 2007, 02:12:27 PM by henri.bourme »
Merci à tous ceux qui pourront m'aider

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #791 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
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline henri.bourme

  • Newbie
  • *
  • Posts: 6
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #792 on: January 11, 2007, 12:47:34 PM »
Thank you very much


++
Merci à tous ceux qui pourront m'aider

Offline henri.bourme

  • Newbie
  • *
  • Posts: 6
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #793 on: January 11, 2007, 01:38:47 PM »
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?  ???

++
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

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #794 on: January 11, 2007, 04:29:47 PM »
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.


Offline Beatrix

  • Newbie
  • *
  • Posts: 9
Re: Custom Profile Field Mod
« Reply #795 on: January 12, 2007, 02:38:34 AM »
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?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,629
  • Gender: Male
    • Kindred-999 on GitHub
Re: Custom Profile Field Mod
« Reply #796 on: January 12, 2007, 08:28:49 AM »
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.

Offline Beatrix

  • Newbie
  • *
  • Posts: 9
Re: Custom Profile Field Mod
« Reply #797 on: January 12, 2007, 09:39:30 AM »
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.

Offline henri.bourme

  • Newbie
  • *
  • Posts: 6
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #798 on: January 12, 2007, 02:59:17 PM »
 :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

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #799 on: January 12, 2007, 04:04:35 PM »
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.