vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Warnings System Hack v1.0 (https://vborg.vbsupport.ru/showthread.php?t=42972)

Parker Clack 09-03-2002 02:58 PM

g-force2k2

I think this is a great hack.

Anyway of making this so that you send an email to the member instead of a private message or in addition to the private message?

Parker

ZiRu$ 09-03-2002 03:09 PM

Quote:

Originally posted by g-force2k2
Zirus in the instances of /$fdname in the admin_warning.php just replace them with: .. thats should do the trick ;) regards... and i'll fix in the other usergroup for you if you like... just need a usergroupid? unless you can do it on your own? regards...

g-force2k2

ok thx i'll try that........um......where in the hack do i put in the cutom id......let's just say the group is 99....how can i do it?

Mr_P 09-03-2002 04:26 PM

Quote:

Originally posted by Link14716
sure.

Add $post[warnlvl] to your postbit ;)

Okay finally managed to sort this hack and it works well so well done m8 but i would like to quote post above as the link dont work.

You need to put <b>$post[warninglvl] <-=- that</b>

I have mine set to 10 warning and your out so it looks like this

$post[warninglvl]/10

All in all top hack.

g-force2k2 09-03-2002 05:01 PM

glad to hear Mr.P Parker i'll work on an email addon extremely shortly...

Zirus i'll code up your addon as well once i get home from college :P regards...

g-force2k2

Parker Clack 09-03-2002 06:39 PM

In found a spot in the warn_show_warn template that is hardcoded that can give you some trouble in getting to the correct place.

You have:

<tr><td bgcolor="$backcolor" width="15%"><smallfont color="{pagetextcolor}"><b><a href="/forum/member.php?s=&action=getinfo&userid=$userid">$user name</a></b></smallfont></td>

The problem is with the:

<a href="/forum/member.php?

If your board's forum is not in the forum directory then the above link will not work.

Parker

ryans 09-03-2002 10:28 PM

I'm having problems too. I really need this to get working too. I've looked over everything numerous times.

Is it my user group permission?

1 Unregistered / Not Logged In Guest

2 Registered SRO Member
3 Users Awaiting Email Confirmation
4 (COPPA) Users Awaiting Moderation
29 Super Moderators Super Moderator
31 Moderators
28 super admin
33 Banned by Moderators
36 Banned By Warnings

My warnconfig looks like this:

$logsperpage = "20"; // warning logs to show per page
$fdname = "/web/docs/www.streetracing.org/htdocs/boards";
$reggroup = "2"; // usergroupid for registered users
$banlimit = "5"; // number of warings before user is banned
$banusergroup = "36"; // usergroupid of the banned group by warnings!
$allowmodwarn = "1"; // allows moderators to warn other moderators? (1 for yes :: 0 for no)
// +++++++ warning hack v1.0 configuration [ g-force2k2 ] +++++++

any clues?

do i have to edit my warn.php file? I'm running 2.27.

thanks!

ryan

g-force2k2 09-03-2002 10:39 PM

yeah ryans... if you look through my hack you have to replace all the usergroupid with the ones that fit your forum needs... if you want i can go through the list for you regards... im currenlty starting a version 2.0 to solve some issues like this and also to make it better... regards...

g-force2k2

Ice Man_00 09-03-2002 10:43 PM

Hey cool. Then th rest of us who had problems wait for the easier part one :p

Thx g-force2k2 you doing a great work

Cheers

g-force2k2 09-03-2002 10:47 PM

open admin/functions.php

find:

PHP Code:

// +++++++ Warning Hack [ g-force2k2 ] +++++++
        
if($bbuserinfo[usergroupid] == OR $bbuserinfo[usergroupid] == OR $bbuserinfo[usergroupid] == 7) {
          
$post[warnings] = "<b>Warning Level:</b> $post[warninglvl]&nbsp;<a href='javascript:showwarnings($post[userid])'>[ View User Warnings ]</a>&nbsp;<a href='javascript:addwarnings($post[postid])'>[ Warn This User ]</a>";
        } else {
          
$post[warnings] = "";
        }
// +++++++ Warning Hack [ g-force2k2 ] +++++++ 

replace with:

PHP Code:

// +++++++ Warning Hack [ g-force2k2 ] +++++++
        
if($bbuserinfo[usergroupid] == 31 OR $bbuserinfo[usergroupid] == 28 OR $bbuserinfo[usergroupid] == 29) {
          
$post[warnings] = "<b>Warning Level:</b> $post[warninglvl]&nbsp;<a href='javascript:showwarnings($post[userid])'>[ View User Warnings ]</a>&nbsp;<a href='javascript:addwarnings($post[postid])'>[ Warn This User ]</a>";
        } else {
          
$post[warnings] = "";
        }
// +++++++ Warning Hack [ g-force2k2 ] +++++++ 

open member.php

find:

PHP Code:

// +++++++ Warning Hack [ g-force2k2 ] +++++++
  
if(($bbuserinfo[usergroupid] == OR $bbuserinfo[usergroupid] == OR $bbuserinfo[usergroupid] == 7) AND ($userinfo[warninglvl] > 0)) {
    eval(
"\$getinfo_warning = \"".gettemplate("getinfo_warning")."\";");
  } else {
    
$getinfo_warning "";
  }
// +++++++ Warning Hack [ g-force2k2 ] +++++++ 

replace with:

PHP Code:

// +++++++ Warning Hack [ g-force2k2 ] +++++++
  
if(($bbuserinfo[usergroupid] == 31 OR $bbuserinfo[usergroupid] == 28 OR $bbuserinfo[usergroupid] == 29) AND ($userinfo[warninglvl] > 0)) {
    eval(
"\$getinfo_warning = \"".gettemplate("getinfo_warning")."\";");
  } else {
    
$getinfo_warning "";
  }
// +++++++ Warning Hack [ g-force2k2 ] +++++++ 

And then upload this as your new warn.php regards... this should do the trick :)

g-force2k2

g-force2k2 09-03-2002 10:49 PM

see above ryans :) regards... hopefully it works ;)

g-force2k2


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