The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to disable Image Uploading v4.1.4
Hi,
for the life of me I cannot figure how to do the following 1. Not allow users to upload images into forum posts 2. when they click on insert image icon in the editor -- I want the user to just be able to paste url so editor could place the tags in the post (same as when you click on the "insert an image" icon in the vbulletin.org editor. As of right now-- unless they paste the image tags themselves (i.e. copy/paste from Photobucket etc) -- all of their images automatically get uploaded and inserted into database. I do not want this -- what can I do? Thanks |
#2
|
|||
|
|||
Anybody?
|
#3
|
||||
|
||||
I think the simplest way would be to change the switch from the new insert image popup to the older style.
In adminCP, go to Settings | Options | Message Attachment Options and scroll to the bottom. The last entry is Advanced Insert Image Popup - Enable. If you set it to NO, the old dialogue box will show, which only allows you to do an image reference from a url, not upload an image from your computer. You should have all your usergroups also not able to use html codes, or you end up with them being able to bypass the bbcode restrictions. I could be wrong though... Oh, and in the usergroup options, you can stop them from uploading attachments. That still allows them to use the BB IMG code to show images, but they aren't uploaded (I think) except for maybe a thumbnail if you've enabled thumbnails. Go to Usergroup Manager and edit a usergroup (like Registered Users) and scroll down to Attachment Permissions. Hope this helps! |
Благодарность от: | ||
Mooff |
#4
|
|||
|
|||
OK -- tried it
I get Invalid URL message when I paste an image url in the legacy dialogue box Quote:
|
#5
|
|||
|
|||
You could remove the button by creating a plugin using hook location editor_toolbar_filter and this code:
Code:
$key = array_search('Attach', $toolbar[0]); if ($key !== false) { unset($toolbar[0][$key]); if ($toolbar[0][$key + 1] == '-') unset($toolbar[0][$key + 1]); $toolbar[0] = array_values($toolbar[0]); } or if you really want a duplicate of the image button you could do this: Code:
$key = array_search('Attach', $toolbar[0]); if ($key !== false) { $toolbar[0][$key] = 'Image'; } BTW, this just changes the buttons in the editor, I'm not sure it actually prevents someone who knows what they're doing from uploding attachements, but it may be good enough for your purposes. ETA: ...and I misunderstood the question - see below. |
#6
|
|||
|
|||
Is this the only way to get the Legacy Image Insert function to work?
and is this another bug in 4.1.4? If so.... this is a big one (at least for me) Quote:
|
#7
|
|||
|
|||
Quote:
I don't know about that, I was just offering another option. ...and I see now that I'm wrong, I misunderstood the question - you weren't talking about attachments. What Keysailor suggested should have worked, I think, but I get the same error message that you reported. |
#8
|
|||
|
|||
I appreciate the help.
I am wondering if other folks are experiencing the same issue in 4.1.4 --- if they are not -- then I am most likely doing something wrong somewhere else that is affecting the Legacy option. I would like to get that clarified first if possible before I start changing things around. Quote:
|
#9
|
|||
|
|||
I think it is a bug, it seems to do the attachment stuff even if you have that option tunred off. You could see if that's been reported as a bug, but meanwhile you could make a temporary fix by editing file clientscript/ckeplugins/vbimage/dialogs/image.js, and around line 109 where it looks like this:
Code:
doAttachmentFromUrl: function(dialog) { var url = dialog.getContentElement('from_url', 'url').getValue(); if (dialog.getContentElement('from_url', 'remote_file').getValue()) { var postData = { change it to look like this: Code:
doAttachmentFromUrl: function(dialog) { var url = dialog.getContentElement('from_url', 'url').getValue(); if (false) //dialog.getContentElement('from_url', 'remote_file').getValue()) { var postData = { (the only change is that I added the part in red). |
Благодарность от: | ||
moonclamp |
#10
|
|||
|
|||
to be clear -- this will do what?
sorry for the questions but I am not a programmer -- Thanks Quote:
Looks like a bug http://tracker.vbulletin.com/browse/VBIV-12369 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|