Want to add something that says: Original Start date: and then have guys a place to put in their date..I tried to do this but not 100% successful..can u leave me exactly what I need to enter into the template
Thanks
Want to add something that says: Original Start date: and then have guys a place to put in their date..I tried to do this but not 100% successful..can u leave me exactly what I need to enter into the template
Thanks
Sorry, not understanding what you want to do… Can you explain in more detail? put in their date??? are we talking birthdate? are you using the birthdays plugin?
no custum fields plugin..I have a gamibg community and want to post the original start date (before simple press) so I want it to say: Original member since: then guys can edit their profile and change to the date they started
OK but which bit are you actually wanting help with? Have you created the custom field yet?
yes i created it: Original Member since
but now what..I had this issue with the last one but got it fixed..the problem with this one is that I dont know how to get the words: “Original member since” before the date they enter in..I know where to put it, just not exactly sure how to put it toegther
echo ‘<div class=”spPostUserLocation spCenter”>’;
sp_CustomProfileFieldsDisplay(‘Original Member since’, $spThisPostUser->ID);
echo ‘</div>’;
how do i add “Original Member Since” text for all members to show up on thier profile?
What version of the custom profile fields plugin are you using? In V1.2 ( am sure it was 1.2) a new twmlate tag was added but it has not been documented yet. This is called sp_CustomProfileFieldsDisplayExtended().
If you look in the file in the template-tags folder of the plugin you will find it.
Do you know how to read the code or do you need help with it? You will see it takes more arguments, has more options and includes a label parameter.
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.
echo ‘<div class=”spPostUserLocation spCenter”>’;
sp_CustomProfileFieldsDisplay(‘Original Member since ‘, $spThisPostUser->ID, $label=’Original Member Since:’);
echo ‘</div>’
nothing works
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/support-forum/sp5-plugin-topics/custom-profile-fields-not-showing-corretly/#p124477
for simple way to add it to your profile page… of course, make sure to use your custom profile name and desired label…
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>’;
$spThisUser->ID
Is this in your SP theme? Why don’t you just make a custom theme as we always recommend…