-
applegateian replied to the topic Xprofile get field data checkbox returns array in the forum How-to & Troubleshooting 11 years, 5 months ago
OK thanks…so I have switched it around as follows:
<?php echo get_the_author_id(), xprofile_get_field_data( 'Specialist Sectors', $multi_format = 'comma' ) ?>
I am now getting something returned, which is unique for each user but it’s returning a number, such as 52, 65 or 1 – I don’t know what these refer to.
Any ideas?
-
applegateian replied to the topic Xprofile get field data checkbox returns array in the forum How-to & Troubleshooting 11 years, 5 months ago
Thanks all… @shanebp I’ve inputted the following but it isn’t showing anything, is my implementation incorrect?
<?php echo xprofile_get_field_data( 'Specialist Sectors', get_the_author_id(), $multi_format = 'comma' ) ?>
Thanks
-
applegateian replied to the topic Xprofile get field data checkbox returns array in the forum How-to & Troubleshooting 11 years, 5 months ago
I See.
Screenshot is here of what we are doing:
I am trying to use it in a sidebar widget on a post page. Using the following PHP in the text widget to get back users info:
<div class="<?php echo get_post_meta(get_the_id(), 'Account Type', true); ?>">
[Read more]
<a href="/community/members/<?php echo get_the_author_meta('user_login') ?>"> <?php echo… -
applegateian replied to the topic Xprofile get field data checkbox returns array in the forum How-to & Troubleshooting 11 years, 5 months ago
Really trying to get this one sorted, can’t find a fix – anybody know?
-
applegateian replied to the topic [Resolved] Show member recent post in members loop in the forum How-to & Troubleshooting 11 years, 5 months ago
Does anyone know of a way do get most recent post in the members loop for each author? Thanks.
-
applegateian started the topic [Resolved] Turn on autocomplete for message composing for non friends in the forum How-to & Troubleshooting 11 years, 5 months ago
Hi all
My understanding of messages is that from the compose a message page, autocomplete is used to suggest a friend to send a message to. Autocomplete does not show up if the user you are sending a message to is not a friend.
Is there a way to enable autocomplete for ALL users, regardless of whether they are a ‘friend’ or not? My site doesn’t…[Read more]
-
applegateian replied to the topic Xprofile get field data checkbox returns array in the forum How-to & Troubleshooting 11 years, 5 months ago
Can anyone help with this?
Thanks
-
applegateian started the topic Xprofile get field data checkbox returns array in the forum How-to & Troubleshooting 11 years, 6 months ago
Hi
I am using the following to get a members xprofile data displayed
<?php echo xprofile_get_field_data( 'Specialist Sectors', get_the_author_id()) ?>
It works fine for xprofile fields that are free text, but the fields that are checkboxes, it simply returns ‘array’ to the front end.
Is there a way to include this so it…[Read more]
-
applegateian started the topic [Resolved] Show member recent post in members loop in the forum How-to & Troubleshooting 11 years, 6 months ago
Hey guys
The ‘posts’ that my members create are the most important aspect of my site. I’m successfully showing the most recent ‘posts’ by an author on their profile using even though it is out of date
What I need to do next is show one recent post by each author on our members home page, presumably within members-loop.php
Is there a way to get…[Read more]
-
applegateian replied to the topic Disable messages autocomplete in the forum How-to & Troubleshooting 11 years, 6 months ago
Anyone know if this is possible?
-
applegateian started the topic Disable messages autocomplete in the forum How-to & Troubleshooting 11 years, 6 months ago
Hey
My site will never allow users to make the ‘friends’ connection, so when sending messages, autocomplete will always be ‘off’. I’d rather disable it altogether so the user doesn’t get the spinner when typing in a name. It will never work so I’d rather not have it.
Is this possible?
Thanks,
Ian
@applegateian
Active 10 years, 2 months ago