Guest Posted December 1, 2004 Share Posted December 1, 2004 Hi guys. Firstly - great forum. Downloaded and been playing with OSC for a few days now and really like it. My problem at the moment is that I want to add a new logo (and some other stuff) to the header.php file. Thing is, I noticed that linking to the images using the standard html doesn't work. I just get boxes with the red crosses in... So I've been trying to insert the images using PHP and the DIR_WS_IMAGES code, but can't seem to get it working...would appreciate any help. Here's how I have it at the moment (after much screwing around): <td height="130" valign="bottom"><?php tep_image(DIR_WS_IMAGES . 'banners/global_POTGLogo.jpg' ?></a><br> I think that maybe my syntax is all screwy...I get a Parse error. If you let me know the correct syntax I'll leave you guys alone :-" Also - how I can use the same method to add background image to all my pages? Thanks in advance. -Christian Link to comment Share on other sites More sharing options...
Jack_mcs Posted December 1, 2004 Share Posted December 1, 2004 You are almost there. Try this code <tr> <td align="top"><?php echo tep_image(DIR_WS_IMAGES . 'banners/global_POTGLogo.jpg'', 'Official PayPal Seal', '', '', " border='0'"); ?></td> </tr> When you need something like this, just look in one of the files for an example. As for your sites background image, edit the body section of the stylesheet.css file. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Guest Posted December 1, 2004 Share Posted December 1, 2004 Mr Jack, thanks very much for the swift response. However, now, I'm getting this: parse error, unexpected T_CONSTANT_ENCAPSED_STRING Perhaps it's something to do with the placement of my quotes or something? I have fiddled a little to no avail... Thanks. -Christian Link to comment Share on other sites More sharing options...
Guest Posted December 1, 2004 Share Posted December 1, 2004 Found the source of the parse error - I had an extra ' in my code! Sorry... It works a treat now - thanks very much for your help. :D -Christian Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.