-
Get alias or system path: drupal_lookup_path
l function converts automatically system path in alias where available. This simple snippet ports this useful function on your raw HTML attributes, point to alias or to the system path. if(($nodepath = drupal_lookup_path(‘alias’,”node/”.$realnode->nid))===FALSE) $nodepath = base_path() . “node/”.$realnode->nid; Where $nodepath can be used on href Cfr. drupal_lookup_path
-
Views Theme Wizard on Zen: it works!
JohnAlbin writes a good tutorial about how to correct Views Theme Wizard on Zen Subthemes. I was looking for this solution some times ago, it’s very useful for views handling.
-
PDF cover thumbnails for attached files
Display a cover for any PDF attachment loaded on Drupal using Ghostscript.
-
Change framebuffer resolution
While trying to update kernel in order to run Virtualbox, i got a weird resolution error. On OS boot, screen blanks with an error like “Resolution is beyond allowed limits”. Since this happens before GUI is loaded, Xorg is innocent. I’ve installed the 915resolution patch for a widescreen HP, but it’s innocent too. Well, this […]
-
Howto merge *.001 to *.999 files on Linux
Someone give me some files named like this: video.zip.001, …, video.zip.999 Initially I think these was some multipart zip files, but they aren’t. Solution: On your sudo / root shell type: apt-get install lxsplit lxsplit -j video.zip.001 This will install LX Split (a command line HJSplit version for Linux) found on debian-multimedia.org repository to open […]