News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Custom Profile Field Mod

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

Previous topic - Next topic

Kindred

bfeo,

from your comments, it seems that you installed/uninstalled, etc for a total of three installations...   hence the 3 occurences.

as for the 55 mods... sheesh. it's a wonder you have anything working.
Сл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."

bfeo

Profile.template.php of your theme where "DisplayFieldsProfile();"
DisplayFieldsProfile();
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldsProfile();
// Can they add this member as a buddy?
if (!empty($context['can_have_buddy']) && !$context['user']['is_owner'])
echo '
&nbsp;&nbsp;<a href="', $scripturl, '?action=buddies;sa=add;u=', $context['member']['id'], ';sesc=', $context['session_id'], '">[', $txt['buddy_add'], ']</a>';

echo '
</td>
</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr>
<td><b>', $txt[231], ': </b></td>
<td>', $context['member']['gender']['name'], '</td>
</tr><tr>
<td><b>', $txt[420], ':</b></td>
<td>', $context['member']['age'] . ($context['member']['today_is_birthday'] ? ' &nbsp; <img src="' . $settings['images_url'] . '/bdaycake.gif" width="40" alt="" />' : ''), '</td>
</tr><tr>
<td><b>', $txt[227], ':</b></td>
<td>', $context['member']['location'], '</td>
</tr><tr>
<td><b>', $txt['local_time'], ':</b></td>
<td>', $context['member']['local_time'], '</td>
</tr><tr>';


Display.template.php for "DisplayFieldPostsPictures();"
DisplayFieldPostsPictures();
DisplayFieldPostsPictures();
}
}
// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '
<br />
<br />
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';



Display.template.php for "DisplayFieldPosts();"
global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();

global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();

// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';

// Show the member's custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
', $message['member']['title'], '<br /><br />';

global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();

bfeo

#2162
Quote from: Kindred on August 29, 2008, 11:16:53 AM
bfeo,

from your comments, it seems that you installed/uninstalled, etc for a total of three installations...   hence the 3 occurences.

as for the 55 mods... sheesh. it's a wonder you have anything working.


Working beautifully, at that.  ;P

Of 57, 9 have to be manually installed.

Mod Name  Version 
1. Force Topic Read On Login Mod 1.0 [ Apply Mod ] [ List Files ] [ Delete ]
2. AJAX Instant Quick Reply 1.0.1 [ Uninstall ] [ List Files ] [ Delete ]
3. Admin Lock Thread 1.2 [ Uninstall ] [ List Files ] [ Delete ]
4. PM On Registration 1.0.2 [ Uninstall ] [ List Files ] [ Delete ]
5. Super Admin 1.0 [ Apply Mod ] [ List Files ] [ Delete ]
6. Treasury 2.11 [ Apply Mod ] [ List Files ] [ Delete ]
7. Signature Dropdown Choices 1.0 [ Uninstall ] [ List Files ] [ Delete ]
8. Topics Filter 2.5 [ Apply Mod ] [ List Files ] [ Delete ]
9. Titled Links 1.1c [ Uninstall ] [ List Files ] [ Delete ]
10. Ultimate Profile 0.8.5 [ Uninstall ] [ List Files ] [ Delete ]
11. Auto Embed Video/Audio Clips 3.1.2 [ Uninstall ] [ List Files ] [ Delete ]
12. SMF Poll Mod 1.2 [ Uninstall ] [ List Files ] [ Delete ]
13. Shop Item: Change Display Name CSS 1.0 [ Uninstall ] [ List Files ] [ Delete ]
14. Default Avatar 1.1.1 [ Uninstall ] [ List Files ] [ Delete ]
15. New Topic Button 1.0 [ Uninstall ] [ List Files ] [ Delete ]
16. Create Topic on Report to Moderator 0.2 [ Uninstall ] [ List Files ] [ Delete ]
17. BBC [you] 1.0 [ Uninstall ] [ List Files ] [ Delete ]
18. Hide Post 1.1 [ Uninstall ] [ List Files ] [ Delete ]
19. TinyPortal 1.052 [ Uninstall ] [ List Files ] [ Delete ]
20. nwsw.nwswAdminAttachAnything 1.1 RC3 [ Uninstall ] [ List Files ] [ Delete ]
21. The Rules 1.03 [ Uninstall ] [ List Files ] [ Delete ]
22. SMF Shop - Jeeves The Butler 1.0.2 [ Uninstall ] [ List Files ] [ Delete ]
23. Admin Notepad 1.0 [ Uninstall ] [ List Files ] [ Delete ]
24. Profile Music 1.0 [ Apply Mod ] [ List Files ] [ Delete ]
25. Drafts (for 1.1.5) 1.07 [ Uninstall ] [ List Files ] [ Delete ]
26. SMF Rivals 0.3.0 [ Uninstall ] [ List Files ] [ Delete ]
27. No Single Character Serach 1.0.3 [ Uninstall ] [ List Files ] [ Delete ]
28. Attachments Positioning 1.2 [ Uninstall ] [ List Files ] [ Delete ]
29. Change_Poster_Of_Topic_And_Message 1.0 [ Uninstall ] [ List Files ] [ Delete ]
30. Hide SMF Version 1.0.2a [ Uninstall ] [ List Files ] [ Delete ]
31. Ad Managment 2.3 [ Uninstall ] [ List Files ] [ Delete ]
32. ShowTopics 1.1 [ Uninstall ] [ List Files ] [ Delete ]
33. FelBlog for SMF 0.940 [ Uninstall ] [ List Files ] [ Delete ]
34. Member List Position Filter 1.1.0 [ Uninstall ] [ List Files ] [ Delete ]
35. Redirection Boards 2.01 [ Uninstall ] [ List Files ] [ Delete ]
36. Hide Board 1.1 [ Uninstall ] [ List Files ] [ Delete ]
37. Automatically Remove Inbox Label Mod 1.0 [ Uninstall ] [ List Files ] [ Delete ]
38. Custom Profile Field Mod 3.19 [ Uninstall ] [ List Files ] [ Delete ]
39. MCLegendII.2 2.0 [ Uninstall ] [ List Files ] [ Delete ]
40. Profile_Visitors 4.0 [ Apply Mod ] [ List Files ] [ Delete ]
41. Copy Topics 1.4 [ Uninstall ] [ List Files ] [ Delete ]
42. SMFShop 3.0 [ Uninstall ] [ List Files ] [ Delete ]
43. Member Notepad 1.0 [ Uninstall ] [ List Files ] [ Delete ]
44. EarnFromAmazonLinksMod 1.0 [ Uninstall ] [ List Files ] [ Delete ]
45. Repeating Calendar Events v1.2.6 1.2.6 [ Uninstall ] [ List Files ] [ Delete ]
46. Password Protect Boards 0.2 [ Apply Mod ] [ List Files ] [ Delete ]
47. Hide Tag 1.7.1 [ Uninstall ] [ List Files ] [ Delete ]
48. TopicLog 1.0 [ Uninstall ] [ List Files ] [ Delete ]
49. Increase/Decrease Postbox Size 1.0 [ Uninstall ] [ List Files ] [ Delete ]
50. Enhanced Quick Reply Box 2.0.2 2.0.2 [ Apply Mod ] [ List Files ] [ Delete ]
51. Referrals Mod 2.0.1 [ Uninstall ] [ List Files ] [ Delete ]
52. Allowed Groups Embedded Flash 1.2.3 [ Apply Mod ] [ List Files ] [ Delete ]
53. RemoveMessageIcons 1.0 [ Uninstall ] [ List Files ] [ Delete ]
54. Expand Pages Mod 1.0 [ Uninstall ] [ List Files ] [ Delete ]
55. Order Stickied Topics 1 [ Uninstall ] [ List Files ] [ Delete ]
56. View Single PM 1.3 [ Uninstall ] [ List Files ] [ Delete ]
57. Use [color] Tags in [code] Mod 1.0 [ Uninstall ] [ List Files ] [ Delete ]

steiger

Did you only post the code or also look at it.
At first sight I can see duplicate occurences of the Display* functions.

- Remove the mod
- Remove all mod code which is still here manually
- Install the mod

bfeo

Yea but if there are duplications, what if I delete something that shouldn't be deleted?  They don't appear to be text book replicas.

I can upload the files if you want.

bfeo


steiger

I have tagged the problem locations with
//remove

Look yourself and test

GL700Wing

Hi,

Thanks for this mod - I really like it and have been using it for over a year to keep track of donations. 

I would like to know if it is possible to allow members to see their own custom profile field but not allow members to see the custom profile field of other members.  In my case, this would enable forum members to see the details of the donation they made while at the same time keeping this information private for other members.


Thanks,


Kathy
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

steiger

Quote from: GL700Wing on August 30, 2008, 05:57:56 AM
Hi,

Thanks for this mod - I really like it and have been using it for over a year to keep track of donations. 

I would like to know if it is possible to allow members to see their own custom profile field but not allow members to see the custom profile field of other members.  In my case, this would enable forum members to see the details of the donation they made while at the same time keeping this information private for other members.

Hi Kathy,
this is similar to brans request.
It is possible but you have to code it yourself.

Michael

GL700Wing

Hi Michael,

Thanks for your speedy reply.  I did search this topic but I couldn't find a similar request - sorry for the duplication!!

Some time ago there was an 'enhanced' version of the Custom Profile Field mod which stored the CPF information in the SMF database instead of in the theme.  Do you know if there any plans to change the behaviour of the 'standard' version to do this?


Thanks,

Kathy
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

steiger

Quote from: GL700Wing on August 30, 2008, 06:38:29 AM
Hi Michael,

Thanks for your speedy reply.  I did search this topic but I couldn't find a similar request - sorry for the duplication!!
It's not really a duplication but just similar.

Quote
Some time ago there was an 'enhanced' version of the Custom Profile Field mod which stored the CPF information in the SMF database instead of in the theme.  Do you know if there any plans to change the behaviour of the 'standard' version to do this?
I don't know about this enhanced version.
All I know is that the current version is storing the field information inside the SMF database (smf_themes table).

Michael

Kindred

As far as I know, there are no plans to do anything further with this mod, since SMF 2.0 has the custom fields built in...   (the field data is still stored in the themes table)


Why do you care whether it uses the theme's table or a separate table? I had this mod (and now smf 2.0) running on a forum with 32,000 members with no problems
Сл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."

bfeo

It wasn't working, but in Profile.template.php you missed a duplicate of this code, Steiger.  Thanks for the help.  Looks fixed.

global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
EditFields();

steiger

Quote from: bfeo on August 30, 2008, 12:53:58 PM
It wasn't working, but in Profile.template.php you missed a duplicate of this code, Steiger.  Thanks for the help.  Looks fixed.

global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
EditFields();

Sure I missed that one because I wasn't looking for it.
Just looked for the Display* code.

Glad it's working again.

Rumbaar

Quote from: GL700Wing on August 30, 2008, 06:38:29 AMSome time ago there was an 'enhanced' version of the Custom Profile Field mod which stored the CPF information in the SMF database instead of in the theme. 
You sure you're not referring too the one done by rsw686, he had one that wasn't approved but was supplying it to those that requested.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

GL700Wing

For Kindred:
Quote
Why do you care whether it uses the theme's table or a separate table? I had this mod (and now smf 2.0) running on a forum with 32,000 members with no problems.
I'm using SMF 1.1.5 and, as I understand it, all the CPF information is deleted from the theme when the theme reset option "Remove all members' options and use the defaults" is used and also because all the CPF information has to be manually re-entered if you change themes.  I'd be more than happy if I was wrong on both counts!!


For Rumbaar:
Quote
You sure you're not referring too the one done by rsw686, he had one that wasn't approved but was supplying it to those that requested.
Yes - that's the one but I didn't realise there were two versions.

Kathy
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

digit

I would like to see a field type - image, text or url.

(or has this been mentioned already?)
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Kindred

why?  You can create this yourself...

use BBC

image...
before: [ img]
after: [ /img]

url...
before: [ url=
after: ]FIXED TEXT[ /url]

text...
just as it is...
Сл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."

steiger

Quote from: GL700Wing on August 30, 2008, 07:20:47 PM
For Kindred:
Quote
Why do you care whether it uses the theme's table or a separate table? I had this mod (and now smf 2.0) running on a forum with 32,000 members with no problems.
I'm using SMF 1.1.5 and, as I understand it, all the CPF information is deleted from the theme when the theme reset option "Remove all members' options and use the defaults" is used and also because all the CPF information has to be manually re-entered if you change themes.  I'd be more than happy if I was wrong on both counts!!

That's very interesting to hear.
Feedback would be important for me too!

The Saviour

What would really be nice for this mod, would be the ability to create fields within sections in a user's profile...say "Computer Specs".

A link could be placed under a username in their posts, which, when moused over and/or clicked on...creates a pop-up or menu of the items within that category.

Just a thought...

Advertisement: