Submitted by Guest on Tue, 05/25/2010 - 1:57am

A few thoughts on your code examples. eregi is currently depricated (not to mention slow) and will not exist at all in PHP 6. preg_match() or strpos(strtolower()) would be the better way to go.

Also page.tpl.php should generally not contain if statements. A preprocess function in template.php would be the better choice.

cheers
dalin
Advomatic LLC

The content of this field is kept private and will not be shown publicly.

Plain text

  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.