User login

How to

Information on how to do something... anything.

SSH over the Web

Facebook comment left by high school friend and genius Jonathan Craven:

I know you're more of a PHP guy, but there's a nice Java webapp called SshWebProxy that lets you use ssh within a web browser when you're not allowed to use port 22. The interface is pretty primitive but it can really be useful in a jam.

Hmm, so a smartphone would be all I need?

Resolution

Print a full Drupal database table for debugging a site

To display an entire database table from your Drupal site's DB, this script (while quite un-Drupal) got me there quickly:

http://drupal.org/node/45361

Nancy W. did a whole far more Drupalish rewrite of it – http://drupal.org/node/205347 – and included it in her site documentation module.

Resolution

Panels2 and Organic Groups

So you want to use drupal's Organic Groups module and Panels2 because you've heard through the grapevine that really slick and useful things can be done with the combo..

Resolution

Well, here's what one of the experts has to say about it --> http://www.tejasa.com/node/160

highly recommended and very useful...

do it!

Where in the theme are the tabs printed / giving tabs to admins only

On giving View, Edit, Revision, etc. tabs to administrators only.

In Drupal, tabs are not printed by the node, but by the page. On the one hand, since views and administrative pages and anything else you can think of can have tabs, this makes sense. But on the other hand every node can have

But in any case, if you're looking to change the presentation of tabs somehow (or as in our case, restore them to a theme design from which they had been removed), you will find the place to look is not node.tpl.php but page.tpl.php.

Open external URLs in a new window

Personally and professionally I think links should open in the same tab, but some clients insist on opening external links in new tabs.

Drupal theming tip: theme_ functions you should NOT override

Theme functions are designed so that they can be overridden, but the building block theme functions provided by Drupal core should be left alone.

In discussion with a colleague, who provided all the insight paraphrased below, talking about some of the Drupal gotcha's we've seen get talented people not sufficiently indoctrinated into the Drupal way.

With one site, the designer overrode a ton of theme functions.

Like lists. So now menu_list is no longer an ordered list but a gathering of content

Sidebar graphics with links ("promotional badges") the Agaric Drupal way

A note of warning about the length of notes to follow: This is site configuration at the point where it verges on developer documentation, such is the power of Drupal, and there's some outright theming in here too. This article is a reaction to doing sidebar graphics the painfully non-Drupal way.

Theming CCK Views the Agaric Way (with background)

Note that Views and CCK's imagefield module have excellent imagecache integration and you only need these steps if you want very fine-grained control-- in our case, automatically populating the ALT text of the image with the node title.

/admin/build/views/wizard

and

http://agaricdesign.com/note/how-theme-lots-views-agaric-way

and then a little

Getting trained by Eclipse PDT: Opening an existing folder of files as a project

So you have a directory structure of a project, say it's a giant site you're taking over, and you want to open it as a project in Eclipse PHP Development Tools (PDT) to be able to use the project-wide search and other cool tools.

I just spent an hour trying to do it through File » New PHP Project and then naming the existing spot in the file system for the folder with all the code. This did not work. It completed without error, but if it were even creating the project I have no idea where it was putting them.

Creating a project in the default location did work.

Syndicate content