Drigg Howto

How to change Logo

Header logo path: /themes/drigg_theme/img/header_logo.gif

How to create a Bookmarklet

Simple bookmarked script for submission of pages.

javascript:q=(document.location.href);t=(document.title);s=(document.getSelection());void(open(http://YOUR DRIGG SITE URL/node/add/drigg?url=’+escape(q)+’&title=’+escape(t)+’&body=’+escape(s),”,”));

Users can bookmark this using a right-click (on a Mac, ctrl-click) and “save bookmark as”; or can drag this link into their bookmarks toolbar.

Clicking this bookmarked script when vising a webpage, will open your Drigg site in a new window, directly to a “submit scoop” page (user has to be login), if any text is selected on the webpage to be submitted, this is picked up & entered automatically in the Description field of your Drigg site. The page’s URL and Title are also automatically entered in their respective fields. If the item has already been submitted to the site, this will re-direct instead to the node on your site for the already-submitted item.

Other useful modules

Authorship module can substitute a real name for the username in the “Submitted by ” line.

relatedlinks. Install and then to configure:
Administer > site configuration > related links,
Enable Manual, Parsed and Discovered links, all in a single block (only the first Block checkbox checked), for content type Scoops.

stringoverrides customizes text without needing to hack the source files.

How to run cron.php with a password

Add the following line to file cron.php

if (!isset($_GET['password'])) exit('Access denied');

Then to run cron use http://www.example.com/cron.php?password.
Drupal cron

.htacess file to use

Mine is the following

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

If you have Drupal installed under a subdirectory then use:

RewriteEngine on
RewriteBase /subdirectory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.