Adding a "My P...
 
Notifications
Clear all

Adding a "My Profile" link to menu tab

10 Posts
3 Users
0 Reactions
2,985 Views
(@izdoodle)
Posts: 101
Estimable Member
Topic starter
 

I found similar topics on this, but nothing I saw was pointing me in this direction. I'm not sure if this is a skin question or not, but it seems like this would have to be added to the skin manually so I'm posting it here. I can move this if I was wrong about where this goes.

Several of my users have wanted to know if their is a way to add a "My Profile" link to the menu bar so that their profiles are easily accessible with out having to go through one of their stories? I have seen it done on other eFiction sites, but I don't know where this would go or what coding you have to put where. Is this something that can be added into the actual software to make it default on all skins or is this something that would have to be done with every skin?

And, can someone please tell me how to do it? What code to put where? It would be nice if it goes invisible when the user logs out, but honestly I won't be picky at this point.  I would be most gracious with help for this.

Thanks


http://www.twiwrite.net
Where Your Imagination Can Run Free
18+ TwiWrite Fan Fiction Archives.
efiction vs.3.5.2
SQL vs. 5.0.77
PHP vs. 5.2.2
Happily soaking up any and all php, tpl, and html knowledge I can.

 
Posted : 12/11/2010 12:10 am
(@tammy)
Posts: 2577
Member Moderator
 

Add a link using the admin panel  to viewuser.php then include that link in the menu.


 
Posted : 12/11/2010 1:55 am
(@izdoodle)
Posts: 101
Estimable Member
Topic starter
 

OK. I got that.

Now, when I am adding the panel, am I adding it as a A=Admin type or one of the other panel classifications? Also does it need to be hidden and I'm guessing it should be set to level 0? I just want to make sure I'm doing this right before I go in and add it.
Thanks so much, Tammy. You are always so helpful.


http://www.twiwrite.net
Where Your Imagination Can Run Free
18+ TwiWrite Fan Fiction Archives.
efiction vs.3.5.2
SQL vs. 5.0.77
PHP vs. 5.2.2
Happily soaking up any and all php, tpl, and html knowledge I can.

 
Posted : 12/11/2010 9:54 am
(@tammy)
Posts: 2577
Member Moderator
 

Panel?  No there's no panel if I'm understanding what you want right.  Just the link.  You want a link in your main menu right?  Adding a link to the user account menu is a lot harder and would involve editing user.php which you would have to redo each time an update happens.


 
Posted : 12/11/2010 11:02 am
(@izdoodle)
Posts: 101
Estimable Member
Topic starter
 

Yes, I just want a shortcut if you will in the menu that takes the user to their profile page. OK, sorry. I misunderstood what you said. I thought you mean to add it as a panel but now I see you meant the admin panel as in the control panel. Sorry about that.

Yes, I want to add that. So what do I need to add to user.php and where exactly in there do I add it? 

I found this code:

http://www.twiwrite.net/viewuser.php?action=

which led my back to my own profile. I'm guessing since it's not showing the user id # that this will work for whoever is signed in. So is this the link that I use? Wouldn't I be able to just make a new page link and then add it to the menu via variables.php? I guess that seems too easy though. lol

This was the approach I was going to use but since you said to edit the user.php then I guess that's not right.

Thanks for your help.


http://www.twiwrite.net
Where Your Imagination Can Run Free
18+ TwiWrite Fan Fiction Archives.
efiction vs.3.5.2
SQL vs. 5.0.77
PHP vs. 5.2.2
Happily soaking up any and all php, tpl, and html knowledge I can.

 
Posted : 13/11/2010 12:09 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

If you're talking the site's main menu, then it is pretty simple. There are a couple of different methods, though, based on how your skin works. I suggest: https://efiction.org/wiki/index.php5?title=How_to_change_the_site_menu


 
Posted : 13/11/2010 12:54 pm
(@izdoodle)
Posts: 101
Estimable Member
Topic starter
 

Thanks. That was the page that led me to believe that I could just add a custom link to make it show up. That's how I added the forums and Affiliate program links to it, so I thought if I knew what link would send whoever was signed in, back to their own profile page, I could just make a custom link.

The link I provided above

http://www.twiwrite.net/viewuser.php?action=

was the part I wasn't sure would work. I wanted to make sure that link worked for everyone and not just me. I just assumed it did, because when I entered it into the browser address, it would take me back to my profile page. It is different from my actual member profile since  (uid#1) is what everyone else sees at the end of the link when they see my profile page.

I'll try this and see how it works. I just wasn't sure if this link was the correct one or not.


http://www.twiwrite.net
Where Your Imagination Can Run Free
18+ TwiWrite Fan Fiction Archives.
efiction vs.3.5.2
SQL vs. 5.0.77
PHP vs. 5.2.2
Happily soaking up any and all php, tpl, and html knowledge I can.

 
Posted : 13/11/2010 1:32 pm
(@izdoodle)
Posts: 101
Estimable Member
Topic starter
 

OK, I got it to work. It's working great!

I need to move it's placement in the skin but otherwise it's exactly what I wanted.

Now, that being said, is there a way to make it invisible to those that are not logged in? Would this be the link access key? I tried to search for some info on what that means in the forums and wiki but didn't find anything. Not sure if I'm looking in the right place or not, but I'm hoping it can be easily done. If not, I'm not overly worried about it. It's just a cosmetic issue, but it would be nice.

Thanks again for your help. I love this added. It's so much easier to get to my profile that way.


http://www.twiwrite.net
Where Your Imagination Can Run Free
18+ TwiWrite Fan Fiction Archives.
efiction vs.3.5.2
SQL vs. 5.0.77
PHP vs. 5.2.2
Happily soaking up any and all php, tpl, and html knowledge I can.

 
Posted : 13/11/2010 2:41 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

It's Link Access Level. Options: All, Members, Admins


 
Posted : 13/11/2010 6:23 pm
(@izdoodle)
Posts: 101
Estimable Member
Topic starter
 

*facepalm* Duh! lol That was just too simple. Sorry about that. I see that now. I have no idea why I didn't catch that. Lack of sleep and a lot of frustration. lol Thanks so much.


http://www.twiwrite.net
Where Your Imagination Can Run Free
18+ TwiWrite Fan Fiction Archives.
efiction vs.3.5.2
SQL vs. 5.0.77
PHP vs. 5.2.2
Happily soaking up any and all php, tpl, and html knowledge I can.

 
Posted : 13/11/2010 6:31 pm
Share: