Current time: 05-24-2012, 07:49 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I hope this is in the right place...
06-17-2010, 07:51 AM
Post: #1
I hope this is in the right place...
I hope I posted this in the right place....

Well I have a few questions I think.....

1. Is there a code or something I can put on my hosting site that people can "log in" to THT with out having to go to right to where I have THT?

2. Is there a way to have it so someone who wanted to get web hosting have to be a member to the support forum first. (Not talking P2H but paid accounts)

Thats all I can think of at the moment.

I might try and pick your brains later.

Thanks
Topher
Find all posts by this user
Quote this message in a reply
06-17-2010, 09:12 AM
Post: #2
RE: I hope this is in the right place...
1) It's definitely possible. There isn't any publicly release code that I know of but if you check out how we handle the login script it should be that hard to create one on your site and just post the data to the right files like we do now. Wink

2) Without using P2H? Nope, not natively at least.

- KuJoe
▒ LvL8
▒ The Free Web Hosting Guide
▒ FreeWebHostingTalk


PM me for theme conversions @ $15!
Visit this user's website Find all posts by this user
Quote this message in a reply
06-17-2010, 09:32 AM
Post: #3
RE: I hope this is in the right place...
(06-17-2010 09:12 AM)KuJoe Wrote:  1) It's definitely possible. There isn't any publicly release code that I know of but if you check out how we handle the login script it should be that hard to create one on your site and just post the data to the right files like we do now. Wink

2) Without using P2H? Nope, not natively at least.

Ok lets make sure I under stand what your saying.

I should find the login code and then try and put it into my website.

Right?

Topher
Find all posts by this user
Quote this message in a reply
06-17-2010, 09:47 AM
Post: #4
RE: I hope this is in the right place...
(06-17-2010 09:32 AM)Topher Wrote:  I should find the login code and then try and put it into my website.
Thats right, there is no other way at current time Wink

Regards,
Andraž Rihtar
Visit this user's website Find all posts by this user
Quote this message in a reply
06-17-2010, 11:38 AM
Post: #5
RE: I hope this is in the right place...
adding the login to your website is quite easy. Just make an HTML form that submits with the POST method (check w3schools if you need help on that). create a type="text" input field with the name of "user" and a type="password" field with the name "pass" and have it submit to http://yourthturl/client/index.php.

good luck

Nick - TheHostingTool Staff Coordinator

[Image: standard.png]

Visit this user's website Find all posts by this user
Quote this message in a reply
06-17-2010, 04:03 PM (This post was last modified: 06-17-2010 04:04 PM by Kevin.)
Post: #6
RE: I hope this is in the right place...
Try the following (X)HTML:
Code:
<form method="post" action="/path/to/tht/client/page">
<label for="tht_user">Username:</label> <input type="text" name="user" id="tht_user" /><br />
<label for="tht_password">Password:</label> <input type="password" name="pass" id="tht_password" /><br />
<input type="submit" name="clogin" value="Login" />
</form>
It's not formatted or anything so just modify it to fit your purposes.

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
Quote this message in a reply
06-17-2010, 05:40 PM
Post: #7
RE: I hope this is in the right place...
Ok this is the code that is in the script already.

Code:
<div class="module">
                      <div class="clsLogin">
                     <div class="side_Top">
                       <h3>Login Form</h3>
                     <div class="side_center">
                     <div class="side_Bottom">
                          <p>User Name</p>
                          <p>
                              <input type="text" size="25" name="username"/>
                          </p>
                          <p>Password</p>
                          <p>
                             <input type="password"  size="25" name="username"/>
                          </p>
                          <p>
                           <input class="clsVote" name="submit" value="Login" type="button" />
                             <input class="clsCheck" type="checkbox" />
                          <label>Remember Me</label>
                          </p>
                          
                            <p><a href="#"><span>Lost password?</span></a></p>
                            <p><a href="#">No Account yet?</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="#"><span>Register</span></a></p>

What would I have to change to that?

Thanks a ton
Topher
Find all posts by this user
Quote this message in a reply
06-17-2010, 06:09 PM
Post: #8
RE: I hope this is in the right place...
(06-17-2010 05:40 PM)Topher Wrote:  Ok this is the code that is in the script already.

Code:
<div class="module">
                      <div class="clsLogin">
                     <div class="side_Top">
                       <h3>Login Form</h3>
                     <div class="side_center">
                     <div class="side_Bottom">
                          <p>User Name</p>
                          <p>
                              <input type="text" size="25" name="username"/>
                          </p>
                          <p>Password</p>
                          <p>
                             <input type="password"  size="25" name="username"/>
                          </p>
                          <p>
                           <input class="clsVote" name="submit" value="Login" type="button" />
                             <input class="clsCheck" type="checkbox" />
                          <label>Remember Me</label>
                          </p>
                          
                            <p><a href="#"><span>Lost password?</span></a></p>
                            <p><a href="#">No Account yet?</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="#"><span>Register</span></a></p>

What would I have to change to that?

Thanks a ton
Topher
(06-17-2010 04:03 PM)Kevin Wrote:  Try the following (X)HTML:
Code:
<form method="post" action="/path/to/tht/client/page">
<label for="tht_user">Username:</label> <input type="text" name="user" id="tht_user" /><br />
<label for="tht_password">Password:</label> <input type="password" name="pass" id="tht_password" /><br />
<input type="submit" name="clogin" value="Login" />
</form>
It's not formatted or anything so just modify it to fit your purposes.

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)