How Do I Connect the Login Box on My Site to My Forum? Same Site Different Directory

Discussion in 'Programming' started by NewshotDCB, Jul 6, 2007.

  1. #1
    http://www.newshotstudio.com

    There are some minor errors on my site, but I need to program my login box to work with my text-file based forum. Its called YaBB. There is no database used.

    Also, how do I get my search bar to search only within my site on google?
     
    NewshotDCB, Jul 6, 2007 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    I would analyze the text file structure that it spits out that holds the user information. If it's a text file that is named "username".txt then you could hook into that... otherwise you might have to do some massive text-file parsing... and possibly some reverse engineering ;)
     
    ccoonen, Jul 6, 2007 IP
  3. SUSH

    SUSH Peon

    Messages:
    28
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What do you mean by connect?
    Do you want to go to forums when "login" button is clicked?(so they can login to forums from any page of your site)
    OR Do you want people to login on entire site when login button is clicked?

    For the first one just use:
    action="directory/login_page_name"
    in your <form> tag.

    For the second one if you don't know CGI, you need to get someone who can figure out how the login is working, and will code it up accordingly.
    regards :)
     
    SUSH, Jul 6, 2007 IP
  4. NewshotDCB

    NewshotDCB Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I actually want it to log the person into the forum part of the site from the front page. Taking the user to the login page isn't good enough.

    Any help on the search bar?
     
    NewshotDCB, Jul 6, 2007 IP
  5. SUSH

    SUSH Peon

    Messages:
    28
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think the easiest would be to check the "referrer" page URL, and once logged in just redirect back to the page which had the form. That way you don't have to get into the complex login programming stuff, and people will also be logged in.

    About search bar, you can generate an "adsense" google search engine to search your site.
    regards :)
     
    SUSH, Jul 7, 2007 IP
  6. NewshotDCB

    NewshotDCB Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for the help, but I am slightly confused.

    I really don't know which page is the "referrer" URL.

    Can you look at my forum and try to find out?
     
    NewshotDCB, Jul 7, 2007 IP
  7. NewshotDCB

    NewshotDCB Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I went to their support forum and found out which link I needed to use.

    I then added a cookie number that let it work.

    Problem solved!
     
    NewshotDCB, Jul 9, 2007 IP