ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Force Log-in to view Content Pages
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Force Log-in to view Content Pages

 Post Reply Post Reply
Author
Message
GTiFreak View Drop Down
Newbie
Newbie


Joined: 30-January-2007
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote GTiFreak Quote  Post ReplyReply Direct Link To This Post Topic: Force Log-in to view Content Pages
    Posted: 01-March-2007 at 1:30pm
I have a bunch of articles that I want to put up on my site as content pages,
but I want to have people log in or register to view the articles. Anyone have
any insight on this?
Back to Top
netprofits View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers


Joined: 05-January-2006
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote netprofits Quote  Post ReplyReply Direct Link To This Post Posted: 01-March-2007 at 2:05pm

There are probably several solutions but here is one...

If you feel comfortable modifying the header.asp, which by default shows all of your active content pages, change it so it just displays the specific pages you want. Easiest would be to create the links manually.

Then create all of your other content pages. Create one content page that has links to all of the other content pages for your login area. Then modify custpref.asp and where it displays the other account links, add a new link to your single content page that links to all of your other restricted content pages.

Please note, this does not keep search engines from potentially indexing those pages but it will keep visitors from finding those content pages from your site.

Another solution would be to use a specific naming convention for your content page title, i.e. put *** as the first three characters of the name, and then in viewcontent.asp do a check on for the page title to see if it is a restricted page. If so, then check if the customer is logged in and if they aren't display an error message. Otherwise display the page content.

NetProfits Internet Consulting

Certified ProductCart Developer

Our Site
Back to Top
plezaic View Drop Down
Newbie
Newbie


Joined: 05-December-2007
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote plezaic Quote  Post ReplyReply Direct Link To This Post Posted: 12-December-2007 at 11:16am

In case someone else is still looking for solution for this.

Modify beginning of viewcontent.asp to look like this:


<% response.Buffer=true %>
<!--#include file="CustLIv.asp"-->
<!--#include file="../includes/settings.asp"-->

Create your content pages through Store admin area. Then you just have to decide where you want to put links to those paes. Login will be required. 

Links to content pages will look like this: http://www.domainname.com/cart/pc/viewContent.asp?idpage=1

You can see them from Preview link under Manage content pages.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.062 seconds.