Profile user ID help
-
Hi,
I’m trying to integrate the Cartpauj PM plugin with my new install of bbPress.
I want to add a private message link to member’s profile page, so when they click the link it pre-poluates the ‘To’ field in the message.
I’m using…
<?php if($page = get_page_by_title('title of the page for messages')) { $link = get_permalink($page->ID); echo '<a href="'.$link.'?pmaction=newmessage&to='xx'"> <span class="pm">Message </a></span></a>'; } ?>
But I’m stuck at what ‘xx’ should be.
If I use .$user_ID.
echo '<a href="'.$link.'?pmaction=newmessage&to='.$user_ID.'">
It pre-popluates my user name correctly. Anyone help with what I need to use to pull in the ID of the profile the message link is attached to? I’ve tried
'.bbp_displayed_user_field( 'ID' ).'
– that pulls the correct ID number but places it outside of the clickable linkAnyone steer me in the right direction?
Thanks in advance
- You must be logged in to reply to this topic.