What do I need to do to protect myself from hack

Been seeing a lot of post about people getting their site hacked. I currently have the latest version of Drupal and all modules are current. Do I just need to keep checking and updating all my modules to prevent myself from getting hacked? I added SSL, anything else I should add? I downloaded everything onto my harddrive, if something were to happen, can I just clear my web host files and upload everything on the harddrive? Will that work or do I need to install everything over?

Hoiw to set Image margins in Drupal 7.59?

When I insert an image into a page, the image has no margin of white space around it to separate the image from, adjoining text. The Image properties box allows m e to select an image for insertion, or set the dimensions of the image, or align the image right left or centered. However, there is no setting for the width of a margin in pixels or inches.

I am using Drupal version 7.59 with CkEditor. Is there an additional module I should install to allow me to control the margins of an image?

How to make create node comment visible?

I created a node where anyone can see, but no one can see the comment except me (the admin), I looked all over, where is this option to make comments visible for everyone?

TB Nucleus help me Unsupported Projects

Hello, I just discovered that the theme TB nucleus is no longer safe (it works with Tb Rave 7.x-1.0-beta1)

https://www.drupal.org/project/nucleus

It's a disaster for me, with my little knowledge, I just finished my site after several weeks of work. I do not know what to do.

Should I find another theme? Will the disabled be enough?

Thank you for your help
Sorry for the translation, I do not speak English well.

Drupal 7 ajax div refresh in tpl file

I got a ctools widget/plugin with data printed in tpl file where I want an ajax refresh filter (using checkbox) without breaking the div style. So far what I did:

Uncaught Reference Error : jQuery is not defined

This is a test module to explore passing a variable from php to Javascript.

jsm2.js

(function ($) {
  Drupal.behaviors.jsm2 = {
    attach: function (context, settings) {     
      alert(Drupal.settings.jsm2.vat_rate); 
    }
  };
}(jQuery));

jsm2.module

<?php
drupal_add_js(array('jsm2' => array('vat_rate' => '0.2')), 'setting');
?>

jsm2.info

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x