Auto Enable HTML
4 posters
Page 1 of 1
Auto Enable HTML
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
Re: Auto Enable HTML
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.
Re: Auto Enable HTML
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.
Re: Auto Enable HTML
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.
Re: Auto Enable HTML
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.
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.
Re: Auto Enable HTML
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:
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
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');
});
});
}
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
TonnyKamper likes this post
Re: Auto Enable HTML
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: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).
- 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');
});
});
}
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
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.
Re: Auto Enable HTML
Good evening!
Lost a piece of code. Full code:
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.
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.
Razor12345- Support Moderator
- Posts : 1586
Reputation : 268
Language : Ukr, Rus, Eng
Location : Ukraine
TonnyKamper likes this post
Re: Auto Enable HTML
the code work if you delete cookies of your browser. Try again please.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.
Razor12345- Support Moderator
- Posts : 1586
Reputation : 268
Language : Ukr, Rus, Eng
Location : Ukraine
Similar topics
» How do i enable html for my forum
» Enable HTML for old members
» Enable HTML in signature
» Enable HTML for old members
» Image style HTML Stop working when Image auto-resize is Enabled.
» Enable HTML for old members
» Enable HTML in signature
» Enable HTML for old members
» Image style HTML Stop working when Image auto-resize is Enabled.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum