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)

The Realist 01-10-2005 03:21 PM

In my members warning section within there profile, the choose warning options is blank and none show up.

I have added warning to the system?

Any ideas?

Also.....

My postbit_legacy template is differant from the basic one, can someone help us put the correct code in this template please.

My Original Template:
Code:

<td class="alt1">
       
                <if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>

Code Needed to be added:
Code:

<td class="alt1">
        <TABLE width=100%><TR>
                <TD width=90%><if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                        </div>
</td><TD width=10% align="$stylevar[right]">
<if condition="THIS_SCRIPT=='showthread' AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7) AND $post[warn_flag]>0">
                      <A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
</if>
</td></tr></table>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />

Thanks.

sv1cec 01-10-2005 03:34 PM

Quote:

Originally Posted by The Realist
In my members warning section within there profile, the choose warning options is blank and none show up.

I have added warning to the system?

Any ideas?

Also.....

My postbit_legacy template is differant from the basic one, can someone help us put the correct code in this template please.

My Original Template:
Code:

<td class="alt1">
       
                <if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>

Code Needed to be added:
Code:

<td class="alt1">
        <TABLE width=100%><TR>
                <TD width=90%><if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                        </div>
</td><TD width=10% align="$stylevar[right]">
<if condition="THIS_SCRIPT=='showthread' AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7) AND $post[warn_flag]>0">
                      <A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
</if>
</td></tr></table>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />

Thanks.

Got me mixed up here. Warning Options in profile? Maybe you mean the links to warn xyz and to view xyz's warnings? Are you sure that you have set up your options properly? Are you and admin or a mod viewing the profile? If the answer is yes, check that you have made all the changes properly.

We cross-posted, please send me a larger part of your template, what you posted is not enough for me to help you.

Rgds


Rgds

PKRWUD 01-10-2005 06:04 PM

Just installed this last night and I absolutely LOVE it!!! Instructions were excellent, and it installed without a single problem! Took me 2 hours to do it, lol, but it works perfect, I think...

The only issue I may have is that none of my moderators can see the WARN image. I can see it everytime I come across a post where the member was warned, but they can't see it at all, even posts they warned in their own forums.

Is this the way it's designed to work? If not, where should I look to correct this, and if it is designed that way, is there something I can do to enable the mods to see it?

Thanks!

*edit*
I'm running vB3.0.5, if it matters.

sv1cec 01-10-2005 06:20 PM

Quote:

Originally Posted by PKRWUD
Just installed this last night and I absolutely LOVE it!!! Instructions were excellent, and it installed without a single problem! Took me 2 hours to do it, lol, but it works perfect, I think...

The only issue I may have is that none of my moderators can see the WARN image. I can see it everytime I come across a post where the member was warned, but they can't see it at all, even posts they warned in their own forums.

Is this the way it's designed to work? If not, where should I look to correct this, and if it is designed that way, is there something I can do to enable the mods to see it?

Thanks!


*edit*
I'm running vB3.0.5, if it matters.

No, this is not the way it should work. Mods, supermods and admins should be able to see the Warn sign, that's the whole idea behind it. Actually, the management team has also the ability to click on the sign to see the warnings the post has received.

If the sign does not appear for your mods, while it appears for you (I assume you are the admin), check the postbit template (or postbit_legacy).

This is the code that you should have in postbit (assuming your mods, supermods and admins are usergroups 6,5 and 7):

HTML Code:

<!-- Show warned sign -->

<if condition="THIS_SCRIPT=='showthread' AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7) AND $post[warn_flag]>0">
                      <td><A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a></td>
</if>

<!-- End of show warned sign -->

Let me know if you got it.

Oh, next release the Warn Sign behaviour changes a bit. Again, the management team will be able to see the sign and click on it to see the warnings the post has received, but if the "Who can see the warning level and bans" is set to "All" then the rest of the gang can see the sign (i.e. they can tell the post was warned), but they can't view the warnings.

Rgds

The Realist 01-10-2005 06:28 PM

I dont see any warn sign and Im admin?

Id this right?

PKRWUD 01-10-2005 06:48 PM

Okay, that was my problem. Apparently it's not going to work properly because I have 6 usergroups between the mods, super mods, and admin. I'm guessing I should add the other three usergroups to each of the instances in postbit (actually legacy postbit) where that occurs?

PKRWUD 01-10-2005 06:59 PM

Actually, now that I look at it, it may be a little more complicated than that. I've got everyone seeing the image now, but they don't all share the same abilities. My staff user groups are as follows: 6 & 13 are admins, 5 & 21 are super mods, and 7 & 20 are mods. With that in mind, what changes should I make to the legacy postbit?

*edit*
One more question; is this supposed to allow any moderator to issue a warning anywhere, or only in their own forums?

sv1cec 01-10-2005 07:33 PM

Quote:

Originally Posted by PKRWUD
Actually, now that I look at it, it may be a little more complicated than that. I've got everyone seeing the image now, but they don't all share the same abilities. My staff user groups are as follows: 6 & 13 are admins, 5 & 21 are super mods, and 7 & 20 are mods. With that in mind, what changes should I make to the legacy postbit?


*edit*
One more question; is this supposed to allow any moderator to issue a warning anywhere, or only in their own forums?

The whole hack is based on the standard usergroups of vB, that's 5, 6 and 7. Changing it to work with 6 usergroups instead of 3 is not going to be easy. Try to find instances where it refers to $bbuserinfo[usergoupid]==6 and add $bbuserinfo[usergoupid]==13, same thing for 5 and 21 and 7 and 20. I can't remember right now if that is all you have to edit though.

To answer your second question, the mods can warn only in the forums they can moderate.

PKRWUD 01-10-2005 07:42 PM

That's pretty much what I figured, but my coding skills don't really exist, I'm an engine man. lol. What is the proper syntax for adding two user groups together like you are suggesting? I'm not asking for the whole code, but do I write "$bbuserinfo[usergoupid]==6, $bbuserinfo[usergoupid]==13" or "$bbuserinfo[usergoupid]==6 and $bbuserinfo[usergoupid]==13", etc. ? What's the proper way to write it out so that the browser recognizes those two go together?

rinkrat 01-11-2005 02:43 AM

Jeez, now I'm getting this when I try and warn someone from admincp

Database error in vBulletin 3.0.5:

Invalid SQL: insert into warnings values('','8449','1','1105418299','test','','1','N ','A','','')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

Date: Monday 10th of January 2005 08:38:19 PM
Script: http://www.letsgokings.com/bbs/Warn.php
Referer: http://www.letsgokings.com/bbs/Warn....n=user&id=8449
Username: RinkRat
IP Address: 66.214.41.130


All times are GMT. The time now is 04:04 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.01906 seconds
  • Memory Usage 1,768KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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