vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/showthread.php?t=71992)

sv1cec 12-15-2004 10:00 AM

Quote:

Originally Posted by jluerken
Hi,

I have one small last error with this hack in version 2.3.1.

If I take a look in the threads I get an display error in the Internet Explorer.
Please take a look at the screenshot.

Can someone send me the correct modified template or post it here please?

You have left something there, it should be in your postbit template.

jluerken 12-15-2004 10:10 AM

Quote:

Originally Posted by sv1cec
You have left something there, it should be in your postbit template.

Can you please post yours here like you did with the MEMBERINFO template for me?

sv1cec 12-15-2004 10:32 AM

Quote:

Originally Posted by jluerken
Can you please post yours here like you did with the MEMBERINFO template for me?

I could, but mine contains some other hacks as well, so I'd better see yours. Post here the part which starts from the beginning and ends somewhere around where the checks for warning system start.

Rgds

jluerken 12-15-2004 10:42 AM

Quote:

Originally Posted by sv1cec
I could, but mine contains some other hacks as well, so I'd better see yours. Post here the part which starts from the beginning and ends somewhere around where the checks for warning system start.

Rgds

Here we go

PHP Code:

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
    <!-- 
$spacer_open -->
        <!-- 
open content container -->
<if 
condition="$show['old_explorer']">
    <
table cellpadding="0" cellspacing="0" border="0" width="$stylevar[outertablewidth]align="center"><tr><td class="page" style="padding:0px 0px 0px 0px">
<else />
    <
div align="center">
        <
div class="page" style="width:$stylevar[outerdivwidth]; text-align:$stylevar[left]">
            <
div style="padding:0px 0px 0px 0px">

</if> 
     <
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%" align="center">
<
tr>
    <
td class="thead" $scrolltothis>
        <
div class="normal" style="float:$stylevar[right]">
            &
nbsp;

<!-- 
checks for warning system -->
<if 
condition="THIS_SCRIPT=='showthread'">
<if 
condition="$hierarchical=='No'">
    <if 
condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
    <
a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> ? 
    </if>
    <if 
condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6)">
    <
a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> ?
    </if>
    <if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND $post[warning_level]>0">
    <a href='
Warn.php?do=ViewMyWarnings'>View your Warnings</a> ?
    </if>
</if>
<if condition="$hierarchical=='
Yes'">
    <if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])) OR ($post[usergroupid]==7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid]) AND $bbuserinfo[usergroupid]==5) OR 
    ($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)">
    <a href='
Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> ? 
    </if>
    <if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5)) OR ($post[usergroupid]==7 AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)">
    <a href='
Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> ?
    </if>
    <if 
condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]!=6 AND $post[warning_level]>0">
    <
a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a> ?
    </if>
</if>
</if>

<!-- 
end of warning system -->
            <if 
condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a> &nbsp;</if>
            
<if condition="$show['reputationlink']"><a href="#" onclick="return reputation($post[postid])"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> &nbsp;</if>
            <if 
condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]border="0" /></a> &nbsp;</if>
            
$post[iplogged]
        </
div>
        <
div class="normal">
            <!-- 
status icon and date -->
            <
a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]border="0" /></a>
            <if 
condition="!$show['start_until_end']">
                
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
            <else />
                <
phrase 1="$post[startdate]2="$post[enddate]">$vbphrase[x_until_y]</phrase>
            </if>
            
$post[firstnewinsert]
            <!-- / 
status icon and date -->
        </
div>
    </
td>
</
tr>
<
tr>
    <
td class="alt2" style="padding:0px">
        <!-- 
user info -->
        <
table cellpadding="0" cellspacing="$stylevar[cellpadding]border="0" width="100%">
        <
tr>
            <if 
condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurlalt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
            <
td nowrap="nowrap">
            
                <
div id="postmenu_$post[postid]">
                    <if 
condition="$show['profile']">
                    <
class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><if condition="$post[field5]"><b>$post[field5]</b><else /><b>$post[musername]</b></if></a>
                    
$post[onlinestatus]
                    <
script type="text/javascript"vbmenu_register("postmenu_$post[postid]"true); </script>
                    <else />
                    <if 
condition="$post[field5]">$post[field5]<else />$post[musername]</if>
                    </if>
                </
div>
                
                <if 
condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                <if 
condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
$post[arcadeawards]                
            </
td>
            <
td width="100%">&nbsp;</td>
            <
td valign="top" nowrap="nowrap">
                
                <
div class="smallfont">
                    <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>
                        
$vbphrase[posts]: $post[posts]
                        <if 
condition="$show['reputation']">$post[reputationdisplay]</if>
<if 
condition="$viewoption=='All'">
<if 
condition="$post[warning_level]>0">
<
font color="#ff0000">
<
BR>Warnings Level$post[warning_level]
<
font color="#000000">
</if>
<if 
condition="$post[warning_bans]>0">
<
font color="#ff0000">
<
BR>Number of bans$post[warning_bans]
<
font color="#000000">
</if>
</if>

<if 
condition="$viewoption=='Mgm' AND $hierarchical=='Yes'">
<if 
condition="($bbuserinfo[usergroupid]!=7 AND $bbuserinfo[usergroupid]!=6  AND $bbuserinfo[usergroupid]!=5 AND $post[userid]==$bbuserinfo[userid]
OR 
(
$bbuserinfo[usergroupid]==7 AND $post[userid]==$bbuserinfo[userid]
OR 
(
$bbuserinfo[usergroupid]==5 AND $post[userid]==$bbuserinfo[userid]
OR 
(
$bbuserinfo[usergroupid]==7 AND $post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7)
OR 
(
$bbuserinfo[usergroupid]==5 AND $post[usergroupid]!=6 AND $post[usergroupid]!=5) 
OR 
(
$bbuserinfo[usergroupid]==6)
"
>
<if 
condition="$post[warning_level]>0">
<
font color="#ff0000">
<
BR>Warnings Level$post[warning_level]
<
font color="#000000">
</if>
<if 
condition="$post[warning_bans]>0">
<
font color="#ff0000">
<
BR>Number of bans$post[warning_bans]
<
font color="#000000">
</if>
</if>
</if>

<if 
condition="$viewoption=='Mgm' AND $hierarchical=='No' AND
((
$bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR 
$bbuserinfo[usergroupid]==6) OR ($bbuserinfo[usergroupid]!=7 AND $bbuserinfo[usergroupid]!=6  AND $bbuserinfo[usergroupid]!=5 AND $post[userid]==$bbuserinfo[userid]))">
<if 
condition="$post[warning_level]>0">
<
font color="#ff0000">
<
BR>Warnings Level$post[warning_level]
<
font color="#000000">
</if>
<if 
condition="$post[warning_bans]>0">
<
font color="#ff0000">
<
BR>Number of bans$post[warning_bans]
<
font color="#000000">
</if>
</if>
                    </
div>
                    <
div>$post[icqicon$post[aimicon$post[msnicon$post[yahooicon]</div>
                </
div>
                
            </
td>
        </
tr>
        </
table>
        <!-- / 
user info -->
    </
td>
</
tr>
<
tr>
    <
td class="alt1">
    <!-- 
messageattachmentssig -->
    
        <if 
condition="$show['messageicon'] OR $post['title']">
            <!-- 
icon and title -->
            <
div class="smallfont">
                <if 
condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]alt="$post[icontitle]border="0" /></if>
                <if 
condition="$post['title']"><strong><if condition="$forum['allowcategories'] AND $thread['category'] AND $post['postid'] == $thread['firstpostid']">$thread[category] - </if>$post[title]</strong></if>
            </
div>
            <
hr size="1" style="color:$stylevar[tborder_bgcolor]/>
            <!-- / 
icon and title -->
        </if>
        
        <!-- 
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>
<
br />
<
fieldset><legend>$post[username]'s Sig:</legend><table width="100%"><tr><td>
$post[signature]
</td></tr>
</table></fieldset>
   </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>
    
        <div align="$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="$post['
replylink']">
                <a href="$post[replylink]"><img src="$stylevar[imgdir_button]/reply_small.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
            </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>
            <!-- / controls -->
        </div>
        
    <!-- message, attachments, sig -->
    
    </td>
</tr>
</table>

<!-- 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]userid=$post[userid]" target="_blank">$vbphrase[view_public_profile]</a></td></tr>
    </if>
<if condition="$post['
arcadesettings'] & 4 AND $post[userid]!=$bbuserinfo[userid] AND $bbuserinfo[userid]!=0">
        <tr><td class="vbmenu_option"><a href="arcade.php?$session[sessionurl]do=newchallenge&userid=$post[userid]" target="_self">Challenge $post[username] in the Arcade</a></td></tr>
    </if>    
<if condition="$show['
pmlink']">
        <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;userid=$post[userid]"><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]"><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;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
    </if>
    <if condition="$post['
userid']">
    <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_buddy_list]</phrase></a></td></tr>
    </if>
    </table>
</div>
<!-- / post $post[postid] popup menu -->




<if condition="$show['
spacer']">
    </div>
    $spacer_close
</if>
<!-- / post #$post[postid] --> 


sv1cec 12-15-2004 11:26 AM

Quote:

Originally Posted by jluerken
Here we go

PHP Code:

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
    <!-- 
$spacer_open -->
        <!-- 
open content container -->
<if 
condition="$show['old_explorer']">
    <
table cellpadding="0" cellspacing="0" border="0" width="$stylevar[outertablewidth]align="center"><tr><td class="page" style="padding:0px 0px 0px 0px">
<else />
    <
div align="center">
        <
div class="page" style="width:$stylevar[outerdivwidth]; text-align:$stylevar[left]">
            <
div style="padding:0px 0px 0px 0px">

</if> 
     <
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%" align="center">
<
tr>
    <
td class="thead" $scrolltothis>
        <
div class="normal" style="float:$stylevar[right]">
            &
nbsp;

<!-- 
checks for warning system -->
<if 
condition="THIS_SCRIPT=='showthread'">
<if 
condition="$hierarchical=='No'">
    <if 
condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
    <
a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> ? 
    </if>
    <if 
condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6)">
    <
a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> ?
    </if>
    <if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND $post[warning_level]>0">
    <a href='
Warn.php?do=ViewMyWarnings'>View your Warnings</a> ?
    </if>
</if>
<if condition="$hierarchical=='
Yes'">
    <if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])) OR ($post[usergroupid]==7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid]) AND $bbuserinfo[usergroupid]==5) OR 
    ($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)">
    <a href='
Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> ? 
    </if>
    <if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5)) OR ($post[usergroupid]==7 AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)">
    <a href='
Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> ?
    </if>
    <if 
condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]!=6 AND $post[warning_level]>0">
    <
a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a> ?
    </if>
</if>
</if>

<!-- 
end of warning system -->
            <if 
condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a> &nbsp;</if>
            
<if condition="$show['reputationlink']"><a href="#" onclick="return reputation($post[postid])"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> &nbsp;</if>
            <if 
condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]border="0" /></a> &nbsp;</if>
            
$post[iplogged]
        </
div>
        <
div class="normal">
            <!-- 
status icon and date -->
            <
a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]border="0" /></a>
            <if 
condition="!$show['start_until_end']">
                
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
            <else />
                <
phrase 1="$post[startdate]2="$post[enddate]">$vbphrase[x_until_y]</phrase>
            </if>
            
$post[firstnewinsert]
            <!-- / 
status icon and date -->
        </
div>
    </
td>
</
tr>
<
tr>
    <
td class="alt2" style="padding:0px">
        <!-- 
user info -->
        <
table cellpadding="0" cellspacing="$stylevar[cellpadding]border="0" width="100%">
        <
tr>
            <if 
condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurlalt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
            <
td nowrap="nowrap">
            
                <
div id="postmenu_$post[postid]">
                    <if 
condition="$show['profile']">
                    <
class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><if condition="$post[field5]"><b>$post[field5]</b><else /><b>$post[musername]</b></if></a>
                    
$post[onlinestatus]
                    <
script type="text/javascript"vbmenu_register("postmenu_$post[postid]"true); </script>
                    <else />
                    <if 
condition="$post[field5]">$post[field5]<else />$post[musername]</if>
                    </if>
                </
div>
                
                <if 
condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                <if 
condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
$post[arcadeawards]                
            </
td>
            <
td width="100%">&nbsp;</td>
            <
td valign="top" nowrap="nowrap">
                
                <
div class="smallfont">
                    <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>
                        
$vbphrase[posts]: $post[posts]
                        <if 
condition="$show['reputation']">$post[reputationdisplay]</if>
<if 
condition="$viewoption=='All'">
<if 
condition="$post[warning_level]>0">
<
font color="#ff0000">
<
BR>Warnings Level$post[warning_level]
<
font color="#000000">
</if>
<if 
condition="$post[warning_bans]>0">
<
font color="#ff0000">
<
BR>Number of bans$post[warning_bans]
<
font color="#000000">
</if>
</if>

<if 
condition="$viewoption=='Mgm' AND $hierarchical=='Yes'">
<if 
condition="($bbuserinfo[usergroupid]!=7 AND $bbuserinfo[usergroupid]!=6  AND $bbuserinfo[usergroupid]!=5 AND $post[userid]==$bbuserinfo[userid]
OR 
(
$bbuserinfo[usergroupid]==7 AND $post[userid]==$bbuserinfo[userid]
OR 
(
$bbuserinfo[usergroupid]==5 AND $post[userid]==$bbuserinfo[userid]
OR 
(
$bbuserinfo[usergroupid]==7 AND $post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7)
OR 
(
$bbuserinfo[usergroupid]==5 AND $post[usergroupid]!=6 AND $post[usergroupid]!=5) 
OR 
(
$bbuserinfo[usergroupid]==6)
"
>
<if 
condition="$post[warning_level]>0">
<
font color="#ff0000">
<
BR>Warnings Level$post[warning_level]
<
font color="#000000">
</if>
<if 
condition="$post[warning_bans]>0">
<
font color="#ff0000">
<
BR>Number of bans$post[warning_bans]
<
font color="#000000">
</if>
</if>
</if>

<if 
condition="$viewoption=='Mgm' AND $hierarchical=='No' AND
((
$bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR 
$bbuserinfo[usergroupid]==6) OR ($bbuserinfo[usergroupid]!=7 AND $bbuserinfo[usergroupid]!=6  AND $bbuserinfo[usergroupid]!=5 AND $post[userid]==$bbuserinfo[userid]))">
<if 
condition="$post[warning_level]>0">
<
font color="#ff0000">
<
BR>Warnings Level$post[warning_level]
<
font color="#000000">
</if>
<if 
condition="$post[warning_bans]>0">
<
font color="#ff0000">
<
BR>Number of bans$post[warning_bans]
<
font color="#000000">
</if>
</if>
                    </
div>
                    <
div>$post[icqicon$post[aimicon$post[msnicon$post[yahooicon]</div>
                </
div>
                
            </
td>
        </
tr>
        </
table>
        <!-- / 
user info -->
    </
td>
</
tr>
<
tr>
    <
td class="alt1">
    <!-- 
messageattachmentssig -->
    
        <if 
condition="$show['messageicon'] OR $post['title']">
            <!-- 
icon and title -->
            <
div class="smallfont">
                <if 
condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]alt="$post[icontitle]border="0" /></if>
                <if 
condition="$post['title']"><strong><if condition="$forum['allowcategories'] AND $thread['category'] AND $post['postid'] == $thread['firstpostid']">$thread[category] - </if>$post[title]</strong></if>
            </
div>
            <
hr size="1" style="color:$stylevar[tborder_bgcolor]/>
            <!-- / 
icon and title -->
        </if>
        
        <!-- 
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>
<
br />
<
fieldset><legend>$post[username]'s Sig:</legend><table width="100%"><tr><td>
$post[signature]
</td></tr>
</table></fieldset>
   </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>
    
        <div align="$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="$post['
replylink']">
                <a href="$post[replylink]"><img src="$stylevar[imgdir_button]/reply_small.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
            </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>
            <!-- / controls -->
        </div>
        
    <!-- message, attachments, sig -->
    
    </td>
</tr>
</table>

<!-- 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]userid=$post[userid]" target="_blank">$vbphrase[view_public_profile]</a></td></tr>
    </if>
<if condition="$post['
arcadesettings'] & 4 AND $post[userid]!=$bbuserinfo[userid] AND $bbuserinfo[userid]!=0">
        <tr><td class="vbmenu_option"><a href="arcade.php?$session[sessionurl]do=newchallenge&userid=$post[userid]" target="_self">Challenge $post[username] in the Arcade</a></td></tr>
    </if>    
<if condition="$show['
pmlink']">
        <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;userid=$post[userid]"><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]"><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;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
    </if>
    <if condition="$post['
userid']">
    <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_buddy_list]</phrase></a></td></tr>
    </if>
    </table>
</div>
<!-- / post $post[postid] popup menu -->




<if condition="$show['
spacer']">
    </div>
    $spacer_close
</if>
<!-- / post #$post[postid] --> 


Here is what mine looks up there, at the top of the template.

HTML 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%" align="center">
<tr>
        <td class="thead" $scrolltothis>
                <div class="normal" style="float:$stylevar[right]">
                        &nbsp;


I am not sure why there is a difference, maybe I didn't upgrade that template to the latest version when I upgraded the vB software. I think that the comments which exist there, have some bad effect, try removing those comments first and see if this fixes your problem.

Rgds

SamirDarji 12-15-2004 12:43 PM

Quote:

Originally Posted by Delphiprogrammi
revert all the modified templates *.php files you do have a copy do you ? and what about a database backup BEFORE you try to install this hack ? always backup when something is "havy" modifying the original code

I'll try the templates, that's not a bad place to start. It's a test server, so there's all sorts of crap on it. I usually don't backup php files or the db. Now, the live board--that's a whole different story.

SamirDarji 12-15-2004 12:47 PM

Quote:

Originally Posted by sv1cec
You can't even get in your admincp??? That's odd. You must have messed something up, but I have no idea where. The uninstaller is only removing the templates added by the hack, the tables and the settings. It doesn't touch anything else.

Try reverting your admincp/index.php file to the original and see if that works.

Keep me posted. I'll try to check here often to see how I can help.

I was thinking to run the uninstaller, which would get rid of the new templates, tables, and phrases, and then just reinstall. I wasn't going to revert the template changes (a pain) or change the php files, but that may be necessary. I'm glad I didn't try all this on the live board even though I'm 2 days behind schedule on deployment.

I'll completely undo everything and see what happens. This has been a time consuming process, but I guess I should've removed ZT's and installed yours from the beginning. :(

jluerken 12-15-2004 12:49 PM

Deleting this part fixed it for me:

PHP Code:

<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> 


SamirDarji 12-15-2004 01:26 PM

I reverted the php files by commenting out little changes and deleting large changes. That got the board back. Now I'm going to attempt to install 2.3.3 from scratch. Hope this works!

SamirDarji 12-15-2004 02:19 PM

Seemed to have worked. Only problem I've run across is that the ability to warn is missing from the member profile. Where is the problem, template or php file? I'm thinking template, but I could be wrong.


All times are GMT. The time now is 08:05 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.03495 seconds
  • Memory Usage 2,204KB
  • 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_html_printable
  • (3)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete