This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

robots.txt

This file can be downloaded at http://online24x7.de/Download/robots_txt.tar.gz

Any ideas for better handling?
Maybe the "access control" "anonymous user" rights should be implemented into this module.

It does following:

<?php
// $Id: robots.txt.module, v1.0

/**
* @file
* Simple module to generate robots.txt
*/

/**
* Implementation of hook_help().
*/
function robots_txt_help($section) {
switch ($section) {
case 'admin/modules#description':
return t('Creates a robots.txt at q=robots.txt');
case 'admin/settings/robots_txt':
return t('The following options allow you to alter the behavior of the robots.txt module.');
}
}

/**
* Implementation of hook_menu().
*/
function robots_txt_menu($may_cache) {
$items = array();

if ($may_cache) {

$items[] = array('path' => 'robots.txt', 'title' => t('robots.txt'),
'callback' => 'robots_txt_output',
'type' => MENU_CALLBACK,
'access' => 1);

}

return $items;
}

/**
* Implementation of hook_settings().
*/
function robots_txt_settings() {
$output .= form_group(t('Edit robots.txt as usual'),
form_textarea(t('Promotion adjustment'), 'robots.txt',variable_get('robots.txt','User-agent: *'),10,5,t('Edit as usual with Disallow')));
$output .= form_group(t('Default Settings'),
form_checkbox(t('Disallow: admin/'),'robots.txt_admin',1,variable_get('robots.txt_admin',1),t('If enabled, indexing of admin directory is disallowed.'))

SMF integration.

I have looked for a search function but cannot find one so i could not search for any previous posts by other members.

Is there a bridge or talk of a bridge? (SMF Forums)

Thanx in advance.

google maps for nodes module

Hi everyone.

http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/jpwillms/goog...

Sometimes location.module is a little bit overkill for some peoples needs. Here is an initial release of a google maps for nodes module. It essentially lets you tack on an address field, and the system will automatically lookup geocoding information for that address, and plot the point on a google map when the node is viewed.

Patch: attachments on comments

Details and patch available here.
Hope this is useful to people.. if so, post a followup in the tracker to encourage adoption of this feature into drupal cvs :-)

Anyone want to help test a filter for embedding Gallery 2 items in nodes?

I've got the module working but this is the first time I've done something like this so I'm a bit nervous about sending it in to apply for a project. If you have Drupal 4.6 and Gallery 2 embedded in it and want to try this out and tell me what you think, drop me a line here: http://drupal.org/user/23570/contact

Module writing experience would be a bonus so you can tell me if I coded something wrong, but anyone is welcome to check it out as I'd like to know how it works for end users, too.

Thanks,

Help with Shoutbox mod?

Hey there. New to the site and very, very new to SQL development. We use Drupal 4.6 on our site. We use a Drupal portal and the most current version of phpMyAdmin.

Being new to SQL scripting, I'm certain that the problem I'm having is user error. I'm simply missing a step.

Now, I have created the tables on the database (shoutbox and shoutbox_moderation) and set the values appropriately. I have also uploaded all the files into the /drupal/modules/shoutbox folder.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions