Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-20-2003, 10:58 PM
Alchemyst's Avatar
Alchemyst Alchemyst is offline
 
Join Date: Aug 2002
Location: Ireland
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Weird Postbit Trouble

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.
Attached Images
File Type: gif postbittroub.gif (29.8 KB, 0 views)
Reply With Quote
  #2  
Old 04-21-2003, 12:14 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #3  
Old 04-21-2003, 12:16 AM
Alchemyst's Avatar
Alchemyst Alchemyst is offline
 
Join Date: Aug 2002
Location: Ireland
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are my god.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 07:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03566 seconds
  • Memory Usage 2,206KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete