Author Topic: add user_loginform on a other site  (Read 3365 times)

0 Members and 1 Guest are viewing this topic.

Offline satine88

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
add user_loginform on a other site
« on: November 04, 2008, 06:31:33 PM »
Hello,
I want to insert user_loginform.htmln and search engine on a
other site, how?

Know what you insert code?

Thank you

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: add user_loginform on a other site
« Reply #1 on: November 04, 2008, 06:54:06 PM »
Hi,

search in the soursecode from your open page the code from the form and paste into the other page..


Kurt

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: add user_loginform on a other site
« Reply #2 on: November 04, 2008, 11:02:27 PM »
This is how the code from default user_loginform.html template looks like after it was parsed:
Code: [Select]
<table width="100%" border="0" cellpadding="4" cellspacing="0">
  <tr>
    <td valign="top" align="left">
      <form action="login.php" method="post">
        User name<br />
        <input type="text" size="10" name="user_name" class="logininput" />
        <br />
        Password<br />
        <input type="password" size="10" name="user_password" class="logininput" />
        <br />
        <table border="0" cellspacing="0" cellpadding="0">
          <tr valign="top">
            <td><input type="checkbox" name="auto_login" value="1" /></td>
            <td><span class="smalltext">Remember me</span></td>
          </tr>
        </table>
        <br />
<input type="submit" value="Login" class="button" />
      </form>
  </tr>
</table>
You can place this code outside your 4images, but make sure the form has correct path to login.php.

P.S. by default 4images might not redirect you to the right page after the login.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline satine88

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
Re: add user_loginform on a other site
« Reply #3 on: November 05, 2008, 02:19:22 PM »
Thanks :)