the official blog of webthingee.com
blogthingee logo
  • to webthingee.com
  • DRUPAL BLOG
  • LOGIN
  • CONTACT
Home

php

Change that Form Element - Give a fieldset a class

  • code
  • drupal
  • php
  • theme
I looked for this a few times and didn't find it so I decided to write a quick blog post for future themers to discover. You see Drupal is full of forms and fields. There are any number of reasons that you may want an element on a form to be identified by a unique class or ID. I ran into this today when I wanted to theme a fieldset, provided by a module, that didn't have a class on the fieldset. Now there are many ways to theme a fieldset by using the divs that contain the fieldset.
  • webthingee's blog
  • 67 comments
  • Read more

It's hook_link_alter over jQuery or CSS alone

  • development
  • drupal
  • module
  • php

Last year I would have tried to approach this problem with some kind of image/text replacement... This year it's a whole new ballgame. The Drupal theming layer is like an onion and I continue to pull back the outer pieces and get to better and better stuff. Maybe it is more like a Parfait (thanks Donkey from Shrek) ;)

So here's what I wanted to do. Drupal gives us a teaser output with comment links.

3 comments | 2 new comments

Great, awesome, cool... great to have, now I want more... I want an image to replace the word "comments". I'm not going to rely on css alone... I'm not going to rely on some jQuery (which I love)... I'm going to use hook_link_alter and get it done in the code.

  • webthingee's blog
  • 95 comments
  • Read more

Preprocess for some Shortcuts

  • development
  • drupal
  • php
  • snippet
  • theme
I came across this little extra nugget while looking for some stuff for preprocessing. How many times have I typed out base_path and path_to_theme... With this little gem I am just a few keys faster, and lovin it.



function themename_preprocess(&$vars, $hook) {
$vars['theme_path'] = base_path() . path_to_theme() .'/';
}


  • webthingee's blog

.htaccess for PHP Memory Limit Increase

  • htaccess
  • php

php_value memory_limit 96M

Edit the .htaccess file in the Drupal root directory. Look for the section:

# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.

and immediately after this add the following line: use the snippet.

IE 6 yuck! Two choices for PNG Fix for not even a buck!

  • css
  • drupal
  • how to
  • php
  • png
  • theme

Am I the only one that wants a t-shirt that says "I Don't Support IE6"? Let's face it, not many people would get it, and I would just give the impression that I am a negative person. The fact is... I am a realist, and IE6 is going to be around for a while longer, at least long enough for me to keep finding newer better stronger ways to work around troublesome browser.

  • webthingee's blog
  • 41 comments
  • Read more

No More Coda Envy, I got WeBuilder 2008

  • drupal
  • php
  • text editor

I have been envious of my MAC wielding friends since seeing the features and capabilities of the Coda text editor. I have used Dreamweaver, Notepad, Notepad++, and tried software such as Aptana (which I really like), Programmers Notepad, Komodo Edit, Top Style, and Ultra Edit. They all have some good features and do things well, but not quite what I wanted. I have just stumbled upon WeBuilder 2008 and I have to say that so far (it's been about 24 hours) I really like it! So I decided to create a quick blog entry to share this resource would be a good idea.

  • webthingee's blog
  • 45 comments
  • Read more

Unique Class for Cool Drupal Menu Items

  • drupal
  • php
  • snippet
  • theme

I spend the majority of my time around Drupal in the areas of website building and in the theme layer. Anytime I can find things to make my theming life easier in either... I take it.

One of the 'limitations' (using that friendly) is the options for theming. IMPORTANT to note... Drupal 6 ROCKS!! THEMING!!. One of the important 'additions' I try to create when working in the theme layer is to improve my ability to use CSS. Some sites require fancy, creative, and/or custom stuff revolving around menus.
newlinks.png

  • webthingee's blog
  • 39 comments
  • Read more

Tagthingees

build code css design development drupal gmap how to jQuery module mysql php seo snippet software test text editor theme training trigger views views2 webform workflow
more tags

Recent blog posts

  • Change that Form Element - Give a fieldset a class
  • More Bigger Again - Preprocess - this time to get some Class
  • Too Much?! more power from your node.tpl
  • It's hook_link_alter over jQuery or CSS alone
  • Takeaways From Do It With Drupal
  • Cron run ?!? I can't get it to crawl!
  • Maybe I Don't Want that in my Form
  • This Themer's Path to a Pane
  • Module Shout Out! Semantic Views
  • Preprocess for some Shortcuts
more

Snippet-thingee

  • Get Rid of Split at Cursor
  • Cron in cPanel
  • .htaccess for PHP Memory Limit Increase
  • Drupal Set Message - short
  • Embed Webform (or node) into a Node
  • {View All Snippets}
Syndicate content