vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/forumdisplay.php?f=105)
-   -   Avatar & Warn.php Bug (https://vborg.vbsupport.ru/showthread.php?t=78536)

vulture 03-22-2005 02:23 AM

Avatar & Warn.php Bug
 
Using version 3.3.1

In the MEMBERINFO TEMPLATE it refers to images/avatars/noavatar.gif.

I couldn't find the gif in the download or forum install (3.07).

EDIT: Found out Warn.php doesn't redirect either

Cheers

Vulture

sv1cec 03-22-2005 05:32 AM

Quote:

Originally Posted by vulture
Using version 3.3.1

In the MEMBERINFO TEMPLATE it refers to images/avatars/noavatar.gif.

I couldn't find the gif in the download or forum install (3.07).

EDIT: Found out Warn.php doesn't redirect either


Cheers

Vulture

You are right about the avatar, but that shouldn't affect you too much. Just replace this part of the instructions:

HTML Code:

<td colspan="3"><div class="smallfont">User's avatar :<p><img src="images/avatars/noavatar.gif"></td>
with this:

HTML Code:

<td>&nbsp;</td>
The redirection issue though, I can't verify, it works for me. Some times your browser can act up, try closing your browser window and start over. Else, please tell me when it is not redirecting you? When you issue a warning? From the postbit or from the MemberInfo page?

Rgds

vulture 03-22-2005 03:56 PM

Quote:

Originally Posted by sv1cec

The redirection issue though, I can't verify, it works for me. Some times your browser can act up, try closing your browser window and start over. Else, please tell me when it is not redirecting you? When you issue a warning? From the postbit or from the MemberInfo page?

Rgds

It will redirect in IE, just not in Firefox. I've only tried it from the memberinfo page so far.

sv1cec 03-22-2005 04:16 PM

I am using Firefox as my main browser. I just tested it again, from the public profile and it works fine. Some of the browser settings maybe?

Rgds

vulture 03-22-2005 10:04 PM

Weird. On both my home pc and work pc it won't redirect (using firefox), but the other pages do.

I'll look into it further this week. As you say, prob a browser setting somewhere.

sv1cec 03-23-2005 08:41 AM

I knew it!!

Rgds

vulture 03-23-2005 04:41 PM

Ah, I fixed it. It was because I have one window that opens each session in a new tab. Weird.

Found another bug. If I enable non-post related warnings using the non-hierachy option, my other mods and admins can't issue them except for the main admin with user id 1

sv1cec 03-23-2005 05:29 PM

I would appreciate if you could clarify this.

From what I understand, if hierarchy option is set to 'No', only your admin can issue non-post related warnings? Is that correct? The moderators and the supermods do not see the 'Warn XYZ' link? Is that what you mean?

If so, please check your MEMBERINFO template.

vulture 03-23-2005 06:27 PM

That's correct. What am I checking for in MEMBERINFO template?

sv1cec 03-23-2005 07:10 PM

That's how the part where the Warn link is, should look like:

HTML Code:

<!-- 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>
<td class="thead" align='right'><div class="smallfont" style="float:$stylevar[right]">

<if condition="THIS_SCRIPT=='member' AND $vboptions[warn_allowoffpost]==1 AND $buttons=='Text'">
        <if condition="$hierarchical==0">
                <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==1">
                <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 $vboptions[warn_allowoffpost]==1 AND $buttons=='Buttons'">
        <if condition="$hierarchical==0">
                <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==1">
                <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">

Rgds


All times are GMT. The time now is 07:01 AM.

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.01873 seconds
  • Memory Usage 1,778KB
  • 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
  • (3)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete