Site Utilities

Website utilities, which are utmost important.
admin's picture

Integrate Amazon Astore in Drupal

Amazon astores are a great way to earn with amazon affiliate program. The problem is if you create an astore on amazon its not SEO friendly and most likely it will be tough to get it in search engines. If you already have a drupal site then what you really want is to integrate the two. You can put a link in your primary menu pointing to your astore and it will be all integrated and search engine friendly.

admin's picture

Display useful site statistics - Combine Site summary and Site statistics

xstatistics is a contributed drupal module that provides useful statistics to user. There are two block that give the site statistics.

I found it useful to combine those two blocks into one and provide all the Site Statistics in one place.

Create a new block and paste the code below, select input format as "php"


<?php

$res = db_query('SELECT totalcount, daycount FROM {node_counter}');
while($count = db_fetch_object($res)) {
$count_nodes_view_tot = $count_nodes_view_tot + $count->totalcount;
$count_nodes_view_day = $count_nodes_view_day + $count->daycount;

User login