Auto Enable HTML Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
4 posters

    Auto Enable HTML

    WizardT
    WizardT
    New Member


    Posts : 20
    Reputation : 2
    Language : Bulgarian

    Solved Auto Enable HTML

    Post by WizardT December 4th 2023, 10:23 pm

    Technical Details


    Forum version : #Invision
    Position : Founder
    Concerned browser(s) : Google Chrome
    Who the problem concerns : Yourself
    Forum link : https://bgmagic.bulgarianforum.net/

    Description of problem

    I want to auto enable HTML in the profiles of all users. I tried this solution by posting directly as javascript in the admin panel. Is there something I am not doing right? Can you provide me with a working script?


    Last edited by WizardT on December 5th 2023, 5:44 pm; edited 1 time in total
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19324
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Auto Enable HTML

    Post by Ape December 4th 2023, 10:51 pm

    WizardT wrote:

    Technical Details


    Forum version : #Invision
    Position : Founder
    Concerned browser(s) : Google Chrome
    Who the problem concerns : Yourself
    Forum link : https://bgmagic.bulgarianforum.net/

    Description of problem

    I want to auto enable HTML in the profiles of all users. I tried this solution by posting directly as javascript in the admin panel. Is there something I am not doing right? Can you provide me with a working script?

    That code is out of date it was made back in 2015 You can't really made every members account use HTML if they turn it off.
    All your members have to right to pick what they use or not use.



    Auto Enable HTML Left1212Auto Enable HTML Center11Auto Enable HTML Right112
    Auto Enable HTML Ape_b110
    Auto Enable HTML Ape1010
    WizardT
    WizardT
    New Member


    Posts : 20
    Reputation : 2
    Language : Bulgarian

    Solved Re: Auto Enable HTML

    Post by WizardT December 4th 2023, 11:01 pm

    Ape wrote:
    WizardT wrote:

    Technical Details


    Forum version : #Invision
    Position : Founder
    Concerned browser(s) : Google Chrome
    Who the problem concerns : Yourself
    Forum link : https://bgmagic.bulgarianforum.net/

    Description of problem

    I want to auto enable HTML in the profiles of all users. I tried this solution by posting directly as javascript in the admin panel. Is there something I am not doing right? Can you provide me with a working script?

    That code is out of date it was made back in 2015 You can't really made every members account use HTML if they turn it off.
    All your members have to right to pick what they use or not use.

    Why though? It's not that they would be using HTML. Rather it's about them seeing the visuals in other people's posts. It doesn't make any sense to me so can you please explain the reasoning.

    Can someone please update this script or provide a solution.

    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19324
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Auto Enable HTML

    Post by Ape December 4th 2023, 11:16 pm

    By law you can't make someone use it if they pick not to this is why the system was made how it was. Your members have the right to stop them showing. If you make them use your taking your members right away and could be digging your self a bigger hole in law.



    Auto Enable HTML Left1212Auto Enable HTML Center11Auto Enable HTML Right112
    Auto Enable HTML Ape_b110
    Auto Enable HTML Ape1010
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19324
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Auto Enable HTML

    Post by Ape December 4th 2023, 11:22 pm

    lets put it this way.

    I give you two buttons on your site saying.

    1 I want to be hacked.
    2 No please keep me safe i don't want to be hacked.

    And you press "I don't want to be hacked."

    Then two weeks later i go in to my settings and click a button or add a code taking that right away so you do get hacked what would your thought be? Yes you have it.. Your be so upset i have took that right away from you.



    Auto Enable HTML Left1212Auto Enable HTML Center11Auto Enable HTML Right112
    Auto Enable HTML Ape_b110
    Auto Enable HTML Ape1010
    Shek
    Shek
    Active Poster


    Male Posts : 1697
    Reputation : 61
    Language :  
    Location : Brazil

    Solved Re: Auto Enable HTML

    Post by Shek December 5th 2023, 1:25 am

    Hello author.

    This no is a question of ethical, but of choice. The LGPD exist today, and all people need freedom for choice that is good for she. Ape is right about this, but if you try this alternative, exist risk for your community. Your members can to give up of your forum, and this to be a problem for evite. Ape as Administrator of community cares about it for you, understood?

    About this question, you can try with this code:
    Code:
    if (my_getcookie('faAutoHTML') != 'checked') {
       $.get('/profile?mode=editprofile&page_profil=preferences',function(d){
          d = $('#ucp', d).serialize();
          /allowhtml=0/.test(d) && $.post('/profile', d.replace(/allowhtml=0/, 'allowhtml=1') + '&submit=1',function() {
             my_setcookie('faAutoHTML', 'checked');
          });
       });
    }
    In your pages script, on Investment, mark All pages and save. The detail is that, this work only when your user is connect (because of access on profile settings).

    And again... I recommend not forcing your users to (accept) do anything in relation to their personalized profile, because this could lead to legal problems in your country because of LGPD.

    Att. Shek king

    TonnyKamper likes this post

    WizardT
    WizardT
    New Member


    Posts : 20
    Reputation : 2
    Language : Bulgarian

    Solved Re: Auto Enable HTML

    Post by WizardT December 5th 2023, 4:55 pm

    Shek wrote:Hello author.

    This no is a question of ethical, but of choice. The LGPD exist today, and all people need freedom for choice that is good for she. Ape is right about this, but if you try this alternative, exist risk for your community. Your members can to give up of your forum, and this to be a problem for evite. Ape as Administrator of community cares about it for you, understood?

    About this question, you can try with this code:
    Code:
    if (my_getcookie('faAutoHTML') != 'checked') {
       $.get('/profile?mode=editprofile&page_profil=preferences',function(d){
          d = $('#ucp', d).serialize();
          /allowhtml=0/.test(d) && $.post('/profile', d.replace(/allowhtml=0/, 'allowhtml=1') + '&submit=1',function() {
             my_setcookie('faAutoHTML', 'checked');
          });
       });
    }
    In your pages script, on Investment, mark All pages and save. The detail is that, this work only when your user is connect (because of access on profile settings).

    And again... I recommend not forcing your users to (accept) do anything in relation to their personalized profile, because this could lead to legal problems in your country because of LGPD.

    Att. Shek king

    What do you mean by "Investment"? This script did not work. I know it can be done because other rpg forums are doing it. This is a basic functionality.
    Razor12345
    Razor12345
    Support Moderator
    Support Moderator


    Male Posts : 1575
    Reputation : 266
    Language : Ukr, Rus, Eng
    Location : Ukraine

    Solved Re: Auto Enable HTML

    Post by Razor12345 December 5th 2023, 5:20 pm

    Good evening!

    Lost a piece of code. Full code:

    Code:
    (function($) {
    if (my_getcookie('faAutoHTML') != 'checked') {
      $.get('/profile?mode=editprofile&page_profil=preferences',function(d){
          d = $('#ucp', d).serialize();
          /allowhtml=0/.test(d) && $.post('/profile', d.replace(/allowhtml=0/, 'allowhtml=1') + '&submit=1',function() {
            my_setcookie('faAutoHTML', 'checked');
          });
      });
    }
      })(jQuery);

    1) Don't forget to allow HTML (AP - General - Messages and emails - Configuration - Allow HTML - Yes - Save).
    2) If the code doesn't work, you need to delete cookies.
    .
    This is outside the basic functionality of the forumotion forums and I highly recommend re-reading Ape's posts and thinking through what he wrote.



    Auto Enable HTML Screen51

    TonnyKamper likes this post

    Shek
    Shek
    Active Poster


    Male Posts : 1697
    Reputation : 61
    Language :  
    Location : Brazil

    Solved Re: Auto Enable HTML

    Post by Shek December 5th 2023, 5:39 pm

    WizardT wrote:What do you mean by "Investment"? This script did not work. I know it can be done because other rpg forums are doing it. This is a basic functionality.
    the code work if you delete cookies of your browser. Try again please.
    WizardT
    WizardT
    New Member


    Posts : 20
    Reputation : 2
    Language : Bulgarian

    Solved Re: Auto Enable HTML

    Post by WizardT December 5th 2023, 5:44 pm

    Thank you!

    Shek likes this post

    Razor12345
    Razor12345
    Support Moderator
    Support Moderator


    Male Posts : 1575
    Reputation : 266
    Language : Ukr, Rus, Eng
    Location : Ukraine

    Solved Re: Auto Enable HTML

    Post by Razor12345 December 5th 2023, 5:47 pm

    Problem solved & topic archived.
    Please read our forum rules: ESF General Rules



    Auto Enable HTML Screen51