Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 12-09-2004, 10:18 PM
Cole2026 Cole2026 is offline
 
Join Date: Feb 2004
Location: Pittsburgh, PA
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Postbit Problem! :-(

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!
Attached Images
File Type: jpg tikigames.jpg (137.3 KB, 0 views)
Reply With Quote
Reply

Thread Tools
Display Modes

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:13 PM.


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.03800 seconds
  • Memory Usage 2,431KB
  • 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)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.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_threaded
  • showthread_threaded_construct_link
  • 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