You should use the statement "if allowed" in order to determine if the
reader had access to the article content. E.g.:
please subscribe
please log in
Hope this helps,
Mugur
On Thu, Feb 14, 2008 at 6:49 PM, wrote:
> Author: triley
> Link: http://code.campware.org/phorum/read.php?8,6208,6208#msg-6208
>
> --------------------------------------------------------------------------------
>
> I tried template #3 on for size and it works great. However, I cannot
> figure out how to enable the subscription module. I unchecked the option
> (Visible to non-subscibers). But I can still view the article contents when
> I test.
>
> I notice in the documentation by default articles are automatically
> configured not to be visible. I assume the it's a global option to
> enable/disable this feature. Do I need to install Cream in order for this to
> work or can I disable this function in the template or mysql?
>
> Any idea how I can turn to option off.
>
> Thanks,
>
> Romel
>
>
> --
> Sent from Campware Forums
> http://code.campware.org/phorum
>
Thanks for the information but I am a newbie to template development. Where,what section do I use to implement the code that you sent to me. Did I add this code to the subscribe.tpl or somewhat else?
Please edit the template article-middle.tpl; you'll find the statement "
print article Full_text>" at the line 19. It displays the whole article
content. Just wrap it up in the code I sent you in the previous email.
Regards,
Mugur
On Wed, Feb 20, 2008 at 11:21 PM, wrote:
> Author: triley
> Link: http://code.campware.org/phorum/read.php?8,6230,6232#msg-6232
>
> --------------------------------------------------------------------------------
>
> Thanks for the information but I am a newbie to template development.
> Where,what section do I use to implement the code that you sent to me. Did I
> add this code to the subscribe.tpl or somewhat else?
>
> Thanks!
>
> --
> Sent from Campware Forums
> http://code.campware.org/phorum
>
Thanks Mugar, but I am still having a problem viewing the "Full_text". Here's what my code looks like now when I modified article-middle.tpl (lines 9 - 28) :
9
10
11
12
13
14
15
16
17
18
19
When I selected "full story" to view that article, neither the login prompt or the article displayed ("Full_text"). Only the Intro display. I tested with a new user and verified that "Visible to non-subscribers" on this article was disabled (unchecked).
Did I modify the template incorrectly? Any thoughts would be helpful.
Please send me the full template, from the partial code you sent me I see
some syntax errors but I need to have the full template to make sure these
are the cause.
Regards,
Mugur
On Tue, Apr 29, 2008 at 2:49 PM, wrote:
> Author: triley0131
> Link: http://code.campware.org/phorum/read.php?8,6230,6354#msg-6354
>
> --------------------------------------------------------------------------------
>
> Thanks Mugar, but I am still having a problem viewing the "Full_text".
> Here's what my code looks like now when I modified article-middle.tpl
> (lines 9 - 28) :
>
> 9
> 10 " border="0">
> 11
> 12
> 13
> 14
> 15
> 16
> 17
> 18
> 19
> 20
> 21
> 22
> 23 please subscribe
> 24
> 25 please log in
> 26
> 27
> 28
>
> The behavior did change but I received unexpected results. I was
> expecting to be prompted for login information and if successful to view the
> content of the article "Full_text".
>
> When I selected "full story" to view that article, neither the login
> prompt or the article displayed ("Full_text"). Only the Intro display. I
> tested with a new user and verified that "Visible to non-subscribers" on
> this article was disabled (unchecked).
>
> Did I modify the template incorrectly? Any thoughts would be helpful.
>
> Thanks
>
>
> --
> Sent from Campware Forums
> http://code.campware.org/phorum
>