Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I hope this is in the right place...
#1
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
Reply
#2
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
Reply
#3
(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
Reply
#4
(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
Reply
#5
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]

Reply
#6
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
Reply
#7
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
Reply
#8
(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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)