Drupal

Drupal related topics.

By Karthik , 29 August 2005

Just added the plan information for MTNL; Updated the links page with speed test links and links to the few looking glass mirrors around the country.

I've also just been told that the Hathway plans listed might be Chennai ONLY :S So will probably need to update the page with all the liteway, paceway bs.

-K

By Karthik , 24 August 2005

Modified menus - added "My Blog" to the user menu and a link to the Broadband pages to the primary menu.

Updated the trackback module, but it's still buggy :/

Added about a dozen more sites to the block-referrers list :(

-K

By Karthik , 3 July 2005

Upgraded site to 4.6.2 from 4.6.0. No issues faced except for a possibly unrelated oddity:

File uploads (via attachments) requires a temporary directory set in the settings panel. This is (as Drupal suggests) a directory relative to the "files" directory. However, post upgrade, Drupal spewed a missing directory error for the temporary files directory. The directory exists where it was supposed to be, but Drupal no longer considered the directory relative to the files directory. Prepending the temporary files directory with the files directory solved the issue.

Here's to hoping that there are no more surprises.

By Karthik , 17 May 2005

-Enabled the popular content block
-Removed ability to subscribe to entire blogs as it's .. pointless..
-Removed link clutter from node-previews:
-Removed "subscribe post" link
-Removed "Quote Post" link
These links will both appear for the nodes themselves, just not on the preview pages (for teasers).

For those interested this was accomplished in the hook_links function for both the subscriptions and quote modules:

Before:

  if ($type == 'node' && user_access('post comments') && $node->comment == 2) {
	$links[] = l(t('quote'), "comment/reply/$node->nid", array('title' => t('Start your new comment with a quote from this post.')), 'quote=1');
By Karthik , 15 May 2005

-CSS fixes for the interviews page applied.

-a large percentage of referred spam has been cut down by adding asp, jsp and cgi extensions to the file extesions filter (htaccess). So this site will be seeing fewer "guests" now :P

-the div issues due to lengthy titles have been ignored for the time being.

-the image module has been postponed because the folksonomy module is apparently not current atm, as it's being ported into Drupal's core. So using it right now will probably result in compatability issues later on.

-K

By Karthik , 13 May 2005

Well, added the adsense blocks (there are 3 of them) on the left and right. While most people informed me that installing it was a pain, I found it rather straightforward - set the block filter to PHP, added code and voila!

The colour palette for the blocks are the same as for the nuke ancestor of this site. Looks pretty.. striking :)

The reason why there are three of them is because there are different ones for different sections of the site. One (on the left) for the frontpage and a few manually areas; another (also on the left) for all nodetypes except blogs; the third (on the right) displayed only during blogs. I tried to combine the first two, but the block specifiers don't accept.. OR conditions. It does AND and NOT, but ... not OR. The NOT section also says that all blogs can be blocked via blogs/*, but that just blocks the blog listing rather than individual nodes.. which is pointless.

By Karthik , 11 May 2005

Just a quick note on getting clean URLs working under windows:

  • Open your httpd.conf file
  • run a find for mod_rewrite, and you will end up with something like:
    #LoadModule rewrite_module modules/mod_rewrite.so
            

    Remove the # from the above statement.

  • Run a search for "<Directory". You will come across the default directory config for Apache, followed by an example config.
  • Add the following below both of the above directory config blocks:
    <Directory "D:/programs/apache2/Apache2/htdocs/drupal">
    
By Karthik , 9 May 2005

Installed Trackback module. Had a bug where the configuration page was missing a save configuration button. Fixed it by inserting

$formitems .= form_submit(t('Save configuration'));

in line 490.

I actually still am yet to see this in action, so if you have a blog or whatever, please use it so I can see what happens :P

Also noticed a ton of referrer spam in the logs, thanks to a thread on Drupal.org. Will need to do something about it..

Server was down about an hour back (for ~45 minutes). Sluggish on reboot :(

-K