Disable profile header for forum

alt=
@tettlingen
6 years ago
93 posts
Hi, Some help please.
I´m trying to disable the profile header and sidebar for forum for specific quotas.
("Master admin" quota 1 and "SITE" quota 16)

I think I managed to do this before, but I´ve lost the code.

I have tried these:

{jrProfile_disable_header}
{jrProfile_disable_sidebar}

and

{if $profile_quota_id == X}
{if jrUser_is_master()}

But I cant figure out how to make this work.
Argh, this is driving me nuts. I cant figure it out" ;)
Please help.






updated by @tettlingen: 05/18/18 06:32:28PM
paul
@paul
6 years ago
4,326 posts
The Ninja skin specifically disables the sidebar for forum by replacing the jrForum item_detail.tpl, item_categories.tpl and item_index.tpl templates, so try this at the top of those templates -
{if $profile_quota_id == 1 || $profile_quota_id == 16}
    {jrProfile_disable_header}
    {jrProfile_disable_sidebar}
{/if}
hth


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 02/13/18 06:34:35AM
alt=
@tettlingen
6 years ago
93 posts
Hi!
Great. The header worked fine, sidebar didn´t.. But its ok. I found a workaround with the help of the if code.
Thank you very much! :)
paul
@paul
6 years ago
4,326 posts
What skin are you using? It could be that its not setup to check for the sidebar being disabled, or maybe it doesn't have a sidebar template at all?


--
Paul Asher - JR Developer and System Import Specialist
sekeri
sekeri
@ilker
6 years ago
334 posts
I have been following similar questions and problems for a long time in this forum. I think hiding profile header and sidebar for a specific link or quota should be customizable.
sekeri
sekeri
@ilker
6 years ago
334 posts
By the way, {jrProfile_disable_header} does not work for Follow me skin the way you explained above.
michael
@michael
6 years ago
7,714 posts
sekeri:...I think hiding profile header and sidebar for a specific link or quota should be customizable.
It is customizable, its just a template edit and a flag.

You should be able to accomplish the same thing with template edits. The function exists so that modules dont need to ask you to make skin adjustments in order for them to work.

open another thread about what you're trying to accomplish and we can talk about how to get there.

Tags