I'm reading through and seems like a bunch of ppl had this issue. Basically, I'm working in page.tpl.php trying to get images to show up...

This code:

 <div id="buttons"><a href="http://www.youtube.com/IllinoisPSM" target="_blank"><img src="images/buttons/youtube-32x32.png" alt="utube" width="32" height="32" /></a><a href="http://www.linkedin.com/e/vgh/2006828/" target="_blank"><img src="images/buttons/linkedin-32x32.png" alt="linkedin" width="32" height="32" longdesc="http://www.linkedin.com" /></a><a href="http://twitter.com/IllinoisPSM" target="_blank"><img src="images/buttons/twitter-32x32.png" alt="Twitter" width="32" height="32" /></a><a href="http://www.facebook.com/pages/Illinois-PSM-University-of-Illinois-at-Urbana-Champaign/42355596680" target="_blank"><img src="images/buttons/facebook-32x32.png" alt="Facebook" width="32" height="32" /></a><a href="http://feeds2.feedburner.com/IllinoisPSM" target="_blank"><img src="images/buttons/rss-32x32.png" alt="RSS" width="32" height="32" /></a><a href="http://illinoispsm.blogspot.com/" target="_blank"><img src="images/buttons/blogger-32x32.png" alt="Blogger" width="32" height="32" /></a></div>   
 <div id="footer"  class="legal"> <a href="http://www.grad.uiuc.edu" target="_blank">Graduate College</a>&nbsp;&nbsp;l&nbsp;&nbsp;204 Coble Hall&nbsp;&nbsp;l&nbsp;&nbsp;801 S. Wright Street&nbsp;&nbsp;l&nbsp;&nbsp;Champaign, IL  61820&nbsp;&nbsp;l&nbsp;&nbsp;(217) 265-5363&nbsp;&nbsp;l&nbsp;&nbsp;<a href="mailto:PSMdegree@illinois.edu" class="legal">PSMdegree@illinois.edu</a>
    </div>

Is what I want to reproduce on all my pages. Pretend I don't know anything about css (which I actually I don't). What is the BEST PRACTICE way of going about handling making these images show up in the footer of my page.

Thanks,
Phil

Comments

markosaurus’s picture

Are you asking where you would find the code taht generates this HTML?

Or are you asking what to replace it with?

philliptackett’s picture

I actually figured out how to display the images. It was simply a path issue. My question was is the best way to deal with images to include the direct path link in your page.tpl.php file or is there a better way to do it.. perhaps through div tags or some other Drupal trick.

Thanks,
Phil

bchoc’s picture

You do not need to hard-code your images' paths, if that is what you're asking.
http://drupal.org/node/140944

philliptackett’s picture

Ok, so I don't need to hardcode the path to the images.. I get that.. how would you do the above code then?

Phil

superwhatever’s picture

<img src="<?php print base_path() . path_to_theme() ?>/images/image.gif" />