Jump to content


Naruto's Content

There have been 57 items by Naruto (Search limited from 30/03/2023)



Ordernar por                Order  

#652190 Sistema De Lyrics

Posted by Naruto on 18/10/2005, 20:23 in Avaliação de Sistemas

Ae pessoal, aqui está meu primeiro script completo. É um sistema de letras de músicas de um determinado tipo. O script foi feito totalmente por mim, o que vocês acham? Deêm suas opniões ai plz :lol:

http://letras.animesgeneration.com/



#655914 Gerar Miniaturas

Posted by Naruto on 29/10/2005, 21:41 in Artigos, Dicas e Tutoriais de PHP

existe algum tutorial que ensine a instalar essa biblioteca no meu host? não no meu pc mas sim no host q eu hospedo meu site



#655918 Iniciando Com Gd

Posted by Naruto on 29/10/2005, 21:49 in Artigos, Dicas e Tutoriais de PHP

como eu instalo essa biblioteca num host q eu hospedo meu site?



#655927 Como Saber Se Meu Host Tem Suporte à Biblioteca Gd

Posted by Naruto on 29/10/2005, 22:10 in PHP

Pessoal tenhu um site hospedado no host siweb.com.br e queria colocar uns scripts para fazer miniatura no meu site. Mas pra isso preciso dessa Biblioteca GD né? Então queria saber se tem algum jeito de testar pra ver se o host tem suporte ou não. E se não tiiver como instalar?



#656251 Sistema De Lyrics

Posted by Naruto on 31/10/2005, 08:07 in Avaliação de Sistemas

Tem sim vo tira umas screens pra mostra pro pessoal



#656876 Problemas Com Html Area + Php

Posted by Naruto on 01/11/2005, 16:21 in Javascript / DOM / AJAX / ECMAScript

Ae pessoal to com um probleminha aqui com o HTML Area, já consegui configurá--lo pra aparecer na text area, porém na hora de imprimir o conteúdo da mesma ele aparece sem nenhuma formatação. Vou postar 2 screens aqui pra vocÊs entenderem melhor:

Posted Image

Como ele retorna:
Posted Image

Aqui vai o código da index.php teste que eu fiz pra vocês darem uma olhada:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<!-- Configure the path to the editor.  We make it relative now, so that the
    example ZIP file will work anywhere, but please NOTE THAT it's better to
    have it an absolute path, such as '/htmlarea/'. -->
<script type="text/javascript">
  _editor_url = "htmlarea/";
  _editor_lang = "en";
</script>

<!-- load the main HTMLArea file, this will take care of loading the CSS and
    other required core scripts. -->
<script type="text/javascript" src="htmlarea/htmlarea.js"></script>

<!-- load the plugins -->
<script type="text/javascript">
      // WARNING: using this interface to load plugin
      // will _NOT_ work if plugins do not have the language
      // loaded by HTMLArea.

      // In other words, this function generates SCRIPT tags
      // that load the plugin and the language file, based on the
      // global variable HTMLArea.I18N.lang (defined in the lang file,
      // in our case "lang/en.js" loaded above).

      // If this lang file is not found the plugin will fail to
      // load correctly and nothing will work.

      HTMLArea.loadPlugin("TableOperations");
      HTMLArea.loadPlugin("SpellChecker");
      HTMLArea.loadPlugin("FullPage");
      HTMLArea.loadPlugin("CSS");
      HTMLArea.loadPlugin("ContextMenu");
   
   var editor = null;
function initEditor() {

  // create an editor for the "ta" textbox
  editor = new HTMLArea("teste");

  // register the FullPage plugin
  editor.registerPlugin(FullPage);

  // register the SpellChecker plugin
  editor.registerPlugin(TableOperations);

  // register the SpellChecker plugin
  editor.registerPlugin(SpellChecker);

  // register the CSS plugin
  editor.registerPlugin(CSS, {
    combos : [
      { label: "Syntax:",
                   // menu text       // CSS class
        options: { "None"           : "",
                   "Code" : "code",
                   "String" : "string",
                   "Comment" : "comment",
                   "Variable name" : "variable-name",
                   "Type" : "type",
                   "Reference" : "reference",
                   "Preprocessor" : "preprocessor",
                   "Keyword" : "keyword",
                   "Function name" : "function-name",
                   "Html tag" : "html-tag",
                   "Html italic" : "html-helper-italic",
                   "Warning" : "warning",
                   "Html bold" : "html-helper-bold"
                 },
        context: "pre"
      },
      { label: "Info:",
        options: { "None"           : "",
                   "Quote"          : "quote",
                   "Highlight"      : "highlight",
                   "Deprecated"     : "deprecated"
                 }
      }
    ]
  });

  // add a contextual menu
  editor.registerPlugin("ContextMenu");

  // load the stylesheet used by our CSS plugin configuration
  editor.config.pageStyle = "@import url(custom.css);";

  setTimeout(function() {
    editor.generate();
  }, 500);
  return false;
}

function insertHTML() {
  var html = prompt("Enter some HTML code here");
  if (html) {
    editor.insertHTML(html);
  }
}
function highlight() {
  editor.surroundHTML('<span style="background-color: yellow">', '</span>');
}
</script>
</head>

<body onLoad="initEditor()">
<form action="index.php?a=postar" id="edit" name="edit" method="post">
  <p>
    <textarea name="teste" cols="50" rows="10" id="teste"></textarea>
</p>
  <p>
    <label>
    <input type="submit" name="Submit" value="Enviar" />
    </label>
</p>
</form>

<? if ($a == "postar"){

echo $_POST["teste"];

}
?>
</body>
</html>



#656896 Problemas Com Html Area + Php

Posted by Naruto on 01/11/2005, 17:14 in Javascript / DOM / AJAX / ECMAScript

Talvez pq o JavaScript esteja funcionando e o PHP retornando o valor errado não? Sem contar que tem uns 10 tópicos relacionados à HTML Área na seção PHP que não foram movidos pra cá.

http://forum.wmonlin...hlite=html area ;)



#656947 Problemas Com Html Area + Php

Posted by Naruto on 01/11/2005, 20:43 in PHP

Ae pessoal to com um probleminha aqui com o HTML Area, já consegui configurá--lo pra aparecer na text area, porém na hora de imprimir o conteúdo da mesma ele aparece sem nenhuma formatação. Vou postar 2 screens aqui pra vocÊs entenderem melhor:

Posted Image

Como ele retorna:
Posted Image

Aqui vai o código da index.php teste que eu fiz pra vocês darem uma olhada:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<!-- Configure the path to the editor.  We make it relative now, so that the
    example ZIP file will work anywhere, but please NOTE THAT it's better to
    have it an absolute path, such as '/htmlarea/'. -->
<script type="text/javascript">
  _editor_url = "htmlarea/";
  _editor_lang = "en";
</script>

<!-- load the main HTMLArea file, this will take care of loading the CSS and
    other required core scripts. -->
<script type="text/javascript" src="htmlarea/htmlarea.js"></script>

<!-- load the plugins -->
<script type="text/javascript">
      // WARNING: using this interface to load plugin
      // will _NOT_ work if plugins do not have the language
      // loaded by HTMLArea.

      // In other words, this function generates SCRIPT tags
      // that load the plugin and the language file, based on the
      // global variable HTMLArea.I18N.lang (defined in the lang file,
      // in our case "lang/en.js" loaded above).

      // If this lang file is not found the plugin will fail to
      // load correctly and nothing will work.

      HTMLArea.loadPlugin("TableOperations");
      HTMLArea.loadPlugin("SpellChecker");
      HTMLArea.loadPlugin("FullPage");
      HTMLArea.loadPlugin("CSS");
      HTMLArea.loadPlugin("ContextMenu");
   
   var editor = null;
function initEditor() {

  // create an editor for the "ta" textbox
  editor = new HTMLArea("teste");

  // register the FullPage plugin
  editor.registerPlugin(FullPage);

  // register the SpellChecker plugin
  editor.registerPlugin(TableOperations);

  // register the SpellChecker plugin
  editor.registerPlugin(SpellChecker);

  // register the CSS plugin
  editor.registerPlugin(CSS, {
    combos : [
      { label: "Syntax:",
                   // menu text       // CSS class
        options: { "None"           : "",
                   "Code" : "code",
                   "String" : "string",
                   "Comment" : "comment",
                   "Variable name" : "variable-name",
                   "Type" : "type",
                   "Reference" : "reference",
                   "Preprocessor" : "preprocessor",
                   "Keyword" : "keyword",
                   "Function name" : "function-name",
                   "Html tag" : "html-tag",
                   "Html italic" : "html-helper-italic",
                   "Warning" : "warning",
                   "Html bold" : "html-helper-bold"
                 },
        context: "pre"
      },
      { label: "Info:",
        options: { "None"           : "",
                   "Quote"          : "quote",
                   "Highlight"      : "highlight",
                   "Deprecated"     : "deprecated"
                 }
      }
    ]
  });

  // add a contextual menu
  editor.registerPlugin("ContextMenu");

  // load the stylesheet used by our CSS plugin configuration
  editor.config.pageStyle = "@import url(custom.css);";

  setTimeout(function() {
    editor.generate();
  }, 500);
  return false;
}

function insertHTML() {
  var html = prompt("Enter some HTML code here");
  if (html) {
    editor.insertHTML(html);
  }
}
function highlight() {
  editor.surroundHTML('<span style="background-color: yellow">', '</span>');
}
</script>
</head>

<body onLoad="initEditor()">
<form action="index.php?a=postar" id="edit" name="edit" method="post">
  <p>
    <textarea name="teste" cols="50" rows="10" id="teste"></textarea>
</p>
  <p>
    <label>
    <input type="submit" name="Submit" value="Enviar" />
    </label>
</p>
</form>

<? if ($a == "postar"){

echo $_POST["teste"];

}
?>
</body>
</html>

PS: ao moderador que moveu meu tópico:
Existem uns 10 tópicos relacionados à HTML Área na seção PHP que não foram movidos. Então acho que também tenho direito de tirar uma duvida de um script que eu to tentando interagr com o PHP aqui também

http://forum.wmonlin...hlite=html area
pra você ver como não estou mentindo!



#659027 Problemas Com Lista No Ie =/

Posted by Naruto on 08/11/2005, 11:41 in CSS & Semântica (Tableless)

Baum pessoal... pra ser direto e reto vou colocar umas imagens aqui pra vocês verem o que aocontece quando uso um código de lista no Firefox e no IE

NO FIREFOX: tudo funcionando perfeitamente conforme o código foi interpretado
Posted Image

NO IE (-_-): podem ver que existe um espaço na parte de cima, antes da linha, de cada link sem contar que nos lados e embaixo a cor escura ultrapasse as bordas ficando por cima delas.
Posted Image

O código CSS
.lista {
	margin: 8px;
	background: #FFF;
	border-top: 1px solid #45230A;
}

.lista li {
	border-left: 3px solid #C7AE7E;
	border-right: 3px solid #C7AE7E;
	border-bottom: 1px solid #000;
}

.lista a {
	display: block;
	color: #000;
	padding: 5px;
}

.lista a:hover {
	background: #45230A;
	color: #FFF;
}

/* Correção para IE. e IE Mac */
* html .lista {
	width: 98%;
	margin: 10px 3px 10px 3px;
}

O código HTML
<ul class="lista">
<li><a href="$link">$titulo</li>
<li><a href="$link">$titulo</li>
<li><a href="$link">$titulo</li>
<li><a href="$link">$titulo</li>
</ul>

Ela tava até pior que isso mas eu consegui da uma corrigida usando akele ultimo código ali no CSS, mesmo assim num fico 100% fico desse jeito que eu descrevi =/ alguem ai sabe algum jeito de arruma isso ai ou corrigir isso direito?



#659613 Problemas Com Lista No Ie =/

Posted by Naruto on 09/11/2005, 21:37 in CSS & Semântica (Tableless)

BOAAAAAAAAAA!!! (y)

xa eu enfia minha cabeça de baixo da terra depois dessa x_X (n)



#666873 Como Rodas Asp E Php Ao Mesmo Tempo No Pc?!

Posted by Naruto on 01/12/2005, 17:53 in IIS & PWS

É pessoal, cabei de instala o IIS mas quando entro em http://loacalhost aparece apenas a págiona principal do apache, pois eu ja usava ele pra rodar PHP no PC... tem como fazer rodar os 2 juntos?



#666881 Como Rodas Asp E Php Ao Mesmo Tempo No Pc?!

Posted by Naruto on 01/12/2005, 18:10 in IIS & PWS

ok.. como é que eu altero a do IIS? *nb* :unsure:



#673696 Tutorial Oop

Posted by Naruto on 15/12/2005, 19:36 in Artigos, Dicas e Tutoriais de PHP

tipo o tutorial deve estar ótimo.. mas está ilegivel =/



#681364 Como Fazer Um Div Voltar Pra Baixo De Todos ?

Posted by Naruto on 30/12/2005, 18:22 in CSS & Semântica (Tableless)

Seguinte pessoal eu to kerendo fazer a seguinte coisa:

DIV1 DIV2
---DIV3---

quero que o DIV1 fique do lado do DIV2 mas e o DIV3 embaixo dos 2. Pra fazer um ficar do lado do outro beleza, usei float:left no DIV1 e DIV2

porém quando coloko o DIV3 ele fica do lado do DIV2... como eu resolvo isso?!
:(



#690885 Tem Como Muda A Borda De Um <select>?

Posted by Naruto on 18/01/2006, 19:47 in CSS & Semântica (Tableless)

Tem? o.o

pq tipo eu mudo aki no CSS e continua akela mesma cor.... xDD



#692907 Como Fazer Cantos Arredondados

Posted by Naruto on 22/01/2006, 21:42 in CSS & Semântica (Tableless)

Pessoal me ajudem.. preciso fazer cantos arredondados, mas que tenham a possibilidade de mudarem de cor.. existe isso no CSS? ><" eu vi uma vez no site da deviantart.com onde os botões de lah eram feitos com cantos arredondados e sem imagem ><"



#697699 Divs Fora Do Lugar No Primeiro Carregamento!

Posted by Naruto on 01/02/2006, 00:25 in CSS & Semântica (Tableless)

Ae pessoal alguem poderia me ajudar com esse probleminha:

http://www.kdanimes.com/v8dev

To montando esse site ai mas por incrivel que pareça tem algumas partes que carregam no lugar errado... isso no primeiro carregamento do site.. depois se da um refresh o div vai pro lugar certo.

Um exemplo é ali no rodapé na parte direita do site (onde ta escrito "Melhor visualizado em...") q quando se abre a página no FIREFOX PELA PRIMEIRA VEZ ele fica meio que pra eskerda quando era pra estar totalmente na direita... porém quando se DA UM REFRESH ele vai pra direita.

Alguem sabe como resolver esse bug?!



#697858 Divs Fora Do Lugar No Primeiro Carregamento!

Posted by Naruto on 01/02/2006, 10:33 in CSS & Semântica (Tableless)

E no IE o texto da 3 imagem na sessão Grupos foi para a linha debaixo.


isso ai eu tenho que arruma hehehehe ^^'

O que houve é que no Opera ele não abriu as imagens da div comunidades, deixando só o texto do <a href>.


ja esse eu num sabia.. naum tenho opera pra testa ><'


e quanto ao meu problema mesmo se alguem puder testa tb eu ficaria agradecido hehehehe.. qualquer coisa eu tiro print screen



#698870 Divs Fora Do Lugar No Primeiro Carregamento!

Posted by Naruto on 02/02/2006, 20:07 in CSS & Semântica (Tableless)

ja descobri. era versão do FF desatualizada =/

1.0.5

=p



#707476 Pra Quem Manja De Fckeditor

Posted by Naruto on 18/02/2006, 20:47 in Javascript / DOM / AJAX / ECMAScript

Alguem ai sabe como editar a barra de ferramentas do FCKeditor? No meu só veio 2 padrões "Default" que vem com muitas ferramentas e "Basic" onde não ficam quase nenhuma ferramenta, então eu queria criar um padrão meu.. alguem sabe que arquivo tem q auterar?

obs.: ja alterei o arquivo fckconfig.js e mesmo assim num deu em nada ó.ò .. e to usando a versão pra PHP



#707735 Pra Quem Manja De Fckeditor

Posted by Naruto on 19/02/2006, 14:38 in Javascript / DOM / AJAX / ECMAScript

então kra.. foi isso ai que eu fiz, pra mim tb foi o mais obvio.. mas não mudava, num sei oq acontece mas naum é por esse arquivo que ele ta lendo as configurações.. tanto é que eu ja deletei o arquivo inteiro e o script continuava funcionando o.O'



#707814 Gerar Miniaturas

Posted by Naruto on 19/02/2006, 20:12 in Artigos, Dicas e Tutoriais de PHP

outra duvida: eu posso usar esse script apenas em arquivos de imagens locais ou posso gerar uma miniatura de uma url de imagem de outro host?



#715698 Ajuda Com If!

Posted by Naruto on 07/03/2006, 22:55 in PHP

Pessoal to com uma duvida aqui... queria que um determinado script html aparecese APENAS se o select obtivesse algum resultado, caso contrario não aparece nada.

To fazendo da seguinte maneira mas não ta dando muito certo, vejam:

$rs = mysql_query("SELECT * FROM `usuarios` WHERE `id`= '1'",$db);

if($rs) {

resultados aqui

}

só que mesmo se não obtem nenhum resultado, o código continua à aparecer.. alguem poderia me ajudar nissu?!



#717605 Problema Na Formatação De Data

Posted by Naruto on 12/03/2006, 17:01 in PHP

Bom... Eu gosto de trabalhar com timestamps pois acho que fica mais fácil para executar cálculos...

Se quero somar mais um dia: + 86400
Se quero subtrair um dia: - 86400
Se quero mais dois: + 86400 * 2
Se quero menos dois: - 86400 * 2

Antes que alguém jogue um tijolo na minha cabeça... Não estou falando que não dá pra se fazer cálculos com aaaa-mm-dd, existe funções simples para isso: http://www.mysqlfrea...atements/53.php

Para formatar a data, se for timestamps, eu uso assim:

date ("d/m/Y", $timestamp);


Se fosse pelo SQL, seria com DATE_FORMAT: http://www.mysqlfrea...atements/59.php

Analisando, as maneiras são equivalentes. A única ressalva seria caso você use um SGBD que não tenha as funções de adicionar ou subtrair datas, se é que existe algum...

e se vc quisesse ordernar os resultados pela data mais recente?



#717973 Como Fazer Um Script Igual à Resposta Rápida

Posted by Naruto on 13/03/2006, 14:15 in HTML, CSS e Metodologias

queria um script que funcione q nem o Resposta Rápida do fórum.. alguém poderia me dizer como fazer.. prvavelmente deve ter um tutorial aki no fórum, mas num sei nem oq procurar ><




IPB Skin By Virteq