vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Advanced Warning System (Beta Version) (https://vborg.vbsupport.ru/showthread.php?t=95921)

DS MrSinister 10-02-2005 12:45 AM

Quote:

Originally Posted by TruthElixirX
Heh. That sucks. Guess I'll have to do a little looking into fixign this myself. -_-. Or switch to Imferno Warning System.


EDIT:: Okay I fixed it myself to where it is compatible. May I attach the edited file for other users?


i would like to know how to fixed it?

TruthElixirX 10-02-2005 01:36 AM

k. I'll post the instructions. I garuntee nothing as I haven't had a chance to test this out, I mean I havent' seen any errors yet but any chance to throughly test it has not been made. Also you do this with no support.

Open up warnings.php and find (Line 23 for me.):
Code:

function SendPM($message,$title,$to,$from)
and change it to
Code:

function SendPM2($message,$title,$to,$from)
then find(line 86 for me):
Code:

function RunError($message)
and change it to:
Code:

function RunError2($message)
I have noticed no errors btu have not extensively looked. I'll look through the whole thing tomorrow and make sure but as of now I can warn a user and everything works. so yeah...Quizes should work after that.

kall 10-02-2005 01:43 AM

Quote:

Originally Posted by TruthElixirX
k. I'll post the instructions.

Or..., just make the call to the Warning functions file conditional..

Change your global_start plugin to
PHP Code:

if (THIS_SCRIPT != "quiz") {
require_once(
DIR '/includes/functions_warning.php');
DEVDEBUG('AutomaticWarner' $vbulletin->options['warn_automatic_warner']);} 

*shakes head at ideas of code editing* ;)

DS MrSinister 10-02-2005 03:11 AM

thank you sir kall

hydrostatic 10-02-2005 04:56 AM

Kall, that won't work because when you try to warn other people, there's an error. :(

kall 10-02-2005 05:11 AM

Quote:

Originally Posted by hydrostatic
Kall, that won't work because when you try to warn other people, there's an error. :(

Really?

All that code should do is make it so the code runs on all pages BUT quiz.

hydrostatic 10-02-2005 05:17 AM

I think it's just me, so ignore me :( I have RPG Inferno installed and apparently, this hack "double conflicts" with the most popular hack on my board.

I'm pretty sure this would work if you didn't use RPG Inferno.

Marco van Herwaarden 10-02-2005 07:11 AM

Quote:

Originally Posted by KirbyDE
Known problem - both Hacks use the same function name.
Won't be fixed (any time soon).

That would never happen if every author would prefix his functions, var's and tables/columns, with a hack specific prefix. (Like i always do ;))

Andreas 10-02-2005 07:13 AM

I never do that cause prefixes are hard to remember :)
Anyway, even with prefixes it could happen - just the chance would be much lower.

Marco van Herwaarden 10-02-2005 07:16 AM

Well since 3.5 i always use my Product-Id as prefix. Chance of duplicates are almost 0 then, and if the other hack was a product using the same choice of prefix, you wouldn't even be able to load them both. :D


All times are GMT. The time now is 06:21 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.01994 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (1)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
  • (3)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