PM (Personal Message) feature for the classipress users

So many users were looking for this solution. Here i am using an existing plugin called "cartpauj-pm" to solve this issue.

cartpauj-pm - is one of the most popular wordpress based personal message system plugin. More details here

I am going to show you how you can make it works with classipress .

1. add and active "cartpauj-pm" plugin into your site

2. Now, If you want to add a PM link to User's profile, Open author.php file ,

Find -

Code:
	<li><div class="facebookico"></div><a href="http://facebook.com/<?php echo urlencode($curauth->facebook_id); ?>" target="_blank"><?php _e('Facebook','appthemes')?></a></li>
after this add bellow codes -

PHP Code:
<li> <?php if($page = get_page_by_title('message')) 
{  
$link = get_permalink($page->ID); 

echo
'<a href="'.$link.'?pmaction=newmessage&to='.( $curauth->ID ).'"> 
<span class="pm">Send PM 
</a></span></a>'
;  

}
?> 

</li>
It will showup a "Send PM" text link on user's profile.

Lets , use an image as link and put it on ad side bar

1. Open includes/sidebar-contact.php file

2. Find -

Code:
   <form name="mainform" id="mainform" class="form_contact" action="#priceblock2" method="post" enctype="multipart/form-data">
3. After this add bellow codes -

PHP Code:
<?php if($page = get_page_by_title('message')) 


$link = get_permalink($page->ID); 

echo
'<a href="'.$link.'?pmaction=newmessage&to='.get_the_author_meta("ID").'"> 
<span class="pm"><img class="aligncenter" title="contact" src="imagepath/demoimage.jpg" alt="" width="100" height="75" /> 
</a></span></a>'
;  

}
?>

message: make sure this is same as your message page tittle

imagepath/demoimage.jpg : image path of your contact PM image

Hope you are going to enjoy this beautiful plugin and start offering your site users PM feature



Thank you.

Was this answer helpful?

 Print this Article

Also Read

User Rating & Feedback Tutorial

So, here we are going to discuss about how to use User Rating & Feedback plugin easily with...

Need Help with

Deciding?

Talk to one of our hosting specialist who will review your needs and propose a tailored hosting solution that will match your specific business reality and needs.

need help