![]() | | ||||||||||
| |||||||||||
| |||||||
| Notices |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| Regular Member Join Date: Apr 2008 Location: California
Posts: 56
Credits: 1 ![]() | 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..... |
| | |
| | #2 |
| Counting 10,000 :D Join Date: Mar 2008 Location: India
Posts: 494
Credits: 0 ![]() ![]() | 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. |
| | |
| | #3 | |
| Administrator ![]() | Quote:
[HOW-TO] Make your Welcome Headers an image! - vBulletin SEO Forums | |
| | |
| | #4 |
| Regular Member Join Date: Apr 2008 Location: California
Posts: 56
Credits: 1 ![]() | 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..... |
| | |
| | #5 |
| Counting 10,000 :D Join Date: Mar 2008 Location: India
Posts: 494
Credits: 0 ![]() ![]() | @ Garala - Start working on the image man. We'll implement it ;) - Swastik Web-Talks management |
| | |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
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 |