Re: [campsite-support] how to restrict viewing of sections?
  • Use the attribute "content_accessible" from the article object. See manual
    page:
    http://code.campware.org/manuals/campsite/3.1/index.php?id=179

    Look for "Accessibility properties/functions".

    E.g.:
    {{ if $campsite->article->content_accessible }}
    {{** display the article content **}}
    {{ else }}
    {{** ask the user to log in or register **}}
    {{ /if }}

    Mugur

    On Fri, Nov 14, 2008 at 4:12 AM, wrote:

    > Author: spike
    > Link: http://code.campware.org/phorum/read.php?8,6714,6714#msg-6714
    >
    > --------------------------------------------------------------------------------
    >
    > How can I restrict the non subscribers from viewing various sections?? I
    > have removed the check on each section that says visible to non-subscribers
    > but I log out I can still see the entire site.
    >
    >
    > --
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >
  • 7 Comments sorted by
  • well I searched for that statement in the manual and was unable to find anything. 2nd I am not a programmer I am a photographer so at best I am at a downfall with the coding some what.

    The need so to restrict anonymous viewers from see the artist "semi nude" pictures unless they are a subscriber so I hope that helps in better understand for the need.

    I will search again in the manual in case I over looked something but this is very important that the site NOT be wide open.

    again
    thanks
  • did a search for all the words in article noting was found what am I missing here?

    accessibility
    properties

    searched in article-middle.tpl,article,tpl
  • well what you gave me might be ok if I knew how to program, let me put you in my arena and just say to you read the manual for a night session, I am a professional photographer NOT a Damm coder and none of this means a thing to me. All I was looking for was a very simple example to use to lock down the site from the general public viewing it with our being a member.
    Now if that is asking to much than I will just find another program that will work.Sorry for the harsh post but after viewing this forum I see a lot of the same answers Read the manual well reading the manual is not getting the job done as I said I am a photographer.
    thanks for what you provided even if it didn't help and as well I have no idea even where that code should go.
  • Mugur was assuming you were interested in knowing how to modify your
    templates, hence he pointed you to the right direction. We couldn't guess
    you were clueless in templating. If you lack that skill set, Campsite is
    probably not for you, or you should get some web developer to do it for you
    (or try your luck with modifying our learning template set)

    Going back to your example, if I wanted to do a photo night shoot, I would
    hire a photographer who could do it for me. Or I would trouble myself to
    learn the tricks of the trade.

    All the best,

    Sava





    From: ""

    To: campsite-support@campware.org

    Date: 11/22/2008 06:26 PM

    Subject: [Campsite Support] Re: [campsite-support] how to restrict viewing of sections?






    Author: spike
    Link: http://code.campware.org/phorum/read.php?8,6715,6748#msg-6748
    --------------------------------------------------------------------------------


    well what you gave me might be ok if I knew how to program, let me put you
    in my arena and just say to you read the manual for a night session, I am a
    professional photographer NOT a Damm coder and none of this means a thing
    to me. All I was looking for was a very simple example to use to lock down
    the site from the general public viewing it with our being a member.
    Now if that is asking to much than I will just find another program that
    will work.Sorry for the harsh post but after viewing this forum I see a lot
    of the same answers Read the manual well reading the manual is not getting
    the job done as I said I am a photographer.
    thanks for what you provided even if it didn't help and as well I have no
    idea even where that code should go.


    --
    Sent from Campware Forums
    http://code.campware.org/phorum
  • well let me just say this it is not my intent to get into a contest here, but over the last 20+ yrs I have had the pleasure of teaching some new photographers unique ways of doing things that are as you stated in the manual.
    But the fact remains that hands on learn by examples both your subject and mine are the best at getting to the point. Now all that being said with all the talent on this forum one would think someone could show or detail a what seems to be a simple task.
    I really don't have the time or desire to stop my day to day and learn how to program just to be able to master what from all the postings seems to be a very simple request.

    1. what module do I put this in ?
    2. what code needs to reside in that module?
    3. Thanks for the intervention and help on this issue

    Now another example learning how to use google to fine what I want. As per your example do I need to study SEO so I get the best results?? I don't see where the topic of all this would help in solving my request, but rather send me off on a study session that may or may not solve the issue or even confuse me even more.
    As I stated it's not my intent to get into a heated discussion but rather seek a simple answer that would fill my needs. Now all this being said I guess the final answer from this group would be use another product, So if thats the outcome I get from this group than I guess it's off to seek a more understanding and helpful group.
    to all of you that have replied thanks and sorry I wasted your time.
    spike
  • well I have found my answer, Drupal has all the help and models required. It's really sad that such a simple request has forced yet another person to leave this little group of Read the Manual experts.
    sorry but asking a simple questions and being pushed to the manual is not the way to gain exposure. If you want some good professional pictures take do this

    Take a 2yr collage course in Professional photography "kinda like read the manual" get my drift?
    anyone looking for a Great group of helpful people head on over to Drupal they are very helpful and Fast

    So long enjoy your little group
    Spike
  • We wish you the best of luck. Goodbye.




    From: ""

    To: campsite-support@campware.org

    Date: 11/24/2008 06:33 PM

    Subject: [Campsite Support] Re: [campsite-support] how to restrict viewing of sections?






    Author: spike
    Link: http://code.campware.org/phorum/read.php?8,6715,6757#msg-6757
    --------------------------------------------------------------------------------


    well I have found my answer, Drupal has all the help and models required.
    It's really sad that such a simple request has forced yet another person to
    leave this little group of Read the Manual experts.
    sorry but asking a simple questions and being pushed to the manual is not
    the way to gain exposure. If you want some good professional pictures take
    do this

    Take a 2yr collage course in Professional photography "kinda like read the
    manual" get my drift?
    anyone looking for a Great group of helpful people head on over to Drupal
    they are very helpful and Fast

    So long enjoy your little group
    Spike


    --
    Sent from Campware Forums
    http://code.campware.org/phorum