PDA

View Full Version : Transparent table..


Mr Pink
02-26-2007, 12:28 PM
I'm using this code, in thje navbar template:

<!-- Member Navigator - Home Control Panel -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="40%" align="right">
<tr>
<td class="tcat" colspan="3" align="center">
<a style="float:$stylevar[left]" href="#top" onclick="return toggle_collapse('memberhome_panel')"><img id="collapseimg_memberhome_panel" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_memberhome_panel].gif" alt="Open/Hide Member Panel" border="0" /></a>
<a href='member.php?{$session[sessionurl]}u={$bbuserinfo['userid']}'>{$bbuserinfo['username']}</a>'s Member Home Panel
</td>
</tr>
<tbody id="collapseobj_memberhome_panel" style="$vbcollapse[collapseobj_memberhome_panel]">
<tr>
<td>
test ghfghfghfghfghfgg<br />
jfff <br />
fghj
</td>
</tr>
</tbody>
</table>
<!-- / Member Navigator - Home Control Panel -->

The problem is that it give me a transparency table.. and I don't know why!

http://img354.imageshack.us/img354/1125/immaginehp5.jpg

Can you help me please?
PS: If I use that code, it go over the forums main table.. I don't wanna this! How can I do?

CyberAlien
02-26-2007, 12:45 PM
What code do you have before that?

Mr Pink
02-26-2007, 12:48 PM
I've added also another men?, under the navbar.
Here my navbar entire code:

<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions</a></span> $navbits</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="" border="0" /><else /><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>

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

<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></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" colspan="2" 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 -->


[B]<!-- Member Navigator - Home Control Panel -->
<if condition="$show['member']">


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="40%" align="right">
<tr>
<td class="tcat" colspan="3" align="center">
<a style="float:$stylevar[left]" href="#top" onclick="return toggle_collapse('memberhome_panel')"><img id="collapseimg_memberhome_panel" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_memberhome_panel].gif" alt="Open/Hide Member Panel" border="0" /></a>
<a href='member.php?{$session[sessionurl]}u={$bbuserinfo['userid']}'>{$bbuserinfo['username']}</a>'s Member Home Panel
</td>
</tr>
<tbody id="collapseobj_memberhome_panel" style="$vbcollapse[collapseobj_memberhome_panel]">
<tr>
<td>
test ghfghfghfghfghfgg<br />
jfff <br />
fghj
</td>
</tr>
</tbody>
</table>

</if>
<!-- / Member Navigator - Home Control Panel -->




[B]<!-- Quick Links Menu -->
<if condition="$show['member']">
<div id="quicklinksmenu">
<ul>
<li><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></li>
<li><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></li>
<li><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></li>
<if condition="$show['wollink']">
<li>
<a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a>
</li>
</if>
</if>
</ul>
<br style="clear: left" />
<!-- / Quick Links Menu -->




<br />
<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>


</if>

CyberAlien
02-26-2007, 12:54 PM
In extra css add this:#quicklinksmenu { clear: both; }

Mr Pink
02-26-2007, 01:04 PM
Can I kiss you?

:D

Now the problem is that the quick links menu go down with the main table! I want it in the same line with the member panel..

http://img340.imageshack.us/img340/4513/immaginefa5.jpg

CyberAlien
02-26-2007, 01:08 PM
Undo that change in css, in navbar replace this:<br style="clear: left" />with this:<br style="clear: both;" />

Mr Pink
02-26-2007, 01:14 PM
Great, it works! You could be my teacher! :)