User login

Documentation

Drupal, project, life documentation. This is where notes go to try to earn their way onto Drupal.org.

Showing view titles in panels

Panels made up of views.

If you want the titles to show
go to both panels and views and enable titles (to show the titles you set in views)

Panels made up of views.

If you want the titles to show
go to both panels and views and enable titles (to show the titles you set in views)

Turn off error reporting to the screen

It is, of course, best practice on any live, production site to not print errors to the screen for everyone to see. That's not the Agaric way.

In Drupal 5, that's done here:

http://example.com/admin/settings/error-reporting

However, as web maintainers we need a way of checking error logs constantly – more frequently than we can do by logging into every site and

It is, of course, best practice on any live, production site to not print errors to the screen for everyone to see. That's not the Agaric way.

In Drupal 5, that's done here:

http://example.com/admin/settings/error-reporting

However, as web maintainers we need a way of checking error logs constantly – more frequently than we can do by logging into every site and

Ask Agaric: Custom Email to Friends text

E-mail to friend

Ben, if we do have email to friends, maybe we could have a pre-selected text for the email that I can write?

You, sir, are genius. Or at least thinking in the Drupal way or something. The pre-written text can even be set by content type (page, blog post, etc.)

Administer » Content Management » Send Modules (admin/content/send)

I think there's a bug where defaults isn't saving but it's irrelevant to what you want, the Send to Friend tab. Altogether:

E-mail to friend

Ben, if we do have email to friends, maybe we could have a pre-selected text for the email that I can write?

You, sir, are genius. Or at least thinking in the Drupal way or something. The pre-written text can even be set by content type (page, blog post, etc.)

Administer » Content Management » Send Modules (admin/content/send)

I think there's a bug where defaults isn't saving but it's irrelevant to what you want, the Send to Friend tab. Altogether:

http://example.com/admin/content/send/send

ben

Creating a signup form to list supporters of a campaign

This is the procedure for creating a signup form for individuals and organizations to sign on in support of your site, and be listed.

This is a very simple list but it could easily be extended to gather more information from each organization, to have the listing page link to pages showing this more information rather than directly to the supporting group, to allow them to upload logos (which could be scaled to a uniform height with imagecache), and more.

How to set it up, on a Drupal site with CCK (Content Constructor Kit) and Views installed:

<

ul>

This is the procedure for creating a signup form for individuals and organizations to sign on in support of your site, and be listed.

This is a very simple list but it could easily be extended to gather more information from each organization, to have the listing page link to pages showing this more information rather than directly to the supporting group, to allow them to upload logos (which could be scaled to a uniform height with imagecache), and more.

How to set it up, on a Drupal site with CCK (Content Constructor Kit) and Views installed:

<

ul>

Agaric Starter Profile Gold Edition

The Gold Edition adds nothing except a notice to Agaric when you install a site with it. The first open source spyware that we know of. Yes, we are ashamed of ourselves. It is Agaric's experiment to see who reads the documentation!

The Gold Edition adds nothing except a notice to Agaric when you install a site with it. The first open source spyware that we know of. Yes, we are ashamed of ourselves. It is Agaric's experiment to see who reads the documentation!

Agaric Starter Profile Rearchitecture

Every .profile will consist simply of

// this consists of the following components
$blogging = TRUE;
...

include('agaric_starter_profile.inc');

agaric_starter_profile.inc is what actually contains all of the profile code, and all the if ($blogging) include('blogging_modules.inc'); and if ($blogging) include('blogging_final.inc'); statements

Every .profile will consist simply of

// this consists of the following components
$blogging = TRUE;
...

include('agaric_starter_profile.inc');

agaric_starter_profile.inc is what actually contains all of the profile code, and all the if ($blogging) include('blogging_modules.inc'); and if ($blogging) include('blogging_final.inc'); statements

Exclude a file from SVN version control

svn exclude file from version control
subversion
subversion remove from repository
leave out of source code management
do not use in checkout of revision controlled repository

An actually useful bit of information:

Excluding/ignoring files

You can exclude files (e.g. *.o) from a directory by typing (in this directory):

svn propset svn:ignore *.o

To show the ignored files, type:

svn status --no-ignore

svn exclude file from version control
subversion
subversion remove from repository
leave out of source code management
do not use in checkout of revision controlled repository

An actually useful bit of information:

Excluding/ignoring files

You can exclude files (e.g. *.o) from a directory by typing (in this directory):

svn propset svn:ignore *.o

To show the ignored files, type:

svn status --no-ignore

From: http://www5.epfl.ch/swis/page18243-en.html

View import not showing up?

If you think your view imported fine, but it's not showing up anywhere that views should be listed, remember that an imported view has to then be saved. At the bottom of the page you're taken to after import, the view edit page, get down to the bottom and press save.

If you think your view imported fine, but it's not showing up anywhere that views should be listed, remember that an imported view has to then be saved. At the bottom of the page you're taken to after import, the view edit page, get down to the bottom and press save.

SSH copy from one server to another

This was a useful sudo command... for copying from a server that had SVN and could update to one that did not have SVN.

sudo scp -r username@subdomain.example.org:/var/www/drupal-4.7.6/sites/coanews.org/modules/quicktags-4.7.x-1.x-dev.tar_07-May-12 modules/quicktags-4.7.x-1.x-dev.tar_07-May-12

This was a useful sudo command... for copying from a server that had SVN and could update to one that did not have SVN.

sudo scp -r username@subdomain.example.org:/var/www/drupal-4.7.6/sites/coanews.org/modules/quicktags-4.7.x-1.x-dev.tar_07-May-12 modules/quicktags-4.7.x-1.x-dev.tar_07-May-12

Old notes on screenscraping that formed the basis of Simple scraper module

screenscraping, xml-rpc, drupal screen scraping

XML-RPC
http://blog.riff.org/2005_12_17_drupal_coder_writing_a_drupal_xml_rpc_service

(This guy's using Drupal 5! [before the release candidate, mind you])

screenscraping, xml-rpc, drupal screen scraping

XML-RPC
http://blog.riff.org/2005_12_17_drupal_coder_writing_a_drupal_xml_rpc_service

(This guy's using Drupal 5! [before the release candidate, mind you])

HTML Import
http://drupal.org/project/import_html?destination=node%2F46008

http://openconcept.ca/screenscraping_a_la_php

Used:
http://interoperating.info/mark/node/61

Going forward: XML-RPC ?

http://www.xmlrpc.com/directory/1568/implementations

<?php
$domain = 'http://hera.pioneersg.com/';
$path = '';

Syndicate content