This website is composed of information connected through taxonomy. It is simultaneously a proof-of-concept and a means to allow Agaric to share and store information both within the collective and the world as part of our open documentation philosophy.

User login

This website is composed of information connected through taxonomy. It is simultaneously a proof-of-concept and a means to allow Agaric to share and store information both within the collective and the world as part of our open documentation philosophy.

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

Theming the search bar the Agaric way

Hardcoding the Drupal search box form into the theme can result in this:

Validation error, please try again. If this error persists, please contact the site administrator.

So customize your bar the Drupal way:

From (and we do mean stolen directly from the Drupal handbook) http://drupal.org/node/45295

Add to template.php (create if necessary)

Hardcoding the Drupal search box form into the theme can result in this:

Validation error, please try again. If this error persists, please contact the site administrator.

So customize your bar the Drupal way:

From (and we do mean stolen directly from the Drupal handbook) http://drupal.org/node/45295

Add to template.php (create if necessary)

<?php
function phptemplate_search_theme_form($form) {
/**
* This snippet catches the default searchbox and looks for
* search-theme-form.tpl.php file in the same folder

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 = '';

Automatically title nodes

Agaric's been searching:

drupal replace node title
drupal replace title with calculated field
use CCK fields for headline text

http://drupal.org/project/auto_nodetitle

(It is not called Node Auto Title, NAT is actually Node Auto Term and is a wonderful, but entirely different, module. That didn't stop me from instructing my co-collective member to download it...)

Agaric's been searching:

drupal replace node title
drupal replace title with calculated field
use CCK fields for headline text

http://drupal.org/project/auto_nodetitle

(It is not called Node Auto Title, NAT is actually Node Auto Term and is a wonderful, but entirely different, module. That didn't stop me from instructing my co-collective member to download it...)

Initial Drupal.org project statement for Related Content module

~ In living, loving memory: http://melanconent.com/john-melancon-life ~

Related Content will make it so easy to relate two pieces of content on a site that people who have never participated on a website before will make connections between information, ideas, or actions that make a positive difference for everyone in the community (and maybe even change the way we think or act).

Planned features:

~ In living, loving memory: http://melanconent.com/john-melancon-life ~

Related Content will make it so easy to relate two pieces of content on a site that people who have never participated on a website before will make connections between information, ideas, or actions that make a positive difference for everyone in the community (and maybe even change the way we think or act).

Planned features:

<

ul>

  • Connect this content:

    <

    ul>

  • to an item I just saw (if a history tracking module is enabled)
  • Taxonomy's unused tables: related terms and synonyms

    fago__: drupal doesn't use them for anything, afaik
    fago__: so it's up to contribs to add value to them
    agaric: http://drupal.org/node/148080
    bot_module: http://drupal.org/node/148080 => Add related terms & synonym editing => Node Auto Term [NAT], Code, normal, patch (code needs review), 1 IRC mention

    fago__: drupal doesn't use them for anything, afaik
    fago__: so it's up to contribs to add value to them
    agaric: http://drupal.org/node/148080
    bot_module: http://drupal.org/node/148080 => Add related terms & synonym editing => Node Auto Term [NAT], Code, normal, patch (code needs review), 1 IRC mention
    agaric: And contribs are just starting to do so. But one would think that somewhere taxonomy would have a written rationale for having them in the first place?
    fago__: I'm not aware of any.. but yeah, for what synonyms are thought is quite obvious

    Copy Custom Content Type Definition

    Ever think, so I just did all this cool stuff with CCK, and I want to save it to use it again?

    Wanted CCK field structure export and import?

    It's called the content_copy module, and comes built into CCK in Drupal 5.

    It also reputedly has some of the most beautiful code ever written in PHP, by KarenS. Really, when's the last time you saw peopel spontaneously writing in an issue how amazing code looked?

    Ever think, so I just did all this cool stuff with CCK, and I want to save it to use it again?

    Wanted CCK field structure export and import?

    It's called the content_copy module, and comes built into CCK in Drupal 5.

    It also reputedly has some of the most beautiful code ever written in PHP, by KarenS. Really, when's the last time you saw peopel spontaneously writing in an issue how amazing code looked?