I'm trying to create dropdown menus to match an existing site, and use the existing menu css. It's 99% working, but I need to add a class to links that have children. I'm currently doing this in my theme_menu_item_link function...
I thought it about time I write a module for a site I'm working on instead of writing code into the .tpl.php files.
I've got my module working fine - I've created a block to show a list of recent content that matches a set of parameters. (Unfortunately "views" module couldn't provide me with what I wanted.)
I'd like to be able to re-use this module code and set up a number of different blocks by passing in different parameters to it. Is this possible or do I need to create a different module for each block? What is best practice here?
Where the variable "$content" in the page-forum.tpl.php is generated? I need to change the formatting of post main (first post of thread), to insert an id in div or something that I can change the formatting. How I could make this?
My site allows users to post images in their blogs, however, these images are too wide and mess up the whole site. Is there a way to resize the image width using HTML with some type of filter?
Is it possible to use theme('pager') with arrays instead of database query results? If so, would someone be so kind as to post a simple bit of code showing how this would be done?