solved Site-wide Forum Header

DFN
DFN
@dfn
8 years ago
35 posts
I am creating a site-wide forum with the Lucid Skin and have made a user named "Community" with a user id of "2".

Currently, I have disabled the sidebar for this user with {jrProfile_disable_sidebar}.

I would like to remove the user header shown in red and bring the forum section shown in yellow closer to the top as indicated in the two attachments.

Thanks for your help,

Doug
Lucid-Forum-Before.jpg

Lucid-Forum-After.jpg


updated by @dfn: 04/15/16 10:34:49AM
paul
@paul
8 years ago
4,331 posts
Hi - Welcome to the Jamroom forums.

In your skins profile_header.tpl test for the Community profile and if true, don't show the top bar. Then, if the viewer/user is not the profile owner or admin, don't show the profile menu bar either -

{jrCore_include template="header.tpl"}

<div class="container">

	{if $profile_id != 2}

    <div class="row">
        <div class="col12 last">
            <div class="profile_name_box">
            
                <div class="block_config" style="margin-top:3px">
                    {jrCore_module_function function="jrFollower_button" profile_id=$_profile_id title="Follow This Profile"}
                    {jrCore_item_update_button module="jrProfile" view="settings/profile_id=`$_profile_id`" profile_id=$_profile_id item_id=$_profile_id title="Update Profile"}
                    {if jrUser_is_admin() || jrUser_is_power_user()}
                        {jrCore_item_create_button module="jrProfile" view="create" profile_id=$_profile_id title="Create new Profile"}
                    {/if}
                    {jrProfile_delete_button profile_id=$_profile_id}
                </div>

                <a href="{$jamroom_url}/{$profile_url}"><h1 class="profile_name">{$profile_name}</h1></a>
                
            </div>
        </div>
    </div>
    
    {/if}
    
    {if $profile_id != 2 || jrProfile_is_profile_owner($profile_id)}

    <div class="row">
        <div class="col12 last">
            <div class="profile_menu">
                {if jrCore_is_mobile_device()}
                    {jrProfile_menu template="profile_menu_mobile.tpl" profile_quota_id=$profile_quota_id profile_url=$profile_url}
                {else}
                    {jrProfile_menu template="profile_menu.tpl" profile_quota_id=$profile_quota_id profile_url=$profile_url}
                {/if}
            </div>
        </div>
    </div>

	{/if}

    <div class="row">

    {if $profile_disable_sidebar != 1}
        {jrCore_include template="profile_sidebar.tpl"}
    {/if}
hth


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 01/15/16 12:33:12AM
DFN
DFN
@dfn
8 years ago
35 posts
Paul, thanks for your quick follow-up on this.

I will get back to you after I have had a chance to update and test the code.

I am really looking forward to working on several Jamroom projects!

- Doug
paul
@paul
8 years ago
4,331 posts
Thanks Doug - Let us know how you get on.
Note that I've just edited the above post, I forgot to test for profile_id as well as profile owner on line 28.


--
Paul Asher - JR Developer and System Import Specialist
DFN
DFN
@dfn
8 years ago
35 posts
Paul, I have tried the updated code, but have not been able to make it work correctly. May I email you at support [at] jamroom [dot] net and provide you with admin access to the site?
paul
@paul
8 years ago
4,331 posts
Sure - Do that and I'll take a look.


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 01/15/16 06:03:28PM
DFN
DFN
@dfn
8 years ago
35 posts
Thanks so much - works great now!

I appreciate you pointing out the differences between the user and profile ids.