Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
buddypress profile link
Avatar
Shibu
Member
Free Members
sp_UserOfflineSmall Offline
Jan 20, 2016 - 1:56 pm

Hi

I'm using the 'display profile information in: Buddypress profile' option.

The page it redirects me to is 'members/name/profile' and it works fine but I wish I could make it go to 'members/name' instead. I hope someone can help me out.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 21, 2016 - 5:13 am

Sorry for the delay. I was hoping @mr-papa would be able to visit the forums last night as he is the author of the both the BuddyPress integration plugin and our profile options.

I can look at the BuddyPress plugin code to see if I can determine how that might be changed but you might want to try changing the standard SP profile options first. As you will see, you can select a different url to be sent to - but you do then need to supply the query var that is going to pass along the ID to be displayed. (See the popup help for more information).

Will this not do what you want?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Shibu
Member
Free Members
sp_UserOfflineSmall Offline
Jan 21, 2016 - 8:24 am

Thanks for the reply.

I've tried to use a different url but I'm not sure what the query variable is called. I was hoping I could set-up a user friendly url. I can't seem to find where the profile url is defined in the code. I don't mind changing the core files if necessary.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 21, 2016 - 9:45 am

Do you not see a url when you run this page you want to display? If so is there no query variable being used? How does it know - if not - which user to display data for?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Shibu
Member
Free Members
sp_UserOfflineSmall Offline
Jan 21, 2016 - 12:24 pm

Well, buddypress uses custom slugs like members, profile and activity so I can't really see the dynamic url structure.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 21, 2016 - 12:36 pm

What I meant by the question though was - if you run this url that you want to display the profile for a specific user is there a query variable showing up in the browsers address bar...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Shibu
Member
Free Members
sp_UserOfflineSmall Offline
Jan 21, 2016 - 1:21 pm

No, there is no query variable showing up in the address bar.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 21, 2016 - 2:21 pm

I see, Well no matter what you do, somehow you have to be able to inform the profile display routines just who it is you want to show - which means it has to be informed of the user ID. if there is no query variable then that suggests it is done with a POST operation and you might need to construct a special form for the process.

I will talk to my colleagues buI think more detail on the target of this url and how it operates and what yt does will be needed

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 22, 2016 - 12:13 am

no query arg needed... buddypress just takes you to the profile for the 'name' specified in the url...  however, they set the url with the profile at the end...  buddypress does have an option to use the nicename or the user login...  but it does require the profile at the end as near as I can tell...

I am unaware of a way to change that in buddypress, but perhaps with a hook its possible - sorry dont have copy to look at tonight...

if there is a filter and you can force buddypress to change the profile url structure, then we also offer a filter so you can make a corresponding change...

Avatar
Shibu
Member
Free Members
sp_UserOfflineSmall Offline
Jan 23, 2016 - 8:53 am

The url has to be defined somewhere in the sp-plugin right? If I could just remove the last slug name (profile) or change it to activity I would be satisfied. Does anyone know where this code is located?

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17366
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626