Webmaster Forum

Go Back   Webmaster Forum > Webmaster Discussion Forums > Web Design and Graphics

Notices

Reply
 
LinkBack Thread Tools Display Modes
Old 04-10-2008, 07:09 PM   #1
Regular Member
 
Join Date: Apr 2008
Location: California
Posts: 56
Credits: 1
Osirus is on a distinguished road
Send a message via MSN to Osirus Send a message via Yahoo to Osirus
Default [3.7.0]Welcome box in Header

This code will place your welcome box in your header

It is as simple as move the default code around a bit but I am adding a a few options soon 1) Avatar next to welcome box It took me awhile to get the exact location to make this code work correctly without messing up the tables.. And after searching the interweb and finding nothing I took it upon myself to try this out. I had it working on a old skin so it should still work.



Find in your header template:



Code:
<img border="0" src="URL TO YOUR BANNER" width="420" height="121" alt="$vboptions[bbtitle]" class="logo"/></a></td>


Add the following code after:



Code:
        <td width="670"><div class="afterlogo">

<!-- breadcrumb, login, pm info -->

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="60%" align="center">

<tr>

<if condition="$show['member']">  

 <td class="alt2" nowrap="nowrap">

 <div class="smallfont">

  <strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />

  <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>

  <if condition="$show['notifications']">

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

 </div>

 </td>   

<else />   

 <td class="alt2" nowrap="nowrap" style="padding:0px">    

  <!-- login form -->

  <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">

  <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>

  <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">

  <tr>

   <td class="smallfont"><label for="navbar_username">$vbphrase[username]</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="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>

   <td class="smallfont" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>

  </tr>

  <tr>

   <td class="smallfont"><label for="navbar_password">$vbphrase[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="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>

  </tr>

  </table>

  <input type="hidden" name="s" value="$session[sessionhash]" />

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

 </td>   

</if>

</tr>

</table>

<!-- / breadcrumb, login, pm info --></div></td>

      </tr>

    </table></td>

  </tr>

</table>
__________________
Wicked3X|3xGuilds.com|
"As long as darkness flows through my veins, I will never cease, As long as my dreams still haunt me, I will never show mercy, and as long as evil lives I will never die.....
Osirus is offline   Reply With Quote
Old 04-10-2008, 09:13 PM   #2
Counting 10,000 :D
 
Swastik's Avatar
 
Join Date: Mar 2008
Location: India
Posts: 494
Credits: 0
Swastik has a spectacular aura aboutSwastik has a spectacular aura about
Send a message via MSN to Swastik Send a message via Yahoo to Swastik
Default

Nice tutorial. But, if I want an image as the welcome box, then what should I do? I want to replace the text with an image.
Swastik is offline   Reply With Quote
Old 04-10-2008, 09:19 PM   #3
Administrator
 
Garala's Avatar
 
Join Date: Mar 2008
Location: Connecticut, USA
Posts: 1,295
My Mood:
Credits: 31
Garala is a jewel in the roughGarala is a jewel in the rough
Send a message via AIM to Garala Send a message via MSN to Garala Send a message via Yahoo to Garala
Default

Quote:
Originally Posted by Swastik View Post
Nice tutorial. But, if I want an image as the welcome box, then what should I do? I want to replace the text with an image.
After having Welcome Header Mod installed, you can just use this tutorial to convert text to an image.

[HOW-TO] Make your Welcome Headers an image! - vBulletin SEO Forums
Garala is offline   Reply With Quote
Old 04-10-2008, 10:29 PM   #4
Regular Member
 
Join Date: Apr 2008
Location: California
Posts: 56
Credits: 1
Osirus is on a distinguished road
Send a message via MSN to Osirus Send a message via Yahoo to Osirus
Default

Awesome Garala I will try to implement some of that into my tutorial if thats ok?
__________________
Wicked3X|3xGuilds.com|
"As long as darkness flows through my veins, I will never cease, As long as my dreams still haunt me, I will never show mercy, and as long as evil lives I will never die.....
Osirus is offline   Reply With Quote
Old 04-10-2008, 10:31 PM   #5
Counting 10,000 :D
 
Swastik's Avatar
 
Join Date: Mar 2008
Location: India
Posts: 494
Credits: 0
Swastik has a spectacular aura aboutSwastik has a spectacular aura about
Send a message via MSN to Swastik Send a message via Yahoo to Swastik
Default

@ Garala - Start working on the image man. We'll implement it ;)

- Swastik

Web-Talks management
Swastik is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make an unmovable header? joshchan214 Web Design and Graphics 8 06-07-2008 11:20 AM
[3.6-3.7]Floating Banner in header Osirus Web Design and Graphics 0 04-10-2008 07:12 PM



vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios