Junior_zara 0 Denunciar post Postado Março 2, 2009 Galera por favor da uma força ai. sou iniciante em flash apenas 3 meses e tenho muitas duvidas. Estou montando um site totalmente em flash no menu contato preciso colocar uma guest book um mural de recados com flash + php e estou com problemas, peguei um guestbook.swf ja pronto na net quando coloco ele na pagina principal uso este codigo para abrir o php e ele funciona perfeitamente . lowlimit = 0; highlimit = 10; loadVariablesNum ("guestbook.php?lowlimit="+lowlimit+"&highlimit="+highlimit, 0); stop(); agora preciso abrir ele dentro de um menu e nao sei se tenho que usar outro codigo ou se estou fazendo algo de errado, irei postar links para que vejam melhor, desde ja agradeço www.zaraclub.com.br e o que ja esta no ar ja postei porem falta muita coisa pra acabar. www.zaraclub.com.br/mural/guestbook.swf e a guestbook www.zaraclub.com.br/mural/site.swf e com o menu contato mais a guestbook nao funciona. aguardo resposta obrigado. Junior Compartilhar este post Link para o post Compartilhar em outros sites
Thiago de Oliveira Cruz 21 Denunciar post Postado Março 2, 2009 Pelo que eu vi... Tu esqueceu de algumas variáveis ali... Nem o contador de prev next aparece........ Da uma olhada no código e se possivel poste ele..... PAra que a galera saiba onde você possivelmente está errando Abraços Compartilhar este post Link para o post Compartilhar em outros sites
Junior_zara 0 Denunciar post Postado Março 2, 2009 Codigo php. <?php //``````````````````````````````````````````````````````````````````````````````````````````````` //` GuestBook Application Version 1.0 ` //` Copyright 2001-2002 netrpx infoways All Rights Reserved. ` //` E-Mail: login@netrpx.com Script License: netrpx infoways ` //` Created 30.12.2001 Last Modified 07.02.2002 ` //` Scripts Archive at: http://www.netrpx.com ` //` If you use this script, please add a link to http://www.netrpx.com/ ` //``````````````````````````````````````````````````````````````````````````````````````````````` //netrpx infoways offers no warranties on this script.The owner/licensee of the script is solely` //responsible for any problems caused by installation of the script or use of the script ` //******************************************************************************** **************` //This Script is free to use you should keep copyright information intact. if (isset($submit)){ if ($submit=="Y"){ $datestamp =(date ("dS F Y ( h:i:s A )",time())); $fpn=@fopen("guestbook.txt","a+"); @flock ($fpn,2); $rec = "Name: <b>$txtname</b><br>Email: <b><u><a href=\"mailto:$txtemail\">$txtemail</a></u></b><br>Website: <b><u><a href=\"$txtwebsite\" target=\"_blank\">$txtwebsite</a></u></b><br>Comments: <b>$txtcomments</b><br><i>Posted on: $datestamp" . "\n"; $fw=fwrite($fpn,$rec); @flock($fpn,3); @fclose($fpn); } } $fp=@fopen("guestbook.txt","r"); @flock ($fp,2); $garr=array(); while ($line=@fgets($fp,1024)){ array_push($garr,$line); } $totalent=count($garr)-1; if ($totalent<0){ $totalent=0; } if($highlimit>$totalent){ $highlimit=$totalent; } print "&txtll=$lowlimit&txthl=$highlimit&totalentries=$totalent&txtmain=" ; if (count($garr)==0){ print "<br><br><b> :::: Nothing to display :::: </b>"; exit(); } $ar=array_reverse($garr); $garr=array(); for($i=$lowlimit;$i<=$highlimit;$i++){ if (!$ar[$i]) { print "<br><br><b>::: Nothing Below This :::</b>"; exit; } print $ar[$i]; print "<br><br>"; } @flock($fp,3); @fclose($fp); ?> Compartilhar este post Link para o post Compartilhar em outros sites
Junior_zara 0 Denunciar post Postado Março 2, 2009 Este e o codigo da action para abrir o php lowlimit = 0; highlimit = 10; loadVariablesNum ("guestbook.php?lowlimit="+lowlimit+"&highlimit="+highlimit, 0); stop(); Compartilhar este post Link para o post Compartilhar em outros sites
Junior_zara 0 Denunciar post Postado Março 2, 2009 SE precisar que mando pra você arquivos fla, e que sou novo no forum e tm em flash e php Muito obrigado pela atençao Compartilhar este post Link para o post Compartilhar em outros sites
Thiago de Oliveira Cruz 21 Denunciar post Postado Março 2, 2009 O código a cima funciona... O que você esta tentando fazer??? Criar um formulário de pessoas?? Tipo uma agenda? existem códigos muito menos complexos para fazer isso... e LoadVariablesNum está em desuso... atualmente se usa LoadVars() Compartilhar este post Link para o post Compartilhar em outros sites
Junior_zara 0 Denunciar post Postado Março 2, 2009 O código a cima funciona... O que você esta tentando fazer??? Criar um formulário de pessoas?? Tipo uma agenda? existem códigos muito menos complexos para fazer isso... e LoadVariablesNum está em desuso... atualmente se usa LoadVars() cara e uma guestbook. www.zaraclub.com.br e o que ja esta no ar ja postei porem falta muita coisa pra acabar. www.zaraclub.com.br/mural/guestbook.swf e a guestbook www.zaraclub.com.br/mural/site.swf e com o menu contato mais a guestbook nao funciona. Compartilhar este post Link para o post Compartilhar em outros sites