How can i disable the posting of images on my forum site?
3 posters
How can i disable the posting of images on my forum site?
ahawkua- Forumember
- Posts : 28
Reputation : 1
Language : english
Ape- Administrator
- Posts : 19324
Reputation : 2005
Language : fluent in dork / mumbojumbo & English haha
There is no tool's in the ACP to stop this sorry but i think you could do it by removing the button with JavaScript but not sure how it's done
Maybe @Draxion will know more on the code used.
Maybe @Draxion will know more on the code used.
Draxion- Helper
- Posts : 2518
Reputation : 321
Language : English
Location : USA
Yes, there is a way you can disable the function to post them via JavaScript, but I don't think it's possible to completely remove the function from the forum itself. You could simply replace the images with something else using the same method.
ahawkua- Forumember
- Posts : 28
Reputation : 1
Language : english
How do you do this?
Draxion- Helper
- Posts : 2518
Reputation : 321
Language : English
Location : USA
Are you saying you want to disable "all" images on the site?
ahawkua- Forumember
- Posts : 28
Reputation : 1
Language : english
Yes
Draxion- Helper
- Posts : 2518
Reputation : 321
Language : English
Location : USA
You can try this.
CSS
JavaScript
CSS
- Code:
img {
display: none !important;
}
JavaScript
- Code:
$(document).ready(function() {
$("img").replaceWith('<div style="display:none;"></div>');
});
ahawkua- Forumember
- Posts : 28
Reputation : 1
Language : english
Ah okay thank you
Draxion- Helper
- Posts : 2518
Reputation : 321
Language : English
Location : USA
If this is solved, please change the topic icon to "solved". Thank you.