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 v2.1 (https://vborg.vbsupport.ru/showthread.php?t=43265)

g-force2k2 09-12-2002 01:46 AM

good to hear Scorp :)

Parker Clack just edit the warn_pmemail templates and add where you want:

PHP Code:

Comments$comment 

i believe that should do the trick... regards...

g-force2k2

Parker Clack 09-12-2002 12:09 PM

g-force2k2:

Thanks.

Parker

Dean C 09-12-2002 06:59 PM

well i had to teach myself sql to revers the queries of the original hack... lol (probably wasn't needed but it was worth it)

then i changed a few things and did a complete re-install and got this working

Very nice system g-force...

- Mist

Tetchu 09-14-2002 10:12 AM

I must say, it's a good Hack, and the first one to make it onto my boards to.

I have one question though, how do i find out what the User group number is for each user group? Just so i can make sure that the right users can see the right stuff.

Also, how do i set it so that the banned user switched to a new user group? I saw it mentioned earlier but you needed to edit a warnconfig.php file that 2.1 didn't need. so any help would be nice.

Thanks again, and great hack.

g-force2k2 09-14-2002 04:15 PM

Tetchu you have to right click the edit button for the usergroup in the admin cp while editing the usergroups... and for all of the configurations... its now intergrated into the vbulletin options... regards...

g-force2k2

NuclioN 09-14-2002 04:56 PM

--- never mind--- fixed it trough phpadmin

Only one thing remains and that is a double notition of the warnfunctions in the vb options. (??)

a43079 09-15-2002 04:09 AM

please help when i click on view warning logs i get


Warning: Division by zero in /home/www/eroweb/admin/admin_warning.php on line 87



There seems to have been a slight problem with the Ero Web Services database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

this is line 87 what is wrong with it i cant figure it out.
PHP Code:

    $totalpages ceil($totalwarns[0] / $perpage); 


Apok2002 09-15-2002 04:28 AM

I didn't see it...forgive me if it is already here...but is it possible to put a graphic in the postbit of someone who has been warned? That way all members can see that this person has recieved a warning, and why they did?

The above is simliar to the card hack from Lesane for his Store Hack. I like yours in that it is more professional and detailed. But Lesane's is great because of the postbit issue.

Again, sorry if this is already brought up...I'm blind if it's here.

g-force2k2 09-15-2002 04:39 AM

a43079 you have to submit your vbulletin options ;)

Apok2002... open admin/functions.php

find:

PHP Code:

          $post[warnlink].= "";
        }
// +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++ 

replace it with:

PHP Code:

          $post[warnlink].= "";
        }
                                  if(
$post[warninglvl] > 0) {
                                    
$post[warnimg] = "<img src='{imagesfolder}/warn.gif' border='0' alt='$post[username] currently has $post[warninglvl] Warn Points!'>";
                                  } else {
                                    
$post[warnimg] = "";
                                  }
// +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++ 

then place your image in the images folder of your forum... and place $post[warnimg] where ever you would like it to show on the postbit...

sorry i haven't tested it but it should work :) regards...

g-force2k2

a43079 09-15-2002 10:58 AM

THankyou it works great..


All times are GMT. The time now is 05: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.02653 seconds
  • Memory Usage 1,746KB
  • 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
  • (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