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)

j_86 07-13-2004 08:54 PM

Thank you Zero :)

May I also ask - is the modification still the same, to allow people to view another person's warnings? Because, it does not seem to work for 1.5 :(

Zero Tolerance 07-13-2004 09:32 PM

I am aware that doesn't work.

This hasn't been tested but it should work

inside Warn.php
Find:
PHP Code:

if($_GET['do']!='ViewMyWarnings'){ 

Change to:
PHP Code:

if($_GET['do']!='ViewMyWarnings' || $_GET['do']!='ViewWarnings'){ 

- Zero Tolerance

j_86 07-13-2004 10:12 PM

Still doesnt work :(

I just get the usual;

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

Thing.

j_86 07-13-2004 10:14 PM

Looking at the code, isn't the above adjustment only allowing those that can moderate the forum to view the warnings?

PHP Code:

// You have permission to warn o_O
if($_GET['do']!='ViewMyWarnings' || $_GET['do']!='ViewWarnings'){ 
if(!
can_moderate(  )){
print_no_permission(  );


If so, is it possible to let anyone view warnings?

Zero Tolerance 07-13-2004 10:20 PM

My bad, today just isn't my day :P

Change
PHP Code:

if($_GET['do']!='ViewMyWarnings' || $_GET['do']!='ViewWarnings'){ 

To:

PHP Code:

if($_GET['do']!='ViewMyWarnings' && $_GET['do']!='ViewWarnings'){ 

Tested it, and it works =)

- Zero Tolerance

wrongful 07-14-2004 01:39 AM

One suggestion:
Some sort of system so that different admins/mods can't warn a user for the same post.

One minor gripe/possible bug:
When users are put into the banned usergroup, they don't take on the look of that usergroup (i.e. name color, custom title, etc).

Otherwise a great hack though!

Zero Tolerance 07-14-2004 05:59 AM

I like the first idea, ill include that in Version 2.

As for the member inherriting from the new usergroup, exactly what parts would you like them to inherrit and what parts do you want to stay? :)

- Zero Tolerance

wrongful 07-14-2004 10:50 AM

Quote:

Originally Posted by Zero Tolerance
I like the first idea, ill include that in Version 2.

As for the member inherriting from the new usergroup, exactly what parts would you like them to inherrit and what parts do you want to stay? :)

- Zero Tolerance

I definately want them to take on the name color of the banned usergroup and the pre defined custom title that the banned group has. It seems that when you move a user to a different usergroup, this would happen automatically, but I suppose it is something that has to be coded.

Zero Tolerance 07-14-2004 11:07 AM

I will make them inherrit those properties from the usergroup there are been moved into upon banned. :)

- Zero Tolerance

Snatch 07-14-2004 08:12 PM

Hello

I have one Problem more :)
If i bann a User for 1 day he did not automaticaly unban?after this day.
I wish that he jups after the Ban automaticaly to his normal usergroup.

Greetz
Snatch


All times are GMT. The time now is 11:30 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.03036 seconds
  • Memory Usage 1,744KB
  • 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
  • (5)bbcode_php_printable
  • (1)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