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".
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".
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??![]()
The "forgotten password" you are talking about appears to be generated by some custom code inserted in tpl_header.php.Exactly what does theHTML 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&action=process&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"> <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&zenid=85aft1mkq9mbhb9il5kp6el8h1">Forgotten Password</a> <a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=login&zenid=85aft1mkq9mbhb9il5kp6el8h1">Create Account</a><input name="securityToken" value="aa0836be6c498b25313075b1db8b35d4" type="hidden"></td></tr> </tbody></table></div> </div> </form>
<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>
Hm ok, thanks for that...I will have a look
The line reads
I will see if I can now sort this (will have to be tomorrow now)Code:<td> <a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=password_forgotten&zenid=85aft1mkq9mbhb9il5kp6el8h1">Forgotten Password</a> <a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=login&zenid=85aft1mkq9mbhb9il5kp6el8h1">Create Account</a><input name="securityToken" value="aa0836be6c498b25313075b1db8b35d4" type="hidden"></td>
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..
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.
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
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=...)
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
Thanks for the replies
Strange...that has solved it. (changed text within the tpl file)
So guess I will be able to pop the image in this place?Code:<td> <a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=password_forgotten&zenid=85aft1mkq9mbhb9il5kp6el8h1">Test6</a> <a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=login&zenid=85aft1mkq9mbhb9il5kp6el8h1">Create Account</a><input name="securityToken" value="aa0836be6c498b25313075b1db8b35d4" type="hidden"></td>
What bit of this code do I need to delete? Once I have deleted this bit will it work ok?
Thanks
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.Code:<td> <a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=password_forgotten&zenid=85aft1mkq9mbhb9il5kp6el8h1">Test6</a> <a class="menu" href="http://www.ampmgraphics.com/demo/index.php?main_page=login&zenid=85aft1mkq9mbhb9il5kp6el8h1">Create Account</a><input name="securityToken" value="aa0836be6c498b25313075b1db8b35d4" type="hidden"></td>
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.