User login

Drupal Development

Do not allow users to post content to organic groups except from within an organic group

Note that removing any content type you add this to from the "Create content" menu (Organic groups provides its own create content menu) is highly advised.

Furthermore we're going to restrict people (non-admins) to one and only one group at a time.

This approach allows Agaric to hack in whatever exceptions we want later (planned: allow posts for discussion spaces to post to post to multiple discussion spaces), without hacking organic groups (skip down to the resolution to see Agaric's solution).

IMPORTANT: Modified modules on WSF2008

The following modules have been modified from their original and we have to

Major impact on how site works:

Organic groups (just slightly to allow our form_alter subform nodeapi craziness, can beg for patch)

Minor (in terms of impact on the site if we screw up and fail to bring forward our changes on an update):

Nodeprofile (hid menu tabs, should supply patch)
Core (for l10n_client, this patch is part of Drupal 6)

Resolution

Agaric wants to turn sidebars on or off on a page by page basis in Drupal

Agaric Design Collective, every third site or so, really wants to be able to just tell a page: you see that sidebar? Don't display it. We don't care if we put blocks in it. We don't care if

Views titles and text and i18n, a preliminary preface to a dirty hack

Internationalization module (i18n) now supports views in a way-- unfortunately I think it hard wires in the

sure how well that works with the preferred "show current language and no language" setting.

And there's still no goddamned "show in the user's preferred language if available, if not in the default language." That's what we need. There shouldn't even be a conceptual hack of "no language" – content is either in a language or it isn't. But all that's another story.

How to grep through insanely nested folders to find a string

Agaric forever owes a huge debt of gratitude (and a drink or something) to jmorahan, IRC hero.

I think I have a menu_rebuild that's being called way too often. What is the unix command for looking through everything in a whole nested directory, from Drupal root on down? grep something something menu_rebuild something something?
(please don't tell me to 'man grep' -- that's what I did and why what little I knew about how to use it has been lost, as evidenced by this query)

jmorahan
grep -nHR menu_rebuild /path/to/drupal/root

GMap sometimes not showing up on a custom front page call

This thread may be related to both our binary log clogging by cache menu and the problem at hand here, the map not displaying some of the time:

Google Map script loads on every page
http://drupal.org/node/36191

bdragon - February 6, 2007 - 14:45
Here's what's happening:

Cannot modify header information, output started at .module:1 error SOLVED

This problem caused white screens after form submission (not exactly white screens of death, as the form submitted successfully and you could keep browsing by reloading, but a tad annoying and disconcerting all the same) and also made our Captcha image disappear.

And of course the mean red Drupal warning that told us exactly where the problem lay.

Here's bits and pieces of the error message:

warning: Cannot modify header information - headers already sent by (output started at
.module:1)
common.inc on line 141.

Theming node creation forms to split up taxonomy input fields by vocabulary

The otherwise excellent documentation Using Theme Override Functions For Forms doesn't work too well for core forms like the node form. What that documentation is actually about is creating your own overridable theme functions for your own custom forms.

It's a somewhat different approach to overriding core forms. And even though you may have a custom content type "custom" you cannot override its form with theme_node_custom_form, sadly.

Print a block directly from a theme

Completely revised and updated: print a block directly in a theme or page the Agaric way

Print block directly in a theme with its title

IRC discussion: adding a taxonomy term to all nodes

Assigning a taxonomy term to all nodes

(Colloquy lost the beginning, buh.)

Syndicate content