solved How would you do it?

AndyF
AndyF
@andyf
8 years ago
92 posts
On my site at http://decorativeconcreteking.com, I'm wanting to create something that ends up looking more like a personal website for each profile that joins the site (& not so much a "social" site"). When someone happens to land on one of my member's profile pages, my goal is for it to look like they are the only "contractor" on the site (the page shows links to their photos, videos, blogs, pages . . . and not showing links to a bunch of other members on the site).

I'm using the Media Pro light skin and I've have started to edit the header_menu_desktop.tpl to delete some of the menu navigation links at the top of each page. This is working good to drop the links pointing to other areas on the site but what I would really like is for these links to stay at the top of the index/home page but not show on each individual profile page.

Is there an easy way to do this?

Is there a better skin to accomplish this in?


updated by @andyf: 03/30/17 05:49:09PM
douglas
@douglas
8 years ago
2,793 posts
You can do this by modifying a couple of templates, in your profile_header.tpl, find this:

{if jrProfile_is_profile_owner($_profile_id)}
    {assign var="from_profile" value="yes"}
{/if}

and change it to this:

{assign var="from_profile" value="yes"}

I'm not even sure how or why that if check was there, it is not needed.

Then in your header.tpl, change this:

{* MAIN MENU *}
{if !jrCore_is_mobile_device() && !jrCore_is_tablet_device()}
    {jrCore_include template="header_menu_desktop.tpl"}
{/if}

to this:

{* MAIN MENU *}
{if !jrCore_is_mobile_device() && !jrCore_is_tablet_device()}
    {if !isset($from_profile} || $from_profile != 'yes'}
        {jrCore_include template="header_menu_desktop.tpl"}
    {/if}
{/if}

That will show the main menu on the front end of your site but not on the profile pages.

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
AndyF
AndyF
@andyf
8 years ago
92 posts
This is giving me a syntax error when I try to save it:

{* MAIN MENU *}
{if !jrCore_is_mobile_device() && !jrCore_is_tablet_device()}
{if !isset($from_profile} || $from_profile != 'yes'}
{jrCore_include template="header_menu_desktop.tpl"}
{/if}
{/if}
douglas
@douglas
8 years ago
2,793 posts
AndyF:
This is giving me a syntax error when I try to save it:

{* MAIN MENU *}
{if !jrCore_is_mobile_device() && !jrCore_is_tablet_device()}
{if !isset($from_profile} || $from_profile != 'yes'}
{jrCore_include template="header_menu_desktop.tpl"}
{/if}
{/if}


Give this a shot:

{* MAIN MENU *}
{if !jrCore_is_mobile_device() && !jrCore_is_tablet_device()}
{if !isset($from_profile}}
{jrCore_include template="header_menu_desktop.tpl"}
{/if}
{/if}


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
douglas
@douglas
8 years ago
2,793 posts
AndyF:
This is giving me a syntax error when I try to save it:

{* MAIN MENU *}
{if !jrCore_is_mobile_device() && !jrCore_is_tablet_device()}
{if !isset($from_profile} || $from_profile != 'yes'}
{jrCore_include template="header_menu_desktop.tpl"}
{/if}
{/if}

Ah I see the issue here, use this instead...

{* MAIN MENU *}
{if !jrCore_is_mobile_device() && !jrCore_is_tablet_device()}
    {if !isset($from_profile) || $from_profile != 'yes'}
        {jrCore_include template="header_menu_desktop.tpl"}
    {/if}
{/if}




--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
AndyF
AndyF
@andyf
8 years ago
92 posts
Thanks Douglas, that worked!
Now I have another question for you. I have 2 different profile quotas. One I call "Premium Members" and the other one is called just "Members". How do I make the top menu navigation links show just on the "Members" quota? (I want "Premium Members" profile pages to only have links to their photos, videos, blogs, pages and not show the top menu navigation links).
AndyF
AndyF
@andyf
8 years ago
92 posts
Actually, now looking at it closer, that only HALF worked. The top menu navigation links are gone when I am logged in but as soon as I log out of the site, they are back on top of all of the profile pages.
douglas
@douglas
8 years ago
2,793 posts
AndyF:
Actually, now looking at it closer, that only HALF worked. The top menu navigation links are gone when I am logged in but as soon as I log out of the site, they are back on top of all of the profile pages.

I'm not seeing that on my dev site, see attachment, are you sure your looking at a profile page?

Do you have a link I can check out?

Thanks!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
AndyF
AndyF
@andyf
8 years ago
92 posts
You can look at this: http://decorativeconcreteking.com/dc-king
When logged out, all of the main menu navigation links are at the top. Also, I will somehow have to move the "Create An Account" link up next to the "Welcome Guest" at the very top (obviously that one still needs to be somewhere if we succeed at removing the rest of the links in that row).

Here's a screen capture of both logged in and logged out on my profile:
Logged In.png
Logged In.png  •  1.1MB

Logged Out.png
Logged Out.png  •  967KB

douglas
@douglas
8 years ago
2,793 posts
Can you email us your admin login so we can check it out?

Thanks!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
douglas
@douglas
8 years ago
2,793 posts
Replied to your support ticket but will update here too, the issue was you didn't check the checkbox for the modified profile_header.tpl in your ACP > Skin Settings > Skin Templates section.

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
AndyF
AndyF
@andyf
8 years ago
92 posts
Thanks Douglas, that worked!
(I should have known better about the checkbox)
AndyF
AndyF
@andyf
8 years ago
92 posts
What template & what would I modify to remove the main menu links from showing on the mobile version? (main menu links still show there).
douglas
@douglas
8 years ago
2,793 posts
At the top of the header.tpl, add the same if statment...

{if jrCore_is_mobile_device() || jrCore_is_tablet_device()}
    {if !isset($from_profile) || $from_profile != 'yes'}
        {jrCore_include template="header_menu_mobile.tpl"}
    {/if}
{/if}

Hope this helps!


--

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

Tags