View Full Version : Login link as a graphic?
jmedinger
06-May-2003, 08:19 AM
Is it possible to change the text that Actinic inserts for NETQUOTEVAR:LOGINLINK (and similarly Actinic:LOGOUT_SIMPLE/) into graphics of my choosing?
I don't want to hard code the graphics in because when I use Actinic to generate the code, the relevent text appears in the same cell depending on whether the customer is logged in or not (a perfect solution except that I want to use graphics)
Cheers
Jos
cdicken
07-May-2003, 08:21 AM
The code for the login button is in prompt '1221' in 'Design | Text | Website | HTML'. (use the 'Go to' button to go straight to it.
<INPUT TYPE="BUTTON" NAME="ACTION" VALUE="%s" onClick="SubmitLogin();">
I dare say you could change this to
<INPUT TYPE="IMAGE" NAME="ACTION" SRC="cart1.gif" onClick="SubmitLogin();"><!-- %s -->
For the logout link, go to prompt 217 and replace:
%sLogout%s
with
%s<img src=...>%s
jmedinger
07-May-2003, 09:51 AM
Hi Chris,
This works great on the actual login page (replaces the 'submit' button) and also on the logout button.
I would also like to change the text that is input for ID 209 ('Login') into a graphic. Can I simply replace the text, 'Login' with something like
<img src="login1.gif" border="0">
Or does it need to be more complex than that?
Jos
cdicken
08-May-2003, 07:55 AM
I don't know.
What are you actually wanting to do?
jmedinger
08-May-2003, 08:37 AM
At the moment, when I use NETQUOTEVAR:LOGINLINK in the Act_Primary template, this is substituted for the text, 'Login' when published.
I want this to be substituted for a linked graphic instead of the linked text
In the same cell of the design I also have the code Actinic:LOGOUT_SIMPLE/ which your earlier post described how to replace with a graphic (which works fine)
The effect I am trying to achieve is that of the same cell being occupied EITHER by a 'Login' graphic or a 'Logout' graphic depending on whether the site visitor has loged in or not. (Gives the impression of being much more 'dynamic')
Hope this clarifies it!
Jos
cdicken
08-May-2003, 02:17 PM
Cool.
I see.
Change prompt ID 2183 to be the html for an image. You will need to copy the image into the 'PreviewHTML' folder in order for it to appear in a preview.
jmedinger
08-May-2003, 03:21 PM
Chris,
That's worked a treat
Can't believe I didn't spot the second instance of the word Login further down that Design | Text list :-)
Cheers
Jos
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.