Add User avatar near username

bluescorpion said:
This should do what you are asking.

Tried adding this plugin using the provided instructions, but I get this-


Please Complete All Required Fields

The only field I haven't filled in is 'Plugin PHP Code Use this field to enter the PHP code that you would like to be run.'.

In the install notes it doesn;'t say what to put in here.

Any suggestions?
 
Oh.. my bad.

It fills this in automatically when you import the plugin.

This was my first 'plugin' that I've ever added to VB so excuse me.

Thanks again :)
 
bluescorpion said:
This should do what you are asking.

This worked a treat on my old styles and in 3.7.5 mate, but in 3.8.0 with green/ bluefox- It doesn't seem to work.

Is there an updated version of this maybe?
 
This is from the source code it was done manually


Code:
</head>
<body onload="">
<!-- logo -->
<a name="top"></a>
<div id="header">
<div id="container" style="width: 800px">
<div id="logo">
<div id="login">
[color=Red]<div id="avatar"></div>[/color]  <div id="panel">
			
		<!-- login form -->
		<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
		<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=3610"></script>
		<table cellpadding="0" cellspacing="3" border="0">
		<tr>
			<td class="smallfont"><label for="navbar_username">User Name</label></td>
			<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /></td>
			<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Remember Me?</label></td>
		</tr>
		<tr>
			<td class="smallfont"><label for="navbar_password">Password</label></td>
			<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
			<td><input type="submit" class="button" value="Log in" tabindex="104" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="s" /></td>
		</tr>
		</table>
		<input type="hidden" name="s" value="" />
	<input type="hidden" name="securitytoken" value="1b32464f24efe2c7a5ea647b3f0bf2e55e2b0a3c" />
		<input type="hidden" name="do" value="login" />		
		<input type="hidden" name="vb_login_md5password" />
		<input type="hidden" name="vb_login_md5password_utf" />
		</form>
		<!-- / login form -->

This is the additional css for the avatar and login panel
Code:
#avatar {
background: url(game/misc/avatar.gif) top left no-repeat;
width: 69px;
height: 62px;
padding-right: 14px;
text-align: center;
padding-top: 7px;
float: left;
}

#login {
float: right;
font-size: 11px;
}

#panel {
line-height: 18px;
padding-top: 8px;
margin-right: 15px;
}


just something to go buy or try to code your self.
 
mmmxiv said:
A link to the hack so I can go right along an get it for ya matey.

Oh right lol... I was sleepy at the time of posting.

I don't think it exists for 3.8.x

filez said:
This is from the source code it was done manually


Code:
</head>
<body onload="">
<!-- logo -->
<a name="top"></a>
<div id="header">
<div id="container" style="width: 800px">
<div id="logo">
<div id="login">
[color=Red]<div id="avatar"></div>[/color]  <div id="panel">
			
		<!-- login form -->
		<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
		<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=3610"></script>
		<table cellpadding="0" cellspacing="3" border="0">
		<tr>
			<td class="smallfont"><label for="navbar_username">User Name</label></td>
			<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /></td>
			<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Remember Me?</label></td>
		</tr>
		<tr>
			<td class="smallfont"><label for="navbar_password">Password</label></td>
			<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
			<td><input type="submit" class="button" value="Log in" tabindex="104" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="s" /></td>
		</tr>
		</table>
		<input type="hidden" name="s" value="" />
	<input type="hidden" name="securitytoken" value="1b32464f24efe2c7a5ea647b3f0bf2e55e2b0a3c" />
		<input type="hidden" name="do" value="login" />		
		<input type="hidden" name="vb_login_md5password" />
		<input type="hidden" name="vb_login_md5password_utf" />
		</form>
		<!-- / login form -->

This is the additional css for the avatar and login panel
Code:
#avatar {
background: url(game/misc/avatar.gif) top left no-repeat;
width: 69px;
height: 62px;
padding-right: 14px;
text-align: center;
padding-top: 7px;
float: left;
}

#login {
float: right;
font-size: 11px;
}

#panel {
line-height: 18px;
padding-top: 8px;
margin-right: 15px;
}


just something to go buy or try to code your self.

Thanks bud. I'll have a play around with it and see what I can come up with. :)
 
Back
Top