View Full Version : Put New PM next to Welcome Username
TimberFloorAu
01-05-2009, 11:16 PM
As per the title, I want to position the New PM gif , next to the username
So It appears like Welcome BOB, (new pm gif here )
See image below, for how it is displayed now. I have tried diff css attributes, struggling to get it looking right.
Ste
Bellardia
01-05-2009, 11:45 PM
As per the title, I want to position the New PM gif , next to the username
So It appears like Welcome BOB, (new pm gif here )
See image below, for how it is displayed now. I have tried diff css attributes, struggling to get it looking right.
Ste
I need the existing HTML and CSS attributes to try.
Depending on how it's set up will determine how to change it.
TimberFloorAu
01-05-2009, 11:52 PM
In header:
<table class="user_box_container" cellpadding="0" cellspacing="0" border="0" align="right">
<tr>
<td width="12" align="right"><img src="$stylevar[imgdir_misc]/userbox_left.gif" alt="" width="12" height="82" border="0" align="right" style="float:right; position:relative; left:3px;" /></td>
<if condition="$show['member']">
<td class="user_box" nowrap="nowrap" align="right">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
<if condition="$bbuserinfo['pmunread']">
<a href="http://www.yobromofo.com/forum/private.php?"><img border="0" src="http://www.yobromofo.com/images/newpm.gif" width="22" height="10"></a>
</if>
<!--mood bit-->$plus_mood_welcome_x<!--end of mood bit-->
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['notifications'] AND $show['popups']">
<div><span id="notifications"><a href="usercp.php?$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else /><if condition="$show['pmstats']">
<div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if></if>
<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
CSS:
Is applied in main css
--------------- Added 1231207518 at 1231207518 ---------------
Sorted. Just whacked in style=?float: right? within image attributes
Bellardia
01-06-2009, 12:15 AM
Here's your problem, you add a spacer after the welcome message
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
Remove this <br /> and try changing the image style to "display:inline;" instead of the float.
Add the <br /> after the <if> tags surrounding the image to keep the next line spaced properly.
Tell me what happens
TimberFloorAu
01-06-2009, 12:27 AM
Genius !
Good work Mate, that looks superb !
Appreciate that.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.