I want to add an image to my login page. I have the file /Themes/Default/Login.Template.php open.
I don't know what to add so that my image shows up at the top of the login page.
Can anybody help me please?
Do you wanted right above:
Username, Password?
A few lines from the top...
Find:
// Now just get the basic information - username, password, etc.
echo '
<dl>
<dt>', $txt['username'], ':</dt>
<dd><input type="text" name="user" size="20" value="', $context['default_username'], '" class="input_text" /></dd>
<dt>', $txt['password'], ':</dt>
<dd><input type="password" name="passwrd" value="', $context['default_password'], '" size="20" class="input_password" /></dd>
</dl>';
and add this after the echo'
<div align="center"><img src="URL TO YOUR IMAGE GOES HERE"</img></div>
above the username and pw would be great. I appreciate your help and have added it but i don't see the image. no error on the login page but i just don't see the image. below is what i have in there now
// Now just get the basic information - username, password, etc.
echo '
<div align="center"><img src="http://www.themonkeymafia.info/images/monkeyknifefight.jpg"</img></div>
<dl>
<dt>', $txt['username'], ':</dt>
<dd><input type="text" name="user" size="20" value="', $context['default_username'], '" class="input_text" /></dd>
<dt>', $txt['password'], ':</dt>
<dd><input type="password" name="passwrd" value="', $context['default_password'], '" size="20" class="input_password" /></dd>
</dl>';
Make sure the image is the code found a few lines from the top as they're several ones the same.
Lainaus käyttäjältä: bluedevil - elokuu 12, 2011, 04:02:48 IP
Make sure the image is the code found a few lines from the top as they're several ones the same.
sorry, i don't understand what you are saying here. i did try changing it to the code below and upped the jpg to the corresponding directory but still don't see the image on the login page.
// Now just get the basic information - username, password, etc.
echo '<div align="center"><img src="/icons/monkeyknifefight.jpg"</img></div>
<dl>
<dt>', $txt['username'], ':</dt>
<dd><input type="text" name="user" size="20" value="', $context['default_username'], '" class="input_text" /></dd>
<dt>', $txt['password'], ':</dt>
<dd><input type="password" name="passwrd" value="', $context['default_password'], '" size="20" class="input_password" /></dd>
</dl>';
The actual code for an image is:
<img src="URL TO IMAGE" alt="" />
So what you're really after is:
<div style="text-align: center;"><img src="http://www.themonkeymafia.info/images/monkeyknifefight.jpg" alt="" /></div>
thanks for the info, however I changed it to what you posted there and it still doesn't work.
should i be adding the logo in the /themese/default/login.template.php file or some place else?
upload your file here...
attached and thank you
The file looks fine. You should be able to see it when using this link /index.php?action=login
Try emptying the cache in admin.
ok its there if i use your extension http://www.themonkeymafia.info/forum/index.php?action=login
but on this link it doesn't show up and i would like it to be on both pages http://www.themonkeymafia.info/forum/index.php
can i just copy the line from the working page and paste it in another file?
Lainaus käyttäjältä: kkattfish - elokuu 15, 2011, 05:37:24 IP
ok its there if i use your extension http://www.themonkeymafia.info/forum/index.php?action=login
but on this link it doesn't show up and i would like it to be on both pages http://www.themonkeymafia.info/forum/index.php
can i just copy the line from the working page and paste it in another file?
Oh i see now.
Try it after:
// Show the message or default message.
echo '
See if that works..
you are a badass my friend, thanks a lot man. i will mark the topic as solved.
Lainaus käyttäjältä: kkattfish - elokuu 15, 2011, 05:52:18 IP
you are a badass my friend, thanks a lot man. i will mark the topic as solved.
No problem man. Glad it worked for ya ;)