User profile page to display a different page

11.79K viewsCoreprofile
0

Hi Anspress team,

I’m using a plugin to manage user subscriptions and profiles.  It works great with Anspress as expected ;).  However, I would like to be directed to the plugin user profile page as opposed to the Anspress profile page.  Is it possible?  So basically, when I’m on the user page in Anspress and I click on profile, I would like to call a different user profile page than the one defaulted by Anspress.

 

Thank you guys

1

Yes its possible, read this article: How to disable AnsPress profile.

Cheers.

Thank you Rahul…. But disabling Anspress profile, will I still beable to have users collecting Rep points?

Why not, simply go to anspress option and then “users” tab check “Disable reputation for user” and save it.

Actually Rahul I want to do the opposit…. Disabling anspress profile but keeping the rep points system

Yes, disabling user profile will not effect reputation until you disable reputation 🙂

Thank you Rahul. I tried your code to disabling profile and it works. When I click the user picture/name next to the question/answer it doesn’t direct me to Anspress profile page anymore. It’s actually bringing me to my blog page. However, what I would like to do it’s the following:

When I click on the user name/picture in Anspress, I should be going on the user profile page from the user plugin I have installed (Userpro).

Is there anyway to accomplish this?

what is the user url of userpro ?

It uses a shortcode in Userpro profile page ([userpro template=view])

Can I private message you the link of one of the user profile page as an example?

Please ask userpro support about the function to get the link to userpro user profile, then I will give you a filter to override user link.

Hi Rahul, this is what I’m getting from them:

Getting the permalink (profile URL) for a user:

You can use the API function permalink() to get the permalink/profile URL for any user. This helps you integrate/replace author link in your theme with profile URL, or change author link in comments to profile URL.

You must define a global If you’re going to use any API function like this:

“”

Now, lets get the permalink for user ID 22
permalink(22); ?>

“”permalink(22); ?>

Very simple. This way you can generate profile permalink automatically for your users dynamically by using the above API method.

Unfortunately, I can’t paste PHP code here, it keeps disappearing 🙁

So Rahul, what is the filter to override user link? Cause it seems that tI only have to do the following from Userpro to get the user URL:

Declare global:
global $userpro;

PHP function:
$profile_url = $userpro->permalink( get_current_user_id() )

You are viewing 1 out of 3 answers, click here to view all answers.