Shion
  • **


      Reputation : 1
      Registered on : 2012-05-24
      Posts : 18
    Hello,

    I wonder where that one way of posting the form is displayed when you click submit it will automatically send to that forum in question. Example: If I was in the form /-f1 it will send to the / f1-presicar choose without value.

    "Original":
    Gostaria de saber uma forma de aonde que o formulario de postagem estiver sendo exibido ao clicar em enviar ele vai enviar automaticamente para aquele forum em questao.

    Exemplo: Se o formulario estive no /f1- ele vai enviar para o /f1- sem presicar escolher value.

    Topic merged by Niko



    Last edited by Niko on Fri Jun 08, 2012 8:40 pm; edited 1 time in total (Reason for editing : Topic merged)

    Niko
    • Administrator

        Reputation : 319
        Registered on : 2012-02-22
        Posts : 2366
        School of codes courses: coming soon
      Hello,

      well this topic is in this forum (https://www.fmcodes.com/f12-coding-help)
      You want that when you post a topics in this forum you will be redirected to the forum itself? right?



      Niko wants you in the team Guest

      Community manager and Administrator at Forumattivo.com

      Shion
      • **


          Reputation : 1
          Registered on : 2012-05-24
          Posts : 18
        my formulario

        Code:
         <------ Formulário de postagem---------------------------------------------------------------------><font size="2"><dl class="spoiler mrapid"><dt class="pointer"><center><div class="left" name="spoiler" style="margin: 14px;"><img src="http://i42.servimg.com/u/f42/17/32/13/00/ntopic11.png"></div></center></dt><dd><div class="spoiler_content"><script>function episodiomostra(){jQuery('#episodiomostra').html( jQuery('#topico').val() );}function gerarcodigo(){jQuery('[name="subject"]').val(jQuery('#topico').val());jQuery('[name="f"]').val('+dim+');/*Numero do Forum*/jQuery('[name="message"]').val(''+jQuery('#mensagem').val()+'')}</script><form action="/posting.forum" method="post" name="post" enctype="multipart/form-data" onsubmit="return vB_Editor['text_editor'].prepare_submit(0, 0)" id="quick_reply"><br><br><div class="phpbb3"><table class="forabg" cellspanding="0" bordercolor="#4964FF" cellspacing="0" width="100%"><tbody><tr><td><table cellspanding="0" cellspacing="4"><tbody><tr><td><input class="inputbox" id="topico" value="Anuncio" style="width: 150px; border-width: 1px;" onclick="this.focus();this.select();" onchange="episodiomostra();" type="text"></td><td><!--
        barra----------------------------------------><div id="text_editor_select_controls2"><div style="visibility: hidden;" class="select" id="servimg_upload_gui"></div><div style="visibility: hidden;" class="select" id="img"><p><img src="http://2img.net/i/fa/wysiwyg/link.png" alt="" title="" style="vertical-align: middle;"> <input autocomplete="off" class="inputbox" style="width: 150px;" id="img_url" title="" onkeypress="if(event.keyCode==13){constructBBcode('img','', 'img_url');selectWysiwyg(this, 'img');return false;}" type="text"></p><p style="text-align: center;"><input class="button2" onclick="constructBBcode('img','', 'img_url');selectWysiwyg(this, 'img');" value="Ok" type="button"></p></div><div style="visibility: hidden;" class="select" id="url"><p><img src="http://2img.net/i/fa/wysiwyg/link.png" alt="" title="" style="vertical-align: middle;"> <input autocomplete="off" class="inputbox" style="width: 150px;" id="link_url" title="" onkeypress="if(event.keyCode==13){constructBBcode('url',new Array('link_url'), 'name_url');selectWysiwyg(this, 'url');return false;}" type="text"></p><p><img src="http://2img.net/i/fa/wysiwyg/link_text.png" alt="" title="" style="vertical-align: middle;"> <input autocomplete="off" class="inputbox" style="width: 150px;" id="name_url" title="" onkeypress="if(event.keyCode==13){constructBBcode('url',new Array('link_url'), 'name_url');selectWysiwyg(this, 'url');return false;}" type="text"></p><p style="text-align: center;"><input class="button2" onclick="constructBBcode('url',new Array('link_url'), 'name_url');selectWysiwyg(this, 'url');" value="Ok" type="button"></p></div><div style="visibility: hidden;" class="select" id="wservimg_upload_gui"></div><div style="visibility: hidden;" class="select" id="wimg"><p><img src="http://2img.net/i/fa/wysiwyg/link.png" alt="" title="" style="vertical-align: middle;"> <input autocomplete="off" class="inputbox" style="width: 150px;" id="wimg_url" title="" onkeypress="if(event.keyCode==13){document.getElementById('text_editor_cmd_constructBBcode_img').click();return false;}" type="text"></p><p style="text-align: center;"><button class="button2" id="text_editor_cmd_constructBBcode_img">Ok</button></p></div><div style="visibility: hidden;" class="select" id="wurl"><p><img src="http://2img.net/i/fa/wysiwyg/link.png" alt="" title="" style="vertical-align: middle;"> <input autocomplete="off" class="inputbox" style="width: 150px;" id="wlink_url" title="" onkeypress="if(event.keyCode==13){document.getElementById('text_editor_cmd_constructBBcode_url').click();return false;}" type="text"></p><p><img src="http://2img.net/i/fa/wysiwyg/link_text.png" alt="" title="" style="vertical-align: middle;"> <input autocomplete="off" class="inputbox" style="width: 150px;" id="wname_url" title="" onkeypress="if(event.keyCode==13){document.getElementById('text_editor_cmd_constructBBcode_url').click();return false;}" type="text"></p><p style="text-align: center;"><button class="button2" id="text_editor_cmd_constructBBcode_url">Ok</button></p></div></div><div id="text_editor_controls2" style="width: 281px; margin-left: auto; margin-right: auto;"><p class="left"><span id="text_edit" style=""><button class="button2" onclick="bbstyle(0)" type="button" id="addbbcode0" accesskey="b" title="Negrito"><img src="http://2img.net/i/fa/wysiwyg/text_bold.png" alt="Negrito" title="Negrito"></button> <button class="button2" onclick="bbstyle(2)" type="button" id="addbbcode2" accesskey="i" title="Itál."><img src="http://2img.net/i/fa/wysiwyg/text_italic.png" alt="Itál." title="Itál."></button> <button class="button2" onclick="bbstyle(4)" type="button" id="addbbcode4" accesskey="u" title="Sublinhar"><img src="http://2img.net/i/fa/wysiwyg/text_underline.png" alt="Sublinhar" title="Sublinhar"></button> <img src="http://2img.net/i/fa/wysiwyg/separator.png" style="vertical-align: middle;" alt=""> <button class="button2" onclick="bbstyle(6)" type="button" id="addbbcode6" accesskey="q" title="'Citar'"><img src="http://2img.net/i/fa/wysiwyg/comments.png" alt="'Citar'" title="'Citar'"></button> <button class="button2" onclick="bbstyle(8)" type="button" id="addbbcode8" accesskey="c" title="Code"><img src="http://2img.net/i/fa/wysiwyg/page_white_code.png" alt="Code" title="Code"></button> <img src="http://2img.net/i/fa/wysiwyg/separator.png" style="vertical-align: middle;" alt=""> <button class="button2" onclick="display_upload_imageshack(this);" type="button" id="imageshack" accesskey="y" title="Hospedar uma imagem"><img src="http://2img.net/i/fa/wysiwyg/picture_save.png" alt="Hospedar uma imagem" title="Hospedar uma imagem"></button> <button class="button2" onclick="selectWysiwyg(this, 'img');" type="button" id="addbbcode14" accesskey="p" title="Imagem"><img src="http://2img.net/i/fa/wysiwyg/picture.png" alt="Imagem" title="Imagem"></button> <button class="button2" onclick="selectWysiwyg(this, 'url');" type="button" id="addbbcode16" accesskey="w" title="Link"><img src="http://2img.net/i/fa/wysiwyg/link.png" alt="Link" title="Link"></button> <img src="http://2img.net/i/fa/wysiwyg/separator.png" style="vertical-align: middle;" alt=""> </span><span id="html_edit" style="display: none;"><button class="button2" id="text_editor_cmd_bold" accesskey="b" title="Negrito"><img src="http://2img.net/i/fa/wysiwyg/text_bold.png" alt="Negrito" title="Negrito"></button> <button class="button2" id="text_editor_cmd_italic" accesskey="i" title="Itál."><img src="http://2img.net/i/fa/wysiwyg/text_italic.png" alt="Itál." title="Itál."></button> <button class="button2" id="text_editor_cmd_underline" accesskey="u" title="Sublinhar"><img src="http://2img.net/i/fa/wysiwyg/text_underline.png" alt="Sublinhar" title="Sublinhar"></button> <img src="http://2img.net/i/fa/wysiwyg/separator.png" style="vertical-align: middle;" alt=""> <button class="button2" id="text_editor_cmd_wrap0_quote" accesskey="q" title="'Citar'"><img src="http://2img.net/i/fa/wysiwyg/comments.png" alt="'Citar'" title="'Citar'"></button> <button class="button2" id="text_editor_cmd_wrap0_code" accesskey="c" title="Code"><img src="http://2img.net/i/fa/wysiwyg/page_white_code.png" alt="Code" title="Code"></button> <img src="http://2img.net/i/fa/wysiwyg/separator.png" style="vertical-align: middle;" alt=""> <button class="button2" onclick="display_upload_imageshack(this);" type="button" id="wimageshack" accesskey="y" title="Hospedar uma imagem"><img src="http://2img.net/i/fa/wysiwyg/picture_save.png" alt="Hospedar uma imagem" title="Hospedar uma imagem"></button> <button class="button2" onclick="selectWysiwyg(this, 'wimg');return false;" id="bbcodewimg" accesskey="p" title="Imagem"><img src="http://2img.net/i/fa/wysiwyg/picture.png" alt="Imagem" title="Imagem"></button> <button class="button2" onclick="selectWysiwyg(this, 'wurl');return false;" id="bbcodewurl" accesskey="w" title="Link"><img src="http://2img.net/i/fa/wysiwyg/link.png" alt="Link" title="Link"></button> </span></p></div><!--
        fim da barra----------------------------------------></td><td><div id="bts" style="display: block;"><div><span class="corners-top"><span></span></span><fieldset class="submit-buttons"><input name="mode" value="newtopic" type="hidden"><input name="lt" value="0" type="hidden"><input name="subject" value="" type="hidden"><input name="f" value="" type="hidden"><input id="bt-enviar" value="Enviar" class="button1" name="post" onclick="gerarcodigo();" type="submit"> </fieldset></div></div></td><td><fieldset class="submit-buttons"><input value="Prévia" class="button1" name="preview" onclick="gerarcodigo();" type="submit"></fieldset><span class="corners-bottom"><span></span></span></td></tr></tbody></table></td></tr><tr><td align="left"><table class="table1" cellspanding="0" border="0" cellspacing="0" width="100%"><tbody><tr><td style="padding: 0px 7px 5px 5px;"> <div class="mod_news"><textarea class="inputbox content-new" id="mensagem" name="message" cols="8" rows="8" style="width: 100%; padding: 0px; border-width: 1px;"></textarea><div style="margin-top: 4px; margin-bottom: -6px;"><fieldset>Colocar o tópico como: <label><input name="topictype" value="0" checked="checked" type="radio"> Normal</label>  <label><input name="topictype" value="1" type="radio"> LEIA!</label>  <label><input name="topictype" value="2" type="radio"> ANÚNCIO</label>  <label><input name="topictype" value="3" type="radio"> GLOBAL</label> &nbsp;</fieldset></div></div></td></tr></tbody></table></td></tr></tbody></table></div></form></div></dd></dl></font><!--
        Fim do Formulário de postagem----------------------------------------------------------->

        Niko
        • Administrator

            Reputation : 319
            Registered on : 2012-02-22
            Posts : 2366
            School of codes courses: coming soon
          @Niko wrote:Hello,

          well this topic is in this forum (https://www.fmcodes.com/f12-coding-help)
          You want that when you post a topics in this forum you will be redirected to the forum itself? right?

          I need an answer :D



          Niko wants you in the team Guest

          Community manager and Administrator at Forumattivo.com

          Shion
          • **


              Reputation : 1
              Registered on : 2012-05-24
              Posts : 18
            quero adicionar esse codigo dentro desse codigo, no caso o formulario de postagem dentro desse scrypt.

            Code:
            <form action="/posting.forum" method="post" name="post" enctype="multipart/form-data" onsubmit="return vB_Editor['text_editor'].prepare_submit(0, 0)" id="quick_reply"><br><br><div class="phpbb3"><table class="forabg" cellspanding="0" bordercolor="#4964FF" cellspacing="0" width="100%"><tbody><tr><td><table cellspanding="0" cellspacing="4"><tbody><tr><td><input class="inputbox" id="topico" value="Anuncio" style="width: 150px; border-width: 1px;" onclick="this.focus();this.select();" onchange="episodiomostra();" type="text"></td><td><!--
            barra----------------------------------------><div id="text_editor_select_controls2"><div style="visibility: hidden;" class="select" id="servimg_upload_gui"></div><div style="visibility: hidden;" class="select" id="img"><p><img src="http://2img.net/i/fa/wysiwyg/link.png" alt="" title="" style="vertical-align: middle;"> <input autocomplete="off" class="inputbox" style="width: 150px;" id="img_url" title="" onkeypress="if(event.keyCode==13){constructBBcode('img','', 'img_url');selectWysiwyg(this, 'img');return false;}" type="text"></p><p style="text-align: center;"><input class="button2" onclick="constructBBcode('img','', 'img_url');selectWysiwyg(this, 'img');" value="Ok" type="button"></p></div><div style="visibility: hidden;" class="select" id="url"><p><img src="http://2img.net/i/fa/wysiwyg/link.png" alt="" title="" style="vertical-align: middle;"> <input autocomplete="off" class="inputbox" style="width: 150px;" id="link_url" title="" onkeypress="if(event.keyCode==13){constructBBcode('url',new Array('link_url'), 'name_url');selectWysiwyg(this, 'url');return false;}" type="text"></p><p><img src="http://2img.net/i/fa/wysiwyg/link_text.png" alt="" title="" style="vertical-align: middle;"> <input autocomplete="off" class="inputbox" style="width: 150px;" id="name_url" title="" onkeypress="if(event.keyCode==13){constructBBcode('url',new Array('link_url'), 'name_url');selectWysiwyg(this, 'url');return false;}" type="text"></p><p style="text-align: center;"><input class="button2" onclick="constructBBcode('url',new Array('link_url'), 'name_url');selectWysiwyg(this, 'url');" value="Ok" type="button"></p></div><div style="visibility: hidden;" class="select" id="wservimg_upload_gui"></div><div style="visibility: hidden;" class="select" id="wimg"><p><img src="http://2img.net/i/fa/wysiwyg/link.png" alt="" title="" style="vertical-align: middle;"> <input autocomplete="off" class="inputbox" style="width: 150px;" id="wimg_url" title="" onkeypress="if(event.keyCode==13){document.getElementById('text_editor_cmd_constructBBcode_img').click();return false;}" type="text"></p><p style="text-align: center;"><button class="button2" id="text_editor_cmd_constructBBcode_img">Ok</button></p></div><div style="visibility: hidden;" class="select" id="wurl"><p><img src="http://2img.net/i/fa/wysiwyg/link.png" alt="" title="" style="vertical-align: middle;"> <input autocomplete="off" class="inputbox" style="width: 150px;" id="wlink_url" title="" onkeypress="if(event.keyCode==13){document.getElementById('text_editor_cmd_constructBBcode_url').click();return false;}" type="text"></p><p><img src="http://2img.net/i/fa/wysiwyg/link_text.png" alt="" title="" style="vertical-align: middle;"> <input autocomplete="off" class="inputbox" style="width: 150px;" id="wname_url" title="" onkeypress="if(event.keyCode==13){document.getElementById('text_editor_cmd_constructBBcode_url').click();return false;}" type="text"></p><p style="text-align: center;"><button class="button2" id="text_editor_cmd_constructBBcode_url">Ok</button></p></div></div><div id="text_editor_controls2" style="width: 281px; margin-left: auto; margin-right: auto;"><p class="left"><span id="text_edit" style=""><button class="button2" onclick="bbstyle(0)" type="button" id="addbbcode0" accesskey="b" title="Negrito"><img src="http://2img.net/i/fa/wysiwyg/text_bold.png" alt="Negrito" title="Negrito"></button> <button class="button2" onclick="bbstyle(2)" type="button" id="addbbcode2" accesskey="i" title="Itál."><img src="http://2img.net/i/fa/wysiwyg/text_italic.png" alt="Itál." title="Itál."></button> <button class="button2" onclick="bbstyle(4)" type="button" id="addbbcode4" accesskey="u" title="Sublinhar"><img src="http://2img.net/i/fa/wysiwyg/text_underline.png" alt="Sublinhar" title="Sublinhar"></button> <img src="http://2img.net/i/fa/wysiwyg/separator.png" style="vertical-align: middle;" alt=""> <button class="button2" onclick="bbstyle(6)" type="button" id="addbbcode6" accesskey="q" title="'Citar'"><img src="http://2img.net/i/fa/wysiwyg/comments.png" alt="'Citar'" title="'Citar'"></button> <button class="button2" onclick="bbstyle(8)" type="button" id="addbbcode8" accesskey="c" title="Code"><img src="http://2img.net/i/fa/wysiwyg/page_white_code.png" alt="Code" title="Code"></button> <img src="http://2img.net/i/fa/wysiwyg/separator.png" style="vertical-align: middle;" alt=""> <button class="button2" onclick="display_upload_imageshack(this);" type="button" id="imageshack" accesskey="y" title="Hospedar uma imagem"><img src="http://2img.net/i/fa/wysiwyg/picture_save.png" alt="Hospedar uma imagem" title="Hospedar uma imagem"></button> <button class="button2" onclick="selectWysiwyg(this, 'img');" type="button" id="addbbcode14" accesskey="p" title="Imagem"><img src="http://2img.net/i/fa/wysiwyg/picture.png" alt="Imagem" title="Imagem"></button> <button class="button2" onclick="selectWysiwyg(this, 'url');" type="button" id="addbbcode16" accesskey="w" title="Link"><img src="http://2img.net/i/fa/wysiwyg/link.png" alt="Link" title="Link"></button> <img src="http://2img.net/i/fa/wysiwyg/separator.png" style="vertical-align: middle;" alt=""> </span><span id="html_edit" style="display: none;"><button class="button2" id="text_editor_cmd_bold" accesskey="b" title="Negrito"><img src="http://2img.net/i/fa/wysiwyg/text_bold.png" alt="Negrito" title="Negrito"></button> <button class="button2" id="text_editor_cmd_italic" accesskey="i" title="Itál."><img src="http://2img.net/i/fa/wysiwyg/text_italic.png" alt="Itál." title="Itál."></button> <button class="button2" id="text_editor_cmd_underline" accesskey="u" title="Sublinhar"><img src="http://2img.net/i/fa/wysiwyg/text_underline.png" alt="Sublinhar" title="Sublinhar"></button> <img src="http://2img.net/i/fa/wysiwyg/separator.png" style="vertical-align: middle;" alt=""> <button class="button2" id="text_editor_cmd_wrap0_quote" accesskey="q" title="'Citar'"><img src="http://2img.net/i/fa/wysiwyg/comments.png" alt="'Citar'" title="'Citar'"></button> <button class="button2" id="text_editor_cmd_wrap0_code" accesskey="c" title="Code"><img src="http://2img.net/i/fa/wysiwyg/page_white_code.png" alt="Code" title="Code"></button> <img src="http://2img.net/i/fa/wysiwyg/separator.png" style="vertical-align: middle;" alt=""> <button class="button2" onclick="display_upload_imageshack(this);" type="button" id="wimageshack" accesskey="y" title="Hospedar uma imagem"><img src="http://2img.net/i/fa/wysiwyg/picture_save.png" alt="Hospedar uma imagem" title="Hospedar uma imagem"></button> <button class="button2" onclick="selectWysiwyg(this, 'wimg');return false;" id="bbcodewimg" accesskey="p" title="Imagem"><img src="http://2img.net/i/fa/wysiwyg/picture.png" alt="Imagem" title="Imagem"></button> <button class="button2" onclick="selectWysiwyg(this, 'wurl');return false;" id="bbcodewurl" accesskey="w" title="Link"><img src="http://2img.net/i/fa/wysiwyg/link.png" alt="Link" title="Link"></button> </span></p></div><!--
            fim da barra----------------------------------------></td><td><div id="bts" style="display: block;"><div><span class="corners-top"><span></span></span><fieldset class="submit-buttons"><input name="mode" value="newtopic" type="hidden"><input name="lt" value="0" type="hidden"><input name="subject" value="" type="hidden"><input name="f" value="" type="hidden"><input id="bt-enviar" value="Enviar" class="button1" name="post" onclick="gerarcodigo();" type="submit"> </fieldset></div></div></td><td><fieldset class="submit-buttons"><input value="Prévia" class="button1" name="preview" onclick="gerarcodigo();" type="submit"></fieldset><span class="corners-bottom"><span></span></span></td></tr></tbody></table></td></tr><tr><td align="left"><table class="table1" cellspanding="0" border="0" cellspacing="0" width="100%"><tbody><tr><td style="padding: 0px 7px 5px 5px;"> <div class="mod_news"><textarea class="inputbox content-new" id="mensagem" name="message" cols="8" rows="8" style="width: 100%; padding: 0px; border-width: 1px;"></textarea><div style="margin-top: 4px; margin-bottom: -6px;"><fieldset>Colocar o tópico como: <label><input name="topictype" value="0" checked="checked" type="radio"> Normal</label>  <label><input name="topictype" value="1" type="radio"> LEIA!</label>  <label><input name="topictype" value="2" type="radio"> ANÚNCIO</label>  <label><input name="topictype" value="3" type="radio"> GLOBAL</label>  </fieldset></div></div></td></tr></tbody></table></td></tr></tbody></table></div></form></div></dd></dl></font>

            Scrypt
            Code:
            $(document).ready(function(){
            var end = location.pathname;
            var num = end.substr(2,2);
            var dim = num.replace("-", "");
            $('.page-title').after(' <a href="javascript: void(0);" alt="FastTopic" id="FastTopic"><img src="http://i42.servimg.com/u/f42/17/32/13/00/ntopic11.png" alt="Tópico Rápido IMG" title="Tópico Rápido" /f44-pedidos-graficos></a>

            <br />
            <div style="display:none;" class="FastTopic_text">

            <form action="/posting.forum" method="post" enctype="multipart/form-data">
            <fieldset>
            <label>
            <span>
            <input type="text" value="Título do tópico" name="subject" onclick="if(this.value == \'Título do tópico\') this.value=\'\'"
            onblur="if(this.value == \'\') this.value=\'Título do tópico\'" />
            <input type="submit" name="post" class="button2" value="Criar" onClick="gerarf();" />


            </span>
            </label>
            <label>
            <br />
            <textarea rows="5" style="width:90%;" name="message"></textarea>
            </label>
            </fieldset>




            <!-- Ocultos -->
            <input type="hidden" name="f" value="'+dim+'" />

            <input type="hidden" name="mode" value="newtopic" />
            <input type="hidden" name="lt" value="0" />
            </form>

            </div><!-- Text -->


             ');

            $('#FastTopic').click(function(e){
            e.preventDefault();
            $('.FastTopic_text').stop().slideToggle('slow');


            });

            });

            Niko
            • Administrator

                Reputation : 319
                Registered on : 2012-02-22
                Posts : 2366
                School of codes courses: coming soon
              Hey, I found this tutorial that can help you...
              http://ajuda.forumeiros.com/t35148-tutorial-formulario-de-postagens

              It is in another language but you can try to translate it :D



              Niko wants you in the team Guest

              Community manager and Administrator at Forumattivo.com

              Niko
              • Administrator

                  Reputation : 319
                  Registered on : 2012-02-22
                  Posts : 2366
                  School of codes courses: coming soon
                Hello,

                As anyone replied to this topic after 15 days from the latest comment's date, the problem is considered solved or abandonated.

                This topic is locked, thanks for the opening of another topic, of course be care of Respecting the rules. You can ask to open this topic sending me a Private message.

                See you on FMcodes

                Note: If you need an answer of your problem, we suggest you to send a private message to a Moderator asking him to move this topic back



                Niko wants you in the team Guest

                Community manager and Administrator at Forumattivo.com