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)

rh2004 01-28-2005 02:22 PM

Hey...

How do I add this to all the styles on my site because it only works on the default
one... the warning bit (View Warnings/ Warn User) it gives me a blank white page,
when I click it...

Delphiprogrammi 01-28-2005 02:23 PM

look like internet explorer requirers (microsoft JScript) requirers another syntax then the standard javascript that code i added before works in firefox

sv1cec 01-28-2005 02:31 PM

Quote:

Originally Posted by Delphiprogrammi
look like internet explorer requirers (microsoft JScript) requirers another syntax then the standard javascript that code i added before works in firefox

In Firefox, the code worked as I had it initially. No need for the onclick. OK, go and grab the latest instructions. Everything works with IE, Netscape and Firefox.

Rgds

sv1cec 01-28-2005 02:33 PM

Quote:

Originally Posted by Exernon
So why not place the 100% working version instead of showing the 3.1.4 to the public?

Because I had put version 3.1.4 in public this morning. I haven't thought to test this with IE, I tested it with Firefox and it worked perfect. I needed some time to fix the bug, so I put this warning here, and in the announcement of the hack.

Should I have kissed your hand as well?

sv1cec 01-28-2005 02:34 PM

Quote:

Originally Posted by rh2004
Hey...

How do I add this to all the styles on my site because it only works on the default
one... the warning bit (View Warnings/ Warn User) it gives me a blank white page,
when I click it...

There was a post that explained that, somewhere in this thread. Try doing a thread search.

Rgds

Delphiprogrammi 01-28-2005 03:39 PM

works fine now ;)

rh2004 01-28-2005 09:14 PM

Wow ... this is now awesome

Loads of new stuff since my version...


Thanks loads for all the work ...


Here is what I did ...

I upgraded my files to 3.0.6
Ran the update
Went through every file on my site using the merge ...
Re-added this mod
Ran the install for this

And wow it works I think, I hope fine :)

rh2004 01-28-2005 10:36 PM

Oh I got a problem :(


This is my MEMBERINFO


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

<!-- 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' AND $buttons=='Text'">
        <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>
<if condition="THIS_SCRIPT=='member' AND $warn_opts[allowoffpost]=='Yes' AND $buttons=='Buttons'">
        <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'><input type="button" class="button" name="warn" value="Warn $post[username] (non-post related)" accesskey="w" onClick="window.location='Warn.php?do=WarnUserNoPost&id=$userid'"></a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$userinfo[userid]'"></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'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewMyWarnings'"></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'><input type="button" class="button" name="warn" value="Warn $post[username] (non-post related)" accesskey="w" onClick="window.location='Warn.php?do=WarnUserNoPost&id=$userid'"></a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$userinfo[userid]'"></a>
                </if>
                <if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[warning_level]>0">
                                <a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewMyWarnings'"></a>
                </if>
        </if>
</if>
<!-- end of warning system -->
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
        <td class="alt2">
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                        <td style="border-bottom:1px solid $stylevar[tborder_bgcolor]" colspan="3">                       
                                <if condition="$userinfo['rank'] OR $userinfo['reputationdisplay']">
                                        <div style="float:$stylevar[right]; padding:4px">
                                                <if condition="$userinfo['rank']"><div align="center">$userinfo[rank]</div></if>
                                                <if condition="$userinfo['reputationdisplay']"><div align="center">$userinfo[reputationdisplay]</div></if>
                                        </div>
                                </if>                       
                                <div style="font-size:18pt">$userinfo[musername]</div>
                                <if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>
                        </td>
<td style="border-bottom:1px solid $stylevar[tborder_bgcolor]" align="$stylevar[right]">
<div class="smallfont">
<b>User ID :</b> $userid

<if condition="$viewoption=='All'">
<if condition="$userinfo[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $userinfo[warning_level]
<font color="#000000">
</if>
<if condition="$userinfo[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $userinfo[warning_bans]
<font color="#000000">
</if>
</if>

<if condition="$viewoption=='Mgm' AND $hierarchical=='Yes'">
<if condition="($bbuserinfo[usergroupid]==7 AND $userinfo[userid]==$bbuserinfo[userid])
OR
($bbuserinfo[usergroupid]==7 AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7)
OR
($bbuserinfo[usergroupid]==5 AND $userinfo[userid]==$bbuserinfo[userid])
OR
($bbuserinfo[usergroupid]==5 AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5)
OR
($bbuserinfo[usergroupid]==6)
">
<if condition="$userinfo[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $userinfo[warning_level]
<font color="#000000">
</if>
<if condition="$userinfo[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $userinfo[warning_bans]
<font color="#000000">
</if>
</if>
</if>
</div>
<if condition="$viewoption=='Mgm' AND $hierarchical=='No' AND
(
$bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR
$bbuserinfo[usergroupid]==6
)">
<if condition="$userinfo[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $userinfo[warning_level]
<font color="#000000">
</if>
<if condition="$userinfo[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $userinfo[warning_bans]
<font color="#000000">
</if>
</if>
</td>
                        <if condition="$show['profilepic']">
                        <td valign="middle" align="$stylevar[right]" rowspan="2" width="160">
                                <center><img src="image.php?u=$userinfo[userid]&amp;type=profile&amp;dateline=$userinfo[profilepicdateline]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]" /></center>
                        </td>
                        </if>
                </tr>
                <tr valign="top">
                        <if condition="$show['avatar']">
                        <td colspan="3">
                                <div class="smallfont">User's avatar :<p><img src="$userinfo[avatarurl]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></div></td>
                        <else />
                                <td colspan="3"><div class="smallfont">User's avatar :<p><img src="images/avatars/noavatar.gif"></td>
                        </if>
                        <td class="smallfont" valign="middle" align="$stylevar[right]">
                                <if condition="$show['lastactivity']">
                                        <div><B>$vbphrase[last_activity]:</b> $userinfo[lastactivitydate] <span class="time">$userinfo[lastactivitytime]</span>&nbsp;</div>
                                </if>
                                <if condition="$show['currentlocation']">
                                        <div><b><if condition="$userinfo['action']">$userinfo[action] $userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time]<else />$vbphrase[offline]</if>&nbsp;</b></div>
                                </if>
                        </td>
                </tr>
                </table>
        </td>
</tr>
</table>
<!-- / main info - avatar, profilepic etc. -->

<!-- button row -->
<if condition="$show['profilelinks']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
        <if condition="$userinfo['showvcard']">
                <td class="vbmenu_control"><a href="member.php?$session[sessionurl]do=vcard&amp;u=$userinfo[userid]">$vbphrase[download_vcard]</a></td>
        </if>
        <if condition="$show['member']">
        <td class="vbmenu_control">
                <if condition="$show['addbuddylist']">
                <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_buddy_list]</phrase></a>
                <else />
                <a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_buddylist]</phrase></a>
                </if>
        </td>
        <td class="vbmenu_control">
                <if condition="$show['addignorelist']">
                <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a>
                <else />
                <a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_ignorelist]</phrase></a>
                </if>
        </td>
        </if>
        <if condition="can_moderate()">
                <td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[user_options]</a></td>
        </if>
</tr>
</table>
</if>
<!-- / button row -->

<br />

<if condition="$show['signature']">
<!-- signature row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead">$vbphrase[signature]</td>
</tr>
<tr>
        <td class="alt1" title="$vbphrase[signature]">$userinfo[signature]</td>
</tr>
</table>
<!-- / signature row -->
<br />
</if>


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat" width="50%">$vbphrase[forum_info]</td>
        <td class="tcat" width="50%">$vbphrase[contact_info]</td>
</tr>
<tr valign="top">

        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">
               
                        <div class="fieldset">
                                <div style="padding:$stylevar[formspacer]px">
                                        $vbphrase[join_date]: <strong>$userinfo[datejoined]</strong>
                                </div>
                        </div>
                       
                        <fieldset class="fieldset">
                                <legend>$vbphrase[posts]</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr>
                                        <td>
                                                $vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
                                        </td>
                                </tr>
                                <if condition="$vboptions['profilelastpost']">
                                <tr>
                                        <td>
                                                        $vbphrase[last_post]:<br />
                                                        <a href="$userinfo[lastposturl]">$userinfo[lastposttitle]</a><br />
                                                        $userinfo[lastpostdate] <span class="time">$userinfo[lastposttime]</span>
                                        </td>
                                </tr>
                                </if>
                                <tr>
                                        <td><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td>
                                </tr>
                                <tr>
                                        <td><a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;searchuser=$userinfo[urlusername]"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td>
                                </tr>
                                </table>
                        </fieldset>
                       
                        <if condition="$vboptions['usereferrer']">
                        <div class="fieldset">
                                <div style="padding:$stylevar[formspacer]px">
                                        $vbphrase[referrals]: <strong>$referrals</strong><br />
                                        <if condition="$bbuserinfo['usergroupid'] == '6'"><a href="ushop.php?do=a&shortname=admindonate&userid=$post[userid]" target="_blank">$vbphrase[ucs_points]</a><else />$vbphrase[ucs_points]</if>: <strong>$points</strong> (<a href="ushop.php?do=a&shortname=donate&userid=$post[userid]" target="_blank">Donate</a>)
                                </div>
                        </div>
<else />
                        <div class="fieldset">
                                <div style="padding:$stylevar[formspacer]px">
                                        <if condition="$bbuserinfo['usergroupid'] == '6'"><a href="ushop.php?do=a&shortname=admindonate&userid=$post[userid]" target="_blank">$vbphrase[ucs_points]</a><else />$vbphrase[ucs_points]</if>: <strong>$points</strong> (<a href="ushop.php?do=a&shortname=donate&userid=$post[userid]" target="_blank">Donate</a>)

                                </div>
                        </div>
                        </if>
                       
                        <if condition="$show['usernotes']">
                        <div class="fieldset">
                                <div style="padding:$stylevar[formspacer]px">
                                        $vbphrase[user_notes]: <strong>$usernote[total]</strong> [<a href="usernote.php?$session[sessionurl]u=$userinfo[userid]">$vbphrase[view]</a>]
                                        <if condition="$show['usernotetotal']">
                                                <br />($vbphrase[last]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime]</span>)
                                        </if>
                                </div>
                        </div>
                        </if>
               
                </div>
        </div>
        </td>
       
        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">
               
                        <div class="fieldset">
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <if condition="$show['homepage']">
                                <tr>
                                        <td>
                                                $vbphrase[home_page]:<br />
                                                <a href="$userinfo[homepage]" target="_blank">$userinfo[homepage]</a>
                                        </td>
                                </tr>
                                </if>
                                <tr>
                                        <td>
                                                $vbphrase[email]:<br />
                                                <a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[send_message_via_email_to_x]</phrase></a>
                                        </td>
                                </tr>
                                <if condition="$userinfo['pm']">
                                <tr>
                                        <td>
                                                $vbphrase[private_message]:<br />
                                                <a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a>
                                        </td>
                                </tr>
                                </if>
                                </table>
                        </div>
                       
                        <if condition="$show['hasimicons']">
                        <fieldset class="fieldset">
                                <legend>$vbphrase[instant_messaging]</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <if condition="$userinfo['showicq']">
                                <tr>
                                        <td>$userinfo[icqicon]</td>
                                        <td><a href="#" onclick="return imwindow('icq', '$userinfo[userid]', 500, 450)">$userinfo[icq]</a></td>
                                </tr>
                                </if>
                                <if condition="$userinfo['showaim']">
                                <tr>
                                        <td>$userinfo[aimicon]</td>
                                        <td><a href="#" onclick="return imwindow('aim', '$userinfo[userid]', 400, 200)">$userinfo[aim]</a></td>
                                </tr>
                                </if>
                                <if condition="$userinfo['showmsn']">
                                <tr>
                                        <td>$userinfo[msnicon]</td>
                                        <td><a href="#" onclick="return imwindow('msn', '$userinfo[userid]', 400, 200)">$userinfo[msn]</a></td>
                                </tr>
                                </if>
                                <if condition="$userinfo['showyahoo']">
                                <tr>
                                        <td>$userinfo[yahooicon]</td>
                                        <td><a href="#" onclick="return imwindow('yahoo', '$userinfo[userid]', 400, 200)">$userinfo[yahoo]</a></td>
                                </tr>
                                </if>
                                </table>
                        </fieldset>
                        </if>
               
                </div>
        </div>
        </td>
       
</tr>
<tr>
        <td class="tcat" width="50%">$vbphrase[additional_information]</td>
        <td class="tcat" width="50%">$vbphrase[group_memberships]</td>
</tr>
<tr valign="top">

        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">
               
                <div class="fieldset">
                        <if condition="$userinfo['birthday'] OR $customfields">
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <if condition="$userinfo['birthday']">
                                <tr>
                                        <td>
                                                <strong>$vbphrase[birthday]</strong>:<br />
                                                $userinfo[birthday]
                                        </td>
                                </tr>
                                </if>
                                $customfields
                                </table>
                        <else />
                                <em>$vbphrase[n_a]</em>
                        </if>
                </div>
               
                </div>
        </div>
        </td>
       
        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">
               
                        <div class="fieldset">
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]px" border="0">
                                <tr>
                                        <if condition="$show['membergroups']">
                                        <td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_a_member_of_the_following_groups]</phrase></strong>:</td>
                                        <else />
                                        <td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></td>
                                        </if>
                                </tr>
                                $membergroupbits
                                </table>
                        </div>
               
                </div>
        </div>
        </td>

</tr>
</table>

$footer

</body>
</html>


This is my view ... when I edited that file with your changes :ermm:

sv1cec 01-29-2005 05:00 PM

Quote:

Originally Posted by rh2004
Oh I got a problem :(


This is my MEMBERINFO


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

<!-- 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' AND $buttons=='Text'">
        <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>
<if condition="THIS_SCRIPT=='member' AND $warn_opts[allowoffpost]=='Yes' AND $buttons=='Buttons'">
        <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'><input type="button" class="button" name="warn" value="Warn $post[username] (non-post related)" accesskey="w" onClick="window.location='Warn.php?do=WarnUserNoPost&id=$userid'"></a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$userinfo[userid]'"></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'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewMyWarnings'"></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'><input type="button" class="button" name="warn" value="Warn $post[username] (non-post related)" accesskey="w" onClick="window.location='Warn.php?do=WarnUserNoPost&id=$userid'"></a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$userinfo[userid]'"></a>
                </if>
                <if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[warning_level]>0">
                                <a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewMyWarnings'"></a>
                </if>
        </if>
</if>
<!-- end of warning system -->
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
        <td class="alt2">
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                        <td style="border-bottom:1px solid $stylevar[tborder_bgcolor]" colspan="3">                       
                                <if condition="$userinfo['rank'] OR $userinfo['reputationdisplay']">
                                        <div style="float:$stylevar[right]; padding:4px">
                                                <if condition="$userinfo['rank']"><div align="center">$userinfo[rank]</div></if>
                                                <if condition="$userinfo['reputationdisplay']"><div align="center">$userinfo[reputationdisplay]</div></if>
                                        </div>
                                </if>                       
                                <div style="font-size:18pt">$userinfo[musername]</div>
                                <if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>
                        </td>
<td style="border-bottom:1px solid $stylevar[tborder_bgcolor]" align="$stylevar[right]">
<div class="smallfont">
<b>User ID :</b> $userid

<if condition="$viewoption=='All'">
<if condition="$userinfo[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $userinfo[warning_level]
<font color="#000000">
</if>
<if condition="$userinfo[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $userinfo[warning_bans]
<font color="#000000">
</if>
</if>

<if condition="$viewoption=='Mgm' AND $hierarchical=='Yes'">
<if condition="($bbuserinfo[usergroupid]==7 AND $userinfo[userid]==$bbuserinfo[userid])
OR
($bbuserinfo[usergroupid]==7 AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7)
OR
($bbuserinfo[usergroupid]==5 AND $userinfo[userid]==$bbuserinfo[userid])
OR
($bbuserinfo[usergroupid]==5 AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5)
OR
($bbuserinfo[usergroupid]==6)
">
<if condition="$userinfo[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $userinfo[warning_level]
<font color="#000000">
</if>
<if condition="$userinfo[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $userinfo[warning_bans]
<font color="#000000">
</if>
</if>
</if>
</div>
<if condition="$viewoption=='Mgm' AND $hierarchical=='No' AND
(
$bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR
$bbuserinfo[usergroupid]==6
)">
<if condition="$userinfo[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $userinfo[warning_level]
<font color="#000000">
</if>
<if condition="$userinfo[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $userinfo[warning_bans]
<font color="#000000">
</if>
</if>
</td>
                        <if condition="$show['profilepic']">
                        <td valign="middle" align="$stylevar[right]" rowspan="2" width="160">
                                <center><img src="image.php?u=$userinfo[userid]&amp;type=profile&amp;dateline=$userinfo[profilepicdateline]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]" /></center>
                        </td>
                        </if>
                </tr>
                <tr valign="top">
                        <if condition="$show['avatar']">
                        <td colspan="3">
                                <div class="smallfont">User's avatar :<p><img src="$userinfo[avatarurl]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></div></td>
                        <else />
                                <td colspan="3"><div class="smallfont">User's avatar :<p><img src="images/avatars/noavatar.gif"></td>
                        </if>
                        <td class="smallfont" valign="middle" align="$stylevar[right]">
                                <if condition="$show['lastactivity']">
                                        <div><B>$vbphrase[last_activity]:</b> $userinfo[lastactivitydate] <span class="time">$userinfo[lastactivitytime]</span>&nbsp;</div>
                                </if>
                                <if condition="$show['currentlocation']">
                                        <div><b><if condition="$userinfo['action']">$userinfo[action] $userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time]<else />$vbphrase[offline]</if>&nbsp;</b></div>
                                </if>
                        </td>
                </tr>
                </table>
        </td>
</tr>
</table>
<!-- / main info - avatar, profilepic etc. -->

<!-- button row -->
<if condition="$show['profilelinks']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
        <if condition="$userinfo['showvcard']">
                <td class="vbmenu_control"><a href="member.php?$session[sessionurl]do=vcard&amp;u=$userinfo[userid]">$vbphrase[download_vcard]</a></td>
        </if>
        <if condition="$show['member']">
        <td class="vbmenu_control">
                <if condition="$show['addbuddylist']">
                <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_buddy_list]</phrase></a>
                <else />
                <a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_buddylist]</phrase></a>
                </if>
        </td>
        <td class="vbmenu_control">
                <if condition="$show['addignorelist']">
                <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a>
                <else />
                <a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_ignorelist]</phrase></a>
                </if>
        </td>
        </if>
        <if condition="can_moderate()">
                <td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[user_options]</a></td>
        </if>
</tr>
</table>
</if>
<!-- / button row -->

<br />

<if condition="$show['signature']">
<!-- signature row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead">$vbphrase[signature]</td>
</tr>
<tr>
        <td class="alt1" title="$vbphrase[signature]">$userinfo[signature]</td>
</tr>
</table>
<!-- / signature row -->
<br />
</if>


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat" width="50%">$vbphrase[forum_info]</td>
        <td class="tcat" width="50%">$vbphrase[contact_info]</td>
</tr>
<tr valign="top">

        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">
               
                        <div class="fieldset">
                                <div style="padding:$stylevar[formspacer]px">
                                        $vbphrase[join_date]: <strong>$userinfo[datejoined]</strong>
                                </div>
                        </div>
                       
                        <fieldset class="fieldset">
                                <legend>$vbphrase[posts]</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr>
                                        <td>
                                                $vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
                                        </td>
                                </tr>
                                <if condition="$vboptions['profilelastpost']">
                                <tr>
                                        <td>
                                                        $vbphrase[last_post]:<br />
                                                        <a href="$userinfo[lastposturl]">$userinfo[lastposttitle]</a><br />
                                                        $userinfo[lastpostdate] <span class="time">$userinfo[lastposttime]</span>
                                        </td>
                                </tr>
                                </if>
                                <tr>
                                        <td><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td>
                                </tr>
                                <tr>
                                        <td><a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;searchuser=$userinfo[urlusername]"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td>
                                </tr>
                                </table>
                        </fieldset>
                       
                        <if condition="$vboptions['usereferrer']">
                        <div class="fieldset">
                                <div style="padding:$stylevar[formspacer]px">
                                        $vbphrase[referrals]: <strong>$referrals</strong><br />
                                        <if condition="$bbuserinfo['usergroupid'] == '6'"><a href="ushop.php?do=a&shortname=admindonate&userid=$post[userid]" target="_blank">$vbphrase[ucs_points]</a><else />$vbphrase[ucs_points]</if>: <strong>$points</strong> (<a href="ushop.php?do=a&shortname=donate&userid=$post[userid]" target="_blank">Donate</a>)
                                </div>
                        </div>
<else />
                        <div class="fieldset">
                                <div style="padding:$stylevar[formspacer]px">
                                        <if condition="$bbuserinfo['usergroupid'] == '6'"><a href="ushop.php?do=a&shortname=admindonate&userid=$post[userid]" target="_blank">$vbphrase[ucs_points]</a><else />$vbphrase[ucs_points]</if>: <strong>$points</strong> (<a href="ushop.php?do=a&shortname=donate&userid=$post[userid]" target="_blank">Donate</a>)

                                </div>
                        </div>
                        </if>
                       
                        <if condition="$show['usernotes']">
                        <div class="fieldset">
                                <div style="padding:$stylevar[formspacer]px">
                                        $vbphrase[user_notes]: <strong>$usernote[total]</strong> [<a href="usernote.php?$session[sessionurl]u=$userinfo[userid]">$vbphrase[view]</a>]
                                        <if condition="$show['usernotetotal']">
                                                <br />($vbphrase[last]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime]</span>)
                                        </if>
                                </div>
                        </div>
                        </if>
               
                </div>
        </div>
        </td>
       
        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">
               
                        <div class="fieldset">
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <if condition="$show['homepage']">
                                <tr>
                                        <td>
                                                $vbphrase[home_page]:<br />
                                                <a href="$userinfo[homepage]" target="_blank">$userinfo[homepage]</a>
                                        </td>
                                </tr>
                                </if>
                                <tr>
                                        <td>
                                                $vbphrase[email]:<br />
                                                <a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[send_message_via_email_to_x]</phrase></a>
                                        </td>
                                </tr>
                                <if condition="$userinfo['pm']">
                                <tr>
                                        <td>
                                                $vbphrase[private_message]:<br />
                                                <a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a>
                                        </td>
                                </tr>
                                </if>
                                </table>
                        </div>
                       
                        <if condition="$show['hasimicons']">
                        <fieldset class="fieldset">
                                <legend>$vbphrase[instant_messaging]</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <if condition="$userinfo['showicq']">
                                <tr>
                                        <td>$userinfo[icqicon]</td>
                                        <td><a href="#" onclick="return imwindow('icq', '$userinfo[userid]', 500, 450)">$userinfo[icq]</a></td>
                                </tr>
                                </if>
                                <if condition="$userinfo['showaim']">
                                <tr>
                                        <td>$userinfo[aimicon]</td>
                                        <td><a href="#" onclick="return imwindow('aim', '$userinfo[userid]', 400, 200)">$userinfo[aim]</a></td>
                                </tr>
                                </if>
                                <if condition="$userinfo['showmsn']">
                                <tr>
                                        <td>$userinfo[msnicon]</td>
                                        <td><a href="#" onclick="return imwindow('msn', '$userinfo[userid]', 400, 200)">$userinfo[msn]</a></td>
                                </tr>
                                </if>
                                <if condition="$userinfo['showyahoo']">
                                <tr>
                                        <td>$userinfo[yahooicon]</td>
                                        <td><a href="#" onclick="return imwindow('yahoo', '$userinfo[userid]', 400, 200)">$userinfo[yahoo]</a></td>
                                </tr>
                                </if>
                                </table>
                        </fieldset>
                        </if>
               
                </div>
        </div>
        </td>
       
</tr>
<tr>
        <td class="tcat" width="50%">$vbphrase[additional_information]</td>
        <td class="tcat" width="50%">$vbphrase[group_memberships]</td>
</tr>
<tr valign="top">

        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">
               
                <div class="fieldset">
                        <if condition="$userinfo['birthday'] OR $customfields">
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <if condition="$userinfo['birthday']">
                                <tr>
                                        <td>
                                                <strong>$vbphrase[birthday]</strong>:<br />
                                                $userinfo[birthday]
                                        </td>
                                </tr>
                                </if>
                                $customfields
                                </table>
                        <else />
                                <em>$vbphrase[n_a]</em>
                        </if>
                </div>
               
                </div>
        </div>
        </td>
       
        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">
               
                        <div class="fieldset">
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]px" border="0">
                                <tr>
                                        <if condition="$show['membergroups']">
                                        <td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_a_member_of_the_following_groups]</phrase></strong>:</td>
                                        <else />
                                        <td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></td>
                                        </if>
                                </tr>
                                $membergroupbits
                                </table>
                        </div>
               
                </div>
        </div>
        </td>

</tr>
</table>

$footer

</body>
</html>


This is my view ... when I edited that file with your changes :ermm:

I am not sure I understand what the picture shows. Is that a picture of your memberinfo screen or the postbit one? I think this is postbit, and obviously you are using postbit_legacy, not postbit.

It would help if you could be a bit more precise of your problem, and if you could post a picture of a post, which has received some warning, so that I can see where everything fits. As far as I can tell, this is not the standard template either, so ... too many things to check and too confusing info, in your post.

Rgds

rh2004 01-29-2005 07:49 PM

I did the postbit legacy wrong sorry I have sorted that now... but I have got loads of other problems :surprised:

I don't seem to have the Warn User Or View Warnings on the postbit bar nor is that new image being displayed to warned users (maybe it doesn't work on my past users)

I have these two images in admincp user options... they have no images? :ermm:


When I warn a user by typing in the link to warn them I receive after clicking add warning


Code:

Database error in vBulletin 3.0.6:

Invalid SQL: insert into warnings (wid, warned_user, warned_by, warned_time, warned_reason, warned_post, warned_warning_id, caused_ban, warned_status, removed_by, removed_date) values('','129','7','1107035074','','108070','2','Y','A','','')
mysql error: Unknown column 'caused_ban' in 'field list'

mysql error number: 1054

Date: Saturday 29th of January 2005 04:44:34 PM
Script: http:///Warn.php
Referer: http:///Warn.php?do=WarnUser&id=129&post=108070
Username: xx
IP Address: xx


So is it possible to drop some database fields and keep the warned users as I have around 60 warned - if not would it be better to completely remove it and re-add it I can re-warn them all.

Rhoads 01-29-2005 09:15 PM

Hi sv1cec

I have installed the warning system (3.1.4) again today on een clean forum (3.0.6). It's amazing how well it works, I had no problems, and it works 100% in 1 time. Very good job.

Only missed 2 gif's for the User Manager (warnuser.gif & viewuserwarnings.gif), but I get that from de older installer and it's working now. Also the warning indicated still the old version 3.1.3, but that I have updated myself to 3.1.4

Well work, and thanks for these fantastic hack.

sv1cec 01-30-2005 04:38 AM

Yep, you are right, I removed those two images from the upload, when I changed the buttons to the "more sophisticated" ones. Don't worry about it, just download the latest 3.1.5 version and apply the update instructions, just a query to run (to set the version) and one file change in admincp/user.php.

rh2004, have you defined if you want buttons or textual links in the Warning Options? Also, you can add that column in your database table, by running the query:

ALTER TABLE `".TABLE_PREFIX."warnings` ADD COLUMN `caused_ban` char(1) AFTER warned_warning_id

Remember to change TABLE_PREFIX according to your database.

rh2004 01-30-2005 08:15 AM

OK.. can you tell me what TABLE_PREFIX is.. an example please

It was set on text.. when I changed it I received

Code:

Database error in vBulletin 3.0.6:

Invalid SQL: update warning_options set
        hierarchical='No',
        automatic='No',
        automaticpm='No',
        autocomments='No',
        warner='7',
        automatic_warner='0',
        collector='',
        banned_limit='7',
        points_before_banned='10',
        warnings_before_banned='',
        banned_usergroup_id='11',
        troll_usergroup_id='8',
        protected_usergroups='5|6|7|6',
        aprotected_usergroups='6',
        restore_groupid='0',
        incr_ban_days='Yes',
        max_no_bans='3',
        bans_mature='',
        viewoption='All',
        multiple_per_post='Yes',
        send_pm_warning='Yes',
        send_em_warning='Yes',
        email_on_ban='No',
        historical='Yes',
        allowoffpost='Yes',
        warnings_per_page='15',
        textbutoption='Text'
        where oid='1'
mysql error: Unknown column 'autocomments' in 'field list'

mysql error number: 1054

Date: Sunday 30th of January 2005 05:15:05 AM
Script: http:///admincp/admin_warn.php
Referer: http:///admincp/admin_warn.php?act=manageoptions
Username: xx
IP Address: xx


Thanks

sv1cec 01-30-2005 09:17 AM

Run this query:

ALTER TABLE `".TABLE_PREFIX."warnings` ADD COLUMN `caused_ban` char(1) AFTER warned_warning_id

TABLE_PREFIX is a prefix you have specified, when you installed your vB. It is added in front of each table name. From the message above, you do not seem to need one, so just delete the ".TABLE_PREFIX." from the query above.

You are obviously trying to upgrade to the latest version, form an older one, but not from the previous one. In order to do it, you have to do all the upgrade steps, described in the UpgradeToLatestVersion.txt file, starting from the version you have installed already.

Rgds

rh2004 01-30-2005 05:48 PM

but I don't know what version im running at all, how can I find out...

sv1cec 01-30-2005 06:29 PM

Quote:

Originally Posted by rh2004
but I don't know what version im running at all, how can I find out...

If you didn't have the caused_ban field in that table, you are at around 2.3.1 or something. Lots of changes to get to the latest version. I would suggest that you uninstall and reinstall from scratch.

Rgds

Rhoads 01-30-2005 06:58 PM

Quote:

Originally Posted by rh2004
but I don't know what version im running at all, how can I find out...

When you in the admin and go to the Warning System, push on the Manage Warning Types, then you can see the version number of the hack in the right corner

bahawolf 01-30-2005 07:17 PM

Upgrading from version 3.1.2 it tells me to upload 3 image files:
warnuser.gif, viewuserwarnings.gif and viewyourwarnings.gif

None of which I can find in the zip.


Oh, nevermind.. I see they can be deleted later.. Thanks anyway. :)

bahawolf 01-30-2005 07:34 PM

Database error in vBulletin 3.0.5:

Invalid SQL: update warning_options set
hierarchical='Yes',
automatic='No',
automaticpm='No',
autocomments='Yes',
warner='0',
automatic_warner='1',
collector='',
banned_limit='7',
points_before_banned='10',
warnings_before_banned='',
banned_usergroup_id='13',
troll_usergroup_id='13',
protected_usergroups='6|6',
aprotected_usergroups='6',
restore_groupid='2',
incr_ban_days='Yes',
max_no_bans='3',
bans_mature='0',
viewoption='All',
multiple_per_post='Yes',
send_pm_warning='Yes',
send_em_warning='No',
email_on_ban='Yes',
historical='Yes',
allowoffpost='Yes',
warnings_per_page='15',
textbutoption='Text'
where oid='1'
mysql error: Unknown column 'collector' in 'field list'

mysql error number: 1054

I got that updating my AWS Options after upgrading to version 3.1.5

rh2004 01-30-2005 08:36 PM

Quote:

Originally Posted by sv1cec
If you didn't have the caused_ban field in that table, you are at around 2.3.1 or something. Lots of changes to get to the latest version. I would suggest that you uninstall and reinstall from scratch.

Rgds


Yeah it was around Dec 1ish when I installed it... so how do I un-install it
apart from use the uninstaller... it will be alot easier

Maybe good if you can add the version you are using in the control panel.. :nervous:


I ran the uninstaller.. and now receive this error when I go to /board/

Code:

Database error in vBulletin 3.0.6:

Invalid SQL: select * from warning_options where oid='1'
mysql error: Table 'xx_forums.warning_options' doesn't exist

mysql error number: 1146

Date: Sunday 30th of January 2005 05:41:09 PM
Script: http:///board/
Referer:
Username: xx
IP Address: xx




Quote:

Quote:
Originally Posted by rh2004
but I don't know what version im running at all, how can I find out...


When you in the admin and go to the Warning System, push on the Manage Warning Types, then you can see the version number of the hack in the right corner
Doesn't show me anything...

sv1cec 01-30-2005 08:53 PM

Quote:

Originally Posted by rh2004
Yeah it was around Dec 1ish when I installed it... so how do I un-install it
apart from use the uninstaller... it will be alot easier

Maybe good if you can add the version you are using in the control panel.. :nervous:


I ran the uninstaller.. and now receive this error when I go to /board/

Code:

Database error in vBulletin 3.0.6:

Invalid SQL: select * from warning_options where oid='1'
mysql error: Table 'xx_forums.warning_options' doesn't exist

mysql error number: 1146

Date: Sunday 30th of January 2005 05:41:09 PM
Script: http:///board/
Referer:
Username: xx
IP Address: xx






Doesn't show me anything...

The uninstaller removes some things, the changes to the files remain. The error is because one of the files is trying to read a table which has been erased by the uninstaller. Now run the installation script and you should be OK, as far as the database is concerned. Then check the .php gfiles and make sure that you have all the necessary changes in them.

rh2004 01-30-2005 09:24 PM

Yeah as I did remove all the old stuff last time from the php files.. trying it now

rh2004 01-30-2005 09:42 PM

OK I cannot log in to run the installer

I have replaced the root and includes files with the default vb ones as I thought it would allow me on there but I still get this error


Code:

Database error in vBulletin 3.0.6:

Invalid SQL: select * from warning_options where oid='1'
mysql error: Table 'xx_forums.warning_options' doesn't exist

mysql error number: 1146

Date: Sunday 30th of January 2005 06:39:30 PM
Script: http:///board/
Referer:
Username: x
IP Address: xx


bahawolf 01-30-2005 10:12 PM

Any solution to my problem?

Ganon 01-30-2005 11:16 PM

I installed the hack, followed all the instructions, but when I hit "warn user" I get a blank page, any ideas?

sv1cec 01-31-2005 03:52 AM

Quote:

Originally Posted by bahawolf
Database error in vBulletin 3.0.5:

Invalid SQL: update warning_options set
hierarchical='Yes',
automatic='No',
automaticpm='No',
autocomments='Yes',
warner='0',
automatic_warner='1',
collector='',
banned_limit='7',
points_before_banned='10',
warnings_before_banned='',
banned_usergroup_id='13',
troll_usergroup_id='13',
protected_usergroups='6|6',
aprotected_usergroups='6',
restore_groupid='2',
incr_ban_days='Yes',
max_no_bans='3',
bans_mature='0',
viewoption='All',
multiple_per_post='Yes',
send_pm_warning='Yes',
send_em_warning='No',
email_on_ban='Yes',
historical='Yes',
allowoffpost='Yes',
warnings_per_page='15',
textbutoption='Text'
where oid='1'
mysql error: Unknown column 'collector' in 'field list'

mysql error number: 1054

I got that updating my AWS Options after upgrading to version 3.1.5

Add the 'collector' column, by running this query:

ALTER TABLE `".TABLE_PREFIX."warning_options` ADD COLUMN collector int(10) unsigned AFTER warner

Rgds

sv1cec 01-31-2005 03:53 AM

Quote:

Originally Posted by rh2004
OK I cannot log in to run the installer

I have replaced the root and includes files with the default vb ones as I thought it would allow me on there but I still get this error


Code:

Database error in vBulletin 3.0.6:

Invalid SQL: select * from warning_options where oid='1'
mysql error: Table 'xx_forums.warning_options' doesn't exist

mysql error number: 1146

Date: Sunday 30th of January 2005 06:39:30 PM
Script: http:///board/
Referer:
Username: x
IP Address: xx


Replace admincp/index.php as well and try again.

sv1cec 01-31-2005 03:54 AM

Quote:

Originally Posted by Ganon
I installed the hack, followed all the instructions, but when I hit "warn user" I get a blank page, any ideas?

Hover your mouse over the link (or button) and look at the bottom line of your browser to tell me what it says (what link it is pointing to). Most probably you have some mistake there.

Rgds

Delphiprogrammi 01-31-2005 04:28 PM

Quote:

Originally Posted by Ganon
I installed the hack, followed all the instructions, but when I hit "warn user" I get a blank page, any ideas?


that happend to me to i sorted it out by making sure all requirerd templated in the currently used style are there.You only need to edit one style templates manually then you can use this hack to copy templates from one style to another

achtungbaby 01-31-2005 04:39 PM

Hello, impressive hack, just installed. Having a small problem with the user groups feature though. I've altered the default user groups on my board and the AWS is classifying a customized group as "Super Moderator"...my question is, do I need to make a change within the AWS files (and if so, which ones), templates or db?

sv1cec 01-31-2005 04:46 PM

Quote:

Originally Posted by achtungbaby
Hello, impressive hack, just installed. Having a small problem with the user groups feature though. I've altered the default user groups on my board and the AWS is classifying a customized group as "Super Moderator"...my question is, do I need to make a change within the AWS files (and if so, which ones), templates or db?

You mean that your admin is not 6, mod is not 7 and supermod is not 5???

I am sorry to tell you, that there are a heck of a lot of changes to make. Both in files and templates. Maybe, if I get the courage, I'll come up with a new version where these groups are user-definable, but I do not think it is worth the effort.

Sorry :-(

achtungbaby 01-31-2005 04:57 PM

Quote:

Originally Posted by sv1cec
You mean that your admin is not 6, mod is not 7 and supermod is not 5???

I am sorry to tell you, that there are a heck of a lot of changes to make. Both in files and templates. Maybe, if I get the courage, I'll come up with a new version where these groups are user-definable, but I do not think it is worth the effort.

Sorry :-(

No problem, I just wanted to confirm that the AWS was using this pattern:

super mod - 5
admin - 6
mod - 7

sv1cec 01-31-2005 05:18 PM

Quote:

Originally Posted by achtungbaby
No problem, I just wanted to confirm that the AWS was using this pattern:

super mod - 5
admin - 6
mod - 7

Yes, it is based on the standard vB user groups. Now why on earth vB is using these ones for admins/supermods and mods, don't ask me, I would use 1,2 and 3, but I can't speak for others.

Rgds

Ganon 01-31-2005 08:51 PM

Quote:

Originally Posted by sv1cec
Hover your mouse over the link (or button) and look at the bottom line of your browser to tell me what it says (what link it is pointing to). Most probably you have some mistake there.

Rgds

http://www.ganonstower.com/forums/Wa...902&post=67631

sv1cec 01-31-2005 09:39 PM

Quote:

Originally Posted by Ganon

The link seems correct, if you get a blank page, make sure the templates are there. Are you using another style maybe?

Rgds

Ganon 01-31-2005 10:09 PM

I tested it in the default style, where I originally installed the templates, but I'll doublecheck it to make sure I did them all. It was only postbit and postbit legacy, right? The ones at the very bottom of the instruction page?

sv1cec 01-31-2005 10:22 PM

Quote:

Originally Posted by Ganon
I tested it in the default style, where I originally installed the templates, but I'll doublecheck it to make sure I did them all. It was only postbit and postbit legacy, right? The ones at the very bottom of the instruction page?

Check if in your templates there is a template group called "Advanced Warning System Templates", it 's towards the bottom of the templates list. What version are you installing by the way?

Ganon 01-31-2005 10:40 PM

I'll take a look. I just installed it yesterday, so whatever the latest version as of then is, and I'm installing it on vBulletin 3.0.6.

EDIT: There are no advanced warning system templates, so I"m guessing that's the problem. I'll double check the install file to see if I accidentally skipped a step. Other than that the hack seems great.

sv1cec 02-01-2005 05:32 AM

Quote:

Originally Posted by Ganon
I'll take a look. I just installed it yesterday, so whatever the latest version as of then is, and I'm installing it on vBulletin 3.0.6.

EDIT: There are no advanced warning system templates, so I"m guessing that's the problem. I'll double check the install file to see if I accidentally skipped a step. Other than that the hack seems great.

Can't work without them, can it?

Let me know if you have problems.

sv1cec 02-01-2005 05:45 AM

ANNOUNCEMENT

The Advanced Warning System has been accepted to have its own Premium Forum, in vBulletin.org. The forum is located here:

https://vborg.vbsupport.ru/forumdisplay.php?f=105

From now on, I would appreciate if you could ask your questions, in that forum, instead of this thread. In that way, you will get better attention and quicker response.

I'll be following this thread for a while, and any new release will be posted here, but obviously my attention will be focused in that forum.

Many thanks for your support.

--------------

John


All times are GMT. The time now is 11:02 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.03335 seconds
  • Memory Usage 2,140KB
  • 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
  • (8)bbcode_code_printable
  • (20)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