Login-box readme

Sobre

Nome:
Login-box

Versão:
2.0 (21 Jul 2008)

Descrição:
Insere uma caixa de login oculta em todas as páginas, que você pode abrir pressionando uma combinação de teclas (como Ctrl + E).

Autor:
Marcus Danillo (Contato: mdanillo arroba gmail ponto com)

Instalação

  1. Após extrair o arquivo do download, mova a pasta login-box para o diretório de plug-ins do WordPress (que normalmente está localizado em <diretório_do_wordpress>/wp-content/plugins/).
  2. No painel de administração do WordPress, acesse a área “Plug-ins” (“Extensões”, em português) e ative o plug-in Login-box.
  3. Opcional: Se seu tema não tem a função wp_head, abra o arquivo header.php e coloque esse código entre as tags <head> e </head>: <?php wp_head(); ?>
  4. Opcional: Se seu tema não tem a função wp_footer, abra o arquivo footer.php e cole esse código: <?php wp_footer(); ?>

F.A.Q.

  1. Eu aperto as teclas de atalho, mas o Login-box não aparece...

    Primeiramente, tente fazer o logout do sistema. O Login-box simplesmente não funciona se você já está logado.

  2. JÁ FIZ o logout, mas nada do Login-box aparecer.

    Leia os passos 3 e 4 da seção de instalação.

  3. Eu posso usar um link para abrir/fechar o Login-box?

    Sim. Faça um link parecido com esse: <a href="http://www.meublog.com/wp-login.php" rel="loginbox-toggle">Faça-se a caixa!</a>

  4. Eu quero fazer um tema para o Login-box. Você tem um bom tutorial?

    Não :(
    Mas se você come HTML e CSS no café da manhã, dê uma olhada nos arquivos dos temas padrões do Login-box. É fácil, eu garanto!

  5. Eu tenho outra dúvida que não foi respondida aqui, o que eu faço?

    Talvez a melhor maneira de esclarecer sua dúvida seja ir até meu blog e enviar sua pergunta como comentário em um dos artigos que falam sobre o Login-box. Se preferir, você pode me enviar uma mensagem particular.

Opções

O Login-box 2.0 possui um prático e auto-explicativo painel de opções onde você pode alterar suas configurações, ele está acessível dentro da página "Design", no painel do WordPress.

Opções Avançadas

Se preferir, você pode editar as opções diretamente em um arquivo PHP, o que elimina as consultas ao banco de dados e melhora sensivelmente o desempenho caso seu blog tenha uma grande quantidade de acesso. Abra o arquivo login-box-config-sample.php, edite as seguintes linhas e, ao terminar, salve-o com o nome login-box-config.php.

  1. @define("LB_THEME", "wpclassic");
Aqui, coloque o nome do tema que você quer usar. Você pode baixar mais temas na internet ou criar o seu próprio, com base no tema "wpclassic" que vem incluído por padrão.
  1. @define("LB_KEY", "e");
Aqui, escolha a tecla que você deverá apertar junto com Ctrl ou Alt para abrir a Login-box. Pode ser qualquer caractere alfanumérico, indiferente de ser maiúscula ou minúscula, mas lembre-se que algumas teclas executam funções especiais no seu navegador (e no dos seus leitores) e, se você escolhê-la, ela será desativada pelo Login-box. (Ex: Ctrl + A seleciona toda a página), por isso eu recomendo que você deixe o valor padrão "e".
  1. @define("LB_CTRL", true);
Mesmo assim, se você quiser definir uma tecla "especial" para abrir o Login-box, você pode definir false aqui e desativar o uso do Ctrl pelo Login-box. Assim, se você colocar "a" em LB_KEY, você poderá abrir o Login-box com Alt + A e usar o Ctrl + A para selecionar os textos normalmente.
  1. @define("LB_BACKTOPAGE", true);
Aqui, escolha para onde você será redirecionado quando fizer o login. Se true, você voltará para a página atual; Se false, você será redirecionado para o painel do WordPress.
  1. @define("LB_FADE", true);
Aqui, defina true se você quiser que o Login-box abra com um efeito de esmaecimento; Defina false se não quiser.
  1. @define("LB_AUTO", true);
Aqui, deixe em true e o Login-box será inserido automaticamente em seu blog (ver passos 3 e 4 da seção "instalação"); Se você prefere escolher onde o Login-box aparecerá em seu blog, defina aqui como false e coloque, em seu tema, o código <?php loginbox(); ?> onde quiser que ele apareça.

Desinstalação

  1. Desative o plug-in no WordPress (opcional).
  2. Remova a pasta login-box (opcional).

Changelog

About

Name:
Login-box

Version:
2.0 (21 Jul 2008)

Description:
Inserts in all pages a hidden login box, that you can open pressing a combination of keys (like Ctrl + E)

Author:
Marcus Danillo (Contact: mdanillo at gmail dot com)

Install

  1. Extract the downloaded file and move the login-box folder to the plug-ins directory of WordPress (normally localized at <wordpress_direcorty>/wp-content/plugins/).
  2. In the WordPress admin, access "Plug-ins" area and activate the Login-box plug-in.
  3. Optional: If your WordPress theme doesn't have the wp_head hook, open the header.php file and put this code between <head> and </head>: <?php wp_head(); ?>
  4. Optional: If your WordPress theme doesn't have the wp_footer hook, open the footer.php and put them: <?php wp_footer(); ?>
  1. I press the key comb, but the Login-box does not appear.

    Try logout. Login-box doesn't work if you are already logged.

  2. I'm ALREADY unlogged. Login-box just don't works...

    Read steps 3 and 4 in the Installation section.

  3. Can open/close the Login-box with a link?

    Yes. Just use the link syntax: <a href="http://www.meublog.com/wp-login.php" rel="loginbox-toggle">Make the box!!</a>

  4. I want to make a theme for the Login-box. Do you have a good tutorial?

    No :(
    But if you eat HTML and CSS in breakfast, see the files of the default Login-box themes. It's easy, I assure!

  5. I have another question was not answered here, what can I do?

    Maybe the best way is go to my blog and send your question as a comment from one of the posts about Login-box. Alternatively, you could send me a private message.

Options

Login-box 2.0 has a practical and self-explanatory options panel where you can change your settings, it is accessible within the page "Design", into the panel of WordPress.

Advanced Options

Alternatively, you can edit the options directly into a PHP file, which eliminates the database queries and significantly improves the performance if your blog has a lot of access. Open the login-box-config-sample.php, edit the following lines and at the end, save it with the name login-box-config.php.

  1. @define("LB_THEME", "wpclassic");
In this line, put the name of the theme that you like to use. You can download new themes on web or make your theme based in the default "wpclassic".
  1. @define("LB_KEY", "e");
Choose the key (case insensitive) that will be open/close Login-box with Ctrl or Alt. Note that some keys executes especial functions in your browser (and in browser of your readers!). and them will be cancelled by Login-box. (Ex: Ctrl + A selects all). I recommend that you leave the default value "e".
  1. @define("LB_CTRL", true);
Also, you can define false here and deactivate the Ctrl use of Login-box. So, you can put "a" in LB_KEY, and open Login-box with Alt + A. Ctrl + A will be selects all normally.
  1. @define("LB_BACKTOPAGE", true);
Here, choose on you will be redirected when success login. If true, you will be back to the actual page; if false, you will be redirected to the WordPress Dashboard.
  1. @define("LB_FADE", true);
Here, set true if you want that Login-box opens with a fade-in effect; Set false if not want.
  1. @define("LB_AUTO", true);
Here, leave true and the Login-box will be automatically inserted into your blog (see steps 3 and 4 of the "install" section); If you prefer to choose where the Login-box will appear in your blog, set here as false and put in its theme, the code <?php loginbox(); ?> where you want it to appear.

Uninstall

  1. Deactivate the plug-in in WordPress (optional).
  2. Remove the login-box folder (optional).

Changelog