|
Posted by Matt on 08/26/07 21:46
On Aug 26, 10:23 pm, Sanders Kaufman <bu...@kaufman.net> wrote:
> What - are we working on the same project? ;)
>
> The way I did this is to have the article displayed in TWO PHP pages,
> loaded into the main page.
>
> The first page displays the teaser - title and description - to everyone.
>
> The second page checks the credentials before displaying the content.
Hmm, this would work, but a) it complicates my code since I already
have pagination going on (and comments, etc etc), and b) I'd rather
non premium users didn't even know about the existence of the special
articles. I think, anyway..
But! You did give me an idea. I could just make a separate file for
handling premium articles, and just send premium users to that page
when they're browsing the article index. Simple!
Navigation:
[Reply to this message]
|