vb.org Archive

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

Cole2026 12-09-2004 10:18 PM

Postbit Problem! :-(
 
1 Attachment(s)
I just finished coding a new type postbit for my forums, but it wont come out right for some reason, and I've looked through my code several times and cannot seem to find the problem. Could anyone tell me what is wrong, here is my postbit as well as an image of what is happening.
PHP Code:

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
    
$spacer_open
    
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
    <if 
condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>    
</if>

<
table class='tborder' id='post$post[postid]' cellpadding='$stylevar[cellpadding]' cellspacing='$stylevar[cellspacing]' border='0' width='100%'>
<
tr>
    <
td $scrolltothis>
        <
table width='100%' border='0' cellspacing='$stylevar[cellspacing]' cellpadding='$stylevar[cellpadding]' style="border-bottom:1px solid #DDDDDD; background-image:url(http://www.tikigames.com/boards/images/tikigames/postbit.gif);">
              <
tr>
                    <
td height='84' width='84' align='center' valign='middle' style='background-image:url(http://www.tikigames.com/boards/images/tikigames/avatarbg.gif) one-repeat;'>
                    <if 
condition="$show['avatar']"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurlheight="64" width="64" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" <if condition="$onlinestatus ==1">style="filter:alpha(opacity=50); -moz-opacity: 0.7;"</if> /></a></if>
                </
td>
                  <
td>
                       <
div id="postmenu_$post[postid]">
                      <if 
condition="$show['profile']">
                                    <
class="smallusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                                    
                                    <
script type="text/javascript"vbmenu_register("postmenu_$post[postid]"true); </script>
                                    <else />
                                    
$post[musername]
                    </if>
                     </
div>    
                         <if 
condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                         <if 
condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                    <
div>
                                            <
span class="smallfont">$vbphrase[posts]: $post[posts]</span>
                    </
div>
                    
$post[arcadeawards]
                  </
td>
                <
td>
                <
fieldset><legend>User Info</legend>
                
                    <if 
condition="$post['joindate']"><span class="smallfont">$vbphrase[join_date]: $post[joindate]</span><br /></if>
                    <if 
condition="$post['field2']"><span class="smallfont">$vbphrase[location_perm]: $post[field2]</span><br /></if>
                    <if 
condition="$post['age']"><span class="smallfont">$vbphrase[age]: $post[age]</span><br /></if>
                    
$post[icqicon$post[aimicon$post[msnicon$post[yahooicon]
                </
fieldset>
                </
td>
                <
td>
                <
fieldset><legend>User Reputation</legend>
                <if 
condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if>$post[reputationdisplay]</if>
                </
fieldset>
                </
td>
                  <
td>
                      <
div style="float:$stylevar[right];"><if condition="$bbuserinfo['usergroupid'] == 6 OR 7 OR 5"><img src="http://www.tikigames.com/boards/images/ranks/staff.jpg">
                    <else /><if 
condition="$bbuserinfo['usergroupid'] == 9"><img src="http://www.tikigames.com/boards/images/ranks/premium.jpg"></if></if>
                  </
td>
              </
tr>
        </
table>
    </
td>
</
tr>
<
tr>
    <
td class="thead" style="border-bottom:1px solid #DDDDDD;">
        <if 
condition="$show['messageicon'] OR $post['title']">
                    <!-- 
icon and title -->
                    <
div class="smallfont" style="float:$stylevar[left];" valign="middle">
                        <if 
condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]alt="$post[icontitle]border="0" /></if>
                        <if 
condition="$post['title']"><strong>$post[title]</strong></if>
                    </
div>
                    <!-- / 
icon and title -->
        </if>
        <if 
condition="$post['replylink']">
                    <
div style="float:$stylevar[right];">
                        <
a href="$post[replylink]"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]border="0" /></a>
                    </
div>
        </if>
    </
td>
</
tr>
    <
tr>
        <
td class="alt2">
        <!-- 
message -->
                <
div>$post[message]</div>
                <!-- / 
message -->
            
                <if 
condition="$show['attachments']">
                <!-- 
attachments -->
                    <
div style="padding:$stylevar[cellpadding]px">
                    
                    <if 
condition="$show['thumbnailattachment']">
                        <
fieldset class="fieldset">
                            <
legend>$vbphrase[attached_thumbnails]</legend>
                            <
div style="padding:$stylevar[formspacer]px">
                            
$post[thumbnailattachments]
                            </
div>
                        </
fieldset>
                    </if>
                
                    <if 
condition="$show['imageattachment']">
                        <
fieldset class="fieldset">
                            <
legend>$vbphrase[attached_images]</legend>
                            <
div style="padding:$stylevar[formspacer]px">
                            
$post[imageattachments]
                            </
div>
                        </
fieldset>
                    </if>
                    
                    <if 
condition="$show['imageattachmentlink']">
                        <
fieldset class="fieldset">
                            <
legend>$vbphrase[attached_images]</legend>
                            <
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
                            
$post[imageattachmentlinks]
                            </
table>
                            </
fieldset>
                    </if>
                    
                    <if 
condition="$show['otherattachment']">
                        <
fieldset class="fieldset">
                            <
legend>$vbphrase[attached_files]</legend>
                            <
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
                            
$post[otherattachments]
                            </
table>
                        </
fieldset>
                    </if>
                    
                    <if 
condition="$show['moderatedattachment']">
                        <
fieldset class="fieldset">
                            <
legend>$vbphrase[attachments_pending_approval]</legend>
                            <
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
                            
$post[moderatedattachments]
                            </
table>
                        </
fieldset>        
                    </if>
                    
                    </
div>
                <!-- / 
attachments -->
                </if>
                
                <if 
condition="$post['signature']">
                <!-- 
sig -->
                    <
div>
                        <
hr size="1" style="color:$stylevar[tborder_bgcolor]/><br />
                        
$post[signature]
                    </
div>
                <!-- / 
sig -->
                </if>
                
                <if 
condition="$show['postedited']">
                <!-- 
edit note -->
                    <
div class="smallfont">            <hr size="1" style="color:$stylevar[tborder_bgcolor]/>
                        <
em>
                        <
phrase 1="$post[edit_username]2="$post[edit_date]3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                        <if 
condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                        </
em>
                    </
div>
                <!-- / 
edit note -->
        </if>


    <
tr class="thead">
        <
td>
            <
div style="float:$stylevar[right];">
                <!-- 
controls -->
                            <if 
condition="$post['editlink']">
                                <
a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]border="0" /></a>
                            </if>
                            <if 
condition="$post['forwardlink']">
                                <
a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]border="0" /></a>
                            </if>
                            <if 
condition="THIS_SCRIPT=='showthread' and !is_browser('opera') and $post['editlink'] and $bbuserinfo[userid]>0">
                            
$quickedit
                            
</if>
                            <if 
condition="$SHOWQUICKREPLY AND !$show['threadedmode']">
                                <
a href="$post[replylink]onclick="return qr($post[postid]);"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]border="0" /></a>
                            </if>
                            <
a href="#top"><img src="http://www.tikigames.com/boards/images/tikigames/up.gif"></a>
                <!-- / 
controls -->
            </
div>
        </
td>
    </
tr>
    
</
table>
</
table>



<if 
condition="$show['spacer']">
    </
div>
    
$spacer_close
</if>

<!-- / 
post #$post[postid] --> 

Thanks! :D

Aros 12-11-2004 08:04 PM

Could you perhaps explain to us what is wrong with your postbit? I don't know what you want it to look like : )


All times are GMT. The time now is 03:27 PM.

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.01108 seconds
  • Memory Usage 1,864KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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