Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: Adding an Image inside PHP code

    I would check to see if https://www.limelites.co.uk/includes...nt_methods.jpg gives you the correct picture...

    Then I would check the source code when you view the page, to see if the url is being inserted into the html

    Then I would check to see if the correct file is being edited, as I see you are changing the original file, and not a copy in your override folder...
    ~Steve~

  2. #12
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Adding an Image inside PHP code?

    steve, I managed to get this working thanks.

    I had accidentally inserted the same line twice into my nochex_acp.php file.

    The simple solution then is this:

    replace:
    PHP Code:
      define('MODULE_PAYMENT_NOCHEX_TEXT_CATALOG_TITLE''Credit or Debit Card (SSL Secure) '); 
    with this:
    PHP Code:
      define('MODULE_PAYMENT_NOCHEX_TEXT_CATALOG_TITLE''<img src="https://url_to_payment_cards.gif"> Credit or Debit Card (SSL Secure)'); 
    I had inadvertently inserted a complete new line which wasn't being picked up due to a duplicate define 3 lines above it.

    Thanks ever so much for replying, it definitely looks a million times better on the checkout page now.

    Now.... onto my final problem... this one is also really difficult and I'm having a tough time solving :-)

  3. #13
    Join Date
    Jul 2009
    Posts
    71
    Plugin Contributions
    0

    Default Re: Adding an Image inside PHP code?

    Quote Originally Posted by limelites View Post
    steve, I managed to get this working thanks.

    I had accidentally inserted the same line twice into my nochex_acp.php file.

    The simple solution then is this:

    replace:
    PHP Code:
      define('MODULE_PAYMENT_NOCHEX_TEXT_CATALOG_TITLE''Credit or Debit Card (SSL Secure) '); 
    with this:
    PHP Code:
      define('MODULE_PAYMENT_NOCHEX_TEXT_CATALOG_TITLE''<img src="https://url_to_payment_cards.gif"> Credit or Debit Card (SSL Secure)'); 
    I had inadvertently inserted a complete new line which wasn't being picked up due to a duplicate define 3 lines above it.

    Thanks ever so much for replying, it definitely looks a million times better on the checkout page now.

    Now.... onto my final problem... this one is also really difficult and I'm having a tough time solving :-)
    did you ever figure out how to get the ALT info to show up when you include images this way? i have the ALT text right after the img src but when i hover over the image no ALT text shows up.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. PHP code inside of an EZ page
    By tcarden in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Dec 2012, 05:19 PM
  2. Adding Php code to homepage
    By tracstev in forum General Questions
    Replies: 2
    Last Post: 8 Nov 2011, 01:01 PM
  3. New products on home page - where's the php code inside tpl_header?
    By Thannaree in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 10 Jun 2011, 11:16 AM
  4. adding a sidebox with image inside
    By steve1965 in forum Addon Sideboxes
    Replies: 4
    Last Post: 21 Aug 2008, 03:56 PM
  5. Entering HTM Code into PHP Files - Adding Live Search to search_header.php
    By Jump Network in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Sep 2007, 02:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg