One nice feature of the Wordpress K2 Theme is the option to display randomly changing header images. In order to have this feature in drupal, too, I ported the Wordpress code into the Drupal version of K2. It would be nice, if the developers could merge my patch into the CVS version! To use the patch: (1) patch < template.php.patch (2) include the line print randomheaderimage() into the html header in the page.tpl.php file to actually use the new functionality (3) create a folder k2/images/headers and place some 780x200px jpg/png/gif images into this folder.

CommentFileSizeAuthor
page.tpl_.php_.patch536 bytesjjh
template.php_.patch1.59 KBjjh

Comments

geshan’s picture

Issue tags: +Random Header

Try this for a change.

adisos’s picture

It's works. Thank you.

kenorb’s picture

Issue summary: View changes
Status: Active » Needs review
kenorb’s picture

Status: Needs review » Closed (outdated)

Closed because Drupal 5 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.