[Campsite Support] Re: Re: Cannot control subscription access to articles

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

[Campsite Support] Re: Re: Cannot control subscription access to articles

by phorum :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <!** endif>  
12  
13                   <!** print article deck>  
14                   <!** print article name>  
15                   <!** if article byline not "">  
16                   <!** print article byline>  
17                   <!** endif>  
18                   <!** print article intro>  
19                    
20                                        <!** print article Full_text>  
21                                        <!** else>  
22                                        <!** if user loggedin>  
23                                        please subscribe  
24                                        <!** else>  
25                                        please log in  
26                                        <!** endif>  
27                                        <!** endif>  
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

Parent Message unknown Re: [Campsite Support] Re: Re: Cannot control subscription access to articles

by Mugur Rus-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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, <phorum@...> 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 <!** endif>
12
13                   <!** print article deck>
14                   <!** print article name>
15                   <!** if article byline not "">
16                   <!** print article byline>
17                   <!** endif>
18                   <!** print article intro>
19
20                                        <!** print article Full_text>
21                                        <!** else>
22                                        <!** if user loggedin>
23                                        please subscribe
24                                        <!** else>
25                                        please log in
26                                        <!** endif>
27                                        <!** endif>
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

LightInTheBox - Buy quality products at wholesale price!