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)

SamirDarji 12-17-2004 03:11 PM

Quote:

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

The template is present, and works when issueing post-related warnings. How does the template get called after the non-post related warning? That's the area I think I need to look into for a problem.

bigdaddybryce 12-17-2004 06:58 PM

In the same template, find:

$post[reputationdisplay]</if>

This entry is not present in my postbit or postbit_legacy template...

Any ideas...I am using the Grassy Knoll template

nubian 12-17-2004 08:40 PM

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(&quot;select from &quot;.TABLE_PREFIX.&quot;warning_options where oid='1'&quot;); 

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

HTML Code:

    <!-- checks for warning system -->
    <td  class=&quot;thead&quot; align=&quot;right&quot;>
    <div class=&quot;smallfont&quot; style=&quot;float:$stylevar[right]&quot;>
    <if condition=&quot;THIS_SCRIPT=='member' AND $warn_opts[allowoffpost]=='Yes'&quot;>
            <if condition=&quot;$hierarchical=='No'&quot;>
                <if condition=&quot;($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5) AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7&quot;>
                        <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=&quot;$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=7 AND $userinfo[usergroupid]!=5 AND $userinfo[warning_level]>0&quot;>
                        <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>
                    </if>
            </if>
            <if condition=&quot;$hierarchical=='Yes'&quot;>
                <if condition=&quot;($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)&quot;>
                        <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=&quot;$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[warning_level]>0&quot;>
                                <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

1. check
2. check
3. well...i don't have that. so what i did was reverted my memberinfo template and coded the way it wanted me to do it in the WarningSystemInstallationInstructions.txt directions from 2.3.5 not the updatetothelatestversion.txt

maybe i'm lost but the code that you told me to find in memberinfo in the past threads:

Code:

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

cannot even be found in your latest 2.3.5 install.txt file which has this:

Code:

<!-- main info - avatar, profilepic etc. -->
 <table class=&quot;tborder&quot; cellpadding=&quot;$stylevar[cellpadding]&quot; cellspacing=&quot;$stylevar[cellspacing]&quot; border=&quot;0&quot; width=&quot;100%&quot; align=&quot;center&quot;>
  <tr>
  <td class=&quot;thead&quot;>
 <table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; align=&quot;center&quot;>
  <tr>
          <td class=&quot;thead&quot;>$vbphrase[view_profile]: $userinfo[username]
  <!-- checks for warning system -->
  <td  class=&quot;thead&quot; align=&quot;right&quot;>
  <div class=&quot;smallfont&quot; style=&quot;float:$stylevar[right]&quot;>
  <if condition=&quot;THIS_SCRIPT=='member' AND $warn_options[allowoffpost]=='Yes'&quot;>
          <if condition=&quot;$hierarchical=='No'&quot;>
        <if condition=&quot;($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5) AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7&quot;>
                  <a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related) ? View $userinfo[username]'s Warnings
                  </if>
        <if condition=&quot;$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=7 AND $userinfo[usergroupid]!=5 AND $userinfo[warning_level]>0&quot;>
                        <a href='Warn.php?do=ViewMyWarnings'>View your Warnings
                  </if>
          </if>
          <if condition=&quot;$hierarchical=='Yes'&quot;>
        <if condition=&quot;($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)&quot;>
                <a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related) ? View $userinfo[username]'s Warnings
                  </if>
        <if condition=&quot;$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[warning_level]>0&quot;>
                        <a href='Warn.php?do=ViewMyWarnings'>View your Warnings
                  </if>
          </if>
  </if>
  <!-- end of warning system -->       
  </div>
  </td>
  </tr>
  </table>
  </td>
  </tr>
  <tr>
          <td class=&quot;alt2&quot;>
                <table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot;>
                  <tr>
                <td style=&quot;border-bottom:1px solid $stylevar[tborder_bgcolor]&quot; colspan=&quot;3&quot;>               
                        <if condition=&quot;$userinfo['rank'] OR $userinfo['reputationdisplay']&quot;>
                          <div style=&quot;float:$stylevar[right]; padding:4px&quot;>
                                  <if condition=&quot;$userinfo['rank']&quot;>
$userinfo[rank]
 
                                  <if condition=&quot;$userinfo['reputationdisplay']&quot;>
$userinfo[reputationdisplay]
 
                                        </div>
                  </if>                       
                        <div style=&quot;font-size:18pt&quot;>$userinfo[musername]
                                <if condition=&quot;$userinfo['usertitle']&quot;>$userinfo[usertitle]
 
                          </td>
 <td style=&quot;border-bottom:1px solid $stylevar[tborder_bgcolor]&quot; align=&quot;$stylevar[right]&quot;>
  <div class=&quot;smallfont&quot;>
  <b>User ID : $userid
  <if condition=&quot;$viewoption=='All'&quot;>
  <if condition=&quot;$userinfo[warning_level]>0&quot;>
  <font color=&quot;#ff0000&quot;>
  <BR>Warnings Level: $userinfo[warning_level]
  <font color=&quot;#000000&quot;>
  </if>
  <if condition=&quot;$userinfo[warning_bans]>0&quot;>
  <font color=&quot;#ff0000&quot;>
  <BR>Number of bans: $userinfo[warning_bans]
  <font color=&quot;#000000&quot;>
  </if>
  </if>
  </div>
  <if condition=&quot;$viewoption=='Mgm' AND $hierarchical=='Yes'&quot;>
  <if condition=&quot;($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)
  &quot;>
  <if condition=&quot;$userinfo[warning_level]>0&quot;>
  <font color=&quot;#ff0000&quot;>
  <BR>Warnings Level: $userinfo[warning_level]
  <font color=&quot;#000000&quot;>
  </if>
  <if condition=&quot;$userinfo[warning_bans]>0&quot;>
  <font color=&quot;#ff0000&quot;>
  <BR>Number of bans: $userinfo[warning_bans]
  <font color=&quot;#000000&quot;>
  </if>
  </if>
  </if>
 
  <if condition=&quot;$viewoption=='Mgm' AND $hierarchical=='No' AND
  (
  $bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR
  $bbuserinfo[usergroupid]==6
  )&quot;>
  <if condition=&quot;$userinfo[warning_level]>0&quot;>
  <font color=&quot;#ff0000&quot;>
  <BR>Warnings Level: $userinfo[warning_level]
  <font color=&quot;#000000&quot;>
  </if>
  <if condition=&quot;$userinfo[warning_bans]>0&quot;>
  <font color=&quot;#ff0000&quot;>
  <BR>Number of bans: $userinfo[warning_bans]
  <font color=&quot;#000000&quot;>
  </if>
  </if>
  </td>
                        <if condition=&quot;$show['profilepic']&quot;>
                <td valign=&quot;middle&quot; align=&quot;$stylevar[right]&quot; rowspan=&quot;2&quot; width=&quot;160&quot;>
                                <center>https://vborg.vbsupport.ru/$vbphrase[xs_picture]&quot; border=&quot;0&quot; style=&quot;border:1px solid $stylevar[tborder_bgcolor]&quot; />
                          </td>
                          </if>
                  </tr>



mind you i reverted my memberinfo template and did exactly what was said to do in the latest 2.3.5
i went into my test users public profile and i still don't see the options to warn them. https://vborg.vbsupport.ru/
i'm completely lost.

nubian 12-17-2004 08:44 PM

Quote:

Originally Posted by bigdaddybryce
In the same template, find:

$post[reputationdisplay]</if>

This entry is not present in my postbit or postbit_legacy template...

Any ideas...I am using the Grassy Knoll template

it's there...just find it like this:

Code:

$post[reputationdisplay]

SamirDarji 12-17-2004 09:15 PM

Quote:

Originally Posted by nubian
1. check
2. check
3. well...i don't have that. so what i did was reverted my memberinfo template and coded the way it wanted me to do it in the WarningSystemInstallationInstructions.txt directions from 2.3.5 not the updatetothelatestversion.txt

maybe i'm lost but the code that you told me to find in memberinfo in the past threads:

Code:

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

cannot even be found in your latest 2.3.5 install.txt file which has this:

Code:

<!-- main info - avatar, profilepic etc. -->
 <table class=&quot;tborder&quot; cellpadding=&quot;$stylevar[cellpadding]&quot; cellspacing=&quot;$stylevar[cellspacing]&quot; border=&quot;0&quot; width=&quot;100%&quot; align=&quot;center&quot;>
  <tr>
  <td class=&quot;thead&quot;>
 <table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; align=&quot;center&quot;>
  <tr>
          <td class=&quot;thead&quot;>$vbphrase[view_profile]: $userinfo[username]
  <!-- checks for warning system -->
  <td  class=&quot;thead&quot; align=&quot;right&quot;>
  <div class=&quot;smallfont&quot; style=&quot;float:$stylevar[right]&quot;>
  <if condition=&quot;THIS_SCRIPT=='member' AND $warn_options[allowoffpost]=='Yes'&quot;>
          <if condition=&quot;$hierarchical=='No'&quot;>
        <if condition=&quot;($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5) AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7&quot;>
                  <a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related) ? View $userinfo[username]'s Warnings
                  </if>
        <if condition=&quot;$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=7 AND $userinfo[usergroupid]!=5 AND $userinfo[warning_level]>0&quot;>
                        <a href='Warn.php?do=ViewMyWarnings'>View your Warnings
                  </if>
          </if>
          <if condition=&quot;$hierarchical=='Yes'&quot;>
        <if condition=&quot;($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)&quot;>
                <a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related) ? View $userinfo[username]'s Warnings
                  </if>
        <if condition=&quot;$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[warning_level]>0&quot;>
                        <a href='Warn.php?do=ViewMyWarnings'>View your Warnings
                  </if>
          </if>
  </if>
  <!-- end of warning system -->       
  </div>
  </td>
  </tr>
  </table>
  </td>
  </tr>
  <tr>
          <td class=&quot;alt2&quot;>
                <table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot;>
                  <tr>
                <td style=&quot;border-bottom:1px solid $stylevar[tborder_bgcolor]&quot; colspan=&quot;3&quot;>               
                        <if condition=&quot;$userinfo['rank'] OR $userinfo['reputationdisplay']&quot;>
                          <div style=&quot;float:$stylevar[right]; padding:4px&quot;>
                                  <if condition=&quot;$userinfo['rank']&quot;>
$userinfo[rank]
 
                                  <if condition=&quot;$userinfo['reputationdisplay']&quot;>
$userinfo[reputationdisplay]
 
                                        </div>
                  </if>                       
                        <div style=&quot;font-size:18pt&quot;>$userinfo[musername]
                                <if condition=&quot;$userinfo['usertitle']&quot;>$userinfo[usertitle]
 
                          </td>
 <td style=&quot;border-bottom:1px solid $stylevar[tborder_bgcolor]&quot; align=&quot;$stylevar[right]&quot;>
  <div class=&quot;smallfont&quot;>
  <b>User ID : $userid
  <if condition=&quot;$viewoption=='All'&quot;>
  <if condition=&quot;$userinfo[warning_level]>0&quot;>
  <font color=&quot;#ff0000&quot;>
  <BR>Warnings Level: $userinfo[warning_level]
  <font color=&quot;#000000&quot;>
  </if>
  <if condition=&quot;$userinfo[warning_bans]>0&quot;>
  <font color=&quot;#ff0000&quot;>
  <BR>Number of bans: $userinfo[warning_bans]
  <font color=&quot;#000000&quot;>
  </if>
  </if>
  </div>
  <if condition=&quot;$viewoption=='Mgm' AND $hierarchical=='Yes'&quot;>
  <if condition=&quot;($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)
  &quot;>
  <if condition=&quot;$userinfo[warning_level]>0&quot;>
  <font color=&quot;#ff0000&quot;>
  <BR>Warnings Level: $userinfo[warning_level]
  <font color=&quot;#000000&quot;>
  </if>
  <if condition=&quot;$userinfo[warning_bans]>0&quot;>
  <font color=&quot;#ff0000&quot;>
  <BR>Number of bans: $userinfo[warning_bans]
  <font color=&quot;#000000&quot;>
  </if>
  </if>
  </if>
 
  <if condition=&quot;$viewoption=='Mgm' AND $hierarchical=='No' AND
  (
  $bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR
  $bbuserinfo[usergroupid]==6
  )&quot;>
  <if condition=&quot;$userinfo[warning_level]>0&quot;>
  <font color=&quot;#ff0000&quot;>
  <BR>Warnings Level: $userinfo[warning_level]
  <font color=&quot;#000000&quot;>
  </if>
  <if condition=&quot;$userinfo[warning_bans]>0&quot;>
  <font color=&quot;#ff0000&quot;>
  <BR>Number of bans: $userinfo[warning_bans]
  <font color=&quot;#000000&quot;>
  </if>
  </if>
  </td>
                        <if condition=&quot;$show['profilepic']&quot;>
                <td valign=&quot;middle&quot; align=&quot;$stylevar[right]&quot; rowspan=&quot;2&quot; width=&quot;160&quot;>
                                <center>[img]%22image.php?u=$userinfo%5Buserid%5D&type=profile&dateline=$userinfo%5Bprofilepicdateline%5D%22[/img]$vbphrase[xs_picture]&quot; border=&quot;0&quot; style=&quot;border:1px solid $stylevar[tborder_bgcolor]&quot; />
                          </td>
                          </if>
                  </tr>



mind you i reverted my memberinfo template and did exactly what was said to do in the latest 2.3.5
i went into my test users public profile and i still don't see the options to warn them. [img]images/newsm/depressed.gif[/img]
i'm completely lost.

He only gave a piece of the member template. If you look at the member template from the 2.3.5 instructions, there is a comment called that matches the first line of the code he posted from his own member template. That's what I used and got the options to show. I'll do a comparison later to find the differences between the two.

SamirDarji 12-17-2004 09:27 PM

Ok, I found the difference. Make sure in your memberinfo template, there is $warn_options instead of $warn_opts. Apparently that's what was wrong in my case and could be in your case as well.

bigdaddybryce 12-17-2004 09:30 PM

Quote:

Originally Posted by nubian
it's there...just find it like this:

Code:

$post[reputationdisplay]

searched again...notta

nubian 12-17-2004 10:00 PM

Quote:

Originally Posted by bigdaddybryce
searched again...notta

that field has to be there unless you've edited it before
if it were the stock temlate you should be able to find it....at least on vb 3.0.3

nubian 12-17-2004 10:01 PM

Quote:

Originally Posted by SamirDarji
Ok, I found the difference. Make sure in your memberinfo template, there is $warn_options instead of $warn_opts. Apparently that's what was wrong in my case and could be in your case as well.

i have options instead of opts

bigdaddybryce 12-18-2004 03:30 AM

Quote:

Any ideas...I am using the Grassy Knoll template
I am not using the stock template but another one that I found of VB Templates

sv1cec 12-18-2004 02:47 PM

Nubian and Samir,

If you have some where warn_options, instead of warn_opts, that means that somewhere along your upgrades you haven't followed the instructions properly. The change to warn_opts was done back in version 2.2, when I moved the query for the options in the global.php file. It now resides in functions_warning.php, but the warn_opts parameter has not been changed, since then. If you check the upgrade instructions there, you will see that it says to replace all warn_options with warn_opts.

Check your member.php file There should be the following line somewhere:

require_once('./includes/functions_warning.php');

From there on, make sure that warn_options is replaced in the file, with warn_opts. That's the proper parameter and that is what should be checked wherever it is checked.

sv1cec 12-18-2004 02:49 PM

Quote:

Originally Posted by bigdaddybryce
I am not using the stock template but another one that I found of VB Templates

For whoever is using a different template set than the standard, it is obvious that the installation or the upgrade instructions would not match. You need to compare the standard template with the one you are using and find out the most appropriate place to insert the different code pieces from my hack.

Rgds

sv1cec 12-18-2004 02:51 PM

One more thing, gentlemen, for some reasons I am not receiving e-mail notifications from this forums, whenever you post something. This is the reason I am late at responding some times. The funny thing is that I do receive notes about hacks I've participated in their threads months ago, but not from this one, at least not regularly.

Apologies, and I would appreciate if an admin can look at this problem, I am reporting this post right now, to see what can be done.

sv1cec 12-18-2004 03:06 PM

Quote:

Originally Posted by SamirDarji
The template is present, and works when issueing post-related warnings. How does the template get called after the non-post related warning? That's the area I think I need to look into for a problem.

The redirect template is called from the Warn.php file. Go in the file and find the following code:

PHP Code:

$url="member.php?u={$_POST['id']}";
eval(
'$warn_page .= "' fetch_template('warn_redirect') . '";');

// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// Warn [User] ~ do
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
}
//***************************************************************************************


if($_GET['do']=="ViewMyWarnings"){
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// Warn [View Your Own]
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// Navigation
    
$navbits= array("Warn.php?$session[sessionurl]&do=ViewMyWarnings" => "Your Warnings");
    
$navbits[""]= "Viewing Your Warnings"

Right there, at the top, it is where the redirect is called. Make sure this exist in your file.

SamirDarji 12-18-2004 04:20 PM

I originally started with 2.3.1. The only changes I've made since then is the member template cut and paste. For the live board, I'll be starting fresh with the latest version.

The piece of code is there. I'm thinking that during a db query something isn't returning right. I've seen this happen with other hacks as well installed on the test server. I just wanted to make sure that was the case, but it doesn't seem like I'll be able to pinpoint it. I'll be installing the warning system on the live board next week.

sv1cec 12-18-2004 06:24 PM

Quote:

Originally Posted by SamirDarji
I originally started with 2.3.1. The only changes I've made since then is the member template cut and paste. For the live board, I'll be starting fresh with the latest version.

The piece of code is there. I'm thinking that during a db query something isn't returning right. I've seen this happen with other hacks as well installed on the test server. I just wanted to make sure that was the case, but it doesn't seem like I'll be able to pinpoint it. I'll be installing the warning system on the live board next week.

If you haven't done every upgrade, exactly as described, it is normal to run into troubles, and this is what's happening to your test environment, because of the queries that some of them are working with warn_opts, others with warn_options etc. Start from scratch in your live site.

Just download the latest zip, the day you start the installation, and work with it.

Don't cut any corners, do everything as it is in the instructions. To the best of my knowledge, they are correct 100%.

Rds

wez 12-18-2004 07:23 PM

1 word........... fantastic!!

closed the forum... applied the installation step by step, took a while - double checked EVERYTHING - opened forum...... and booya! works a treat! fantastic stuff...

Thanks :D !

sv1cec 12-18-2004 08:21 PM

Quote:

Originally Posted by wez
1 word........... fantastic!!

closed the forum... applied the installation step by step, took a while - double checked EVERYTHING - opened forum...... and booya! works a treat! fantastic stuff...

Thanks :D !

Most welcome Sir!

SamirDarji 12-18-2004 10:35 PM

Quote:

Originally Posted by sv1cec
If you haven't done every upgrade, exactly as described, it is normal to run into troubles, and this is what's happening to your test environment, because of the queries that some of them are working with warn_opts, others with warn_options etc.

That makes sense. In your opinion, do you think everything otherwise is working fine and this is the only issue left?

Quote:

Originally Posted by sv1cec
Start from scratch in your live site. Just download the latest zip, the day you start the installation, and work with it.

Don't cut any corners, do everything as it is in the instructions. To the best of my knowledge, they are correct 100%.

Will do. My methodolgy for the live site is rigorous compared to the test server. Every template change is documented, every php file revision is documented, and even changes in any options are documented. It's really time consuming, but it works. If I have a problem, I'm able to easily back up and see at what step it started at.

nubian 12-19-2004 01:59 AM

Quote:

Originally Posted by sv1cec
Nubian and Samir,

If you have some where warn_options, instead of warn_opts, that means that somewhere along your upgrades you haven't followed the instructions properly. The change to warn_opts was done back in version 2.2, when I moved the query for the options in the global.php file. It now resides in functions_warning.php, but the warn_opts parameter has not been changed, since then. If you check the upgrade instructions there, you will see that it says to replace all warn_options with warn_opts.

Check your member.php file There should be the following line somewhere:

require_once('./includes/functions_warning.php');

From there on, make sure that warn_options is replaced in the file, with warn_opts. That's the proper parameter and that is what should be checked wherever it is checked.

i finally got it to work.

there is nothing stating that i had to change all of my warn_options to warn_opts.

now the thing is that i initially started with 2.3.2 and upgraded to the latest insequential order
3.2 to 3.3 to 3.4 to 3.5
the only place from the 2.3.5 "UpgradeToLatestVersion.txt"t is where it starts from versions 2.1 to 2.2
but more enough...it's working now.
thank you for the great support

DS MrSinister 12-19-2004 06:01 AM

When I run this i get a error..

how would i get this to work right?

PHP Code:

ALTER TABLE `".TABLE_PREFIX."warning_optionsADD COLUMN `versionchar(10AFTER oid 


sv1cec 12-19-2004 06:29 AM

Quote:

Originally Posted by DS MrSinister
When I run this i get a error..

how would i get this to work right?

PHP Code:

ALTER TABLE `".TABLE_PREFIX."warning_optionsADD COLUMN `versionchar(10AFTER oid 


If you are not using a special TABLE_PREFIX in your database, delete the part saying ".TABLE_PREFIX." . I have to assume that this is the error you are getting, because you didn't say what it was.

Rgds

hello 12-19-2004 06:55 AM

just try this ALTER TABLE `warning_options` ADD COLUMN `version` char(10) AFTER oid

Delphiprogrammi 12-19-2004 10:33 AM

hi,

open up config.php and look for

PHP Code:

Prefix that your vBulletin tables have in the database.
// For example: $tableprefix = 'vb3_';
$tableprefix ''

if this setting is empty do not worry about it if it isn't then replace the "TABLE_PREFIX" with the setting you have in $tableprefix


note DO NOT EDIT THIS SETTING unless vbulletin tells you todo it your vbulletin installing will stop to work !

DS MrSinister 12-19-2004 03:58 PM

THanks but i have another problem here....


this what i get when i click on View Warned Users in the admin Panel.

PHP Code:

Database error in vBulletin 3.0.3:

Invalid SQLSELECT COUNT(*) AS users FROM user AS user where warnings>0
mysql error
Unknown column 'warnings' in 'where clause'

mysql error number1054 

Maybe i miss adding a table or something!.. any ideas...

mcyates 12-20-2004 10:13 AM

Is it possible to remove the logging of bans after say 6 months? I'm just thinking if a member gets banned and the first ban is 7 day the 2nd ban is permanent. Say he got a ban within 1 months of joining, then he becomes a quality member and 2 years later gets banned again (due to multiple warnings) he'll be banned permanently and i think theis might be a little harsh. Could you add an option like:

Delete ban history if older than 6 months? YES / NO

Tell me what you think?

ArAb4NoKiA 12-20-2004 12:41 PM

ThAnXxXxX

SamirDarji 12-20-2004 04:42 PM

Quote:

Originally Posted by mcyates
Is it possible to remove the logging of bans after say 6 months? I'm just thinking if a member gets banned and the first ban is 7 day the 2nd ban is permanent. Say he got a ban within 1 months of joining, then he becomes a quality member and 2 years later gets banned again (due to multiple warnings) he'll be banned permanently and i think theis might be a little harsh. Could you add an option like:

Delete ban history if older than 6 months? YES / NO

Tell me what you think?

Not a bad idea. I like. :D

sv1cec 12-20-2004 05:21 PM

Gentlemen,

please forgive my absence, but yesterday, rain got through an open window, into my PC's monitor.

At this time, my Internet access is done through an old Sun server, with a very old
version of Netscape browser. Unfortunatelly, this version crashes, every
time I go into a message composition screen. I just downloaded and installed a beta
version of Mozilla, hoping,that I'll be able to send this message to you.

As you understand, I am unable to provide support, until my normal access is restored
hopefully tomorrow. Until then:

1. DR MrSinister's problem originates from the fact that he has not added the three new
columns, in his user table, during one of the upgrades (I do not have access to the
Versions file, so I do not remember in which version they were added). Check the
UpgradeToLatestVersion.txt file and fine the query that adds these in the table.
2. Deleting the bans is more troublesome that it initially appears, because I do
not store the ban date anywhere, at this time. If this feature is to be included,
I'll have to have at least the date of the last ban, stored in the user table, so that
a cron job can then remove it. Also, a parameter has to be added in the warning_options
table, to specify after how many days the bans will be erased.

I assume you will have to wait for after the Holidays for this.

Sorry for not being here yesterday or today, but I was trying to have my monitor fixed.
I didn't, so I have to get a new one, and this is not the best of times for such
expenditure.

Rgds

just to see if that would allow me to

rh2004 12-21-2004 12:58 AM

I don't know what version I have lol you are creating them so fast..

Anyway I got a suggestion, when I warned someone and then disactived it (removed)
just removed not completely, how can I re-active it... without having to send out a
nother warning to the user... I think that would be a good add-on :)

sv1cec 12-21-2004 12:30 PM

Quote:

Originally Posted by rh2004
I don't know what version I have lol you are creating them so fast..

Anyway I got a suggestion, when I warned someone and then disactived it (removed)
just removed not completely, how can I re-active it... without having to send out a
nother warning to the user... I think that would be a good add-on :)

Oh come on, it's hardly worth the coding effort. Just go into your warnings table, find that particular warning and change the status from "I" to "A", it 's a simple SQL query.

Anyway, I am back on-line (and 325 Euros poorer), so I have to catch up with all the things that got left behind these two days.

Rgds

Viol8or 12-21-2004 03:09 PM

This is a wonderfull hack! Took me some time to install from scratch (mostly because of the different styles that I've done manually, but it works nice).
This really helps out my moderators on my board!!!! VERY VERY nice work. Keep it up!

DS MrSinister 12-21-2004 06:24 PM

Quote:

Originally Posted by sv1cec
Gentlemen,

please forgive my absence, but yesterday, rain got through an open window, into my PC's monitor.

At this time, my Internet access is done through an old Sun server, with a very old
version of Netscape browser. Unfortunatelly, this version crashes, every
time I go into a message composition screen. I just downloaded and installed a beta
version of Mozilla, hoping,that I'll be able to send this message to you.

As you understand, I am unable to provide support, until my normal access is restored
hopefully tomorrow. Until then:

1. DR MrSinister's problem originates from the fact that he has not added the three new
columns, in his user table, during one of the upgrades (I do not have access to the
Versions file, so I do not remember in which version they were added). Check the
UpgradeToLatestVersion.txt file and fine the query that adds these in the table.
2. Deleting the bans is more troublesome that it initially appears, because I do
not store the ban date anywhere, at this time. If this feature is to be included,
I'll have to have at least the date of the last ban, stored in the user table, so that
a cron job can then remove it. Also, a parameter has to be added in the warning_options
table, to specify after how many days the bans will be erased.

I assume you will have to wait for after the Holidays for this.

Sorry for not being here yesterday or today, but I was trying to have my monitor fixed.
I didn't, so I have to get a new one, and this is not the best of times for such
expenditure.

Rgds

just to see if that would allow me to


sorry to hear about U stuff there.. That sucks..

Thanks for the help... Got it working now.. :)

bigcurt 12-23-2004 02:31 AM

For some reason it is like I can see the warning points in the postbit for a minute or so then it DISAPEARS..does ANYONE have any idea about this??

bigcurt 12-23-2004 02:34 AM

Also, I have a person helping me install this and he cannot see The "View [USER] Warnings" but I can? What is this..It is going crazy lol. I think it has a mind of its own.

Would apreciate ANY help.
Thanks
Big Curt

Delphiprogrammi 12-23-2004 01:11 PM

did you enabled the cron job ? if so admincp =>scheduled tasks => cron log and see what's in there

also only users who have rights to warn others can do that (administrator super moderator) if you view your memberlist click the username (other then yours cause an admin can't be warned) then you should see a link called "warnings" in the uper right corner

also if that person who is helping you to install AWS is using a different style then yours it is pretty normal he won't see it cause those templates aren't edited for it

sv1cec 12-23-2004 02:43 PM

Quote:

Originally Posted by bigcurt8998
For some reason it is like I can see the warning points in the postbit for a minute or so then it DISAPEARS..does ANYONE have any idea about this??

Are you using a different style or something? I can't understand why it appears for a moment and vanishes afterwards. As for who can see the "View USERXYZ warnings" link, there are some issues to consider.

For example, a moderator can see that link in all forums, but he can see the "Warn USERXYZ" link only in the forums he moderates.

And a Supermoderator can see the corresponding links for the users AND the moderators. What is the usergroup you are in, and what the one of the person who is helping you?

Rgds

Viol8or 12-23-2004 05:46 PM

Hey sv1cec ... I have a request/suggestions for future version.
I would be very nice if we could get some warning stats out of your system.
This doens't have to be very extensive, just basic: how many warnings are written out by a mod(s), how many warnings were issued of a certain warning type, what are the top warned users (in addition to the warned user section that is), etc...
I don't know how hard this is to include, but would really appreciate it if you would consider it!
Keep up the good work!!!!

sv1cec 12-23-2004 08:23 PM

Quote:

Originally Posted by Viol8or
Hey sv1cec ... I have a request/suggestions for future version.
I would be very nice if we could get some warning stats out of your system.
This doens't have to be very extensive, just basic: how many warnings are written out by a mod(s), how many warnings were issued of a certain warning type, what are the top warned users (in addition to the warned user section that is), etc...
I don't know how hard this is to include, but would really appreciate it if you would consider it!
Keep up the good work!!!!

Stay tuned, version 3.0 is being cooked at the moment, lots of interesting new things, stats included.

Rgds and Merry Christmas to all those who celebrate Christmas.

bold 12-24-2004 01:46 AM

Quote:

Originally Posted by sv1cec
Stay tuned, version 3.0 is being cooked at the moment, lots of interesting new things, stats included.

Rgds and Merry Christmas to all those who celebrate Christmas.

Cool can't wait!

Merry Christmas to you too my brother. :)


All times are GMT. The time now is 07:15 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.02310 seconds
  • Memory Usage 2,008KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_html_printable
  • (7)bbcode_php_printable
  • (22)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