Help before all my hair is gone!

Discussion in 'Setting-up protection' started by coachjwj, Jul 26, 2007.

  1. coachjwj

    coachjwj New Member

    Joined:
    Jul 23, 2007
    Messages:
    2
    I just purchased amember and I am trying to set it up on my site. However I am not very gifted when it comes to developing and my developer doesn't have any experience in subscriptions.

    My website is www.lscsn.com.

    I need to protect all my sports pages and all my story pages. The sports pages will be free registration and the story pages will be based on paid subscriptions.

    However we are using templates that pull information out of a database in order to fill out the page.

    For example our sports page template is index_sports.php. However the actual link to our baseball page for example is index_sports.php?sport=baseball so forth and so on for all the sports we cover.

    I need to be able to set up a one-time login for our readers to register and login to see our sports pages.

    What I would like to have is a login section on our site that keeps the sports pages protected until they login on the front page and then once they login they are redirected back to our home page, but now they will be able to access our sports pages.

    The same scenario exists for our story pages. Our template is index_stories.php. However an actual story link is index_stories.php?storyid=15.

    Again I want our readers to be able to login on the front page and then be redirected to our front page where they will then be able to read any of the stories that are protected as long as they are on our site during that visit.

    Any help would be GREATLY appreciated!
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    place this at the top of index_stories.php

    if ($story != "" ) {
    $_product_id = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24);
    require_once '/home/yoursite/public_html/amember/plugins/protect/php_include/check.inc.php';
    }

    array variables are the product ids

    David

    _________________
    Discover How to Start-Up and Run a Profitable Membership Site
    ==> http://www.MembershipAcademy.com <==
    Membership Academy: Comparisons, reviews, forums and videos on membership software and payment systems.

Share This Page