-
Hello.. I don’t want to change the actual pages of userpro.. but I want to change what the userpro templates internal links point to.. changing it to
author/username/
instead of
profile/username/Where can I do this? Can this be done simply?
Again.. the author/username/ page is a page outside of userpro so I’m not just looking to change the userpro “profile” slug. Thanks.. how you can help 🙂Hi parmenti,
please try this:
1. manually move all 6 WP pages UserPro has created to the trash, also your already created “author” page (page outside of userpro), make a backup of the content of this page somewhere e.g. in a text file for later reuse
2. go to your trash & delete all pages permanently
3. go to UserPro -> Page Setup
4. change “Profile Slug” from “profile” to “author”
5. click on “Save Changes”
6. now click on “Rebuild UserPro Pages”Best regards,
keyhanjunI don’t want to change the profile slug because that changes those pages over to userpro profile pages instead of the content that I already have on those pages.. I just want to change the links within userpro templates.. I hope that makes sense..
Wish there was an easier way but right now this seems to be the only workaround I have found.
Feel free to request this feature:
To link a single custom changed page slug to an already created WP page via the “Check / Rebuild Profile Pages” section – without forcing you to recreate all UserPro pages by clicking on the “Rebuild UserPro Pages” button which unfortunately creates a mess – doubled pages, etc. ;)) here on the request section:
http://userproplugin.com/userpro/forums/forum/feature-requests-suggestions/
PS: @centralgeek Feel free to move this thread to the request section, thanks! 😉
Best regards,
keyhanjunok.. I solved this with hard edits..
I just went to all applicable files (view.php,logout.php)
and changed
permalink($user_id); ?>”>
to
user_login; ?>”>Would be nice if there was a cleaner way of doing it, but it works for me for now.
Should I still include this as a feature request?? Seems like it could be easily added, no?
hmm.. that doesn’t work on the logout.php because it shows the current page’s username instead of the logged in persons username.. any idea what link I could use there? I’ll play with it a bit myself also and let you know if I figure it out.
I guess I need to know how to get the logged in users username…
Yes, please add it to the request list.
http://userproplugin.com/userpro/forums/forum/feature-requests-suggestions/
It would be nice to have it natively included without having to change it’s core files each time UserPro gets updated – and it’s getting updated a lot! 😉
Best regards,
keyhanjunfor now.. how can I get the current logged in users username?
ok.. I found it in the integration guide.. should have looked there first
it’s
<?php $profile_url = $userpro->permalink( get_current_user_id() ); ?>of course I’d have to do all the hard edits in the social templates as well.. following, followers, activity etc.. so yeah.. there needs to be a built in way to do this easily.. all I want to do is change the profile/username to admin/username globally 🙂
Btw please verify your purchase before you add the request:
I think it will help a bit! 😉
Best regards,
keyhanjunactually.. that STILL wasn’t it.. haha.. I need to get the username for the currently logged in user.. how do I get it? hehe
Oh, try this one here:
echo userpro_profile_data(‘display_name’, get_current_user_id());
Best regards,
keyhanjun
You must be logged in to reply to this topic.