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)

sifuhall 06-18-2004 08:45 AM

One of the easiest installs ever, thank you very much for this.

P.Jackson 06-18-2004 08:28 PM

is there anyway of removing the username format? just i have mods,super mods with green text bold etc and looks kinda ugly

WoodiE 06-18-2004 09:40 PM

Quote:

Originally Posted by Mamochka
WoodiE
When you want,you can deinstall hack from Zero Tolerance and install my version.
In my version many bug fixed.

What changes have you done in your code verses Zero's code? Do I just replace Zero's files with your files?


-Michael

Freezerator 06-19-2004 08:58 AM

Quote:

Originally Posted by P.Jackson
is there anyway of removing the username format? just i have mods,super mods with green text bold etc and looks kinda ugly

PHP Code:

<if condition="$post[usergroupid]!=6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])"><a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]' target="$post[username]">Warn $post[username]</a> ? <a href='Warn.php?do=ViewWarnings&id=$post[userid]' target="$post[username]">View $post[username]'s Warnings</a></if> 

This is the postbit code i use, with color's filtered out, and admins can be warned.

PranK 06-20-2004 02:16 PM

Hey Guys,

On my forums the 'view warnings and warn xxx' links are viewable to all .... any idea how to fix this?

Also, do the warning points have an expiry date? it'd be nice if you could set them to disappear after xx months or something.

Cheers,

Christian

sifuhall 06-20-2004 11:26 PM

I would like to see something that prevents multiple mods from issuing warnings on the same post. Maybe after a post receives a warning no one else may send a warning on the same post?

DiscussNASCAR 06-23-2004 01:48 AM

Quote:

Originally Posted by PranK
Hey Guys,

On my forums the 'view warnings and warn xxx' links are viewable to all .... any idea how to fix this?


usergroup conditionals. I think someone else may have posted it further up, but here's what we did. Only Admins and SM's can see it now


PHP Code:

 &nbsp;
   <
font size=1><if condition="$bbuserinfo['usergroupid'] == '5'">[<b>Current Warning Level:</b$post[warning_level]/- <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'><b>Warn $post[username]</b></a> - <a href='Warn.php?do=ViewWarnings&id=$post[userid]'><b>View $post[username]'s Warnings</b></a>]</if> <if condition="$bbuserinfo['usergroupid'] == '6'">[<b>Current Warning Level:</b> $post[warning_level]/6 - <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'><b>Warn $post[username]</b></a> - <a href='Warn.php?do=ViewWarnings&id=$post[userid]'><b>View $post[username]'s Warnings</b></a>]</if> </font
  <if 
condition="$show['postcount']">? #<a 

that's all in the postbit. Don't forget to change the $post[warning_level]/6 to whatever your max warning level is set to (ours is 6)

j_86 06-23-2004 08:09 PM

Quote:

Originally Posted by Zero Tolerance
If you want members to be able to view others warnings, please make this edit within Warn.php

Find:
PHP Code:

if($_GET['do']!='ViewMyWarnings'){
if(!
can_moderate(  )){
print_no_permission(  );
}


Replace With:
PHP Code:

if($_GET['do']!='ViewMyWarnings' && $_GET['do']!='ViewWarnings'){
if(!
can_moderate(  )){
print_no_permission(  );
}


This will result in members seeing the remove link, but they will not have access to use it

Var for warning level in posts?
PHP Code:

$post[warning_level

Simply use that in template postbit or postbit_legacy

Nice suggestions so far, ill include them in version 1.5, keep em coming

- Zero Tolerance




The code modification still blocks normal members from viewing warnings, and the

PHP Code:

$post[warning_level

Returns 0 no matter what a person's warn level is :surprised:

Any ideas why?

smsmasters 06-26-2004 12:44 PM

@Mamochka, your modification is still buggy. All you did was edit the templates for postbit. I did a test on it. It does hide the warning links for people who cannot warn, but if a mod knows the url to warn, and knows the admins userid, they can still ban them! Overall, nice hack, but I think its security needs reconsidering.

smsmasters 06-26-2004 01:06 PM

What we need now is the online locations added. Like "Warning User" and "Viewing User Warnings".


All times are GMT. The time now is 02:58 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.02317 seconds
  • Memory Usage 1,762KB
  • 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_php_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