Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Dostosowanie panelu, Panel Logowania
arik
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 13.03.2008

Ostrzeżenie: (0%)
-----


Witam ! Zainstalowałem forum Simply Forum Machine i na stronie chciałem umieścić panel logowania z tegoż forum. Wszystki niby w porządku, ale chodź umieściłem go w divach z własnym style to on na nie nie reaguje i jest poprostu brzydki. Jedyne czego zdołałem się dowiedzieć to, że problem tkwi w SSI i tam musze znaleść moment logowania i znalazłem:

Kod
<pre style="margin-top: 0pt; display: inline;">// Shows a login box.
  function ssi_login($redirect_to = '', $output_method = 'echo')
  {
      global $scripturl, $txt, $user_info, $context;
  
      if ($redirect_to != '')
          $_SESSION['login_url'] = $redirect_to;
  
      if ($output_method != 'echo' || !$user_info['is_guest'])
          return $user_info['is_guest'];
  
      echo '
          <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '">
              <table border="0" cellspacing="1" cellpadding="0" class="ssi_table">
                  <tr>
                      <td align="right"><label for="user">', $txt[35], ':</label>&nbsp;</td>
                      <td><input type="text" id="user" name="user" size="2" value="', $user_info['username'], '" /></td>
                  </tr><tr>
                      <td align="right"><label for="passwrd">', $txt[36], ':</label>&nbsp;</td>
                      <td><input type="password" name="passwrd" id="passwrd" size="9" /></td>
                  </tr><tr>
                      <td><input type="hidden" name="cookielength" value="-1" /></td>
                      <td><input type="submit" value="', $txt[34], '" /></td>
                  </tr>
              </table>
          </form>';
  }</pre>


Super ! Ale teraz kolejny problem...jak to zedytować, żeby się kupy trzymało i przede wszystkim, działało jak należy ? Liczę na odpowiedź, dziękuje !

Ten post edytował arik 13.03.2008, 17:19:41
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
PawelC
post
Post #2





Grupa: Zarejestrowani
Postów: 1 173
Pomógł: 121
Dołączył: 24.09.2007
Skąd: Toruń

Ostrzeżenie: (0%)
-----


  1. <pre style="margin-top: 0pt; display: inline;">// Shows a login box.

Jeżeli chcesz mieć w słupku to daj display:block
  1. <table border="0" cellspacing="1" cellpadding="0" class="ssi_table">

tutaj możesz dorzucać różne parametry np szerokość width="rozmiar", wysokość height="rozmiar", masz duże pole manewru oczywiście poczytaj sobie o tabelach w html lub stosuje style css do zmiany wyglądu. Za wygląd tego panelu logowania jest klasa ssi_table w pliku css

Ten post edytował ExPlOiT 13.03.2008, 17:25:39
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 25.08.2025 - 07:19