Boas-vindas ao Power Pixel

Junte-se a comunidade! Crie o seu próprio conteúdo, e faça amizades.EntrarCriar uma conta

Gerador de tópicos

3 participantes

GyGu GyGu  • Sáb 22 Jun 2013 - 7:50

Gerador de tópicos Empty Gerador de tópicos Sáb 22 Jun 2013 - 7:50

Qual é minha questão:
Olá eu vi neste fórum [Tens de ter uma conta e sessão iniciada para poderes visualizar este link] algo interessante e que eu gostava de utilizar isso em meu fórum tambem.

Eu já tenho mais ou menos o código só que não fica muito bem podem vê-lo a baixo e não gera o tópico

Um ajudinha





Código:


<table border="1">

<tbody>

<tr>

<td><strong>Nome/Release:</strong></td>
<td><input id="title" value="" maxlength="200" size="65" type="text"></td></tr>
<tr>
<td><strong>Link Imagem:</strong></td>
<td><input id="boxart" value="" maxlength="200" size="65" type="text"></td></tr>
<tr>
<td><strong>Créditos:</strong></td>
<td><input id="cr" value="" maxlength="200" size="65" type="text"></td></tr>
<tr>
<td><strong>Info:</strong></td>
<td><textarea id="info" cols="49" rows="5"></textarea></td></tr>
<tr>
<td><strong>Screenshots:</strong></td>
<td><input id="sshot1" maxlength="200" size="65" type="text"><br>
<input id="sshot2" maxlength="200" size="65" type="text"><br>
<input id="sshot3" maxlength="200" size="65" type="text"><br>
<input id="sshot4" maxlength="200" size="65" type="text"><br>
<input id="sshot5" maxlength="200" size="65" type="text"><br>
</td></tr>
<tr><td><strong><a title="Exemplo: http://www.youtube.com/watch?v=qtZhuOhYC6E" target="_blank" style="cursor: help; color: blue;">Trailer (Link Youtube):</a></strong></td>
<td><input id="trail" value="" maxlength="100" size="65" type="text"></td></tr>
<tr>
</tr><tr>
<td><strong>Links para o Download:<strong></strong></strong></td>
<td><textarea id="downlinks" cols="49" rows="10"></textarea></td></tr>
<tr>
<td><strong>Links:</strong>
</td><td>  <input name="radio" id="100" accesskey="1" tabindex="1" value="100" type="radio">
  <label for="100"><strong><a href="http://www.zippyshare.com/" title="O que é isto?" target="_blank" style="cursor: help; color: blue;">Zippyshare<br>
  </a></strong></label>
 <input name="radio" id="101" value="101" accesskey="2" tabindex="2" type="radio">  <label for="101"><strong><a href="http://www.sendspace.com/" title="O que é isto?" target="_blank" style="cursor: help; color: blue;">Sendspace<br>
 </a> </strong></label>
    <input name="radio" id="102" accesskey="3" tabindex="3" value="3" checked="checked" type="radio">  
    <strong>Nenhum dos anteriores</strong>
</td></tr><tr>
</tr><tr>
<td><strong>Password:</strong></td>
<td><input id="pass" value="" maxlength="100" size="65" type="text"></td></tr>
<tr>
<td><strong>Notas/Dicas:</strong></td>
<td><textarea id="nota" cols="49" rows="5"></textarea></td></tr>
<tr>
<td colspan="2">
<center><input onclick="doStuff()" value="Gerar Tópico" type="button"></center></td></tr>
<tr>
<td colspan="2"><textarea id="gen" cols="69" rows="10">Aqui irá será gerado o tópico, depois de clicar em "Gerar Tópico" copie tudo e cole no seu novo Tópico</textarea></td></tr></tbody></table>

Endereço do meu fórum:
[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]

Versão:
PunBB

Inspirage Inspirage  • Sáb 22 Jun 2013 - 8:28

Gerador de tópicos Empty Re: Gerador de tópicos Sáb 22 Jun 2013 - 8:28

Olá,

eu indico um formulário pra você, é mais simples. Caso haja interesse basta criar um tópico aqui com as as opções desejadas no formulário.

Até mais .

GyGu GyGu  • Sáb 22 Jun 2013 - 9:34

Gerador de tópicos Empty Re: Gerador de tópicos Sáb 22 Jun 2013 - 9:34

Sim mas por agora quero tentar esse tambem é mais prático!

[F]lames [F]lames  • Sáb 22 Jun 2013 - 10:04

Gerador de tópicos Empty Re: Gerador de tópicos Sáb 22 Jun 2013 - 10:04

Olá,

O código completo é este:

Código:
<center>





<title>Gerador de Tópicos - Tuga Vicio</title>

<script type="text/javascript">
//<![CDATA[
window.__CF=window.__CF||{};window.__CF.AJS={"ga_key":{"ua":"UA-3183694-2","ga_bs":"2"}};
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
try{if (!window.CloudFlare) { var CloudFlare=[{verbose:0,p:0,byc:0,owlid:"cf",mirage:{responsive:0,lazy:0},oracle:0,paths:{cloudflare:"/cdn-cgi/nexp/abv=1870252173/"},atok:"955f5861f522378d229abc2ebf550acb",zone:"tugavicio.com",rocket:"0",apps:{"ga_key":{"ua":"UA-3183694-2","ga_bs":"2"}}}];var a=document.createElement("script"),b=document.getElementsByTagName("script")[0];a.async=!0;a.src="//ajax.cloudflare.com/cdn-cgi/nexp/abv=4114775854/cloudflare.min.js";b.parentNode.insertBefore(a,b);}}catch(e){};
//]]>
</script>
<script type="text/javascript">
/* <![CDATA[ */
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-3183694-2']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

(function(b){(function(a){"__CF"in b&&"DJS"in b.__CF?b.__CF.DJS.push(a):"addEventListener"in b?b.addEventListener("load",a,!1):b.attachEvent("onload",a)})(function(){"FB"in b&&"Event"in FB&&"subscribe"in FB.Event&&(FB.Event.subscribe("edge.create",function(a){_gaq.push(["_trackSocial","facebook","like",a])}),FB.Event.subscribe("edge.remove",function(a){_gaq.push(["_trackSocial","facebook","unlike",a])}),FB.Event.subscribe("message.send",function(a){_gaq.push(["_trackSocial","facebook","send",a])}));"twttr"in b&&"events"in twttr&&"bind"in twttr.events&&twttr.events.bind("tweet",function(a){if(a){var b;if(a.target&&a.target.nodeName=="IFRAME")a:{if(a=a.target.src){a=a.split("#")[0].match(/[^?=&]+=([^&]*)?/g);b=0;for(var c;c=a[b];++b)if(c.indexOf("url")===0){b=unescape(c.split("=")[1]);break a}}b=void 0}_gaq.push(["_trackSocial","twitter","tweet",b])}})})})(window);
/* ]]> */
</script>
<meta name="pinterest" content="nopin">

<script type="text/javascript">
//<![CDATA[
try{(function(a){var b="http://",c="tugavicio.com",d="/cdn-cgi/cl/",e="407ab9705863c0d58169660e5d2b81f46aa7cd90.gif",f=new a;f.src=[b,c,d,e].join("")})(Image)}catch(e){}
//]]>
</script>

<title>Gerador de Tópicos - Tuga Vicio</title>

<script type="text/javascript">

 function doStuff()

 {

 var txt = "";

 document.getElementById("gen").value = "";

 

if (document.getElementById("title").value != ""){

 txt += "[center][size=18][b]";

 txt += document.getElementById("title").value;

 txt += "[/b][/size]\n\n";

 document.getElementById("gen").value += txt;

 }

 

if (document.getElementById("boxart").value != ""){

 txt = "[img]";

 txt += document.getElementById("boxart").value; //Add boxart

 txt += "[/img]\n\n\n";

 document.getElementById("gen").value += txt;

 }

 if (document.getElementById("cr").value != ""){

 txt = "";

 txt += ":creditos:\n\n";

 txt += document.getElementById("cr").value; //Add info

 txt += "\n\n\n\n";

 document.getElementById("gen").value += txt;

 }

 if (document.getElementById("info").value != ""){

 txt = "";

 txt += ":info:\n\n";

 txt += document.getElementById("info").value; //Add info

 txt += "\n\n\n\n";

 document.getElementById("gen").value += txt;

 }

 

if (document.getElementById("sshot1").value != ""){

 txt = "";

 txt += ":screens:\n\n";

txt += document.getElementById("sshot1").value;

 txt += "\n";

 document.getElementById("gen").value += txt;

 }

 

if (document.getElementById("sshot2").value != ""){

 txt = "";

 txt += document.getElementById("sshot2").value;

 txt += "\n";

 document.getElementById("gen").value += txt;

 }

 



if (document.getElementById("sshot3").value != ""){

 txt = "";

 txt += document.getElementById("sshot3").value;

 txt += "\n";

 document.getElementById("gen").value += txt;

 }

 



if (document.getElementById("sshot4").value != ""){

 txt = "";

 txt += document.getElementById("sshot4").value;

 txt += "\n";

 document.getElementById("gen").value += txt;

 }

 



if (document.getElementById("sshot5").value != ""){

 txt = "";

 txt += document.getElementById("sshot5").value;

 txt += "\n";

 document.getElementById("gen").value += txt;

 }

 if (document.getElementById("trail").value != ""){

 txt = "";

 txt += "\n\n\n:trailer:\n\n";
 txt += "[youtube]";
 txt += document.getElementById("trail").value;
 txt += "[/youtube]";

 document.getElementById("gen").value += txt;

 }

 


if (document.getElementById("downlinks").value != ""){

 txt = "";

 txt += "\n\n\n:download:\n\n";

 txt += "[code]";

 txt += document.getElementById("downlinks").value;

 txt += "[/code]";

 if (document.getElementById("100").checked == true)
 {txt += "\n:zippy:";} 
 
    if (document.getElementById("101").checked == true)
 {txt += "\n:sends:";}
            // http://www.tugavicio.com
 document.getElementById("gen").value += txt;

 }

 

   if (document.getElementById("pass").value != ""){

 txt = "";

 txt += "\n\n\n:password:\n\n";

 txt += "[code]";

 txt += document.getElementById("pass").value;

 txt += "[/code]";

 document.getElementById("gen").value += txt;

 }



 if (document.getElementById("nota").value != ""){

 txt = "";

 txt += "\n\n\n:notasdicas:\n\n";

 txt += document.getElementById("nota").value; //Add nota

document.getElementById("gen").value += txt;

 }

 

txt = "";

 txt += "[/center]";

document.getElementById("gen").value += txt;

 }

 </script>

<link rel="shortcut icon" href="http://picturestack.com/530/558/2DjlogosemfunikO.ico"><span style="font-size: 180%"><span style="color: #000099; font-weight: bold"> Gerador de Tópicos</span></span> <br>

<p><span style="color: #cc0000; font-size: 130%"><span style="font-weight: bold">Tuga Vicio</span></span>  </p><br>

<img alt="" src="http://i.imgur.com/Tn6aW4s.png"><br>

<br>

<form name="frm" action="postgen.html#">

<table border="1">

<tbody>

<tr>

<td><strong>Nome/Release:</strong></td>
<td><input id="title" value="" maxlength="200" size="65" type="text"></td></tr>
<tr>
<td><strong>Link Imagem:</strong></td>
<td><input id="boxart" value="" maxlength="200" size="65" type="text"></td></tr>
<tr>
<td><strong>Créditos:</strong></td>
<td><input id="cr" value="" maxlength="200" size="65" type="text"></td></tr>
<tr>
<td><strong>Info:</strong></td>
<td><textarea id="info" cols="49" rows="5"></textarea></td></tr>
<tr>
<td><strong>Screenshots:</strong></td>
<td><input id="sshot1" maxlength="200" size="65" type="text"><br>
<input id="sshot2" maxlength="200" size="65" type="text"><br>
<input id="sshot3" maxlength="200" size="65" type="text"><br>
<input id="sshot4" maxlength="200" size="65" type="text"><br>
<input id="sshot5" maxlength="200" size="65" type="text"><br>
</td></tr>
<tr><td><strong><a title="Exemplo: http://www.youtube.com/watch?v=qtZhuOhYC6E" target="_blank" style="cursor: help; color: blue;">Trailer (Link Youtube):</a></strong></td>
<td><input id="trail" value="" maxlength="100" size="65" type="text"></td></tr>
<tr>
</tr><tr>
<td><strong>Links para o Download:<strong></strong></strong></td>
<td><textarea id="downlinks" cols="49" rows="10"></textarea></td></tr>
<tr> 
<td><strong>Links:</strong> 
</td><td>  <input name="radio" id="100" accesskey="1" tabindex="1" value="100" type="radio"> 
  <label for="100"><strong><a href="http://www.zippyshare.com/" title="O que é isto?" target="_blank" style="cursor: help; color: blue;">Zippyshare<br> 
  </a></strong></label> 
 <input name="radio" id="101" value="101" accesskey="2" tabindex="2" type="radio">  <label for="101"><strong><a href="http://www.sendspace.com/" title="O que é isto?" target="_blank" style="cursor: help; color: blue;">Sendspace<br> 
 </a> </strong></label> 
    <input name="radio" id="102" accesskey="3" tabindex="3" value="3" checked="checked" type="radio">  
    <strong>Nenhum dos anteriores</strong> 
</td></tr><tr> 
</tr><tr>
<td><strong>Password:</strong></td>
<td><input id="pass" value="" maxlength="100" size="65" type="text"></td></tr>
<tr>
<td><strong>Notas/Dicas:</strong></td>
<td><textarea id="nota" cols="49" rows="5"></textarea></td></tr>
<tr>
<td colspan="2">
<center><input onclick="doStuff()" value="Gerar Tópico" type="button"></center></td></tr>
<tr>
<td colspan="2"><textarea id="gen" cols="69" rows="10">Aqui irá será gerado o tópico, depois de clicar em "Gerar Tópico" copie tudo e cole no seu novo Tópico</textarea></td></tr></tbody></table></form>




</center>

[b][b][b]
[b]Até mais.

[/b][/b][/b]
[/b]

GyGu GyGu  • Sáb 22 Jun 2013 - 10:07

Gerador de tópicos Empty Re: Gerador de tópicos Sáb 22 Jun 2013 - 10:07

Muito obrigado grande [F]lames!!! Mas o código é aplicado onde e como se faz depois?

[F]lames [F]lames  • Sáb 22 Jun 2013 - 10:27

Gerador de tópicos Empty Re: Gerador de tópicos Sáb 22 Jun 2013 - 10:27

Olá,

Como é um gerador e não um formulário, você acede á Gestão das páginas HTML:
Painel de controle Seta Módulos Seta HTML & JS Seta Gestão das páginas HTML

Clica em Criar uma nova página HTML, e preenche tudo certinho, com o código acima na última caixa.

Até mais.

GyGu GyGu  • Sáb 22 Jun 2013 - 10:32

Gerador de tópicos Empty Re: Gerador de tópicos Sáb 22 Jun 2013 - 10:32

[F]lames

Você pode ir ao chat do meu fórum? Só precisa de 3 min por favor do GoMyDown preciso de uma opinião sua.

[F]lames [F]lames  • Sáb 22 Jun 2013 - 11:13

Gerador de tópicos Empty Re: Gerador de tópicos Sáb 22 Jun 2013 - 11:13

[sucesso=Tópico Resolvido; e Bloqueado][/sucesso]

Conteúdo patrocinado  • 

Gerador de tópicos Empty Re: Gerador de tópicos

Permissões neste sub-fórum
Não podes responder a tópicos