Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Feb 2007
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I've come so far, but ready to give up..... HELP!

    Hey guys, I just joined the forum a minute ago. Because i'm ready to reach out for some help.
    So here's the problem My Site http://www.ncgolfers.com

    I Built this site all by myself with no one's help or advice, This is my FIRST WEBSITE i've ever tried to build.

    As you can see It's XHTML compliant and CSS, and No Tables .. so basically i've done a good job with the design.

    My problem is, i'm stuck. I Can't figure out the right process to make it a Community. I've got a forum, but i need more than that. I need to have places where users can post comments throughout the site on certain pages.
    I've got a handicap calculator on the site, and i would like for it to record the users info when entered and store it into a profile for them (statistics). I would also like users able to comment only if logged in.

    So that's a start. There's much more, But i'm Overwhelmed and tired ready to give up.

    I ask for your suggestions on how to attack this, etc...

    Sincerely,

    Wayne

  • #2
    Super Moderator JohnDubya's Avatar
    Join Date
    Nov 2006
    Location
    Missouri
    Posts
    634
    Thanks
    12
    Thanked 18 Times in 18 Posts
    I would definitely suggest looking into learning PHP / MySQL together. There are some good links on the sticky article entitled "Resources to learn PHP" in this forum. You can design a custom-built, community-like web site by learning the basics of PHP and MySQL and using them together. After about two weeks of going through tutorials, I was able to build a small news article site where I could add, edit, and display news articles (that's about 30 hours-ish of learning time). I just recently built my first user-based site where the user can login, it stores his name, email address, etc. in the database, and he can do stuff on the site only by being a registered user. It's pretty cool...takes lots of time, but it's worth it. Hope that helps some...from someone who just recently went through the process of learning!

  • #3
    New Coder
    Join Date
    Feb 2007
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by JohnDubya View Post
    I would definitely suggest looking into learning PHP / MySQL together. There are some good links on the sticky article entitled "Resources to learn PHP" in this forum. You can design a custom-built, community-like web site by learning the basics of PHP and MySQL and using them together. After about two weeks of going through tutorials, I was able to build a small news article site where I could add, edit, and display news articles (that's about 30 hours-ish of learning time). I just recently built my first user-based site where the user can login, it stores his name, email address, etc. in the database, and he can do stuff on the site only by being a registered user. It's pretty cool...takes lots of time, but it's worth it. Hope that helps some...from someone who just recently went through the process of learning!
    See, that's the thing, I've read so much that i'm exhausted. I really just need some human discussion to help, ya know what i mean . I will have a look at that sticky though. BTW I've got some basic php stuff already into the site. like (Includes).

    wayne

  • #4
    Super Moderator JohnDubya's Avatar
    Join Date
    Nov 2006
    Location
    Missouri
    Posts
    634
    Thanks
    12
    Thanked 18 Times in 18 Posts
    I'm sure all of us here can help walk you through some basic stuff to get started.

    Do you know how to interact with a database via MySQL yet? Queries, inserts, etc.? That is a must to build anything that includes interactive information. If you know how to do basic stuff there, I'll try to walk you through the process I went through to build a login/join script.

  • #5
    New Coder
    Join Date
    Feb 2007
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah I understand the database MySQL , I Can make tables etc...

    wayne

  • #6
    Regular Coder
    Join Date
    Dec 2005
    Posts
    346
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I have some old site that I don't run anymore & have copied the Membership System for you to use. I have just ziped up the files for you to down & use since I did get help to make all this work here on this forum when I problems building it.

    Download the zip file from this thread since I uploaded it with this post. & upload these files to your web server keeping the folder structure.

    This zip files includes the following scripts:


    • Record every login with IP & Date
    • Registration pages (includes a random password for customer & makes them check their email for an activation link before they can login.)
    • Activation pages (used to have the customer activate his/her account before they can login)
    • Edit customer's acct (customer side...I have the admin's side scripts if you need to be able to edit their accts)
    • 1 regular login box to display on login page
    • 1 small login box to use maybe left or columns or a site header
    • Reset password script (forgotten password reset script that makes the user provide certain info before the system sends a reset password email.)
    • MySQL Data tables. This is in a sql file that you can just upload via PhpMyAdmin & the auto_increment numbers are set at 100, but you can change this.


    System Features
    • You can log the referring id when the customer registers.(If you want to use this referring system then just let me know. It is used by a new user coming to your site with a url of like: www.domain.com/index.php?refId=55 & every user just replaces that 55 with their acct number, but the user can view a simple referral link to copy & past that automatically plugs their own acct number in. I chose to use acct numbers & not email or usernames since some people use symbols & I think the acct number is more precise since they can always change email address, but they wont ever change acct numbers. You will have to add some code to the index page to set a cookie on their machine so that they don't have to register right away, but you can still keep track of the referring. I also have script that would allow the user to see how many people he has referred to your site whether they register or not & the user can see how many people registered with their line. I built this for promotional referring purposes.)
    • When the user updates any contact info the system will automatically keep a record of the old contact info. This only the admin has access to view & the customer doesn't even know you are tracking the changes.
    • The user can't modify their name, username, account/member number, company name if they provide one & their e-mail address(to allow them to edit any of this would just be a simple 15 minute modification.)
    • The script has the prebuilt email scripts for the registration, activation, forgotten password


    This is the best membership system, but it is fully functional & easily modified. You can probably look over the files & get an understanding of how it functions, but I will answer any questions you have.

    You will have to edit some of this to match your site. Everything except for the forms are not in tables...I used DIV tags. You will have to apply your own css styles.
    Attached Files Attached Files

  • #7
    New Coder
    Join Date
    Feb 2007
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Awsome, I'll look over it and see what i can do with it. My next ? would be how would i make it so non members can see comments, but only post if their logged in?

    Is their some type of PHP snip i embed to do that?

    anyways, thank you very much again, and i'll start working on it tonight.

    wayne

  • #8
    Regular Coder
    Join Date
    Dec 2005
    Posts
    346
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by waynem80 View Post
    Awsome, I'll look over it and see what i can do with it. My next ? would be how would i make it so non members can see comments, but only post if their logged in?

    Is their some type of PHP snip i embed to do that?

    anyways, thank you very much again, and i'll start working on it tonight.

    wayne
    Just use If/Then statements for this. If the user is logged in then allow him or not. If you use those scripts I provided just use this below since as I stated earlier to keep my file structure there & if you did the login box will appear & let the user login w/out any problems.


    PHP Code:
            session_start();
            if(isset(
    $_SESSION['username']))
            {
                    
    ALLOW HIM TO POST
            
    }
            else
            {
                    echo
    '<div id="content">';
                    echo
    '<div class="feature" align="center">';
                    echo
    '<br>';
                    echo
    '<div class="error">' $account_login['loged_to_make_order'] . '</div>';
                    echo
    '<br>';
                    echo
    '<br>';
                    echo
    '<div class="error">' $account_login['login_below'] . '</div>';
                    echo
    '<br>';
                    include(
    "login_box.php");
                    echo
    '</div>';
                    echo
    '</div>';
            } 
    Take this code here & place it anywheres you want to make sure the user is logged in before they can view/do whatever you are wanting to restrict access to. You change the displayed text for this snippet & the rest of the scrips on the root/vars.php page.


    If the process to post is a input text area on the bottom of the page then place that text area & the post button in the ALLOW HIM TO POST section & in the else statement make it blank because if you don't then you will have a login box displayed where the input text area should be. An example of this would be like this forum...the quick reply text input area & post button is displayed when you aren loged in & nothing is there if you aren't logged in. Click the post reply button while you are logged out & it displays a login box on this newreply.php file without redirecting you to the login.php file.

  • #9
    New Coder
    Join Date
    Feb 2007
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    your really helping , thank you very very much. I will be using your member system, i like what i c ... I guess you probably know how frustrating things can get at times. especially when all you do is read tutorials and don't interact with anyone. I also went back through some of the zend php tutorials to bush up a little why ago.

    wayne


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •