Jump to content


Naruto's Content

There have been 57 items by Naruto (Search limited from 20/04/2023)



Ordernar por                Order  

#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



#777192 Como Editar/excluir Multplos Conteudo?

Posted by Naruto on 31/08/2006, 15:27 in PHP

procurei por checkbox e não apareceu nada =\
e ainda assim não entendi como funcionaria esse foreach() com um formulario, visto q ele só pode ser usado em arrays? ôo



#776728 Como Editar/excluir Multplos Conteudo?

Posted by Naruto on 30/08/2006, 01:29 in PHP

Queri a saber como faço pra por exemplo editar uns 3 conteudos selecionados ao mesmo usando checkbox. Vo da um exemplo pra fica mais facil de entende:

Cod. | Nome | Checkbox
1 .	| Pedro  | [ x ]
2.	 | Mariga | [ x ]
3.	 | Junior  | [ x ]
4.	 | Joao	| [	]
5.	 | José	| [	]

[ Editar Selecionados ]

dai a pessoa clica no botão editar selecionados e entaum vai pra uma pagina com 3 campos pra edita tudo de uma vez



#777263 Como Editar/excluir Multplos Conteudo?

Posted by Naruto on 31/08/2006, 19:09 in PHP

ueh.. mah eu usei a busca q fica ali embaixo do fórum e num veio nada o.o q estranho..


bom vlw do mesmo jeito kra vo da uma peskisada melhor entaum \o



#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?



#737166 Função Getimagesize() Desabilitada Do Meu Host

Posted by Naruto on 04/05/2006, 18:52 in PHP

Atualmente mudei para o host DreamHost só que estou tento um problema, pois por movito de segurança o host bloqueou algumas funções do php, e uma delas é a getimagesize() que eu preciso para descobrir o tamanho e o tipo das imagens remotas que serão postadas no site que estou criando.

Para vcs compreenderem melhor, o erro que está dando é esse:

Warning: getimagesize(): URL file-access is disabled in the server configuration in /.../v8dev/scripts/funcoes_pEspaco.php on line 489

Warning: getimagesize(http://img.photobuck...n/avatar009.jpg): failed to open stream: no suitable wrapper could be found in /.../v8dev/scripts/funcoes_pEspaco.php on line 489


Então, entrei em contato com o suporte técnico e me disseram que realmente a função foi desabilitada, e que em alternativa poderia usar a função CURL e me passaram essa url: http://wiki.dreamhos.../index.php/CURL

só que eu num to entendendo nada disso, não sei como pegar o tamanho e o tipo de imagem com essa função ae... por isso se alguem puder me ajudar com isso ficaria agradecido. Será que alguem ai tem alguma outra alternativa pra mim?! xD



#737198 Função Getimagesize() Desabilitada Do Meu Host

Posted by Naruto on 04/05/2006, 20:49 in PHP

opa valew pessoal ja consegui uma resposta... agora só to com uma dúvida.. como que eu descubro a estensão de uma imagem? mas sem akele negócio do php ler só a extensão eu queria um comando da Biblioteca GD que realmente faça isso.. tem algum?



#737205 Função Getimagesize() Desabilitada Do Meu Host

Posted by Naruto on 04/05/2006, 21:18 in PHP

vlw kra.. era tudo oq eu precisava *___________* huhuhuu
vlw mesmo \O



#740908 [bbcode] Esquema De Inserir Url Igual Do Invision!

Posted by Naruto on 17/05/2006, 22:48 in Javascript / DOM / AJAX / ECMAScript

Pessoal, to criando um BBcode aqui e queria uma ajuda. Eu tava querendo fazer o botão de inserir um link igual ao que tem no formulário de post do invision.

Eu queria esse esquema de que quando a pessoa clique no botão Link, abra uma janela pra inserir a URL do site e depois uma outra para inserir o NOME DO SITE e por fim adicione o código pronto na textarea. Meu Website

quem puder ajuda ai eu agradeço xD



#741387 [bbcode] Esquema De Inserir Url Igual Do Invision!

Posted by Naruto on 19/05/2006, 09:52 in Javascript / DOM / AJAX / ECMAScript

opa vlw.. e como eu faço prea centralizar a janela no IE.. pq no IE a janela ta lah no canto superior esquerdo =/



#744681 Como Descobrir A Largura De Uma Imagem No Meio De Um Texto?!

Posted by Naruto on 29/05/2006, 19:27 in PHP

Vai.. eu tenho o texto:

$tetxo = "texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto texto <img src=\"http://www.site.com.br/imagem.jpg\" /> o texto texto texto texto texto texto texto texto texto texto texto texto to texto texto texto texto texto texto texto texto texto texto texto texto to texto texto texto texto texto texto texto texto texto texto texto texto";


como eu faria pra descobrir a resolução da imagem que está nesse texto?!



#730668 Limitar Para Que Os Usuários Não Escrevam...

Posted by Naruto on 13/04/2006, 14:04 in PHP

Tem como fazer um limitador onde os usuários não escrevam palavras com letras repetidas?!
queria que se possivel desse pra impor um limite de repetições..

por exemplo.
o usuário escreve "OIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII"

dai aparece "OIII"



#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!



#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



#772366 Alguém Poderia Me Indicar Uma Apostila Completa Sobre Asp?!

Posted by Naruto on 15/08/2006, 03:03 in ASP

entaum.. eu ja fui nesses tópicos.. mas nos sites sobre apostilas eu num enontrei nenhuma q seja completa o suficiente ^^' por isso tava querendoalguma recomendação de alguem q saiba quais são as melhores pra baixa



#772294 Alguém Poderia Me Indicar Uma Apostila Completa Sobre Asp?!

Posted by Naruto on 14/08/2006, 21:45 in ASP

Puxa eu entrei nesses sites ai que tem no tópico de sites recomendados e só tem coisas fraquinhas... eu queria uma apostila bem completa. Alguem pode indicar alguma?! Onde eu possa baixar e tals. De preferência em PDF

quem puder ajudar, obrigado \o



#741811 Comando Para Atrasar Fechamendo De Um Span

Posted by Naruto on 20/05/2006, 18:10 in CSS & Semântica (Tableless)

será q da pra alguem responder uma pegunta simples como esse aki? XD



#741014 Comando Para Atrasar Fechamendo De Um Span

Posted by Naruto on 18/05/2006, 10:53 in CSS & Semântica (Tableless)

To fazendo um menu em rollover que ao vc passar o mouse na imagem, o span aparece e por enquanto o código ta assim:

CSS:

#bbcode .botoes a span {
display: none;
}

#bbcode .botoes a:hover span {
display: block;
border: 1px solid #000;
background: #FFF;
padding: 3px;
width: 200px;
margin-left: -1px;
}



HTML:

<a><img src="imagens/icones/forecolor.gif" /><span>SPAN ESCONDIDO AQUI</span></a>


Só que quando executo ta tudo blz.. mas quando vou colocar o mouse emcima do span ele desabarece antes... alguem poderia me dizer qual é aquele código CSS que atrasa o SPAN alguns segundos antes dele se fechar?



#772674 Orientação à Objeto, Aonde Posso Aprender? ;__;

Posted by Naruto on 15/08/2006, 21:54 in PHP

hehe eu ja reli esse topico umas 4x e ateh hj num intendi como funciona o negócio.. >< se alguém puder explicar com um exemplo bem simples ajudaria mto xD~~



#772642 Orientação à Objeto, Aonde Posso Aprender? ;__;

Posted by Naruto on 15/08/2006, 20:19 in PHP

To querendo aprender sobre Orientação à Objeto.. ja tentei umas 3x entender akeles termos mas nunca entendo nada :unsure: principalmente akele tal de $this que até hj num sei pra q q serve XD

alguém poderia me da uma ajuda ae.. sei lah fazer um exemplo bem besta pra eu tentar aprender sobre orientação a objeto?!



#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?



#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 ;)



#726126 Tem Como Eu Pegar O Tamanho E A Resolução De Uma...

Posted by Naruto on 31/03/2006, 19:53 in PHP

Pra ser mais especifico quero que quando usuários postarem um link de avatar o script pegue o tamanho, resolução e tipo de arquivo(jpg,gif,etc..)

tem como fazer isso? oO



#726159 Tem Como Eu Pegar O Tamanho E A Resolução De Uma...

Posted by Naruto on 31/03/2006, 21:45 in PHP

opa.. vlw kra ja ajudo pakas!!
eu usei o: list($width, $height, $type, $attr) = getimagesize("url");

dai ele ja retorna tudo separadinho, pena q num mostra o tamanho =/ será q tem como pega o tamanho com uma outra função?




IPB Skin By Virteq