Profile
Achievement
zachharkey's Recent SnippetsTagged drupal
- All /
While these examples convert Markdown fields to HTML for use in CKEditor, the same method can be used to render the filters of any input_format.
0
1128
posted 14 years ago by zachharkey
Dumps a space separated list of enabled modules to a text file mods_enabled.txt
1
976
posted 15 years ago by zachharkey
Administering more than one node at a time through the Drupal admin interface is like drinking a milkshake through a buckytube.
[How to use phpmyadmin and sql to perform mass operations on nodes](http://drupal.org/node/134535)
1
856
posted 15 years ago by zachharkey
In case you don't feel like loading 3 pages to edit a single url alias.
1
828
posted 15 years ago by zachharkey
Replace and append the following settings in modules/fckeditor/fckeditor.config.js. Has to be re applied after each update.
0
744
posted 15 years ago by zachharkey
Replacement config settings for the Drupal FCKeditor module. Replace contents of .../modules/fckeditor/fckeditor.config.js
0
856
posted 15 years ago by zachharkey
PHP
Rewrite Drupal's File system paths to remove redundant sites/example.com (alternate settings.php method)
Alternate to <a href="http://snipplr.com/view/133530">this method</a>. Have not yet tested.
In settings.php, put this code:
0
727
posted 15 years ago by zachharkey
My [original post](http://drupal.org/node/84895) languished for years before someone pointed out a possible solution [here](http://drupal.org/node/53705).
The following user-submitted code may be useful in redirecting URLs for the /files directory...
0
790
posted 15 years ago by zachharkey
We wanted to change all /films/example style paths to /film/example (basically remove the 's').
Here was the query that worked:
1
654
posted 15 years ago by zachharkey
Nice tip for doing global search/replace on database, taken from the excellent warner brothers records writeup.
0
669
posted 15 years ago by zachharkey
Thanks to [James](
http://www.girsbrain.org/blog
) for this code.
0
697
posted 15 years ago by zachharkey
This is a replacement for the default PHP settings in Drupal's .htaccess file. Increasing the memory_limit, max_post_size etc. prevents a lot of errors, especially when using image modules.
0
818
posted 15 years ago by zachharkey
Create theme override file: `upload_attachments.tpl.php` in your theme directory.
[CSS styles](http://snipplr.com/view/11848)
2
904
posted 15 years ago by zachharkey
The following styles are designed to work with the markup from a custom theme override template called [upload_attachments.tpl.php](http://snipplr.com/view/11851)
1
944
posted 15 years ago by zachharkey