Jonas Construction
Adding tracking code via template.php
Adding custom tracking Javascript confused me on doing it the Drupal way.
When the goal was adding:
<script type="text/javascript" language="javascript">llactid=14159</script>
<script type="text/javascript" language="javascript" src="http://trackalyze.example.com/trackalyze.js"></script>How is that first one done? just a straight call and that code?
Ask Agaric: Copying webforms
Is it currently possible to clone webforms? This would save a lot of time. If it is possible right now, please let me know how to do it.
The node clone module should do it (see http://drupal.org/node/279135 )
Synching a new Webform with Salesforce
http://example.com/admin/logs/salesforce/webform
"Ensure all Webforms are exposed to Salesforce"
The form will be exposed to Salesforce module. Then go back to:
http://example.com/admin/logs/salesforce
Where the form will be listed as disabled:
[See screenshot]
Configure first, and then enable.
Click the configure link:
Gathering the data needed to abuse field formatters-- disable and combine and change per node settings set by user
For old times sake... this is one of the last outputs like this before I use a properly integrated development environment, Eclipse PDT (for PHP) with xdebug, which will show all the variables without the Drupal set messaging and such.
Field_placement displaying using CCK field formatters
Fastest way to get just one result from a database table in Drupal
To get a single value result – one row from a just one column – the Drupal function for that is db_result(), which takes the result of db_query() as an argument.
Functions needed to define a new CCK field; Field placement module thoughts
If we were to implement Field Placement's imagecache preset option as a CCK field itself, here are (a lot of) the parts we would have to implement, drawn from imagefield itself. Many helper functions left out, but the below code is the gist of defining a CCK field type.
Fieldsets in Drupal forms: FAPI 5 syntax
Drupal fieldsets can also have a description.
<?php
$form['placement_imagecache'] = array(
'#type' => 'fieldset',
'#title' => t('Imagecache settings per content type'),
Apache access control the Agaric way
Clients don't like their test site competing with their live, production site for Google results. Therefore, we have put our entire set of test sites behind a pop-up requiring basic Apache authentication.
For ongoing maintenance — adding new people to access the test environment behind the authorization wall — the operative command is:
I love that no matter how many times I do it
I love that no matter how many times I do it – leave off a semicolon, have more opening than closing parentheses, or have an extra curly brace – the PHP parser still finds my error unexpected.
It's that kind of unconditional confidence that a coder needs to get through the day... and the night.
With XAMPP, permission denied for MySQL user with % (all) host access but works for localhost
For reasons not known to man nor beast, on XAMPP on Mac OS X (and not XAMP but another all in one WAMP stack, but not that name either) will not work with the wildcard availability host name (%). It will work (or anyhow may work for you, it worked for Agaric!) with the @localhost for host name.
