Support Forum
Ok - well this is the function:
sp_CustomProfileFieldsDisplayExtended($args, $name, $userid=0, $label='Field label');
As with the original function you will notice this still has the $name and $userid parameters that need to be passed. Same as before.
But there are two new parameters - the 4th is $label which you can use to pass the label text you want to display. The 1st is a standard argument list ($args) as used on most SP template display functions.
The optional arguments available - along with their type and default values - are:
tagClass - class to be applied for styling - text - spCustomField
type - container type - 'div' or 'span' - text - 'div'
labelClass- class to be applied to optional label - text - spCustomLabel
labelSep - text to be used between label and data - text - ': '
before - text to display before data - text - ''
after - text to display after the data - text - ''
listSep - text to display between each item (list) - text - ', '
echo - echo content or return content - true/false - true
although it is clearer to see these in the function code itself.
YELLOW
SWORDFISH
|
you are mixing template tags... you are using sp_CustomProfileFieldsDisplay() which does not have a label... the two function prototypes are:
sp_CustomProfileFieldsDisplay($name, $userid=0)
and
sp_CustomProfileFieldsDisplayExtended($args, $name, $userid=0, $label='')
you need to pick which one you want to use...
See this post: https://simple-press.com/suppo.....y/#p124477
for simple way to add it to your profile page... of course, make sure to use your custom profile name and desired label...
Visit Cruise Talk Central and Mr Papa's World
run into this issue every time the plug in has to be updated...the userid=0..what do i need to put in there exactly so the current users info shows up? This is what I have:
echo '<div class="spColumnSection spCenter">';
echo '<p>Platform:</p>';
echo '</div>';
echo '<div class="spColumnSection spProfileSpacerCol"></div>';
echo '<div class="spColumnSection spCenter">';
echo '<p>';
sp_CustomProfileFieldsDisplay('Platform', $userid=0);
echo '</p>';
echo '</div>';
echo '<div class="spColumnSection spCenter">';
echo '<p>Gamertag:</p>';
echo '</div>';
echo '<div class="spColumnSection spProfileSpacerCol"></div>';
echo '<div class="spColumnSection spCenter">';
echo '<p>';
sp_CustomProfileFieldsDisplay('Gamertag', $userid=0);
echo '</p>';
echo '</div>';
What? Making your own SP theme?
That's what this codex page is all about:
YELLOW
SWORDFISH
|
Did you see my post #17 before you wrote post #18.
And.. as to a theme creator - are you offering? These things don't happen by themselves and can take a lot of time and effort to get to work - often for little benefit. Making you own theme is so easy why would you need a 'creator'
YELLOW
SWORDFISH
|
1 Guest(s)