IMCE module to load images from local hard disk - drupal

I'm using Drupal as my content-management system. I installed the IMCE module to include images on my site. This works fine, but I can only choose the images from the server, which means I have to copy them on the server and can then choose them. But I would like to choose them from my local hard drive.
Does anyone know if it is possible to do that with that module, or do I need another one?

Right. IMCE provides an upload button (See linked image, top left. I tried to embed it in my post, but the system here won't allow me to add images yet).
But by default, only User-1 has access to it and you'll have to create and associate profiles with roles to allow actions such as uploading of files. If you haven't done so, this is configured on:
admin/settings/imce (Drupal 6), or
admin/config/media/imce (Drupal 7)
So if you aren't logged in as User-1 and don't see the upload button, it's likely a configuration step you are missing.
I wrote an article recently which goes pretty in-depth about use of the IMCE module and gets into configuration. It also covers the workflow for adding images to WYSIWYG content editors, and is written with Drupal 7 in mind, but the IMCE-relevant stuff is mostly the same between Drupal 6 and 7. You may also want to use the IMCE_Mkdir module, which allows users with appropriate permission (added to the IMCE configuration for each profile) to create new sub-directories, which can help keep your images or other files better organized.
You can read my relevant article on the Cocomore Drupal blog: Configuring and adding images to Drupal 7 content with Wysiwyg, IMCE and Lightbox2
Hope that helps.

Click the 'upload' button in IMCE...that will allow you to upload images to the server using the UI, then you can choose them. There's no other way of doing this as obviously it's a website...if you want files from your local machine on the server you'll have to transfer them there. This is what IMCE's 'upload' button is for.
You might also want to check out the IMCE WYSIWYG Bridge module if you're using WYSIWYG, it provides a nice easy way to upload images into WYSIWYG if you're using that module.

Just a tip that always bother using drupal. If you don't see some config options after installing a new module (it was my case for this threat), you must clean caches , in D7 /admin/config/development/performance

Related

How to access your wordpress website via code editor?

So I am trying to customize my already running website via custom code
for better user experience etc.
I see a lot of people developing for WordPress via the code editor
and I simply can't find any information on how I can access my website
via a code editor and customize it with customer HTML, CSS, and javascript (or react.js)
and of course, PHP if necessary.
Could anyone please help me where I can find that information?
I would be very grateful!
Not sure exactly what you are looking for, but I go to CPanel on my host and open File Manager. Scroll down to the public_html folder and the web site below that. Select a PHP file and click Edit. Beware, though, that updating the theme will wipe out any changes when taking this approach.

How to version control with WordPress

I want to set up a system where a developer can work on a separate server on a wordpress website.
My question is: If in the meantime changes are made to the live site (like plugin updates, new plugins, new posts, new comments, etc), how is one able to import a new feature (e.g. a new page) from the development server on the live site while making sure that previous changes on the live site don't get deleted?
I am looking to understand how this all works. In a sense, I would like to have some kind of version control system.
Thanks in advance :)
You can version control your own code using git. Basically we would init a new git repo and commit changes onto this repository. This can lie separately outside of the core files. i.e you only need to include the wp-content directory and ignore all the other core wordpress files.
Here is a good article on how to do a really good versioning system for a website.
http://toroid.org/git-website-howto
The posts and pages (basically content) in a wordpress site however lies in the database.Any changes made there will be permanent.
The only option is to keep taking regular backups of the content. You can do this by using an automated backup tool.
If you really want to version control your database, here is an article that helps:
https://blog.codinghorror.com/get-your-database-under-version-control/
This one is a tricky one. You cant host a single website on two servers. Just imagine a website having 2 hosted urls..!! No way.. You can never do that.
You better create a new user and give access to him. Look carefully in the settings and be a admin. You will have a chance to approve or reject what the second user changes.
Hope this helps.

Is there a way to restrict individual user access to plugins in WordPress?

I am looking to restrict access to plugins for a specific user. I still want this user to be able to edit the theme, but it should not be able to modify plugins or update wordpress.
I did a little research and don't think that there's a simple way to allow this, but before I go along the path of finding a plugin to support this feature, I wanted to ask and make sure there wasn't the ability to do this out of the box.
WordPress will only grant permission to edit the theme in the WordPress Admin Panel. While plugins may be able to restrict editing plugins in the same manner, using this feature at all is highly dangerous as all changes are effective immediately on a live server and can be extremely destructive. If the user's account is compromised someone can directly inject malicious code into the files.
Any changes to theme code, or plugin code for that matter, should be done on local copies of files and then uploaded to the server.
In all of my WordPress installations, even my local development environments, I put the following line of code in my wp-config.php file:
define(‘DISALLOW_FILE_EDIT’, true)
This disables the editor in the WP Admin Panel.

Drupal: upload CCK Images before saving the node

I've defined a content-type with some text areas and a CCK Upload File (image) field.
When i create a new node, if I upload the image before saving the node, it keeps uploading endlessly.
If I save the node, I re-open it and I upload the image it works in few seconds.
Am I forced to save the nodes before to upload images with CCK Upload Fields in Drupal ?
thanks
Hmm, I've had similar troubles. I would recommend looking at your apache server logs and your php logs to see if you can find anything going wrong. Also try it across different browsers and see if that helps.
I'm not familiar with the CCK Upload File, but the most popular (and by far the most supported and actively developed) way to upload using CCK is FileField (and its image-based counterpart, ImageField). Both don't exhibit the problem you describe: you can absolutely upload during node creation.

Wordpress: Editing pages with another editor

Relatively simple question, but I can't find the answer: How can I edit static pages (or posts) with my own editor instead of using WordPress? I'm not asking about the details of how to FTP, but instead where can I actually find the pages I created using WordPress in the WordPress directory?
Thanks.
The content of the pages you create are stored in the mySQL database rather than as static files so you cannot just see them if you look through the directory. The software reads out the data from the db when requested and renders it according to various settings.
As for editing your wordpress pages/entries using an external editor, wordpress supports an XML RPC interface which can be used to communicate with it. For an example of an emacs extension to edit WP articles, check out http://www.tolchz.net/2008/01/06/posting-to-wordpress-with-emacs-webloggerel/. I'm sure many other editors have this facility as well (including, I'm led to believe, Microsoft Word).
Finally, if you want to use the web interface but use your own editor for the textboxes where you edit pages/articles, check out the it's all text plugin for Firefox.
Windows Live Writer is an excellent editor for this purpose. The latest version (2011) surprisingly better than the first, which was already more than I expected for a freebie, and a small project team.
Make sure you avoid all the extra "Live" options and just leave the Writer checked for install. And in WP admin settings, enable XML RPC.
wp generates dynamic pages - that means the pages only exist the moment they are requested. You would first need to "statify" them - simply downlowding would do, but there's also plugins that can do this.. Usually needed for optimizing speed/cache
Looking for "wordpress static pages plugin" might help..
PS: this would do the job of making wp 'static'
http://wordpress.org/extend/plugins/really-static/

Resources