vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Weird Postbit Trouble (https://vborg.vbsupport.ru/showthread.php?t=86799)

Alchemyst 04-20-2003 10:58 PM

Weird Postbit Trouble
 
1 Attachment(s)
I'm having this weird trouble with my postbit and thread titles. Since I installed this "Post #" hack. With some posts the thread titles go into multi lines although they shouldn't, and in some they're normal. Anyway heres the postbit code:

Code:

<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%"><!-- spacer -->

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
        <td bgcolor="$post[backcolor]" width="175" valign="top" nowrap>
        <a name="post$post[postid]"></a>
        $post[firstnewinsert]
        <normalfont><b>$post[username]</b></normalfont><br>
<smallfont><b>$post[field9]</b></smallfont>
        <smallfont>$post[usertitle]</smallfont><br><br>
                   
                  $post[avatar] <br>

                    <p><smallfont><b>Spells Cast:</b> $post[posts]<br>
                    <strong>Gender:</strong> $post[field8]<br>
                    <strong>Coven:</strong> $post[field7]<br>
                    <b>Style:</b> <a href='index.php?styleid=$post[styleid]'>$post[styletitle]</a>
<p>$onlinestatus</p></smallfont>
</td>
       
        <td bgcolor="$post[backcolor]" width="100%" height="100%" valign="top">
<table width="100%" border="0" cellpadding="0" align="left" height="100%">
<tr>
<td bgcolor="$post[backcolor]" colspan="2" align="left" valign="top" height="20"><smallfont>$post[icon] <b>$post[title]</b></td><td align="right" height="20" valign="top"><a href="showthread.php?postid=$post[postid]#post$post[postid]"><smallfont>Post #$post[postcount]</smallfont></a></smallfont></td>
</tr>
<tr>
<td bgcolor="$post[backcolor]" colspan="3" align="left" valign="top">
<p><normalfont>$post[message]</normalfont></p></td>
</tr>
<tr>
<td bgcolor="$post[backcolor]" colspan="3" align="left" valign="bottom" height="20"> $post[attachment]</td>
</tr>
<tr>
<td bgcolor="$post[backcolor]" colspan="3" align="left" valign="bottom" >$post[signature]</td>
</tr>
<tr>
<td bgcolor="$post[backcolor]" align="left" colspan="2" valign="top" height="8"></td>
<td bgcolor="$post[backcolor]"  width="100%" colspan="2" align="right" valign="top" height="8"><smallfont><a href="javascript:openeditsigwindow(490,320,'$session[sessionhash]','$post[userid]')">Edit Sig</a> | <a href="modalert.php?s=$session[sessionhash]&postid=$post[postid]&username=$post[username]">Report this post to a Whitelighter</a> | $post[iplogged]</smallfont></td>
</tr>
</table>
</td>
</tr>
<tr>
        <td bgcolor="$post[backcolor]" width="175" height="16" nowrap><smallfont>$post[foldericon]
        $post[postdate] <font color="{timecolor}">$post[posttime]</font></smallfont></td>
       
        <td bgcolor="$post[backcolor]" width="100%" valign="middle" height="16">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr valign="bottom">
                        <td><smallfont>
                        $post[profile] $post[pmlink] $post[useremail] $post[homepage] $post[search] $post[buddy]
                        <!-- $ post[icqicon] --> <!-- $ post[aimicon] --> <!-- $ post[yahooicon] -->
                        </smallfont></td>
                        <td align="right" nowrap><smallfont>
                        <a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="{imagesfolder}/edit.gif" border="0" alt="Edit/Delete Message"></a>
                        <a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="{imagesfolder}/quote.gif" border="0" alt="Reply w/Quote"></a>
                        </smallfont></td>
                </tr>
                </table>
        </td>
</tr>
</table>
</td></tr></table>

<!-- spacer --></td><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td></tr></table>

The trouble is around here:

Code:

<td bgcolor="$post[backcolor]" width="100%" height="100%" valign="top">
<table width="100%" border="0" cellpadding="0" align="left" height="100%">
<tr>
<td bgcolor="$post[backcolor]" colspan="2" align="left" valign="top" height="20"><smallfont>$post[icon] <b>$post[title]</b></td><td align="right" height="20" valign="top"><a href="showthread.php?postid=$post[postid]#post$post[postid]"><smallfont>Post #$post[postcount]</smallfont></a></smallfont></td>
</tr>
<tr>

Any help would be greatly appriciated.

Brad 04-21-2003 12:14 AM

Change:

Code:

<td bgcolor="$post[backcolor]" width="100%" height="100%" valign="top">
<table width="100%" border="0" cellpadding="0" align="left" height="100%">
<tr>
<td bgcolor="$post[backcolor]" colspan="2" align="left" valign="top" height="20"><smallfont>$post[icon] <b>$post[title]</b></td><td align="right" height="20" valign="top"><a href="showthread.php?postid=$post[postid]#post$post[postid]"><smallfont>Post #$post[postcount]</smallfont></a></smallfont></td>
</tr>
<tr>

to:

Code:

<td bgcolor="$post[backcolor]" width="100%" height="100%" valign="top">
<table width="100%" border="0" cellpadding="0" align="left" height="100%">
<tr>
<td bgcolor="$post[backcolor]" colspan="2" align="left" valign="top" height="20" nowrap><smallfont>$post[icon] <b>$post[title]</b></td><td align="right" height="20" valign="top"><a href="showthread.php?postid=$post[postid]#post$post[postid]"><smallfont>Post #$post[postcount]</smallfont></a></smallfont></td>
</tr>
<tr>


Alchemyst 04-21-2003 12:16 AM

You are my god.


All times are GMT. The time now is 08:40 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.01311 seconds
  • Memory Usage 1,734KB
  • 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
  • (4)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