Support Forum

Custom Profile Field

BR brusies
brusies
Member

Hi SP,

 

Having successfully installed the custom profile field and set it to textable box – I can see it when editing the profile but once I enter in any details, there is no way to save it – the words I wrote just disappeared.

 

Please let me know where I’m going wrong.

 

Thanks!

44 Answers

New Answer

BR brusies
brusies
Member

Sorry to re-post but there has been some developments. I originally had the textable area assigned to the overview page, which obviously meant that you couldn’t update it there. So I then moved it to the edit profile section which appeared just below bio. After entering the info, it says profile updated, but when it refreshes, the text that I wrote has </p> on either side and doesn’t appear in the profile. Please help.

MP Mr Papa
Mr Papa
Member

are you sure it doesnt have a <p> on one end and an </p> on the other end?

the text area supports html, so its just formatting it…  when displayed on the actual profile (not the edit), you shouldnt see the p tags…

BR brusies
brusies
Member

Mr Papa said

are you sure it doesnt have a <p> on one end and an </p> on the other end?

the text area supports html, so its just formatting it…  when displayed on the actual profile (not the edit), you shouldnt see the p tags…

Hi Mr Papa, yes – it has it on it on either side. 

 

Nothing is shown in in custom field area at all when I update the profile. Can I PM a link to the forum and some login info for you to see the problem? Thanks!

MP Mr Papa
Mr Papa
Member

sure… pm the details to both yellow swordfish and myself…

SP SPQC
SPQC
Member

Is it possible to get a Custom Profile Field show up in user details with every post?  If someone decide to fill it up I’d like it to show below the join date and over the Online/Offline status.

MP Mr Papa
Mr Papa
Member

yes.  Just place the custom profile field template tag in the theme template file where you want to display it… 

sp_CustomProfileFieldsDisplay($name, $userid=0);

where $name is the name of the custom profile field and pass the user who made the post, $spThisPost->user_id I think…

BR brusies
brusies
Member

Mr Papa said

sure… pm the details to both yellow swordfish and myself…

Any updates on my original problem Mr Papa? Thanks!

MP Mr Papa
Mr Papa
Member

No, did you send the credentials?  I dont see them in my inbox…

BR brusies
brusies
Member

Mr Papa said

No, did you send the credentials?  I dont see them in my inbox…

Sure, I PMed them to you on the 27th. I see it in my outbox to both you and Yellow Swordfish

SP SPQC
SPQC
Member

Mr Papa said

yes.  Just place the custom profile field template tag in the theme template file where you want to display it… 

sp_CustomProfileFieldsDisplay($name, $userid=0);

where $name is the name of the custom profile field and pass the user who made the post, $spThisPost->user_id I think…

What template file it is?  It will get overwrited on a future update, right?  Do you plan to add more control from the Forum option to what Admins want to display about users on the left of evey post?

<—

 

It would be nice to havve toggles, I would toggle the Member since OFF, it takes 2 lines and I think if someone want to know, he could look at profile.  Also, a toggle for Show social icons and web site.  That’s a suggestion for a later version.

MP Mr Papa
Mr Papa
Member

template file depends on where you want it…  each template file is for a different page view type (ie group, forum, topic, etc)…

if you want it on the topic view, user post info, then it would be spTopicView.php

if you want to remove elements, just remove them from your theme… we are not going to provide switches for all display elements when they can simply be removed…  same for user post data, just add it to the template file…

SP SPQC
SPQC
Member

So I should look for spPostView?  What you’re looking at right now are posts?

 

<— I want to mod what is hown under the user name here.

 

With evey updates, it will get overwritten?  Yet no problem, it’s the firn php file I plan to look at and possibly mod.  Save with or without BOM?

MP Mr Papa
Mr Papa
Member

there is no spPostView… this page is a topic view, its a single topic displaying many posts… but its topic view…

BOM?

I understand where you want it…  and its in the spTopiView.php template file…  this where all that stuff is output:

                        sp_ColumnStart('tagClass=spUserSection spLeft&width=15%&height=50px');
                            sp_PostIndexUserDate('tagClass=spPostUserDate spCenter');
                            sp_UserAvatar('tagClass=spPostUserAvatar spCenter&context=user', $spThisPostUser);
                            sp_PostIndexUserName('tagClass=spPostUserName spCenter');
                            sp_PostIndexUserRank('tagClass=spPostUserRank spCenter');
                            sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter');
                            sp_PostIndexUserPosts('tagClass=spPostUserPosts spCenter', __sp('Forum Posts: %COUNT%'));
                            sp_PostIndexUserRegistered('tagClass=spPostUserRegistered spCenter', __sp('Member Since:<br /> %DATE%'));
                            sp_PostIndexUserStatus('tagClass=spCenter spPostUserStatus', __sp('Online'), __sp('Offline'));
                            sp_SectionStart('tagClass=spCenter', 'user-identities');
                                sp_PostIndexUserWebsite('', __sp('Visit my website'));
                                sp_PostIndexUserTwitter('', __sp('Follow me on Twitter'));
                                sp_PostIndexUserFacebook('', __sp('Connect with me on Facebook'));
                                sp_PostIndexUserMySpace('', __sp('See MySpace'));
                                sp_PostIndexUserLinkedIn('', __sp('My LinkedIn network'));
                                sp_PostIndexUserYouTube('', __sp('View my YouTube channel'));
                            sp_SectionEnd('', 'user-identities');
                        sp_ColumnEnd();

you can add, delete or modify whatever you want in there

SP SPQC
SPQC
Member

Ok I gave this a try and can’t display the Custom field.  Let’s say the custom field name is “Zip Code”, I tried :

 

sp_CustomProfileFieldsDisplay(‘$Zip Code, $spThisPost->user_id spCenter’);

sp_CustomProfileFieldsDisplay(‘Zip Code, $spThisPost->user_id spCenter’);

 

Maybe the space is the problem?  Was surprised there wasn’t a slug name for it.

Sorry if I look like a noob here…  confused