Support Forum

Profile custom fields

SS SamThaB0ss
SamThaB0ss
Member

I’m not sure how this plugin works;

How can i make a custom set title appear under the name?

Im not sure, i tried it like this;

If its possible, can it be on permissions

i mean, for an example registered members can’t use it but moderators, subscribers can

 

a1efb4eed40e6b6251796e5c19b34d9a.png9595bfe400573f0cc562ff3d24e4efbd.pnged28ac369e3e446bc513506760fa7ceb.png

7 Answers

New Answer

MP Mr Papa
Mr Papa
Member

have you added the template function to display the element where you want?

see:  http://codex.simple-press.com/codex/plugins/our-plugins/available-plugins/custom-profile-fields/

SS SamThaB0ss
SamThaB0ss
Member

Mr Papa said
have you added the template function to display the element where you want?

see:  http://codex.simple-press.com/codex/plugins/our-plugins/available-plugins/custom-profile-fields/

i added this:

sp_CustomProfileFieldsDisplay(‘Custom Ttile’, $spPostUser->ID);
sp_CustomProfileFieldsDisplay($name, $spPostUser->ID);

but it still doesnt show up

MP Mr Papa
Mr Papa
Member

where did you add it?   on the topic view?

and Custom Title is the name you gave it on the admin panel? 

the $name one is wrong, unless $name is defined somewhere in your code…

 

SS SamThaB0ss
SamThaB0ss
Member

Mr Papa said
where did you add it?   on the topic view?

and Custom Title is the name you gave it on the admin panel? 

the $name one is wrong, unless $name is defined somewhere in your code…

 

I put it in sptopicview.php

yes, it is the title

 

i thought it said to add the $name in the codex

 

SS SamThaB0ss
SamThaB0ss
Member

Mr Papa said
where did you add it?   on the topic view?

and Custom Title is the name you gave it on the admin panel? 

the $name one is wrong, unless $name is defined somewhere in your code…

 

Sorry! forgot to put a capital letter

YS Yellow Swordfish
Yellow Swordfish
Member

$name is a variable. It is meant to be replaced by the name of the custom field.

MP Mr Papa
Mr Papa
Member

those were just different options for same thing… three were listed…

sp_CustomProfileFieldsDisplay(‘Custom Ttile’, $spPostUser->ID);

is still along the right lines as long lines…  assuming your custom profile field is called Custom Ttile… which I doubt…  unless you misspelled it there… please check that the field name matches the actual one…