Switches/Subscription not working - Custodian Template!
  • Vote Up0Vote Down AndelAndel
    Posts: 95Member
    Hi,

    so I set up an instance of Newscoop, installed the Custodian templates (the downloadable tarball from the new site), updated the whole thing to 3.5.1 (which went fine with the method described in the other thread) and tried out the subscription switch...

    It doesn't work. Shocked I can access the article without being logged in or registered as a subscriber.

    Any idea why?

    Additional fine point and question:

    I need the title and deck readable by everyone, only when they click the title I need them to get instead the "need to subscribe" page/note. Is that how that function works, if/when it works?

    Andel
  • 9 Comments sorted by
  • Vote Up0Vote Down OscarOscar
    Posts: 59Member
    Hi:

    if you want the article title and deck be readable by everyone, just insert the {{ $gimme->article->Deck }} variable in your template, above or below the {{ $gimme->article->name }} variable Smile That should work.
  • Vote Up0Vote Down AndelAndel
    Posts: 95Member
    Hi Oscar,

    thank you. However right now I am not seeing any difference between states on/off at all here. I can't get the subscription to work and have no idea why not. I *am* using the right template now, there are apparently all necessary templates in the folders, but still it doesn't work.

    Andel
  • Hi Andel,

    The subscriber functionality is not built into the Journal sample templates.
    In order to take advantage of it you must add it to them. See:
    http://forum.sourcefabric.org/index.php/mv/msg/3327/9244/#ms g_9244
    and
    http://forum.sourcefabric.org/index.php/m/9249/?srch=subscri bers#msg_9249

    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 Fri, Mar 4, 2011 at 10:00 PM, Andel <
    newscoop-support@lists.sourcefabric.org> wrote:

    > Hi Oscar,
    >
    > thank you. However right now I am not seeing any difference between states
    > on/off at all here. I can't get the subscription to work and have no idea
    > why not. I *am* using the right template now, there are apparently all
    > necessary templates in the folders, but still it doesn't work.
    >
    > Andel
    >

  • Vote Up0Vote Down AndelAndel
    Posts: 95Member
    Hi Mugur,

    I am talking two different installations of Newscoop here, one has The Journal, the other has The Custodian as templates. This here problem was due to having downloaded OLD Custodian templates. That problem has been solved with new ones.

    Now I am trying to incorporate subscription into The Journal and am somewhat at a loss as to how to do that exactly.

    Andel
  • Dear Andel,

    As I said in my previous email please read this post in order to find out
    how to use this feature:
    http://forum.sourcefabric.org/index.php/m/9249/?srch=subscri bers#msg_9249

    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 Sun, Mar 6, 2011 at 2:46 PM, Andel <
    newscoop-support@lists.sourcefabric.org> wrote:

    > Hi Mugur,
    >
    > I am talking two different installations of Newscoop here, one has The
    > Journal, the other has The Custodian as templates. This here problem was due
    > to having downloaded OLD Custodian templates. That problem has been solved
    > with new ones.
    >
    > Now I am trying to incorporate subscription into The Journal and am
    > somewhat at a loss as to how to do that exactly.
    >
    > Andel
    >

  • Vote Up0Vote Down AndelAndel
    Posts: 95Member
    Hi Mugur,

    I've read the post. Alas - it does not help me much. I uploaded all the additional templates, but have absolutely NO idea how to change the Journal templates so this thing works, without breaking anything at the same time.

    Andel
  • Dear Andel,

    It's just a matter of reading the manual, without reading the manual you
    won't be able to change anything in the templates indeed. You also have some
    example templates in the Custodian demo package, see this post:
    http://forum.sourcefabric.org/index.php/mv/msg/3327/9246/#ms g_9246


    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 Sun, Mar 6, 2011 at 3:02 PM, Andel <
    newscoop-support@lists.sourcefabric.org> wrote:

    > Hi Mugur,
    >
    > I've read the post. Alas - it does not help me much. I uploaded all the
    > additional templates, but have absolutely NO idea how to change the Journal
    > templates so this thing works, without breaking anything at the same time.
    >
    > Andel
    >

  • Vote Up0Vote Down AndelAndel
    Posts: 95Member
    Hi,

    I uploaded these template files.

    I have no idea what to do with the existing Journal pages to insert subscription there without messing up those templates, and no amount of speedreading will help me to get there this side of New Year. I was - so far - under the impression there would be help in implementing the subscription function into the Journal template, as it is pretty illogical to not have it there in the first place and would be used by you in the future.

    Seems this is not the case.

    So what now? I need to pay you to get this done?

    Andel
  • Vote Up0Vote Down OscarOscar
    Posts: 59Member
    Hi Andel:

    first of all, you have to know which templates to edit in order to have the subscriptions working.

    In the Custodian, the template that handle the full article display is classic/article.tpl

    if you use The Journal, this is a bit different and it looks more complicated as this template has more template files: take a look at set_thejournal/_tpl/article-cont.tpl <--- this is the file to edit and to add the code:

    (this is an example, and the position depends on which content you'd like to hide/show from readers)

    search for this line: {{ if $gimme->article->has_image(1) }}<img src="{{

    and insert this code just above it:

    {{ if $gimme->article->content_accessible }}


    then find this line:
    <div class="full_text">{{ $gimme->article->full_text }}</div>

    and insert this code below it:

    {{ else }}            
    
    <p style="margin: 20px 0; text-align: center">This article is only visible to subscribers. Please log in to read this article.</p>
    
    {{ /if }}


    Make sure you select the modified template as the article template for your publication or you won't see the change.
    Before you start making changes, backup your original templates! Just in case you do a mess Smile