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-06-2002 10:00 PM

Warnings System Hack v2.1
 
Latest Version Warnings System Hack v2.1 Can be Found [ Here ]

After a Successful first release i decided to make a more customizeable and more optimizeable Warnings Hack :) well here it is...

For new installers simply run the auto installer (install_warning.php) and then use the installation_txt.php to make template and file modifications.

For members that have used my version 1.0 simply make the changes listed in the warn_upgade.php then delete all custom templates and run one query listed in the upgrade file. Then run the installer.

Thanks as always for GoldKnight's assistance ;)

Version 2.1?
Comes with the Warning System Settings Inserted Directly into the VBulletin Settings to prevent problems...

Features
// ++++++++++++++++++++
Warnings Hack System (version 2.0)
* Easy Installation / Uninstallation with Warning Installer (includes all queries & templates) [new]
* Now instead of based upon a set warning level it includes seperate distict warning points [new]
* Includes new warning customization for different levels of warning [new]
* Includes new Email Warning feature for regular useage or more importantly pm disabled users [new]
* Ban Limit is now activated once a user's Warning Level is over the configured amount of Warning Points (Not Just Single Warnings) [new]
* Includes New Customizeable Templates [new]
* Emailing and Private Messaging Warning [new]
* Emailing Ban Message [new]
* Warnings Listings [new]
* Includes Viewable List of all Admin Created Warnings for reference to know what is not accepted [new]
* In a sense its a rules hack included with the Warning Hack [new]
* Categorized And Ordered According to Admin Preferences [new]
Warn Config (extremely optimizeable)
* Includes Setable Banned by Warnings usergroup
* Includes Setable Warning Level (maximum warning points)
* Includes Easy Usergroup Configuration For [new]
* Usergroups that can Warn [new]
* Usergroups that can View Warnings [new]
* Usergroups that can view their Warning Levels [new]
* Usergroups that are exempt from warning [new]
* Includes New Warning Functions & Optimizes all Permissions [new]
* Includes Emailing Banning Option [new]
Admin CP Based
* Create Custom Warnings [new]
* Includes Customizeable New Configuration for Different Level Warnings [new]
* Create your own Categories of Warning Levels [new]
* Configure Warning Points to each different Warning [new]
* Includes a list of Warning Logs
* Who warned who?
* Date & Warning Type & Warning Comments [new]
* Post from which warning resulted
* Includes List of All Warned Users
* Includes Warning Point Deductor [new]
* Includes Email Notification after Banning [new]

Hope that everyone enjoys this hack as much as the first :p Comments and Suggestions are welcomed...

If you like this hack i'd be greatful if you clicked install :) thanks in advance and Enjoy...

Screenshots are nex :p

[Edit]See link below for more information regarding the upcoming vb3 version
vb3 version coming soon

Note: the file warnconfig.php does not exist anymore instead the configurations are kept and updated in the vbulletin option panel.

For any further questions or help you may address them here or instead pm me.

As requested by Freezerator if you want a link in the pm/email that is sent to the user follow the instructions below.
Warned Post Link In PM Or Email

g-force2k2

g-force2k2 09-07-2002 02:25 PM

Screenshot A :: The new Add Warning Template Look :)

Includes Email and Private Message Notification...

g-force2k2

g-force2k2 09-07-2002 02:26 PM

Screenshot B :: Add Warning Template where the user doesn't except Private Messages

g-force2k2

g-force2k2 09-07-2002 02:28 PM

Screenshot C :: Postbit Template Look

Notice the different permissions that it'll incorporate...

g-force2k2

g-force2k2 09-07-2002 02:29 PM

Screenshot D :: getinfo template look

Similiar to the postbit except only includes two options...

g-force2k2

g-force2k2 09-07-2002 02:30 PM

Screenshot E :: View Warning Template

g-force2k2

g-force2k2 09-07-2002 02:31 PM

Screenshot F :: The Warnings Listings (for members knowledge)

Kind of like a rules hack :p

g-force22k2

g-force2k2 09-07-2002 02:32 PM

Screenshot G :: Admin CP Modifying Warnings

g-force2k2

g-force2k2 09-07-2002 02:33 PM

Screenshot H :: Admin CP Warned Listing

g-force2k2

g-force2k2 09-07-2002 02:34 PM

Screenshot I :: Admin CP Warning Logs

Notice: This is only a select number of features... install it and get a feel for what yo can do ;) Enjoy..

g-force2k2

Chris M 09-07-2002 02:41 PM

Great!:)

*installs*

Satan

LOD-squa 09-07-2002 02:44 PM

Looks good I might upgrade mines.

[D]Vincent 09-07-2002 03:00 PM

I will definately upgrade mine soon ^^

BTW just wondering but they have to write something down in the comment box right? because I liked that.

g-force2k2 09-07-2002 03:02 PM

[D]Vincent no they don't have to... but it'll just put No Comment in place then... if you want comments to exist i'll show you how to do it... but you do have the reason that is set and the post to view... regards...

g-force2k2

Okiewan 09-07-2002 03:03 PM

This has got to be one of the most useful hacks I've seen! Thanks for the effort!

I installed the first version, everything worked well. Trying to up grade, I'm having difficulty with changing functions.php.

Instructions say:
Code:

find: (1)

unset($templatecache);

under it add:

require('warnconfig.php');

I'm using an older version, that line does not exist. This is what I found that comes close:
Code:

  // cache templates
  while ($temp=$DB_site->fetch_array($temps)) {
    $templatecache["$temp[title]"]=$temp['template'];
  }
  unset($temp);
  $DB_site->free_result($temps);

}

Any suggestions where to insert the require line?

Thanks in advance!

g-force2k2 09-07-2002 03:07 PM

you're correct Okiewan thats not a change its a new line included so you don't have to make any changes from the installation_txt.php ... should be like the tenth line of the admin/functions.php (its very close to the top) regards...

g-force2k2

Kmaster 09-07-2002 03:17 PM

version 2~~looks more perfect, You'd a good job, thanks for your shared

regards,

KISS 09-07-2002 03:18 PM

thanks upgraded with no problems

Chris M 09-07-2002 03:25 PM

Works like a charm:)

Im just testing the points thingy out...

http://www.darkblazes.com/forums/warn.php

Satan

Okiewan 09-07-2002 03:26 PM

I'm sorry I don't understand your reply???
I need to insert
Code:

require('warnconfig.php');
in the functions file, but per the upgrade instructions, I can't find
Code:

unset($templatecache);
is that more clear?

Okiewan 09-07-2002 03:28 PM

In addition, the templates were not created because my template set is "12" :( (I created them manually from the install file).

Chris M 09-07-2002 03:32 PM

I just noticed something g-force...

In the postbit template, it says "Warning Level"...Shouldnt it say "Warning Points"?

Satan

Chris M 09-07-2002 03:36 PM

If you want to change "Warning Level:" in the Posbit to "Warning Points:", just edit :

template : warn_seelink
Replace :
Code:

<b>Warning Level:</b> $post[warninglvl]
with:
Code:

<b>Warning Points:</b> $post[warninglvl]
Satan

Brandon 09-07-2002 03:50 PM

I upgraded and now my pages dont load at all, just a white page.

I've gone through and done everything correctly...I'm a little confused :confused:

g-force2k2 09-07-2002 04:00 PM

hellsatan just a matter of preference i guess ;)

Okiewan: can you paste the first twenty lines of admin/functions.php? thanks

BrandonC: what other hacks do you have installed?

g-force2k2

Okiewan 09-07-2002 04:02 PM

Code:

<?php
error_reporting(7);

// start prep shutdown function
$noshutdownfunc = 0; // #CHANGE ME IF YOU CAN'T USE register_shutdown_function
$ourtimenow = time(); // Make this available to all files

// Defined constants used for user field.
// Hope to convert all user fields into one integer.
define ("SHOWSIGNATURES", 1);
define ("SHOWAVATARS", 2);
define ("SHOWIMAGES", 4);
define ("SHOWVBCODE", 8);

// ###################### Start getpagenav #######################
// template-based page splitting system from 3dfrontier.com :)
function getpagenav($results,$address) {
        global $perpage,$pagenumber,$pagenavpages;

        if ($results <= $perpage) {
                return "";
        }

        $totalpages = ceil($results/$perpage);

        if ($pagenumber>1) {
                $prevpage = $pagenumber-1;
                eval("\$prevlink = \"".gettemplate("pagenav_prevlink")."\";");
        }
        if ($pagenumber<$totalpages) {
                $nextpage = $pagenumber+1;
                eval("\$nextlink = \"".gettemplate("pagenav_nextlink")."\";");
        }
        while ($curpage++<$totalpages) {
                if ( ( $curpage <= $pagenumber-$pagenavpages || $curpage >= $pagenumber+$pagenavpages ) &&

$pagenavpages!=0 ) {
                        if ($curpage==1) {
                                eval("\$firstlink = \"".gettemplate("pagenav_firstlink")."\";");
                        }
                    if ($curpage==$totalpages) {
                                eval("\$lastlink = \"".gettemplate("pagenav_lastlink")."\";");
                        }
                } else {
                        if ($curpage==$pagenumber) {
                                eval("\$pagenav .= \"".gettemplate("pagenav_curpage")."\";");
                        } else {
                                eval("\$pagenav .= \"".gettemplate("pagenav_pagelink")."\";");
                        }
                }
        }
        eval("\$pagenav = \"".gettemplate("pagenav")."\";");
        return $pagenav;

}

I'm using 2.21

FFMania 09-07-2002 04:04 PM

Does this version run more queries than the first one? ;)

Chris M 09-07-2002 04:05 PM

@Brandon - This shouldnt cause it to happen...

Perhaps you need to make sure you didnt overwrite any templates?

Satan

Brandon 09-07-2002 04:05 PM

Quote:

Originally posted by g-force2k2
BrandonC: what other hacks do you have installed?

g-force2k2

Oh god this list could go on forever...
[list=a][*][RELEASE v2] Run a SQL query directly from your admin contorl panel[*]Welcome Panel[*]Away Message[*]Blink PM Bar On New PM![*]Users Browsing Forum (like vB.org)[*]Who Downloaded this Attachment?[*]vBStats[*]vBProArcade[*]vBMoods[*]Buddy Messenger v1.1 [*]vbMicroStats: page load time, queries, GZIP and PHP version [/list=a]

Im sure there are more, but I forget to push the install button sometimes. Those were the major ones though...

Quote:

@Brandon - This shouldnt cause it to happen...
Yes, but it didnt do this until I upgraded, thats why I posted it :) ...

g-force2k2 09-07-2002 04:09 PM

Okiewan:

find:

PHP Code:

define ("SHOWIMAGES"4);
define ("SHOWVBCODE"8); 

under that add:

PHP Code:

require('warnconfig.php'); 

BrandonC i know it has to do with the require... i will look into it... maybe conficts with the proarcade but im not sure...

FFMania not really no ;) regards...

g-force2k2

Okiewan 09-07-2002 04:21 PM

Seems that no matter what... if "require warnconfig.php" is inserted in admin/functions.php , I get a blank screen when going to the forums :(

Chris M 09-07-2002 04:37 PM

Have you uploaded "warnconfig.php" to the /admin directory?

Satan

Okiewan 09-07-2002 04:38 PM

yup...

Goldknight 09-07-2002 04:56 PM

Umm I have same problem that Okiewan had....

I tried last night and today, it got me blank page when I go to forum..

g-force2k2 09-07-2002 05:02 PM

okay i did a quick update and made the hack v2.1 to prevent all of this stuff attaching now :p

g-force2k2

Goldknight 09-07-2002 05:02 PM

But I test it on my local forum with clean forum and it s no problem. Until I add to hacked forum and it pop up and give me blank page ever since.

Okiewan 09-07-2002 05:02 PM

Cool :)

g-force2k2 09-07-2002 05:05 PM

Okay here's the new version... with the fixes... shouldn't have any trouble now... regards... instructions in the warn_upgrade2.php for upgrading to v2.0 to v2.1 regards...

g-force2k2

The Realist 09-07-2002 05:27 PM

Downloaded ver 2.1 and following the instructions it says to edit the warnconfig.php??? were is this warnconfig.php cos it aint in the zip?

Thanks.

Okiewan 09-07-2002 05:31 PM

2.1 Does not require it, in fact says to remove it from /admin .

2.1 took care of the blank screen issue... but odd that the warnlink will not show-up in postbit now :( I looked at the permissions written into admin/functions in this new version, but can't figure-out how it's defined (who can see the warning link in postbit. I'm assuming that's the problem with not being able to see it?


All times are GMT. The time now is 04:50 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.01709 seconds
  • Memory Usage 1,830KB
  • 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
  • (7)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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