HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Hiding portal blocks

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#37632 (In Topic #8474)
Avatar

Fan in action

How do i hide them

Another question,

How do i hide blocks on the main Portal page?? I want guests only to see the signup block, and then also without the Forum and Chatbox options if possible?

See pic below

Thnx

Jurgen

Web site

Not logged in


[ Join | More ]


Back to the top
 
Posted
Rating:
#37636
Avatar

Edit the panel, and put this around any block you want to be invisible to guests:
Before:

Code

[if_in_group="2,3,4,5,6,7,8,9,10,11,12"]
After:

Code

[/if_in_group]

(this assumes your non-guest groups are 2-12)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#37643
Avatar

Fan in action

 Thnx that solves the question!

but where can i see what number = what usergroup??

Jurgen
 
Back to the top
 
Posted
Rating:
#37644
Avatar

If you go to the screen that lists the usergroup, hold your mouse over links. You'll see the URL to those links in the browser's status bar, and in them will be a number. Hence you can match that number against the group name (which is the link text).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#37645

Non-joined user

I got it working now partial,
 But it seems its only working with Firefox??  When using IE 7 the page displays with all blocks??

plz help :)


 
Back to the top
 
Posted
Rating:
#37647
Avatar

That 'if_in_group' tag actually runs on the server and strips stuff out there, so it can't be the browser itself making a difference. I suspect somehow IE is cacheing the page, or perhaps you're looking at the wrong zone (e.g. welcome zone instead of site zone or vice-versa).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#37655

Non-joined user

I've deleted the complete cache of IE and tried to open it again on IE, thesame result. Firefox works OK, IE does not hide the blocks???

maybe you can check??

thnx

Jurgen
 
Back to the top
 
Posted
Rating:
#37664
Avatar

Looking at your site I can see the forum and chatbox are links on the menu. I'd assumed that you were referring to some blocks you'd placed.
For those to become invisible, you'd need to edit the menu and tick the 'Only display link if there is permission'  for those items.

Also relating to this my example was the opposite of what you wanted, but I'm guessing you've worked this out.
This would be for the login block…

Code

[if_in_group="1"]
[block]main_personal_stats[/block]
[/if_in_group]

I know this all doesn't really answer your latest post, but I expect armed with some extra information and a fresh outlook on it, it'll easily fix.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#37670
Avatar

Fan in action

 I've quote'd my block code from the complete page, the code is working in Firefox, but IE7 ignores it completely??

left panel block code.

Code

 [if_in_group="2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"]
[block="root_website" type="tree" caption="Web site"]side_stored_menu[/block]
[/if_in_group]
[block]side_personal_stats[/block]
[if_in_group="2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"]
{$SET,interlock,_false}
[block]side_users_online[/block]
[block]side_stats[/block]
[/if_in_group]
Main page block code.

Code

[title="1"]Welcome to The Maquis Portal[/title][if_in_group="2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"][block="3"]main_greeting[/block] [block]main_news[/block] [block]main_forum_topics[/block] [block]main_poll[/block] [/if_in_group]
  Left panel block code.

Code

[if_in_group="2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"]
[block]side_calendar[/block]
[/if_in_group]
Are these code's right?
Back to the top
 
Posted
Rating:
#37689
Avatar

They're right. When I look now though I see everything as a guest in both IE7 and Firefox. Please believe me when I say it is impossible for different browser's to handle 'if_in_group' differently because it does happen on the web server, filtering things out or leaving it, before it gets to the web browser.
Please check you:
  • didn't put the code into the site zone's panels instead of the welcome zone's panels
  • are looking at exactly the same URLs in both browsers
  • don't have cacheing or an old version of one of the pages in one of the browsers


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#37737
Avatar

Fan in action

Thnx all working 100% now
Back to the top
 
Posted
Rating:
#39620

Non-joined user

Chris Graham said

Edit the panel, and put this around any block you want to be invisible to guests:
Before:

Code

[if_in_group="2,3,4,5,6,7,8,9,10,11,12"]
After:

Code

[/if_in_group]

(this assumes your non-guest groups are 2-12)

Back to the top
 
Posted
Rating:
#39688
Avatar

Fan in training

test

just test
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: