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)

TosaInu 09-10-2005 07:39 AM

Quote:

Originally Posted by KirbyDE
1) Regarding the $validfields error:
There was a slight Typo in Plugin "AWS: Setup UserDM", should have been $this->validfields instead of $this->validvields.
Dunno why I didn't notice any errors though ...

Nice. Wasn't the note field also added by this hack. Shouldn't it have a $this line in that plugin too?

Andreas 09-10-2005 07:39 AM

No. Queries are run by the System.

kommuni 09-10-2005 11:47 AM

Quote:

Originally Posted by KirbyDE
Registering works fine for me. Where exactly do you get Problems?
Btw: I meant are you using RC3? ;)

Hi Kirby,

i'm using a blank RC3-Installation and it is reproducable the AWS - when i deactivate it the problems go away. :( strange thingy.

Andreas 09-10-2005 12:00 PM

Did you try Product Version 1.0.1?

TosaInu 09-10-2005 12:44 PM

These fields are added to MySQL table users (by the installer of course).
'warnings' 'warning_level' 'warning_bans' 'alerts' 'warn_notes'

And this is (oddly?) required in plugin manager AWS: Setup UserDM to get it working for adding new members. I say oddly, because I fail to see the logic of warning stuff for registering new members. I'ld expect that the SQL server just uses default values when there's no info supplied by the board.

Code:

$this->validfields['alerts'] = array(TYPE_INT,        REQ_NO);
$this->validfields['warnings'] = array(TYPE_INT,      REQ_NO);
$this->validfields['warning_level'] = array(TYPE_INT, REQ_NO);
$this->validfields['warning_bans'] = array(TYPE_INT, REQ_NO);

Why not

Code:

$this->validfields['alerts'] = array(TYPE_INT,        REQ_NO);
$this->validfields['warnings'] = array(TYPE_INT,      REQ_NO);
$this->validfields['warning_level'] = array(TYPE_INT, REQ_NO);
$this->validfields['warning_bans'] = array(TYPE_INT, REQ_NO);
$this->validfields['warn_notes'] = array(TYPE_UINT, REQ_NO);


TruthElixirX 09-10-2005 04:07 PM

I uninstalled AWS and reinstalled it and everything works fine. Tables got added. :).

EDIT:: Heh. I just tried Alerting a user for something and got this after clicking "Add Warning"

Code:

print_standard_error(...)
is now redundant. Instead, use
standard_error(fetch_error(...))


GoTTi 09-10-2005 06:53 PM

your instructions are off i think. are you following instructions off a clean copy of vbulletin? when im searching for things in the template to modify, im getting not found errors. i gotta search for partial codes to get the right spot. so far this problem has been in the postbit areas.

installing on 350 rc3

sv1cec 09-10-2005 07:43 PM

Quote:

Originally Posted by hydrostatic
This seem to conflict with ZT's RPG Inferno hack... as when I installed this, I cannot run his.

It comes up with this error when I try to access inferno... I know that you guys don't really support this kind of stuff, but I would like to know if there's a possible way to fix it :nervous:

PHP Code:

Fatal errorCannot redeclare sendpm() (previously declared in /home/blootix/public_html/forums/inferno.php:576in /home/blootix/public_html/forums/includes/functions_warning.php on line 23 


Please compare the two routines with that name, the one used by AWS and the one used by the other hack. If the two are the same (and I think they will be), you can delete one of the two. I think ZT is using this routine in his new hacks, if it is not changed from the one he used in his initial Warning hack, then the one or the other can be deleted. If it is, then you have to somehow rename the routine in one of the two hacks, and change the callings to that routine, to use the new name.

Does this make sense?

Andreas 09-10-2005 08:19 PM

@TosaInu
The Code is not required when a new User registers.
But it is necessary if you add a new User through ACP, as the User Manager shows these Fields.
So they get set to the Datamanager when saving, and thus must be decalred as being valid.
warn_notes was not added becasue the Code this Version is based off does not support
them.

@GoTTi
I didn't check the instructions for RC3, but they were fine for RC1.
Gonna check that now.

@TruthElixirX
Thanks for pointing this out, will be fixed soon.

TruthElixirX 09-10-2005 09:21 PM

Quote:

Originally Posted by KirbyDE
@TruthElixirX
Thanks for pointing this out, will be fixed soon.


Awesome. Thank you. :).


All times are GMT. The time now is 11:10 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.01913 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)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