Advertisement:

Author Topic: How to link edit profile page  (Read 143 times)

moinuddin

  • Full Member
  • ***
  • Posts: 102
How to link edit profile page
« on: June 28, 2019, 03:05:37 pm »
Hi,

I want to give a link on post ad page ..so that logged in user can click on that link to go to their edit profile page and can edit the details from their profile ...in my website user is already logged to post the ads (as i have option of posting ads only for logged in user)

Thanks for the help.

BritWeb

  • Hero Member
  • *****
  • Posts: 770
  • If it ain't broke, don't fix it.
Re: How to link edit profile page
« Reply #1 on: June 28, 2019, 03:19:10 pm »
Hi,

I want to give a link on post ad page ..so that logged in user can click on that link to go to their edit profile page and can edit the details from their profile ...in my website user is already logged to post the ads (as i have option of posting ads only for logged in user)

Thanks for the help.

When a user is logged in, usually 'MyAccount' link will show up at the top of the page and they click it to go to their profile editing section. There is no need for an additional link for this.

Regards

moinuddin

  • Full Member
  • ***
  • Posts: 102
Re: How to link edit profile page
« Reply #2 on: June 29, 2019, 11:01:46 am »
Thanks for reply ..but it shows at bottom in mobile browser ..as most users don't from where to edit

BritWeb

  • Hero Member
  • *****
  • Posts: 770
  • If it ain't broke, don't fix it.
Re: How to link edit profile page
« Reply #3 on: June 29, 2019, 10:39:21 pm »
Thanks for reply ..but it shows at bottom in mobile browser ..as most users don't from where to edit

Yes, bender theme displays that link at the bottom in mobile view. I suggest you consider going for a different them.

Best of luck!

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: How to link edit profile page
« Reply #4 on: June 30, 2019, 01:17:31 am »
Hello!

You can use this piece of code to add an additional link to user dashboard:

Code: [Select]
<a href="<?php echo osc_user_dashboard_url(); ?>">My dashboard</a>

Regards.

moinuddin

  • Full Member
  • ***
  • Posts: 102
Re: How to link edit profile page
« Reply #5 on: June 30, 2019, 02:08:13 am »
Thanks for the answer..and if we directly want to call the update user page ..then is there any piece of code for that?

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: How to link edit profile page
« Reply #6 on: June 30, 2019, 03:37:04 pm »
Try this:

Code: [Select]
<a href="<?php echo osc_user_profile_url(); ?>">My account</a>

Regards.

moinuddin

  • Full Member
  • ***
  • Posts: 102
Re: How to link edit profile page
« Reply #7 on: July 01, 2019, 10:59:38 am »
Thanks for the reply...ill try it.