solved Profile Tab Home Link for Ninja Skin

Isleander
Isleander
@isleander
7 years ago
554 posts
Is it possible to add a "home/index" link/tab on the Profile page within the Ninja skin?
The reason I ask is that it would be very helpful to have this when using a mobile device like a tablet, rather than opening up the side navigation link each time.
Many thanks,
Alex
HomeTab.png
HomeTab.png  •  393KB


updated by @isleander: 12/12/17 08:11:51AM
michael
@michael
7 years ago
7,715 posts
add the link into the profile_menu.tpl file.
ACP -> SKINS -> NINJA -> TEMPLATES -> profile_menu.tpl -> MODIFY

Just add it at the top before the foreach loop.
<a href="{$jamroom_url}/{$profile_url}/"><div class="profile_menu_entry">Home</div></a>
Isleander
Isleander
@isleander
7 years ago
554 posts
I have tried your suggestion Michael, but adding the link in the manner you suggest only refreshes the Profile page by taking the user back to it, rather than to the website home page, which is what I was hoping to achieve. I imagine that there needs to be something else in the string to direct the user to the index page.
updated by @isleander: 09/13/17 03:47:43AM
douglas
@douglas
7 years ago
2,790 posts
Change this:

<a href="{$jamroom_url}/{$profile_url}/">

to this:

<a href="{$jamroom_url}">

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Isleander
Isleander
@isleander
7 years ago
554 posts
Yes, that works - Thanks Douglas!
douglas
@douglas
7 years ago
2,790 posts
Your welcome!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos