Subscriptions/Switches do not work!!!
  • Hi,

    I have set the switch of one article to visibe only to subscribers (actually I lifted off the ticked switch that non-subscribers may see), but the article is accessible for all and everyone. NOT good!

    What can this be?

    I checked with an anonymizer which strips all cookies from my access and I had someone else test who isn't logged in at all and never was logged in. We both were able to access that article.

    Andel
  • 5 Comments sorted by
  • Subscriber functionality / visibility of articles works only if it is implemented in publication templates. The Journal set doesn't use this functionality (so switching visibility on/off has no effect), but Custodian does, you can download it from http://www.sourcefabric.org/en/products/newscoop_download/ (updated version will be available tomorrow)
    --
    Ljuba Rankovic
    Senior Front End Developer, Sourcefabric
    ljuba.rankovic@sourcefabric.org

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric
  • Hi Ljuba,

    sheesh!

    Is it possible to implement this in The Journal? I worked around it for now and we have till the next issue (March) to get it working. I've finished the issue and everything is now set to work with The Journal design, I am rather loathe to redo all that work. I like the template.

    Andel
  • You can easily grab needed templates from Custodian publication and try to incorporate them into The Journal, we will help in that process.

    Templates that you need from Custodian:
    - classic/subscription.tpl
    - clasic/register.tpl
    - clasic/user-chgpass.tpl
    - classic/tpl/login-top.tpl
    - classic/tpl/subscription-form.tpl
    - classic/tpl/user-form.tpl

    and add this to _html-head.tpl (this is for logout purposes):

    {{ if $gimme->url->get_parameter('logout') == 'true' }}
    <META HTTP-EQUIV="Set-Cookie" CONTENT="LoginUserId=; path=/">
    <META HTTP-EQUIV="Set-Cookie" CONTENT="LoginUserKey=; path=/">
    {{ $gimme->url->reset_parameter('logout') }}
    <META HTTP-EQUIV="Refresh" content="0;url={{ uri }}">
    {{ /if }}
    --
    Ljuba Rankovic
    Senior Front End Developer, Sourcefabric
    ljuba.rankovic@sourcefabric.org

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric
  • Hi Ljuba,

    ok, so this is feasible. And I have still that test site Andrey set up on the same server and will keep it, until we get it to work. I will look at this tomorrow.

    Thanks for the answer!

    Andel
  • Use the "content_accessible" attribute of the article in the template, see
    the manual:
    http://en.flossmanuals.net/Campsite/TemplateObjects
    Search for "Accessibility properties/functions"

    E.g.:
    {{ if $gimme->article->content_accessible }}
    {{ $gimme->article->full_text }}
    {{ else }}
    <p>Please login or subscribe to see the article</p>
    {{ /if }}

    Mugur Rus
    Senior Software Developer, Sourcefabric
    mugur.rus@sourcefabric.org

    Cluj-Napoca, Romania
    +40 (0)720 528408
    Skype: mugur_rus

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric



    On Wed, Feb 9, 2011 at 8:07 PM, Andel <
    newscoop-support@lists.sourcefabric.org> wrote:

    > Hi,
    >
    > I have set the switch of one article to visibe only to subscribers
    > (actually I lifted off the ticked switch that non-subscribers may see), but
    > the article is accessible for all and everyone. NOT good!
    >
    > What can this be?
    >
    > I checked with an anonymizer which strips all cookies from my access and I
    > had someone else test who isn't logged in at all and never was logged in. We
    > both were able to access that article.
    >
    > Andel
    >