User login

Complete

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

Setting up a Wiki in Drupal 5

[This document very much in development.]

http://drupal.org/project/members (nonwiki but also for TFC)
http://drupal.org/project/drupal_wiki ?
+ http://drupal.org/project/backlinks

2007-08-08 #drupal

[This document very much in development.]

http://drupal.org/project/members (nonwiki but also for TFC)
http://drupal.org/project/drupal_wiki ?
+ http://drupal.org/project/backlinks

2007-08-08 #drupal

aliljet: Singularo: really? i'd love to read something that woul dget me up and running, and then I could poke away at it until i tweaked it to be what I needed
[06:59am] Singularo: wiki?
[06:59am] Singularo: http://drupal.org/node/32235
[07:00am] aliljet: http://drupal.tschannen.net/wiki/set_up_a_wiki_with_drupal_5, hmm?
[07:00am] gordonh left the chat room.

Displaying images in a fancy or pretty manner in Drupal

Displaying images, showing pictures, photo album effects.

http://drupal.org/project/lightbox2

http://drupal.org/project/thickbox

http://drupal.org/project/views_slideshow
It's views, it can do anything.

Displaying images, showing pictures, photo album effects.

http://drupal.org/project/lightbox2

http://drupal.org/project/thickbox

http://drupal.org/project/views_slideshow
It's views, it can do anything.

http://drupal.org/project/acidfree

http://drupal.org/project/image_composition
Image composition let you create a composition of Image nodes.

Its development is based on http://www.alistapart.com/articles/magazinelayout and comment 34.

does not appear to use image gallery / taxonomy system
http://drupal.org/project/slideshow_creator

within one page:

Can't do 301 redirects in the Comcast prison

Creating a permanent 301 redirect for an account at Comcast Home is way more difficult than it ought to be.

UPDATE. As in, conclusion: it can't be done. That is unethical web hosting.

Of course, they probably don't want you leaving their pathetic services for a real web site host, let alone with a content management system and open source free software.

Log in. Going to http://home.comcast.net will at least get you to a screen for this.

Creating a permanent 301 redirect for an account at Comcast Home is way more difficult than it ought to be.

UPDATE. As in, conclusion: it can't be done. That is unethical web hosting.

Of course, they probably don't want you leaving their pathetic services for a real web site host, let alone with a content management system and open source free software.

Log in. Going to http://home.comcast.net will at least get you to a screen for this.

This poor guy got NO LOVE:
http://forums.searchenginewatch.com/showthread.php?t=7937

Additional fields for a content type: two approaches for Drupal 4.7

drupal 4.7 add fields to node type

How to Add CCK Fields to Any Drupal 4.7x Node Type
http://www.mikecantelon.com/?q=node/46

http://api.drupal.org/api/group/hooks/4.7

Perform alterations before a form is rendered. One popular use of this hook is to add form elements to the node form.

drupal 4.7 add fields to node type

How to Add CCK Fields to Any Drupal 4.7x Node Type
http://www.mikecantelon.com/?q=node/46

http://api.drupal.org/api/group/hooks/4.7

Perform alterations before a form is rendered. One popular use of this hook is to add form elements to the node form.

New fields to existing types? (4.7)
http://drupal.org/node/67103

Turns out, the Answer:
http://api.drupal.org/api/function/nodeapi_example_nodeapi/4.7

If a direct call to a view isn't working... check that you didn't break the view quite independently in theming it

Or, the more custom work you do, the more ways broken things can be your fault.

views_build_view and theming views

It turns out that the reason view was not working - not showing up at all - when call through views_build_view had nothing to do with the custom call. The view isn't showing up when displayed as a list, period.

I removed two fields -- CCK fields that I don't think apply to video module -- but it still isn't working, yet.

Or, the more custom work you do, the more ways broken things can be your fault.

views_build_view and theming views

It turns out that the reason view was not working - not showing up at all - when call through views_build_view had nothing to do with the custom call. The view isn't showing up when displayed as a list, period.

I removed two fields -- CCK fields that I don't think apply to video module -- but it still isn't working, yet.

Ahh. I had views template exported and modified in template.php that was screwing things up. It only affects list themes. Here's my broken version:

Major change in CMT's internals: cmt_term_*_set functions become one cmt_term_attribute_set function

Old way:

/******************************************************************************
* The following _set functions save information to the cmt_term tables and
* subsequently to votingapi if appropriate.  These function names are based
* on the table names.
*
* They are currently written for clarity over efficiency.
*/

Old way:


/******************************************************************************
* The following _set functions save information to the cmt_term tables and
* subsequently to votingapi if appropriate. These function names are based
* on the table names.
*
* They are currently written for clarity over efficiency.
*/

/**
* Saves a community-managed term's description and updates votingAPI.
*
* First it checks to make sure the description doesn't already exist for
* this term (as unlikely as that might be), and if it does, uses that

Array() definitions are separated by commas, NEVER semicolons

Not like I've made this mistake so many times it got into a commit message of mine... when I fixed it in four places!

cvs commit -m "array declarations cannot have semicolons inside them. Commas, not semicolons!"

See, semicolon at the end, not after each element:

      $pid = array(
        'value' => $pid,
        'field' => 'pid',
      );

Not like I've made this mistake so many times it got into a commit message of mine... when I fixed it in four places!

cvs commit -m "array declarations cannot have semicolons inside them. Commas, not semicolons!"

See, semicolon at the end, not after each element:

      $pid = array(
        'value' => $pid,
        'field' => 'pid',
      );

Ok, maybe now I'll remember.

Figuring out db_query()

Yeah, I use it all the time. But there's a few things about Drupal's db_query (and the database-specific MySQL etc. functions behind it, and Drupal functions like db_fetch_object() that I'd like to have very clear in my head:

  • If the query is successful but results in an empty set, is $result still a numeric reference or just zero?

Parameters

$query A string containing an SQL query.

Throwing Errors in Drupal: Agaric's complete guide

return drupal_set_message("Chutzpah and wishful thinking ahead.", 'error');

All right, Agaric hopes to write a guide to not just displaying error messages but doing it all an a way sensible to a programmer.

Questions:

  • How do you show a database SQL statement exactly in the form it ran to result in the error? I know I've seen these on my screen... how did I do it?!

There is no drupal "set_error" in Drupal 5: There is drupal_set_message and the second parameter can be error.

return drupal_set_message("Chutzpah and wishful thinking ahead.", 'error');

All right, Agaric hopes to write a guide to not just displaying error messages but doing it all an a way sensible to a programmer.

Questions:

  • How do you show a database SQL statement exactly in the form it ran to result in the error? I know I've seen these on my screen... how did I do it?!

There is no drupal "set_error" in Drupal 5: There is drupal_set_message and the second parameter can be error.

The Drupal Pro Development book says:

SELECT statements on long TEXT data are allowed

[1:56pm] agaric: SQL question... a select statement WHERE clause on a longtext column is legal, correct? Even though only a prefix can be indexed?

[1:58pm] merlinofchaos: agaric: It's legal, it'll just be a slower query
[1:58pm] agaric: thanks-- shouldn't be overly common.

[1:56pm] agaric: SQL question... a select statement WHERE clause on a longtext column is legal, correct? Even though only a prefix can be indexed?

[1:58pm] merlinofchaos: agaric: It's legal, it'll just be a slower query
[1:58pm] agaric: thanks-- shouldn't be overly common.

Syndicate content