Considered feature-complete by its maintainers.

Menu token protect (CSRF protection)

Automatically adds a drupal_get_token query string parameter to any menu links that correspond to a menu router item that has 'token' => TRUE in its hook_menu() definition. This helps prevent certain links from CSRF attack requests.

Protection support for core menu callbacks

By default this module adds token CSRF protection for the following core menu callbacks:

user/logout

Which in turn ensures any menu links are output as:

user/logout?token=hash-string-here

And the token is checked using hook_menu_site_status_alter().

Usage

function mymodule_menu() {
  $items['mymodule/path'] = array(
    'title' => 'Sample dangerous callback',
    'description' => 'A sample menu callback that should be protected from CSRF attacks using tokens.',
    'page callback' => 'mymodule_dangerous_callback',
    'access arguments' => array('administer mymodule'),
    'token' => TRUE, // Add this to automatically have this path protected.
  );
  return $items;
}

jQuery LazyLoad Ad integration

jQuery LazyLoad Ad

jQuery LazyLoad Ad is a great jQuery script, that allows us to lazy load ads on a page.

A lot of ad providers use embed codes, that are based on document.write(), which can cause a lot of problems. A common solution to this problem is to load ad in an iFrame, but is not always possible to implement this (streching ads are one of the cases).

jQuery LazyLoad Ad will allow you to still embed your ads inline, but will delay their display until site was completely loaded. Even more; ads will not be loaded until actually visible on page by default.

Installation

Download module and enable it. Then navigate to admin/config/system/lazyloadad and configure jQuery selectors for your ads. Ads must be modified to work with this script. A typical AdSense embed code would look like this:

<script type="text/javascript"><!--
	google_ad_client = "pub-8333082972366661";
	/* 300x250, date de création 18/03/10 */
	google_ad_slot = "9789857825";
	google_ad_width = 300;
	google_ad_height = 250;
	//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

The same code, rewritter to be used will look like this:

<?php

user file system

a web file system built around user access
will add more...

Page memory limit

Allows you to set an array of PHP memory limits keyed by page path in $conf.

Pager for Content type

For every node of selected content type module add "previous" and "next"
buttons to previous or next node.
Module provide custom pager for content type.
Pager will apply to end of node render array.

There is possibility to use pager for navigating between nodes of same author.

There is a possibility to show titles of the closest nodes before and after a current node (quantity of nodes shown can be adjusted).
Example:
let us suppose there are 5 nodes: node 1, node 2, node 3, node4, node 5;
a) current node is 3:
below the pager there will be following links:
node 1, node 2, node 4, node 5

b) current node is 2:
below the pager there will be following links:
node 1, node 3, node 4, node 5

c) current node is 5:
below the pager there will be following links:
node 1, node 2, node 3, node 4

There is hook which makes it possible to control sampling of previous and next node.
As well as a hook to control sampling of nodes closest to the current one.

Requirements

Drupal 7.x

Installation

1. Copy the entire pager_for_content_type directory
the Drupal sites/all/modules directory.

2. Login as an administrator. Enable the module
in the "Administer" -> "Modules"

3. (Optional) Edit the settings under

Files undo remove

Files undo remove

This module is a usability enhancement to a Field API field with uploaded files with cardinality set to unlimited or more than 1.

Pages

Subscribe with RSS Subscribe to RSS - Maintenance fixes only