View Full Version : Where to edit "attachment insert" code?
Throwam
01-11-2017, 03:31 AM
I'm wondering how I would go about deleting this insert function. I want to allow people to upload image attachments, just not insert thumbnails of the image into the post. So, where would I go to edit the code and disable this feature?
http://i63.tinypic.com/2qnyvfc.png
noypiscripter
01-11-2017, 04:30 AM
You can hide that block via CSS.
Throwam
01-11-2017, 04:31 AM
You can hide that block via CSS.
Yes I know, but where specifically do I go to edit the CSS (> Edit Templates, etc.)?
noypiscripter
01-11-2017, 07:13 PM
Go to Sitebuilder (Edit Site ON) > Style > CSS Editor.
You can also go to Style Manager in AdminCP and edit the css_additional.css template (this is not allowed in vBCloud)
cellarius
01-12-2017, 12:21 PM
Beware: The img-bbcode will still be functional if simply typed in manually. This just hides the button.
noypiscripter
01-12-2017, 03:51 PM
That's true for external images. But for uploaded images, tags are used and users wouldn't know what should go inside the tags to insert the image inline manually. Sample tag:
[ATTACH=JSON]{"data-align":"none","data-size":"large","data-tempid":"temp_123_1484243097683_123"}
cellarius
01-13-2017, 07:24 AM
Ah, ok, sorry, I misread the first post.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.