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)

Delphiprogrammi 03-16-2006 05:21 PM

Quote:

Originally Posted by MorrisMcD
Could this be why I got 60000 invalid PMs generated when I changed the functions? If so I can use this again maybe

i don't think so no 60000 ???? woow that can count.You changed the functions because you use inferno hacks right ?

MorrisMcD 03-16-2006 05:33 PM

Quote:

Originally Posted by Delphiprogrammi
i don't think so no 60000 ???? woow that can count.You changed the functions because you use inferno hacks right ?

Yep.. I went through and changed all the functions... I was so proud I got it working.. lol

But then 1 day later, I was investigating a PM issue where sometimes when you reply it tries to reply to the wrong pmid (therefore giving a permissions error pissing my users off... lol) or giving them a new pm submit form.. Very wierd.. I am probably going to have to deleted the entire pm system...

Anyway.. While in there I noticed about 60000 pms from user 0 to user 0.. They kept generating until I disabled your hack

dai-kun 03-16-2006 10:12 PM

When I try to run the kill_warn.php script, it gives me error

Code:

Fatal error: Call to a member function on a non-object in /home/domain/domain.com/forum/global.php on line 243
What that means?

Also, when Im in the admincp, trying to view the warn logs, when i press the view next page, it loads but then it doesn't go to the next page. it's still on page one.

Delphiprogrammi 03-17-2006 08:34 AM

Quote:

Originally Posted by dai-kun
When I try to run the kill_warn.php script, it gives me error

Code:

Fatal error: Call to a member function on a non-object in /home/domain/domain.com/forum/global.php on line 243
What that means?

Also, when Im in the admincp, trying to view the warn logs, when i press the view next page, it loads but then it doesn't go to the next page. it's still on page one.

that means there is a function call in that script which isn't declarerd anywhere most likely there are references to $DB_site while it should be $db in 3.5.x you need to download the kill_warns attached

Delphiprogrammi 03-17-2006 02:21 PM

hi,

I've changed the settings page a bit (not admin_warn.php?act=manageoptions) but the vbulletin->options->warning hack

changed the way of setting the usergroups.Now you can choose from a dropdown list

you can do this like this while being in debug mode click edit setting and in the option code field

Code:

<select name=\"setting[$setting[varname]]\" tabindex=\"1\" class=\"bginput\">
<option value=\"8\" " . iif($setting['value']=='8','selected="selected"') . ">(COPPA) Users Awaiting Moderation(id4)</option>
<option value=\"6\" " . iif($setting['value']=='6','selected="selected"') . ">Administrators(id6)</option>
<option value=\"7\" " . iif($setting['value']=='7','selected="selected"') . ">Moderators(id7)</option>
<option value=\"2\" " . iif($setting['value']=='2','selected="selected"') . ">Registered Users(id2)</option>
<option value=\"5\" " . iif($setting['value']=='5','selected="selected"') . ">Super Moderators(id5)</option>
<option value=\"1\" " . iif($setting['value']=='1','selected="selected"') . ">Unregistered / Not Logged In(id1)</option>
<option value=\"4\" " . iif($setting['value']=='4','selected="selected"') . ">Users Awaiting Email Confirmation(id3)</option>
<option value=\"8\" " . iif($setting['value']=='8','selected="selected"') . ">Banned Users(id8)</option>
<option value=\"9\" " . iif($setting['value']=='9','selected="selected"') . ">Permanent_Ban(id9)</option>
</select>

all done

Delphiprogrammi 03-17-2006 09:32 PM

Quote:

Originally Posted by dai-kun
Also, when Im in the admincp, trying to view the warn logs, when i press the view next page, it loads but then it doesn't go to the next page. it's still on page one.

yeah i could reproduce the problem but so far can't get it to work as it should (i'm honest) :D however for people with a big board that use this hack that could become verry annoying

Delphiprogrammi 03-18-2006 02:04 PM

Quote:

Originally Posted by dai-kun
When I try to run the kill_warn.php script, it gives me error

Code:

Fatal error: Call to a member function on a non-object in /home/domain/domain.com/forum/global.php on line 243
What that means?

Also, when Im in the admincp, trying to view the warn logs, when i press the view next page, it loads but then it doesn't go to the next page. it's still on page one.

i fixed that problem in the admincp where it's staying on page 1 even through you click the next button that was annoying me :cross-eyed: if you want it give a yell :)

I also fixed the mod_warn.php file there whas an issue with missing navigation buttons when viewing the complete warning log

another fix i did is with the product XML if you install this system there is an issue with the colspan of tables used i fixed that it auto installs everythings needed for the system to work

dai-kun 03-19-2006 02:40 AM

can u send me all the fixed files please? thanks

i've also reuploaded the kill_warn.php... and it gives me this error now:

Fatal error: Call to a member function on a non-object in /home/user/domain.com/forum/includes/functions_warning.php on line 31

and line 31+32 is..
Code:

        $to=$db->query_first("select * from ".TABLE_PREFIX."user where userid='{$to}'");  // Grab Member Its Going TO
        $from=$db->query_first("select * from ".TABLE_PREFIX."user where userid='{$from}'"); // Grab Member Its Coming FROM


Delphiprogrammi 03-19-2006 10:10 AM

hi,

Well i just did a testrun with kill_warns.php and it returned no error messages ....... your php is acting weird i guess.... on line 14 off the file functions_warning.php there is

PHP Code:

global $vbulletin

you have that ?

all fixed files are attached

people if you use any of the attached files specially the product xml or admin_warn.php please ensure you have a recent complete backup off your database so IN CASE anything goes wrong you still have your complete database which can be restored if needed

files which start with "kill_" need to be uploaded to /forum/includes/cron
mod_warn.php to /forum/modcp
admin_warn.php to /forum/admincp
product-aws.xml needs to be imported using the product manager (carefull with this as you may not need this it just corrects some template issues and a bug where you would get "inavlid user id input" when trying to warn from the admincp)

Roadster2004 03-19-2006 11:23 PM

Thanks for this hack.. But I don't seem to get it working :( (I must say that I'm a n00b @ vbulletin, but eager to learn)

I've first installed the hack, after that installed Delpih's new files to all the correct places ! But when I want to warn a member from the admincp. I get the error message:

Invalid User ID Input

Also I can only warn people in the admincp and not in the modcp.. When I log in to the modcp I only see:
View Issued Warnings
And nothing else..

Then my last (and probaly stupid question) but in the readme.txt It says to change some code in:
In Template postbit
and
Template postbit_legacy

But where can I find this Templates ?? :$ :$

Thanks in advance !


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