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.

Auto Enable HTML

4 posters

Go down

Solved Auto Enable HTML

Post by WizardT Mon 4 Dec 2023 - 22:23

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 Tue 5 Dec 2023 - 17:44; edited 1 time in total
WizardT
WizardT
Forumember

Posts : 27
Reputation : 2
Language : Bulgarian

https://bgmagic.bulgarianforum.net/

Back to top Go down

Solved Re: Auto Enable HTML

Post by Ape Mon 4 Dec 2023 - 22:51

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
Ape
Ape
Administrator
Administrator

Male Posts : 19435
Reputation : 2010
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Auto Enable HTML

Post by WizardT Mon 4 Dec 2023 - 23:01

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.

WizardT
WizardT
Forumember

Posts : 27
Reputation : 2
Language : Bulgarian

https://bgmagic.bulgarianforum.net/

Back to top Go down

Solved Re: Auto Enable HTML

Post by Ape Mon 4 Dec 2023 - 23:16

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 : 19435
Reputation : 2010
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Auto Enable HTML

Post by Ape Mon 4 Dec 2023 - 23:22

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
Ape
Ape
Administrator
Administrator

Male Posts : 19435
Reputation : 2010
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Auto Enable HTML

Post by Shek Tue 5 Dec 2023 - 1:25

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
Shek
Shek
Active Poster

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

https://publipos.net

TonnyKamper likes this post

Back to top Go down

Solved Re: Auto Enable HTML

Post by WizardT Tue 5 Dec 2023 - 16:55

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.
WizardT
WizardT
Forumember

Posts : 27
Reputation : 2
Language : Bulgarian

https://bgmagic.bulgarianforum.net/

Back to top Go down

Solved Re: Auto Enable HTML

Post by Razor12345 Tue 5 Dec 2023 - 17:20

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
Razor12345
Razor12345
Support Moderator
Support Moderator

Male Posts : 1581
Reputation : 268
Language : Ukr, Rus, Eng
Location : Ukraine

TonnyKamper likes this post

Back to top Go down

Solved Re: Auto Enable HTML

Post by Shek Tue 5 Dec 2023 - 17:39

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.
Shek
Shek
Active Poster

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

https://publipos.net

Back to top Go down

Solved Re: Auto Enable HTML

Post by WizardT Tue 5 Dec 2023 - 17:44

Thank you!
WizardT
WizardT
Forumember

Posts : 27
Reputation : 2
Language : Bulgarian

https://bgmagic.bulgarianforum.net/

Shek likes this post

Back to top Go down

Solved Re: Auto Enable HTML

Post by Razor12345 Tue 5 Dec 2023 - 17:47

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


Auto Enable HTML Screen51
Razor12345
Razor12345
Support Moderator
Support Moderator

Male Posts : 1581
Reputation : 268
Language : Ukr, Rus, Eng
Location : Ukraine

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum