[Campsite Support] content_accesible problem

View: New views
2 Messages — Rating Filter:   Alert me  

[Campsite Support] content_accesible problem

by phorum :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Author: ybani
Link:  http://code.campware.org/phorum/read.php?8,6468,6468#msg-6468
--------------------------------------------------------------------------------

Dear Support,

I have added this code to my article.tpl page.  


 

        {{ if $campsite->article->content_accesible }}

                       

                        {{ if $campsite->article->has_image(1) }}                                                                                          

                       

                                    {{ $campsite->image2->description }}                                                                        

                        {{ /if }}                                                                                  

                        {{ $campsite->article->byline }}

                        {{ $campsite->article->full_text }}      

                       

            {{ else }}

                        {{ include file="not_allowed.tpl" }}

            {{ /if }}

 
I have a problem with this code even that the person is logged in, I still get the not_allowed.tpl. What is right way to allow subscribers to view article? Thanks +++

 
Best Regards,

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

Parent Message unknown Re: [Campsite Support] content_accesible problem

by Mugur Rus-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Please make sure the user had a valid subscription:
- the subscription was active
- the subscription field "Left to pay" was 0 or the subscription type was trial
- the subscription contained all the sections that you want to give access to in all languages or in the language that the reader wanted to access
- the subscription end date for each section did not pass (check each section's start date and days/paid days for paid subscriptions)

Mugur

On Mon, Jun 30, 2008 at 5:13 PM, <phorum@...> wrote:
Author: ybani
Link:  http://code.campware.org/phorum/read.php?8,6468,6468#msg-6468
--------------------------------------------------------------------------------

Dear Support,

I have added this code to my article.tpl page.

       {{ if $campsite->article->content_accesible }}
                       {{ if $campsite->article->has_image(1) }}
                                   {{ $campsite->image2->description }}
                       {{ /if }}
                       {{ $campsite->article->byline }}
                       {{ $campsite->article->full_text }}
           {{ else }}
                       {{ include file="not_allowed.tpl" }}
           {{ /if }}
I have a problem with this code even that the person is logged in, I still get the not_allowed.tpl. What is right way to allow subscribers to view article? Thanks +++

Best Regards,

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