Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Linking Images
#1
Not Solved
Hi, what do I have to do to make my guest header so that the login doesn't display the "quick login" - I want it to link to /member.php?action=login
and have it display as an image, not text. Same with the register link.

Here's my header_welcomeblock_guest:
<script type="text/javascript">
<!--
	lang.username = "{$lang->login_username}";
	lang.password = "{$lang->login_password}";
	lang.login = "{$lang->login}";
	lang.lost_password = " &mdash; <a href=\"{$mybb->settings['bburl']}/member.php?action=lostpw\">{$lang->lost_password}<\/a>";
	lang.register_url = " &mdash; <a href=\"{$mybb->settings['bburl']}/member.php?action=register\">{$lang->welcome_register}<\/a>";
	lang.remember_me = "{$lang->remember_me}";
// -->
</script>

<span style="float: right;"><script type="text/javascript">
function UR_Start() 
{
	UR_Nu = new Date;
	UR_Indhold = showFilled(UR_Nu.getHours()) + ":" + showFilled(UR_Nu.getMinutes()) + ":" + showFilled(UR_Nu.getSeconds());
	document.getElementById("ur").innerHTML = UR_Indhold;
	setTimeout("UR_Start()",1000);
}
function showFilled(Value) 
{
	return (Value > 9) ? "" + Value : "0" + Value;
}

</script>
<font id="ur" size="4" face="Trebuchet MS, Verdana, Arial, sans-serif" color="#cc0000"></font>

<body onload="UR_Start()">






</span>













		<span id="quick_login">{$lang->welcome_guest} (<a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="MyBB.quickLogin(); return false;">{$lang->welcome_login}</a> &mdash; <a href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a>)</span>

#2
Not Solved
Replace
<a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="MyBB.quickLogin(); return false;">{$lang->welcome_login}</a>
with
<a href="{$mybb->settings['bburl']}/member.php?action=login"><img src="loginimg.png" alt="YOUR LOGIN IMAGE HERE" /></a>
Dennis Tsang
Former MyBB Team Member
Web: http://dennistt.net
#3
Not Solved
Thats what it was, had the direct image link in the wrong place, thanks again! Smile

Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)