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.


How to prevent guest from accessing certain blocks on a page?

Login / Search

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

Community saint

Greetings,

As indicated in this topic: http://ocportal.com/forum/topicview/misc/deploying/-solved-how-to-put.htm
I put an external chatbox into a custom comcode page, and made a block of that page on my forumview page.

I set the permissions of that comcode page so that guests cannot view that resource. However when I logged out so I could view the forumview page as a guest, I noticed that the shoutbox block was indeed not only visible to me as a guest, but also completely accessible.

I would like to prevent that, mainly because I know that it will not have the same spambot protection that the rest of ocPortal has so I don't want guest spambots to take advantage of it.

Is there a way I can set that block... or maybe the contents of the chatbox box, so that guest cannot see and access it?

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Rating:
#102396
Avatar

Honoured member

You could wrap the block in an If in group tag which would only appear to certain usergroups

Just Jarv
Back to the top
 
Posted
Rating:
#102399
Avatar

Community saint

Oh yeah, I forgot about that!

Amazingly enough though, I've yet had a spammer hit that chat block!

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Rating:
#102569
Avatar

Fan in training

I'm new to OcPortal. I am loving it so far.

 However I'm having trouble figuring out, how to prevent my downloads from being accessed by the "download now" link. I've tried setting all the permissions I can find. No luck, is this "IF" mentioned above by Steven Jarvis a way to accomplish this?

If not please direct me to something to clarify how to do this. I hope I'm being clear in my request and many thanks in advance.

-T.C.

ADDENDUM: Further clarification; It is the use of the "download now" link in the top 10 and most recent blocks that I am trying to restrict. 


Last edit: by TCDowney
Back to the top
 
Posted
Rating:
#102571
Avatar

You'd need to edit the link out of the DOWNLOAD_BOX.tpl template.

It's not a secure approach (the URL can still be manually generated), but it will stop most people.


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:
#102573
Avatar

Fan in training

Thanks! One more thing.. Is there an OcPortal banner? I'd like to add it to my site, to hopefully give back a little in this way.
Back to the top
 
Posted
Rating:
#102575
Avatar

I think we had something downloadable on the contribute page…

*goes to check*

Yep, under "Show our ad" :).


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
Item has a rating of 5 (Liked by Fletch)  
Rating:
#102577
Avatar

Fan in training

The hint helped greatly! Much appreciated. I simply modified the template to have the "download now" link do the same thing as the "more info".

Thanks again! I'll be placing a banner on my site, and recommending OcPortal to associates.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: