[TUTORIAL] Permitir palavras chaves
ShiftActif fórum :: Central ShiftActif :: :: Tutoriais
Página 1 de 1 • Compartilhe
[TUTORIAL] Permitir palavras chaves
Tópicos & Mensagens |
As famosas Labels estão disponíveis hoje em dia somente em blogs pela sua grande e boa utilidade na hora de usar o BUSCAR do site, agora, aplicar o efeito assim em seu fórum seria possível? Sim, será possível.
--> Tutoriais <--
Permitir palavras chaves
Permitir palavras chaves
1º - Adição do efeito em Javascript:
Em Painel de controle > Módulos > Html e JavaScript > Gestão dos códigos Javascript > Criar um novo JavaScript > Investimento > Em todas as páginas >[/i]
Agora, adicione o seguinte código JS:
- Código:
jQuery(document).ready(function() {
if (jQuery('form[action="/post"] #postingbox').length) {
if (jQuery('form[action="/post"] textarea#text_editor_textarea').val().indexOf('Tags / Palabras clave:') == -1) {
jQuery('#textarea_content').after('<br><img src="http://i13.servimg.com/u/f13/12/73/11/63/tags10.png"> Tags / Criar palavra chave: <input type="text" name="texttags" style="border-radius:0px;width:50%;margin-left:5px">');
jQuery('form[action="/post"] input[type="submit"][name="post"]').click(function() {
if (jQuery('input[name="texttags"]').val() != '') {
jQuery('form[action="/post"] textarea#text_editor_textarea').val(jQuery('form[action="/post"] textarea#text_editor_textarea').val() + '\n\n[img]http://i13.servimg.com/u/f13/12/73/11/63/tags10.png[/img] [b]Tags / Criar palavra chave:[/b] ' + jQuery('input[name="texttags"]').val())
}
})
}
}
});
- Resultado
© ShiftActif
Se tiver alguma dúvida relacionada com este tópico crie um tópico com o seguinte título: [Dúvida] Permitir palavras chaves |
Tópicos semelhantes
» [TUTORIAL]Efeito palavras chaves nos tópicos.
» [TUTORIAL] Confirmação de saída
» [TUTORIAL] Legenda personalizada
» [TUTORIAL] Menu em dropdown
» [TUTORIAL]PERGUNTA NO REGISTRO
» [TUTORIAL] Confirmação de saída
» [TUTORIAL] Legenda personalizada
» [TUTORIAL] Menu em dropdown
» [TUTORIAL]PERGUNTA NO REGISTRO
ShiftActif fórum :: Central ShiftActif :: :: Tutoriais
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|