vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Post bit menus no longer hidden... (https://vborg.vbsupport.ru/showthread.php?t=204962)

nando99 02-11-2009 02:28 AM

Post bit menus no longer hidden...
 
1 Attachment(s)
I've uploaded a screen shot of what it looks like....

I have no idea what the problem is... I've moved things around in the postbit template in so many ways I'm not sure what I haven't tried yet... lol

here's my postbit template, anyone see the problem? bc I sure don't.... its customized up the yin yang fyi... :erm:

Code:

$template_hook[postbit_start]
$template_hook[postbit_messagearea_start]


<if condition="$post[postcount] == 1">

<if condition="!in_array($GLOBALS[forumid], array(141))">

<table width="725" style="margin-bottom:10px;" border="0" cellpadding="0" cellspacing="0" class="tbpost">
<tr>
  <td width="160" valign="top" style="border: solid 1px #999999; background-color:#373737; color:#FFFFFF; padding:5px; width:160px;"><div align="center"> <a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]"  border="0" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]
      </phrase>
      " /></a> </div>
                              <div class="smallfont">
                                &nbsp;<br />
                                <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                                <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                                <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                                <div>
</td>
  <td width="10" valign="top">&nbsp;</td>
  <td width="515" valign="top" style="border: solid 1px #999999; background-color:#FFFFFF; padding:5px;"><h1>$post[title] </h1>
    <div class="smallfont">
      <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> </if>
      Posted by <span id="postmenu_$post[postid]">
                                        <if condition="$show['profile']">
                                        <a href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                                        $post[onlinestatus]
                                        <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                        <else />
                                        $post[musername]
                                        </if>
                                </span> $post[postdate], $post[posttime] </div>
    <hr class="divchr" align="left">
$post[message] <br />
<if condition="$thread[prefix_plain_html] == 'Funny Videos' OR $thread[prefix_plain_html] == 'Eye Candy Videos'">
<else />
<if condition="$show['attachments']"> <br clear="all"/>
  <!-- attachments -->
  <div>
    <if condition="$show['thumbnailattachment']">
      <table width="330" align="center">
        <tr>
          <td> $post[thumbnailattachments] </td>
        </tr>
      </table>
    </if>
    <if condition="$show['imageattachment']">
      <table width="80%" align="center">
        <tr>
          <td><div style="padding:$stylevar[formspacer]px"> $post[imageattachments] </div></td>
        </tr>
      </table>
    </if>
    <if condition="$show['imageattachmentlink']">
      <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="80%" align="center">
        $post[imageattachmentlinks]
      </table>
    </if>
    <if condition="$show['otherattachment']">
      <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="80%" align="center">
        $post[otherattachments]
      </table>
    </if>
    <if condition="$show['moderatedattachment']">
      <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="80%" align="center">
        $post[moderatedattachments]
      </table>
    </if>
  </div>
  <!-- / attachments -->
</if>
</if>
<if condition="$show['postedited']"> <br clear="all">
  <!-- edit note -->
  <div class="smallfont">
    <hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
    <em>
    <if condition="$show['postedithistory']">
      <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>
      .
      <else />
      <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>
      . </if>
    <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
    </em> </div>
  <!-- / edit note -->
</if>
<br clear="all" />
<div class="poptions">
  <if condition="$show['inlinemod']">
    <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:bottom; padding-top:4px; float:right;" value="$post[checkbox_value]" />
  </if>
    <if condition="$show['reportlink']"> <a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow">$vbphrase[report_bad_post] -</a> </if>
    <if condition="$post['forwardlink']"> <a href="$post[forwardlink]">$vbphrase[forward_message] -</a> </if>
    <if condition="$post['replylink']"> <a href="$post[replylink]" rel="nofollow">$vbphrase[reply_with_quote] -</a> </if>
  <if condition="$post['editlink']"> <a href="$post[editlink]">$vbphrase[edit_delete_message] -</a> </if>
</div>
</td>
</tr>
<table>


 <else />
<!-- / BOTB post#1 -->



<table width="725" style="margin-bottom:10px;" border="0" cellpadding="0" cellspacing="0">
<tr>
  <td width="100%" valign="top" style="border: solid 1px #999999; background-color:#FFFFFF; padding:5px;">
  <h1 style="text-align:center; font-size:18px;">$post[title] </h2>
    $post[message] <br />
    <if condition="$thread[prefix_plain_html] == 'Funny Videos' OR $thread[prefix_plain_html] == 'Eye Candy Videos'">
      <else />
      <if condition="$show['attachments']"> <br clear="all"/>
        <!-- attachments -->
        <div>
          <if condition="$show['thumbnailattachment']">
            <table width="330" align="center">
              <tr>
                <td> $post[thumbnailattachments] </td>
              </tr>
            </table>
          </if>
          <if condition="$show['imageattachment']">
            <table width="80%" align="center">
              <tr>
                <td><div style="padding:$stylevar[formspacer]px"> $post[imageattachments] </div></td>
              </tr>
            </table>
          </if>
          <if condition="$show['imageattachmentlink']">
            <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="80%" align="center">
              $post[imageattachmentlinks]
            </table>
          </if>
          <if condition="$show['otherattachment']">
            <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="80%" align="center">
              $post[otherattachments]
            </table>
          </if>
          <if condition="$show['moderatedattachment']">
            <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="80%" align="center">
              $post[moderatedattachments]
            </table>
          </if>
        </div>
        <!-- / attachments -->
      </if>
      </if>
      <div class="smallfont" style="text-align:center;">
        <p>
          <script language=JavaScript>
document.write ('<a href="');
document.write('http://www.stumbleupon.com/submit?url='+document.URL+'&title='+document.title.replace(/ /g,'+')+'" target="_blank">');
document.write ('<img border=0 src=http://cdn.stumble-upon.com/images/160x30_su_black.gif></a>');
</script>
        </p>
        <strong>Please Remember</strong> <br />
        Poll Closes a week from $post[postdate].<br />
        A reply and StumbleUpon's thumbs up is required to qualify for the <a href="http://www.fatboymag.com/forums/general-discussions/38980-the-battle-of-the-babes-start-now/" target="_blank" />monthly contest</a> sponsored by our good friends @ <a href="http://www.roadkilltshirts.com" target="_blank" />RoadKillTShirts.com</a>. <br />
        <a href="http://www.roadkilltshirts.com" target="_blank" /><img src="http://www.fatboymag.com/rk_logo-post.jpg" border="0" /></a> </div>
   
    <if condition="$show['postedited']"> <br clear="all">
      <!-- edit note -->
      <div class="smallfont">
        <hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
        <em>
        <if condition="$show['postedithistory']">
          <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>
          .
          <else />
          <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>
          . </if>
        <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
        </em> </div>
      <!-- / edit note -->
    </if>
      <if condition="$show['inlinemod']">   
      <br clear="all" />
    <div class="poptions">
        <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:bottom; padding-top:4px; float:right;" value="$post[checkbox_value]" />
    </div>
      </if>
   
    </td>
</tr>
<table>

</if>

<else />
<!-- / post#2 -->


<table width="725" style="margin-bottom:10px;" border="0" cellpadding="0" cellspacing="0">
<tr>
  <td width="160" valign="top" style="border: solid 1px #999999; background-color:#cccccc; color:#000000; padding:5px; width:160px;">
  <div align="center">
  <a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]"  border="0" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" /></a>
      </div></td>
  <td width="10" valign="top">&nbsp;</td>
  <td width="515" valign="top" style="border: solid 1px #cccccc; background-color:#FFFFFF; padding:5px;">
    <div class="smallfont">
      <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> </if>
      Posted by <span id="postmenu_$post[postid]">
                                        <if condition="$show['profile']">
                                        <a href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                                        $post[onlinestatus]
                                        <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                        <else />
                                        $post[musername]
                                        </if>
                                </span> $post[postdate], $post[posttime] </div>
    <hr class="divchr" align="left">
$post[message] <br />
<if condition="$thread[prefix_plain_html] == 'Funny Videos' OR $thread[prefix_plain_html] == 'Eye Candy Videos'">
<else />
<if condition="$show['attachments']"> <br clear="all"/>
  <!-- attachments -->
  <div>
    <if condition="$show['thumbnailattachment']">
      <table width="330" align="center">
        <tr>
          <td> $post[thumbnailattachments] </td>
        </tr>
      </table>
    </if>
    <if condition="$show['imageattachment']">
      <table width="80%" align="center">
        <tr>
          <td><div style="padding:$stylevar[formspacer]px"> $post[imageattachments] </div></td>
        </tr>
      </table>
    </if>
    <if condition="$show['imageattachmentlink']">
      <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="80%" align="center">
        $post[imageattachmentlinks]
      </table>
    </if>
    <if condition="$show['otherattachment']">
      <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="80%" align="center">
        $post[otherattachments]
      </table>
    </if>
    <if condition="$show['moderatedattachment']">
      <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="80%" align="center">
        $post[moderatedattachments]
      </table>
    </if>
  </div>
  <!-- / attachments -->
</if>
</if>
<if condition="$show['postedited']"> <br clear="all">
  <!-- edit note -->
  <div class="smallfont">
    <hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
    <em>
    <if condition="$show['postedithistory']">
      <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>
      .
      <else />
      <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>
      . </if>
    <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
    </em> </div>
  <!-- / edit note -->
</if>
<br clear="all" />
<div class="poptions">
  <if condition="$show['inlinemod']">
    <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:bottom; padding-top:4px; float:right;" value="$post[checkbox_value]" />
  </if>

    <if condition="$show['reportlink']"> <a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow">$vbphrase[report_bad_post] -</a> </if>
    <if condition="$post['forwardlink']"> <a href="$post[forwardlink]">$vbphrase[forward_message] -</a> </if>
    <if condition="$post['replylink']"> <a href="$post[replylink]" rel="nofollow">$vbphrase[reply_with_quote] -</a> </if>
  <if condition="$post['editlink']"> <a href="$post[editlink]">$vbphrase[edit_delete_message] -</a> </if>
</div>
</td>
</tr>
<table>
</if>


<if condition="!in_array($GLOBALS[forumid], array(102,140,105,122,137,133,135))">
<if condition="$post[postcount] == 1">
<table width="725" style="margin-bottom:10px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" style="border: solid 1px #999999; background-color:#FFFFFF; padding:5px; text-align:center" align="center">
      <script type="text/javascript"><!--
google_ad_client = "pub-2949491656979522";
/* fbm-post1 468x60, created 12/2/08 */
google_ad_slot = "3774276022";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
      <script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td></tr></table>
</if>
<if condition="$post[postcount] == 3">
<table width="725" style="margin-bottom:10px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" style="border: solid 1px #999999; background-color:#FFFFFF; padding:5px; text-align:center" align="center">
      <script type="text/javascript"><!--
google_ad_client = "pub-2949491656979522";
/* fbm-post2 468x15, created 12/2/08 */
google_ad_slot = "0557178965";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
      <script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td></tr></table>
</if>
<if condition="$post[postcount] == 5">
<table width="725" style="margin-bottom:10px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" style="border: solid 1px #999999; background-color:#FFFFFF; padding:5px; text-align:center" align="center">
      <script type="text/javascript"><!--
google_ad_client = "pub-2949491656979522";
/* fbm-post2 468x15, created 12/2/08 */
google_ad_slot = "0557178965";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
      <script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td></tr></table>
</if>
<if condition="$post[postcount] == 7">
<table width="725" style="margin-bottom:10px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" style="border: solid 1px #999999; background-color:#FFFFFF; padding:5px; text-align:center" align="center">
      <script type="text/javascript"><!--
google_ad_client = "pub-2949491656979522";
/* fbm-post2 468x15, created 12/2/08 */
google_ad_slot = "0557178965";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
      <script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td></tr></table>
</if>
</if>


$template_hook[postbit_end]

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none;">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$post[username]</td>
        </tr>
        <if condition="$show['profile']">
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
        </if>
        <if condition="$show['pmlink']">
                <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['emaillink']">
                <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['homepage']">
                <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
        </if>
        <if condition="$show['search']">
                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
        </if>
        <if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr>
        </if>
        $template_hook[postbit_user_popup]
        </table>
</div>
<!-- / post $post[postid] popup menu -->

thanks in advance...

Lynne 02-11-2009 03:20 AM

Ugh, that template is so different than the normal one. I'd guess I'd start with a default template and start adding in the changes one-by-one. And then after you get it right, export the style so you have a copy on your harddrive in case you do something like this again. (I don't suppose you have a recent export of your style so you can put that postbit template back?)

nando99 02-12-2009 11:17 AM

I have no idea what it was but it had something to do with the tables... i switched all tables to divs and left everything else the same and it worked... thanks though...


All times are GMT. The time now is 08:27 AM.

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.01170 seconds
  • Memory Usage 1,861KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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