The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Adding a "real" profile link to the navigation

View previous topic View next topic Go down

Solved Adding a "real" profile link to the navigation

Post by BloodDrunk on April 20th 2017, 10:45 pm

Technical Details


Forum version : #phpBB3
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : All members
Forum link : http://www.nfssecrets.tk/

Description of problem

I want to add a link to the navigation that will lead to a member's real profile page (not the default profile link, that is, infact, a user's control panel). What link (or token or something) should I use?


Last edited by BloodDrunk on April 27th 2017, 7:47 pm; edited 1 time in total
avatar
BloodDrunk
Forumember

Posts : 122
Reputation : 4
Language : English

http://www.nfssecrets.tk/

Back to top Go down

Solved Re: Adding a "real" profile link to the navigation

Post by SLGray on April 20th 2017, 10:54 pm

Link in navbar is for editing your profile.

To view your profile, you have to click your username, the profile button in topics, or click the view profile link (drop-down menu) in the toolbar if you have it activated.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 39207
Reputation : 2628
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Adding a "real" profile link to the navigation

Post by BloodDrunk on April 21st 2017, 4:23 pm

And all of that is known to me. That's why I specifically asked if I can get the local user's link to profile, because it's not really good for a person to seek its post just so he/she can access his/her own profile.

I don't have toolbar activated, as it does not fit in with the site good.

No way to access the profile link?
avatar
BloodDrunk
Forumember

Posts : 122
Reputation : 4
Language : English

http://www.nfssecrets.tk/

Back to top Go down

Solved Re: Adding a "real" profile link to the navigation

Post by Luiz~ on April 27th 2017, 12:48 am

Hello,

Just create a JS with placement in all pages, and the code:
Code:
(function ($) {
  'use strict';

  var profileUrl = '/u' + _userdata["user_id"] + '-';

  $(function () {
    $('a[href*="/profile?mode=editprofile"]')
      .attr('href', profileUrl)
    ;
  });
}(jQuery));

o/
avatar
Luiz~
New Member

Male Posts : 16
Reputation : 7
Language : PT
Location : Brazil

http://ajuda.forumeiros.com/

Back to top Go down

Solved Re: Adding a "real" profile link to the navigation

Post by BloodDrunk on April 27th 2017, 3:33 pm

@Luiz~ wrote:Hello,

Just create a JS with placement in all pages, and the code:
Code:
(function ($) {
  'use strict';

  var profileUrl = '/u' + _userdata["user_id"] + '-';

  $(function () {
    $('a[href*="/profile?mode=editprofile"]')
      .attr('href', profileUrl)
    ;
  });
}(jQuery));

o/

Hey, this doesn't seem to do anything. What could be the problem?

EDIT: Nevermind, I got it fixed and it's working now. Thank you Smile
avatar
BloodDrunk
Forumember

Posts : 122
Reputation : 4
Language : English

http://www.nfssecrets.tk/

Back to top Go down

Solved Re: Adding a "real" profile link to the navigation

Post by APE on April 28th 2017, 12:11 am

Problem solved & topic archived.
Please read our forum rules: ESF General Rules



avatar
APE
Manager
Manager

Male Posts : 10261
Reputation : 956
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum