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.

mcyates 12-15-2004 03:25 PM

I keep getting this error:

Code:

Invalid SQL:
            INSERT INTO userban
            (userid, usergroupid, displaygroupid, customtitle, usertitle, adminid, bandate, liftdate, reason)
            VALUES
            (1033, 8, 0, 0, 'Ball boy', 1, 1103129995, 1103734795, 'User exceeded the Warning Limit and was banned.')
mysql error: Unknown column 'reason' in 'field list'

mysql error number: 1054

It obviouslyt because i haven't got the column reason added. What is the SQL query to add this? The warning points are still given to the user when you select which warning but this error comes up when you submit it.

sv1cec 12-15-2004 03:46 PM

Quote:

Originally Posted by mcyates
I keep getting this error:

Code:

Invalid SQL:
            INSERT INTO userban
            (userid, usergroupid, displaygroupid, customtitle, usertitle, adminid, bandate, liftdate, reason)
            VALUES
            (1033, 8, 0, 0, 'Ball boy', 1, 1103129995, 1103734795, 'User exceeded the Warning Limit and was banned.')
mysql error: Unknown column 'reason' in 'field list'

mysql error number: 1054

It obviouslyt because i haven't got the column reason added. What is the SQL query to add this? The warning points are still given to the user when you select which warning but this error comes up when you submit it.

ALTER TABLE `".TABLE_PREFIX."userban` ADD COLUMN `reason` mediumtext

Sorry about that, that's what happens when one doesn't keep notes of all the changes.

mcyates 12-15-2004 03:51 PM

Quote:

Originally Posted by sv1cec
ALTER TABLE `".TABLE_PREFIX."userban` ADD COLUMN `reason` mediumtext

Sorry about that, that's what happens when one doesn't keep notes of all the changes.

thansks. Its pretty hard work keeping up with this hack. Everytime i return to the page its been updated. Last time it was 2.3.1 now its 2.3.3. Madness. ok thanks for the help.

sv1cec 12-15-2004 04:18 PM

Quote:

Originally Posted by mcyates
thansks. Its pretty hard work keeping up with this hack. Everytime i return to the page its been updated. Last time it was 2.3.1 now its 2.3.3. Madness. ok thanks for the help.

I know, don't you want it improved?

Ah and a correction, it will be in 2.3.4 in a minute, I haven't noted down the changes required in the file modcp/banning.php. I 've added a column in the userban table, where the hack stores a special message, when it bans a user.

Give me 5 minutes to upload the instructions.

mcyates 12-15-2004 04:28 PM

Yeah i'm just saying its hard work. lol

sv1cec 12-15-2004 04:50 PM

Quote:

Originally Posted by mcyates
Yeah i'm just saying its hard work. lol

I know and I really feel bad about it. I keep doing small things, here and there, adding some more functionality etc. and it grows and it grows.

What you want me to do? Do you folks are overwhelmed with it? Do you want me to stop adding things for a while?

Just let me know.

For the time being, I have one more thing I want to do, in the admin_warn.php, and then I'll be ... looking for new ideas.

Rgds and sorry if I cause you trouble.

jluerken 12-15-2004 05:30 PM

I've found two smaller errors in 2.3.4

1. In the upgrade instructions youve forgotten a small line

PHP Code:

UPDATE `".TABLE_PREFIX."warning_optionsSET version='2.3.4' WHERE oid=

:D

2. In the AdminCP the colspan has to be increased somewhere. (see attachment!)

and btw. you have to update the version numbers in the files also :nervous:

sv1cec 12-15-2004 06:13 PM

Quote:

Originally Posted by jluerken
I've found two smaller errors in 2.3.4

1. In the upgrade instructions youve forgotten a small line

PHP Code:

UPDATE `".TABLE_PREFIX."warning_optionsSET version='2.3.4' WHERE oid=

:D

2. In the AdminCP the colspan has to be increased somewhere. (see attachment!)

and btw. you have to update the version numbers in the files also :nervous:

You are right. I've updated the instructions, if you do not mind, please download and apply the section which is marked with :

// COMMENT: CHANGES BELOW AFFECT THE COLSPAN IN THE BANNED USERS REPORT //

in the UpgradeToLatestVersion.txt file.

Don't forget to run that query as well.

Rgds and tnx

jluerken 12-15-2004 06:32 PM

Quote:

Originally Posted by sv1cec
You are right. I've updated the instructions, if you do not mind, please download and apply the section which is marked with :

// COMMENT: CHANGES BELOW AFFECT THE COLSPAN IN THE BANNED USERS REPORT //

in the UpgradeToLatestVersion.txt file.

Don't forget to run that query as well.

Rgds and tnx

I updated everything.
This seems to be the most-supported Hack here on vb.org :D

Hopefully we come to a final state within the next days or do you have already more plans for future releases? haha

SamirDarji 12-16-2004 12:51 AM

I still can't find out why the warning options aren't appearing the member profile. I checked the template and member.php and they're both correct. This is the only thing I have left to test before I install on the live server (which will go much smoother since that setup is cleaner). Any assistance appreciated.

TRStealth 12-16-2004 02:52 AM

Quote:

Originally Posted by sv1cec
Because the database and the code are not of matching versions. In other words, your table hasn't all the columns required by the code. Go create the 'automaticpm' column in your table, by running the following query:

alter table `warning_options` add `automaticpm` char(3) after automatic

But, still you do not have all the columns in the table. What I see missing is the 'version` column.

Folks, please download and install always the latest version. Or, make sure you always upgrade to the latest version, or else it is very difficult for me to support you.

Rgds

Even though it was a clean install of the latest zip you have up?

k.

sv1cec 12-16-2004 04:57 AM

Quote:

Originally Posted by TRStealth
Even though it was a clean install of the latest zip you have up?

k.

Well, sometimes, even the best intentions fail :-)

However, keep in mind, that the automaticpm was added in version 2.0 while the version was added in 2.3. And neither of them was in your table.

Rgds

nubian 12-16-2004 01:36 PM

Quote:

Originally Posted by SamirDarji
I still can't find out why the warning options aren't appearing the member profile. I checked the template and member.php and they're both correct. This is the only thing I have left to test before I install on the live server (which will go much smoother since that setup is cleaner). Any assistance appreciated.

bump this question....i don't see this as well

SamirDarji 12-16-2004 01:49 PM

Quote:

Originally Posted by nubian
bump this question....i don't see this as well

I know someone had this problem in the past, but I searched the thread up and down and can't find where it was posted and if there was a solution.

sv1cec 12-16-2004 02:32 PM

Quote:

Originally Posted by SamirDarji
I know someone had this problem in the past, but I searched the thread up and down and can't find where it was posted and if there was a solution.

In order to see those links, you should have activate the "Allow Non-Post-related" warnings. If that is not set to "Yes", there are no links in the UserCP.

Please tell me if you have set that to yes, or not, so that I can see what your problem is.

Rgds

nubian 12-16-2004 02:42 PM

Quote:

Originally Posted by sv1cec
In order to see those links, you should have activate the "Allow Non-Post-related" warnings. If that is not set to "Yes", there are no links in the UserCP.

Please tell me if you have set that to yes, or not, so that I can see what your problem is.

Rgds

if you mean where it says under the admincp > manage warning options:
Quote:

Allow Off-Post Warnings? If set to Yes, warnings can also be issued from the user profile, when you want to warn a user for a non-post related offence.
that option is set to yes and i still don't see the option to warn in the members public profile

because i don't see this, "Allow Non-Post-related" option

sv1cec 12-16-2004 03:09 PM

Quote:

Originally Posted by nubian
if you mean where it says under the admincp > manage warning options:
that option is set to yes and i still don't see the option to warn in the members public profile

because i don't see this, "Allow Non-Post-related" option

Yeah, these are the same thing, I just changed the wording to better express the meaning, in the latest version.

IF that is set to yes and you can't see the links, two things can happen:

1. your template is not edited properly.
2. the user is not authorised to issue warnings. Assuming that the user is authorised, I would suggest that you check your template.

One more question, if the user you are checking his CP has warning points, do you see his points?

Here is what my memberinfo template looks like:

HTML Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>
$headinclude
</head>
<body>
$header
$navbar
$sponsorspanel

<!-- main info - avatar, profilepic etc. -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
        <td class="thead">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></td>
<!-- checks for warning system -->
<td  class="thead" align="right">
<div class="smallfont" style="float:$stylevar[right]">
<if condition="THIS_SCRIPT=='member' AND $warn_opts[allowoffpost]=='Yes'">
        <if condition="$hierarchical=='No'">
                <if condition="($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5) AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7">
                        <a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related)</a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'>View $userinfo[username]'s Warnings</a>
            </if>
                <if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=7 AND $userinfo[usergroupid]!=5 AND $userinfo[warning_level]>0">
                        <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>
                </if>
        </if>
        <if condition="$hierarchical=='Yes'">
                <if condition="($userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)) OR ($userinfo[usergroupid]==7  AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $userinfo[usergroupid]!=6)">
                        <a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related)</a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'>View $userinfo[username]'s Warnings</a>
                </if>
                <if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[warning_level]>0">
                                <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>
                </if>
        </if>
</if>
<!-- end of warning system -->       
</div>
</td>
</tr>
</table>

rgds

T3MEDIA 12-16-2004 05:50 PM

has all the bugs in this hack been cleared out?

since its a long hack I want to ask first.

nubian 12-16-2004 06:59 PM

Quote:

Originally Posted by sv1cec
Yeah, these are the same thing, I just changed the wording to better express the meaning, in the latest version.

IF that is set to yes and you can't see the links, two things can happen:

1. your template is not edited properly.
2. the user is not authorised to issue warnings. Assuming that the user is authorised, I would suggest that you check your template.

One more question, if the user you are checking his CP has warning points, do you see his points?

Here is what my memberinfo template looks like:

HTML Code:

$stylevar[htmldoctype]
 <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
 <head>
 <title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>
 $headinclude
 </head>
 <body>
 $header
 $navbar
 $sponsorspanel
 
 <!-- main info - avatar, profilepic etc. -->
 <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
 <tr>
 <td class="thead">
 <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
 <tr>
        <td class="thead">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></td>
 <!-- checks for warning system -->
 <td  class="thead" align="right">
 <div class="smallfont" style="float:$stylevar[right]">
 <if condition="THIS_SCRIPT=='member' AND $warn_opts[allowoffpost]=='Yes'">
        <if condition="$hierarchical=='No'">
                <if condition="($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5) AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7">
                        <a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related)</a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'>View $userinfo[username]'s Warnings</a>
            </if>
                <if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=7 AND $userinfo[usergroupid]!=5 AND $userinfo[warning_level]>0">
                        <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>
                </if>
        </if>
        <if condition="$hierarchical=='Yes'">
                <if condition="($userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)) OR ($userinfo[usergroupid]==7 AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $userinfo[usergroupid]!=6)">
                        <a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related)</a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'>View $userinfo[username]'s Warnings</a>
                </if>
                <if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[warning_level]>0">
                                <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>
                </if>
        </if>
 </if>
 <!-- end of warning system -->       
 </div>
 </td>
 </tr>
 </table>

rgds

i have the WarningSystem_v2_3_2
i have no idea what updates you've done since .4 and .5
am i missing something here?
because the necessary coding that i do have are correct from the 2.3.2.
please help

i'm not saying hot to do your updates but there should be

sv1cec 12-16-2004 07:02 PM

Quote:

Originally Posted by nubian
i have the WarningSystem_v2_3_2
i have no idea what updates you've done since .4 and .5
am i missing something here?
because the necessary coding that i do have are correct from the 2.3.2.
please help

i'm not saying hot to do your updates but there should be

In the zip file, there is a file called "UpdateToLatestVersion.txt". In that file, if you scroll down a little, you will find a heading saying "Upgrade from 2.3.2 to 2.3.3. Do that, then go back up and find the update from 2.3.3. to 2.3.4, apply the changes etc. until you are at the last version.

Rgds

nubian 12-16-2004 09:08 PM

nothing major but in your 2.3.5 upgrade from 2.3.3 to 2.3.4

find:
Code:

  $DB_site->query("
              UPDATE " . TABLE_PREFIX . "userban SET
              adminid = $bbuserinfo[userid],
              bandate = " . TIMENOW . ",
              liftdate = $liftdate
              WHERE userid = $user[userid]
          ");


it doesn't find this because vb3 comes stock like this:
Code:

  $DB_site->query("
                          UPDATE " . TABLE_PREFIX . "userban SET
                          adminid = $bbuserinfo[userid],
                          bandate = " . TIMENOW . ",
                          liftdate = $liftdate,
                          adminid = $bbuserinfo[userid]
                          WHERE userid = $user[userid]
                  ");

which i believe to be unmodified from your previous 2.3.2.
again nothing major just in case somebody else who's trying to install this doesn't think something is wrong.....or is there? :ermm:

nubian 12-16-2004 10:11 PM

i updated to 2.3.5 and i still don't see the option under users profiles.
no one has been warned because i'm doing this under a test site before updatding my live site

SamirDarji 12-17-2004 12:52 AM

Quote:

Originally Posted by sv1cec
In order to see those links, you should have activate the "Allow Non-Post-related" warnings. If that is not set to "Yes", there are no links in the UserCP.

Please tell me if you have set that to yes, or not, so that I can see what your problem is.

Rgds

It's set to yes. That was one of the first things I checked and double checked. The only thing I can make of it is that for some reason the test in the template is failing, so it doesn't show the options. Which php file besides member.php has code relating to this and about where is it (beginning, middle, end)? I've been checking things as I think of them, but I don't know the exact structure of the hack, so I really don't know where to look besides the basics. :(

SamirDarji 12-17-2004 01:11 AM

Quote:

Originally Posted by sv1cec
One more question, if the user you are checking his CP has warning points, do you see his points?

I can see my user's warning points. I wonder one thing, if the user is banned, will the options to warn still be there? I loaded up this test user with points (hehe) and got him banned. I would think you should be still able to see the options.

nubian 12-17-2004 03:06 AM

Quote:

Originally Posted by sv1cec
One more question, if the user you are checking his CP has warning points, do you see his points?

i have warned one of my test users and i can see the points i've warned him with ...but again not able to see this option to warn him off post related.

sv1cec 12-17-2004 03:18 AM

Nubian,

You are right, when I was writing the patch instructions, I saw that and I thought I have made a mistake there, because the code is entering the same info in the same column twice. So I removed the last insert. I'll update the instructions, thanks.

sv1cec 12-17-2004 03:27 AM

Quote:

Originally Posted by nubian
i have warned one of my test users and i can see the points i've warned him with ...but again not able to see this option to warn him off post related.

OK gentlemen, for all those who can't see the Warn XYZ and View XYZ's Warnings in the UserCP.

1. Make sure that your member.php file has the following lines in the beginning:

PHP Code:

require_once('./global.php');
require_once(
'./includes/functions_showthread.php');
require_once(
'./includes/functions_user.php');
require_once(
'./includes/functions_warning.php'); 

What you need to have is the last one, with the functions_warning.php.

2. Make sure you have uploaded the latest realease of the functions_warning.php file in your includes directory. Check that the file has the following lines at the beginning:

PHP Code:

$warnopts = array();
global 
$warn_opts;

$warn_opts=$DB_site->query_first("select * from ".TABLE_PREFIX."warning_options where oid='1'"); 

3. Make sure your MEMBERINFO template has the following code:

HTML Code:

<!-- checks for warning system -->
<td  class="thead" align="right">
<div class="smallfont" style="float:$stylevar[right]">
<if condition="THIS_SCRIPT=='member' AND $warn_opts[allowoffpost]=='Yes'">
        <if condition="$hierarchical=='No'">
                <if condition="($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5) AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7">
                        <a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related)</a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'>View $userinfo[username]'s Warnings</a>
            </if>
                <if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=7 AND $userinfo[usergroupid]!=5 AND $userinfo[warning_level]>0">
                        <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>
                </if>
        </if>
        <if condition="$hierarchical=='Yes'">
                <if condition="($userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)) OR ($userinfo[usergroupid]==7  AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $userinfo[usergroupid]!=6)">
                        <a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related)</a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'>View $userinfo[username]'s Warnings</a>
                </if>
                <if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[warning_level]>0">
                                <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>
                </if>
        </if>
</if>
<!-- end of warning system -->

In order for them to appear, you have to have the Allow off-post warnings equal to Yes, and have a Yes or No value in the hierarchical.

Make sure you try it as an admin, and let me know what your results are.

Rgds

sv1cec 12-17-2004 03:29 AM

Quote:

Originally Posted by SamirDarji
I can see my user's warning points. I wonder one thing, if the user is banned, will the options to warn still be there? I loaded up this test user with points (hehe) and got him banned. I would think you should be still able to see the options.

The Warn XYZ and View XYZ's links will still be there, because later, after you ban him, you may find that he has somewhere left another post, which should be warned again. And of course, because, you should be able to see his warrnings.

Rgds

SamirDarji 12-17-2004 06:40 AM

Quote:

Originally Posted by sv1cec
OK gentlemen, for all those who can't see the Warn XYZ and View XYZ's Warnings in the UserCP.

1. Make sure that your member.php file has the following lines in the beginning:

PHP Code:

require_once('./global.php');
require_once(
'./includes/functions_showthread.php');
require_once(
'./includes/functions_user.php');
require_once(
'./includes/functions_warning.php'); 

What you need to have is the last one, with the functions_warning.php.

2. Make sure you have uploaded the latest realease of the functions_warning.php file in your includes directory. Check that the file has the following lines at the beginning:

PHP Code:

$warnopts = array();
global 
$warn_opts;

$warn_opts=$DB_site->query_first("select * from ".TABLE_PREFIX."warning_options where oid='1'"); 

3. Make sure your MEMBERINFO template has the following code:

HTML Code:

<!-- checks for warning system -->
<td  class="thead" align="right">
<div class="smallfont" style="float:$stylevar[right]">
<if condition="THIS_SCRIPT=='member' AND $warn_opts[allowoffpost]=='Yes'">
        <if condition="$hierarchical=='No'">
                <if condition="($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5) AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7">
                        <a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related)</a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'>View $userinfo[username]'s Warnings</a>
            </if>
                <if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=7 AND $userinfo[usergroupid]!=5 AND $userinfo[warning_level]>0">
                        <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>
                </if>
        </if>
        <if condition="$hierarchical=='Yes'">
                <if condition="($userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)) OR ($userinfo[usergroupid]==7  AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $userinfo[usergroupid]!=6)">
                        <a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related)</a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'>View $userinfo[username]'s Warnings</a>
                </if>
                <if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[warning_level]>0">
                                <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>
                </if>
        </if>
</if>
<!-- end of warning system -->

In order for them to appear, you have to have the Allow off-post warnings equal to Yes, and have a Yes or No value in the hierarchical.

Make sure you try it as an admin, and let me know what your results are.

Rgds

I got it! After checking everything, I decided to completely cut and paste the template code you posted and replace what came from the install file--that did it.

The only problem I ran across so far is when issueing a warning, it will go to a blank page after issueing it. It will actually issue the warning, but it doesn't return to any page.

sv1cec 12-17-2004 06:55 AM

Quote:

Originally Posted by SamirDarji
I got it! After checking everything, I decided to completely cut and paste the template code you posted and replace what came from the install file--that did it.

The only problem I ran across so far is when issueing a warning, it will go to a blank page after issueing it. It will actually issue the warning, but it doesn't return to any page.

Check that you have the warn_redirect template in your system. That's what should come up after you issue the warning.

I also changed the installation instructions for the MEMBERINFO template, so that it is easier to patch the original template. One replace operation and you are done.

Rgds


All times are GMT. The time now is 06:12 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.03605 seconds
  • Memory Usage 2,403KB
  • 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
  • (5)bbcode_html_printable
  • (9)bbcode_php_printable
  • (30)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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