vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Put New PM next to Welcome Username (https://vborg.vbsupport.ru/showthread.php?t=200818)

TimberFloorAu 01-05-2009 11:16 PM

Put New PM next to Welcome Username
 
1 Attachment(s)
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

Quote:

Originally Posted by TimberFloorAu (Post 1702756)
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:

Code:

<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 [DATE]1231207518[/DATE] at [TIME]1231207518[/TIME] ---------------

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
Code:

<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.


All times are GMT. The time now is 02:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01349 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete