Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1. #11
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Is this possible? replacing text with image?

    If you have changed 'Forgotten Password' to something else, you shouldn't be able to find that in your files. That may be a positive sign. Now search for the text you changed it to. And be sure to try both searches on "all files", not "admin".

  2. #12
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Is this possible? replacing text with image?

    Thanks..yeah I did that. I changed it to 'Test5' and did a search and the four same files showed up...but still the text on the site hasn't changed??

  3. #13
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Is this possible? replacing text with image?

    The "forgotten password" you are talking about appears to be generated by some custom code inserted in tpl_header.php.
    HTML Code:
    <div id="headerLogin"><!--eof-branding display-->
    <!--eof-header logo and navigation display-->
                <form name="account_box" action="http://www.ampmgraphics.com/demo/index.php?main_page=login&amp;action=process&amp;zenid=85aft1mkq9mbhb9il5kp6el8h1" method="post"><div align="right">
    <table border="0" cellpadding="0" cellspacing="0">
    <tbody><tr> 
    <td class="boxText" align="right" valign="middle">Email:</td>
    <td class="boxText" align="right" valign="middle"><input name="email_address" size="10" type="text"></td>
    <td class="boxText" align="right" valign="middle">Password:</td>
    <td class="boxText" align="right" valign="middle"><input name="password" size="10" type="password"></td>
    <td class="boxText" align="right" valign="center">&nbsp;<input value="Log In" style="width: 40px;" type="submit"></td>
    <td> <a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=password_forgotten&amp;zenid=85aft1mkq9mbhb9il5kp6el8h1">Forgotten Password</a>&nbsp; &nbsp;<a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=login&amp;zenid=85aft1mkq9mbhb9il5kp6el8h1">Create Account</a><input name="securityToken" value="aa0836be6c498b25313075b1db8b35d4" type="hidden"></td></tr>
    
    </tbody></table></div>
    	</div>
                </form>
    Exactly what does the
    <td> <a class="menu"
    line look like in /includes/templates/red_passion/common/tpl_header.php?


    And by the way, your code in this snippet looks incorrect. It starts with
    <div>
    <form>
    <table>
    and ends with
    </table>
    </div>
    </div>
    </form>
    when it should end with
    </table>
    </form>
    </div>
    </div>

  4. #14
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Is this possible? replacing text with image?

    Hm ok, thanks for that...I will have a look

    The line reads

    Code:
    <td> <a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=password_forgotten&amp;zenid=85aft1mkq9mbhb9il5kp6el8h1">Forgotten Password</a>&nbsp; &nbsp;<a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=login&amp;zenid=85aft1mkq9mbhb9il5kp6el8h1">Create Account</a><input name="securityToken" value="aa0836be6c498b25313075b1db8b35d4" type="hidden"></td>
    I will see if I can now sort this (will have to be tomorrow now)

    In the meantime I have changed all the files back to contain forgotten password.

    Thanks for taking the time to look and help.

    Will let you know how I go..

  5. #15
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Is this possible? replacing text with image?

    That is what the line looks like in tpl_header.php?
    If so, you have hard-coded the text Forgotten Password into the file, and no defined constant is going to affect it.
    You have also included a zenid in the link, which would cause problems in use, essentially logging anyone who clicks the button into the session that was running when you copy/pasted the code.

  6. #16
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Is this possible? replacing text with image?

    Thanks again for the reply...

    Sorry you have lost me a little!

    So what exactly do I need to do to solve the issue?
    Thanks

  7. #17
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Is this possible? replacing text with image?

    On reflection, I'm not sure what you have done, as if you had hard-coded Forgotten Password into that file, it would have shown up in the Developers Toolkit search. Does the PHP file /includes/templates/red_passion/common/tpl_header.php contain the exact line you posted above?

    If it does, the quick fix would be to edit it to say whatever text you wanted to replace Forgotten Password. (And remove the zenid=...)

  8. #18
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default Re: Is this possible? replacing text with image?

    Glenn's right... it has been hardcoded somewhere, but the template's been heavily customised, so extablishing just how this has been done is not easy when looking at the page's html source.

    That Login header under the logo graphic is definitely a custom coded element, and as Glenn points out, is likely to be in your tpl_header.php file

    Open the following file:

    includes/templates/red_passion/common/tpl_header.php

    ... "copy" the contents of the file, and post them her on the forum (embrace this text using the CODE icon above - the one that looks like a speech bubble).

    If you do not have tpl_header.php in:
    includes/templates/red_passion/common/

    ... then look at the CORE file:
    includes/templates/template_default/common/tpl_header.php
    20 years a Zencart User

  9. #19
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Is this possible? replacing text with image?

    Thanks for the replies

    Strange...that has solved it. (changed text within the tpl file)

    Code:
    <td> <a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=password_forgotten&amp;zenid=85aft1mkq9mbhb9il5kp6el8h1">Test6</a>&nbsp; &nbsp;<a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=login&amp;zenid=85aft1mkq9mbhb9il5kp6el8h1">Create Account</a><input name="securityToken" value="aa0836be6c498b25313075b1db8b35d4" type="hidden"></td>
    So guess I will be able to pop the image in this place?

    What bit of this code do I need to delete? Once I have deleted this bit will it work ok?

    Thanks

  10. #20
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Is this possible? replacing text with image?

    Code:
    <td> <a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=password_forgotten&amp;zenid=85aft1mkq9mbhb9il5kp6el8h1">Test6</a>&nbsp; &nbsp;<a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=login&amp;zenid=85aft1mkq9mbhb9il5kp6el8h1">Create Account</a><input name="securityToken" value="aa0836be6c498b25313075b1db8b35d4" type="hidden"></td>
    Delete the parts in red - they are bad to have hard-coded. The part in green needs to be dynamically generated, and may need to match an existing dynamic number or it will fail - I don't know how the token works.

    What you really need is to locate the PHP code that generates this output; copy/pasting it as you appear to have done destroys its ability to act dynamically. You could just paste the image tag in place of the "Test6" text, but I am not sure it would operate correctly even after that.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replacing sub-Category image with a banner. is this possible?
    By cpoet in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Mar 2011, 04:40 AM
  2. Replacing More Info text with a button.
    By Jeniferous in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 24 Jan 2011, 07:28 PM
  3. replacing dropdown attribute text w/image
    By osmith in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 8 Jan 2009, 11:12 PM
  4. Replacing category text with images
    By d'Anjou in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 8 Apr 2008, 10:45 AM

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