User login

Complete

To be used with care. Pages are complete only when they meet the posting guidelines.

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

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?

    Synonyms and Related Terms in use

    Evidence emerges that people intend and are finding ways to use Drupal's core taxonomy features related terms and synonyms (which are separate concepts– in the database synonyms are simply alternate names for a term, while related terms provides a table for every term term eligible to to have relations).

    Here are the sightings:

    Evidence emerges that people intend and are finding ways to use Drupal's core taxonomy features related terms and synonyms (which are separate concepts– in the database synonyms are simply alternate names for a term, while related terms provides a table for every term term eligible to to have relations).

    Here are the sightings:

    Displaying a Voting module star rating on custom themed CCK node types

    Voting module
    Drupal 4.7

    How to display voting widget on our custom node template

    This should do it for you, boys and girls.

    if( function_exists("voting_control_node") ) {
    $votingwidget = voting_control_node(&$node, FALSE, TRUE);
    print $votingwidget;
    }

    Unrelated notes on not screwing up:

    Don't forget parenthesis for if statements! It makes an ugly error.

    Parse error: parse error, unexpected T_STRING, expecting '(' in...

    Voting module
    Drupal 4.7

    How to display voting widget on our custom node template

    This should do it for you, boys and girls.

    if( function_exists("voting_control_node") ) {
    $votingwidget = voting_control_node(&$node, FALSE, TRUE);
    print $votingwidget;
    }

    Unrelated notes on not screwing up:

    Don't forget parenthesis for if statements! It makes an ugly error.

    Parse error: parse error, unexpected T_STRING, expecting '(' in...

    Legacy Scraper

    This module for 4.7 (PHP5 with XML DOM required) is not currently supported. It was created by David Donahue in 2006, and while Agaric Design Collective has adopted the scraper project and added a separate module for very basic scraping that uses a different method, we have not had reason to dive into this code. If you do, or want to add another module to the scraper family, let us know and we can add you as a maintainer to the project on Drupal.org (if you have a CVS access).

    This module for 4.7 (PHP5 with XML DOM required) is not currently supported. It was created by David Donahue in 2006, and while Agaric Design Collective has adopted the scraper project and added a separate module for very basic scraping that uses a different method, we have not had reason to dive into this code. If you do, or want to add another module to the scraper family, let us know and we can add you as a maintainer to the project on Drupal.org (if you have a CVS access).

    Legacy Scraper scrapes data from web pages. This data can then be imported into a Drupal site as nodes (via CSV) or used for any other purpose.

    Share RSS feeds between two Drupal sites

    This is the basic, basic approach.

    Drupal RSS feed aggregator
    external RSS block
    display RSS feeds in a block
    http://support.bryght.com/adminguide/configure-rss-aggregator

    On the site you'd like to get feeds from...
    Drupal turn on RSS feeds

    just find the section you care about, try adding /feed to the end if no little orange block is there

    Agaric wants to know how to deny access to settings form in 4.7

    Agaric got this error message:

    Cannot use string offset as an array

    (in, say, modules/system.module on line 745, as a hypothetical example)

    Turns out this is from using return t("Access Denied") syntax when the hook_settings function expects a form array to be returned.

    We thought we had the answer and posted as such here:

    http://drupal.org/node/22797#comment-240833

    Agaric got this error message:

    Cannot use string offset as an array

    (in, say, modules/system.module on line 745, as a hypothetical example)

    Turns out this is from using return t("Access Denied") syntax when the hook_settings function expects a form array to be returned.

    We thought we had the answer and posted as such here:

    http://drupal.org/node/22797#comment-240833

    But while this effectively denies access, no error message appears and the form is provided as just the save and reset buttons. Not the greatest user interface feedback.

    Syndicate content