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)
-   -   Mike's Warning System 1.0 (https://vborg.vbsupport.ru/showthread.php?t=53596)

sajjid 06-18-2003 12:57 AM

Sajjid requests a conversion script.
:)

sonic3d 06-19-2003 07:32 PM

is this hack stable enuff to use?

l8er
sonic

sajjid 06-23-2003 04:04 PM

in your instruction step 1 you state OPEN global.php
which one ? one in forum dir or admin dir

Beorn 06-25-2003 04:44 PM

Quote:

06-23-03 at 01:04 PM sajjid said this in Post #23
in your instruction step 1 you state OPEN global.php
which one ? one in forum dir or admin dir

All the paths are from the forum root, so that refers to the forum one.

Quote:

is this hack stable enuff to use?
As far as I know, it is. The only

I'm going to send in an update in a minute. What you need to do is replace the files, and go to 'Resum' in the admin panel. That's all.

Now, the conversion script:
After (seemingly) everything that could possibly go wrong in my life, I think I'll have time for that conversion. I'll try to get it out by Friday (I hope).

Mike

Beorn 06-28-2003 01:26 AM

Hello all,

I finally finished that upgrade script. If you have g-force2k2's Warning System (v. 2.0 or higher), you can use the upgrade instructions included in the package posted in the first post of this thread. If you are upgrading, use MWS-Upgrade.txt, and warn-upgrade.php.

I'll ask a mod to move this to the 'Full Releases' forum :).

Thank you everyone for beta testing. Please spread the word, and click Install if you install it. By clicking Install, you will receive updates when I do update it.

Oblivion Knight 06-28-2003 09:15 AM

I've just upgraded from g-force2k2's mod, and so far everything seems to be running well.. :)

Just a little thing i picked up on with the upgrade instructions:
Code:

FIND:
---------------------------------       
<BR>
        $post[warnlink]
---------------------------------       
ADD AFTER IT:
---------------------------------       
$post[warnlink]
---------------------------------       
CLOSE postbit

I'm expecting that should be replace instead of add after, since there'd be no reason for wanting 2 instances of warnlink, and your code seems to add a <br> already.

Also.. I wouldn't recommend doing this step:
Code:

1.        OPEN admin/template.php
        FIND AND REMOVE:
---------------------------------
// +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++
  $only['warn'] = 'Warning System Hack';
// +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++
---------------------------------
        CLOSE admin/template.php

Since it leaves the templates without a category in the Default templates.. ;)

[high]* Oblivion Knight clicks install.[/high]

Beorn 06-29-2003 02:43 AM

Quote:

Today at 06:15 AM Oblivion Knight said this in Post #26
I'm expecting that should be replace instead of add after, since there'd be no reason for wanting 2 instances of warnlink, and your code seems to add a <br> already.
Yearh, it should be...fixed it...

Quote:

Also.. I wouldn't recommend doing this step:
Code:

1.        OPEN admin/template.php
        FIND AND REMOVE:
---------------------------------
// +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++
  $only['warn'] = 'Warning System Hack';
// +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++
---------------------------------
        CLOSE admin/template.php

Since it leaves the templates without a category in the Default templates.. ;)
Again, my preferences seem different than those of others...I like it without...so I added a note saying that part is optional.

Finally, anyone who ran the upgrade before this post, please run this query, which I seemed didn't paste into the final upgrade file....but I'll do that now.

Code:

DELETE FROM template WHERE title IN('warn_warnlink','warn_viewlink','warn_userinfo','warn_show_warn','warn_show','warn_seelink','warn_redirect_warnsuccess','warn_redirect_userban','warn_pmyes','warn_pmno','warn_pmemail_subject','warn_pmemail_notify','warn_listing','warn_list','warn_Getinfo_warning','warn_error_whywarnself','warn_error_noexist','warn_error_nowarnings','warn_error_noaccess','warn_error_maxwarnlimit','warn_error_emptyreason','warn_error_cantwarngroup','warn_banemail_subject','warn_banemail_notify','warn_add');
*sigh* Screw the wicked...there is no peace unto me...

Oblivion Knight 06-29-2003 04:54 AM

Fair point to make I guess..
Ran the extra query, thanks for your support with this modification :)

sonic3d 06-29-2003 03:51 PM

upgraded flawlessly. thanx.

l8er
sonic

Paris Holley 07-04-2003 04:23 AM

when i add the code

Code:

$WarnUserGroups = explode(",",$WarnUserGroups);
$WarnUserGroupsView = explode(",",$WarnUserGroupsView);
$WarnUserGroupsSum = explode(",",$WarnUserGroupsSum);
$WarnUserGroupsUnwarnable = explode(",",$WarnUserGroupsUnwarnable);


while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {
        if($WarnOnOff) {
                if(in_array($bbuserinfo['usergroupid'],$WarnUserGroupsSum)) {
                        eval("\$post['warninglvlwords'] = \"".gettemplate("warn_postbitsum")."\";");
                }
                if(in_array($bbuserinfo['usergroupid'],$WarnUserGroupsView)) {
                        eval("\$post['viewwarnings'] = \"".gettemplate("warn_postbitview")."\";");
                }
                if(in_array($bbuserinfo['usergroupid'],$WarnUserGroups) && !in_array($post['usergroupid'],$WarnUserGroupsUnwarnable)) {
                        eval("\$post['addwarning'] = \"".gettemplate("warn_postbitadd")."\";");
                }
       
                if($post['warninglvlwords'] || $post['viewwarnings'] || $post['addwarning']) {
                        eval("\$post[warnlink] = \"".gettemplate("warn_postbitaddin")."\";");
                }
        }

iget unexcept $ on the very last line.......which is after ?> which doesn't exsist


All times are GMT. The time now is 08:00 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.01283 seconds
  • Memory Usage 1,751KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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