Inline images in Drupal
Feb 19 2010to inline images in Drupal, I use the "insert" module.
Need to create an image field in a content type, via file + image. Then configure the field to 'enable' insert button. When the curser is placed on a position in the text field, you can upload an image using the image field and click insert.
Works well with "image resize" filter which allows you to resize on the fly when inserting.
Symlinks disabled on BlueHost
Feb 02 2010On Feb 2nd, Bluehost disabled Symlinks which breaks all the images on Drupal sites. There is a line of code that needs to be replaced in the sites/default/files/.htaccess file to fix this problem:
Change the line that says:
Options +FollowSymLinks
to be:
Options SymLinksIfOwnerMatch
Vignette in Photoshop
May 28 2009Create a new empty layer on top of the stack. Ctrl + Alt + Shift + N
Fill the layer with pure white. Shift + Backspace
Set the blend mode to “Multiply”. Alt + Shift + M
Apply the vignette filter to the new layer.
Filter >> Distort >> Lens Correction…
Mess with the “Amount” and “Midpoint” sliders in the “Vignette” section.
format the "submitted by" text in Drupal
Apr 09 2009I initially used the "submitted by" Drupal module but had a problem with the date appearing correctly using that module. So... placing this function in the template.tpl.php did the trick...
thanks to Tom, found this on codegobbler.com
The theme name just get's replaced by whatever your theme name is:
This is for posts:
function kirkdesigns_node_submitted($node) { return t('Posted by !username on @date', array( '!username' => theme('username', $node), '@date' => format_date($node->created, 'custom', 'd M Y') )); }
and this for the comments...
function kirkdesigns_comment_submitted($comment) { return t('Posted by !username on @date at about @time.', array( '!username' => theme('username', $comment), '@date' => format_date($comment->timestamp, 'custom', 'd M Y'), '@time' => format_date($comment->timestamp, 'custom', 'H:s') )); }
Simulate Borders in Photoshop
Mar 23 2009Easy way to simulate borders on photos in PS: Add stroke (1px, inside, grey), add Inner Glow (white, blend Normal, opacity 100%, choke 100%)
got this from cameronmolls feed
