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)
-   -   Warning Hack V1.5 (https://vborg.vbsupport.ru/showthread.php?t=65336)

rex_b 08-17-2004 11:40 AM

Quote:

Originally Posted by sv1cec
In the "Control Warnings" page of the AdminCP.

Rgds


Damn I am blind... Thanks.

j_86 08-18-2004 01:25 PM

Quote:

Originally Posted by JimpsEd
What I mean is, VB already lets you have timed-bans for users, so why not use this system?

BUMP

Rahzel_hx 08-18-2004 05:56 PM

I was the 100th install ^___^ do i win a prize XD

Great hack

GunsNetwork 08-18-2004 08:03 PM

I have installed everything and even made the upgrade with no problem but when I go to Warn a test member, I have NO OPTIONS.

I can click on the drop down and all I get is "Choose A WARNING"

Need help in finding what did not get uploaded or do I have to put in my own warnings???

Thanks

sv1cec 08-19-2004 06:29 PM

Quote:

Originally Posted by bowhunt
I have installed everything and even made the upgrade with no problem but when I go to Warn a test member, I have NO OPTIONS.

I can click on the drop down and all I get is "Choose A WARNING"

Need help in finding what did not get uploaded or do I have to put in my own warnings???

Thanks

You have to add your own violations and points etc.

Rgds

SnowBot 08-26-2004 02:27 AM

sv1cec How could i add buttons/links to the dropdown menu in the postbit, where the "view users profile" & " visit users homepage" links are?

I would like it so that Admins and S/Mods and the user himself to see the how many warnings they have BUT other users cant, they can see there own but not others. Like Erwins hack did. Can you help do this? Thanks

Snowy

Rociel 08-26-2004 08:45 AM

I can't seem to edit the banned usergroups and the amount of points it takes to ban someone. All I get is the error message:

Database error in vBulletin 3.0.1:

Invalid SQL: update warning_options set
banned_limit='14',
points_before_banned='5',
banned_usergroup_id='4',
protected_usergroups=''
where oid='1'
mysql error: Unknown column 'banned_usergroup_id' in 'field list'

mysql error number: 1054

Date: Thursday 26th of August 2004 05:34:43 AM
Script: http://www.rolldeepcrew.com/forums/a...admin_warn.php
Referer: http://www.rolldeepcrew.com/forums/a...n.php?act=view
Username: Rociel
IP Address: xx.xxx.xxx.xx

sv1cec 08-26-2004 11:08 AM

Quote:

Originally Posted by SnowBot
sv1cec How could i add buttons/links to the dropdown menu in the postbit, where the "view users profile" & " visit users homepage" links are?

I would like it so that Admins and S/Mods and the user himself to see the how many warnings they have BUT other users cant, they can see there own but not others. Like Erwins hack did. Can you help do this? Thanks

Snowy

Snowbot,

I am trying to find that dropped-down menu you are talking about and I can't . All I can find, which looks like the menu you are talking about, is the one which appears if you click on the user name, above each post. Is that the one you are talking about?

In any case, what I've done in my site, is to have a couple of links in the postbit, through which the admins/mods and the owner of the post can see the warnings this particular user has received.

The code for those links is:

HTML Code:

<!-- checks for warning system -->
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])"><a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> ?
</if>
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6)">
<a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> ?</if>
<if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]==2 AND $post[warning_level]>0">
<a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a> ?</if>
<!-- end of warning system -->

This code will do what you want (admins and mods can see the warnings, and the user can see his own warnings but not those of another user), but it might need some modifications in order to include it in the drop-down menu you are refering to.

Let me know which menu it is and I'll try to be more specific.

Rgds
-----
John

SnowBot 08-26-2004 03:26 PM

Hi John,

Yes its the menu with the username. I just think it would be better. Can we include the supermod group also, i notice you dont use that but i do.

Thanks

Liam

sv1cec 08-26-2004 05:30 PM

Well, in postbit template, find the following:

HTML Code:

        </table>
</div>
<!-- / post $post[postid] popup menu -->

Just above it, you should add the code I gave you before, but change it a bit to fit in a table. In other words, try this:

HTML Code:

<!-- checks for warning system -->
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])"><tr><td><a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a></td></tr>
</if>
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6)"><tr><td>
<a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a></td></tr></if>
<if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]==2 AND $post[warning_level]>0"><tr><td>
<a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a></td></tr></if>
<!-- end of warning system -->

Let me know if it works

Rgds
-------
John


All times are GMT. The time now is 01:51 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.01389 seconds
  • Memory Usage 1,756KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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