I need to disable the Blog for the Admin user, Security Risk, Thanks

Hello and thanks for your help in advance:
Short description:

We have a site working on Drupal 7.2x and blog module installed.
(many other modules, custom theme ... everything is fine.)

The Scene:

I recently changed the user name admin by other like "MySecretAdmin" for safety reasons.

Finding the Problem:

$element ['#ajax']['prevent'] = 'click' question?

in function ajax_pre_render_element, I found this part difficult to understand,

Computed Field: Node Author Name

I have 2 computed field, i need the author name of the node and the author name of the last edit of the node.

For Node Author i use this:
$uid = $entity->uid;
$user = user_load($uid);
$entity_field[0]['value'] = $user->name;

What code should I put in the computed field for last edit node author?

tnx for help ;)

File permission in Drupal 7.x

Is there any web site from where I know what permission should be granted to to major important files? Important files means for example php.ini, .htaccess, index.php etc? If I update the Drupal core then should it put the permission to default.

Security of drupal site

Hello Folks,

I have a site that I built using some contributed modules, and a certain hosting provider says it's insecure and spammers are using it for sending emails.

I have tried to increase security on this site by updating drupal to latest version, updating the modules and denying account creation to users.

So I was wondering if I can post my development URL here so you guys can try to check for vulnerabilities.


customization of commerce_recurring module

We need to be able to customize the initial period (and thus due date) on a recurring entity. The initial period should equal the time between purchase and the date field on the product (so the due date on the recurring entity should equal the date field on the recurring product).

I have some existing code that does this but the problem is that recurring orders don't get created when cron runs. So this code could be used or discarded, whatever makes sense.



Subscribe with RSS Subscribe to RSS - Drupal 7.x