Question: Editor Having Problems With Html Code

Editor Having Problems With Html Code

HI, How can i stop the html validation? Error showing - The url u submitted has disallowed chars. I want to be able to post any html code. Also are you able to add ckeditor? Thanks

DC

Daniel Cardoza

Asked
HI,

How can i stop the html validation?

Error showing - The url u submitted has disallowed chars.

I want to be able to post any html code.

Also are you able to add ckeditor?

Thanks
  • MS

    Mian Saleem

    Answered
    Hello,

    Can you please let me know where are you getting this error and share the url too.

    I suspect, it's not html related but `permitted_uri_chars` in the `app/config/config.php`

    Thank you
  • DC

    Daniel Cardoza

    Answered
    Hi,

    its https://www.forum.dfixin.com/beauty,-fitness,-health,-medical,-personal,-skin-care,-spas-style/anti-aging-secrets.

    I added autoresponder code to the page
  • DC

    Daniel Cardoza

    Answered
    I added these ?#,$ in the app/config/config.php.
    No error showing now.

    Its my categories have , and -

    Also what file do i need to edit to change the file upload dimensions?
    The width is only show half size on the page.
  • DC

    Daniel Cardoza

    Answered
    Is the autoresponder code forced not to post?
  • MS

    Mian Saleem

    Answered
    Hello,

    Please be carefull for allowing speciall chars.

    For size, you can modify in the `upload` method of `app/controllers/Forums.php` The default is 800x800 and 500kb.

    I am not sure about `autoresponder` you can always disable to check.

    You can check `encode_html` method of `app/libraries/Tec.php` to know allowed tags.

    Thank you
  • DC

    Daniel Cardoza

    Answered
    Thanks for your help

    So for the autoresponder code i added <button> to the list for encode_html.

    <div class="form-group"> <button type="submit" name="Form_Save" id="Form_Save" class="btn btn-primary">Submit</button>

    When i press the submit button nothing happens

    Please visit https://www.forum.dfixin.com/beauty,-fitness,-health,-medical,-personal,-skin-care,-spas-style/boost-metabolism
  • MS

    Mian Saleem

    Answered
    Hello,

    > Allowed script tag will open you to xxs attacks

    The click is working and it is calling the `https://www.websiteanalyze.dfixion.com/js_controller/click_info` but getting no reponse data.

    Thank you
  • DC

    Daniel Cardoza

    Answered
    Hi,

    Here is an example of how its is meant to work
    https://www.dfixin.com/profit-mail

    This link is just tracking for analytics not to do with the autoresponder.
    https://www.websiteanalyze.dfixion.com/js_controller/click_info
    I have commented out this code, it still does not process the submit request
  • MS

    Mian Saleem

    Answered
    Hello,

    You are submitting form with javascript and javascript code is not working. You can try to move the js code to footer view file or set the action on the form.

    Thank you
  • DC

    Daniel Cardoza

    Answered
    Hi,

    This is the form i am using

    <div id="result"></div><form name="Form_8a72b12" id="Form_8a72b12" method="POST" enctype="application/x-www-form-urlencoded" action="javascript:;"> <input type="hidden" id="lethe_form" name="lethe_form" value="Form_8a72b12"><input type="hidden" id="l_oid" name="l_oid" value="5dbc432713de45d853149d4a0c3123e8"><div class="form-group"> <label for="text_b09fc">First Name</label><input type="text" name="text_b09fc" id="text_b09fc" value="" class="form-control" required placeholder="First Name" pattern="^[a-zA-Z0-9 ]+$"> </div> <div class="form-group"> <label for="Form_Mail">E-Mail</label><input type="email" name="Form_Mail" id="Form_Mail" value="" class="form-control" required placeholder="E-Mail"> </div> <div class="form-group"> <button type="submit" name="Form_Save" id="Form_Save" class="btn btn-primary">Submit</button> </div> </form> <script src="//code.jquery.com/jquery-1.11.2.min.js"></script> <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" /> <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#Form_8a72b12").on("submit",function(){ $.ajax({ url: "/newsletter.php?pos=subscribe", type: "POST", contentType: "application/x-www-form-urlencoded", crossDomain: true, data: $("#Form_8a72b12").serialize(), success: function(data){ $("#result").html(data); $("html,body").animate({scrollTop: $("#result").offset().top},"slow"); }, error: function(){ $("#result").html("<div class=\"alert alert-danger\">There is error while submit</div>"); } });});}); </script>

    What part would i need to move to the footer or change on the form?

    Thanks
  • Login to Reply