vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Warning Hack V1.5 (https://vborg.vbsupport.ru/showthread.php?t=65336)

Kmaster 11-02-2004 12:01 PM

Quote:

Originally Posted by sv1cec
It doesn't matter how many members you have, iwhat makes the difference is how many warnings you have issued. And yes, as far as I know they will all show in one page (haven't looked in that). Now for paging, I am not sure if my knowledge will allow me to do that, I'll give it a try tomorrow morning. If I'll come up with something, I'll let you know. I'll have to create at least 30 or 40 warnings in my test system to test that, so it might take some time.

Rgds


Awaiting for the good news. thanks again!!!

rgds,

j_86 11-02-2004 02:54 PM

Hi sv1;

In the nopostrelatedwarnings instructions, I cannot find
PHP Code:

print_label_row("Maintain historical warnings list?<dfn>If set to No, warnings which expire or are removed, will be deleted and will not show in the user's account. <b>If this is changed from Yes to No, historical records will be deleted.</b></dfn>"'<select name="historical" class="bginput">'.$hoption.'</select>');

Anywhere, even though I have been through every single instruction again?

sv1cec 11-02-2004 03:14 PM

Quote:

Originally Posted by JimpsEd
Hi sv1;

In the nopostrelatedwarnings instructions, I cannot find
PHP Code:

print_label_row("Maintain historical warnings list?<dfn>If set to No, warnings which expire or are removed, will be deleted and will not show in the user's account. <b>If this is changed from Yes to No, historical records will be deleted.</b></dfn>"'<select name="historical" class="bginput">'.$hoption.'</select>');

Anywhere, even though I have been through every single instruction again?

That's why people version their software. LoL

Please keep in mind one thing I keep saying from the beginning. I maintain this hack, for my own usage, so some times, I do some changes which do not get to the public. Then, when someone else asks for some additional thing, the old part creeps up out of nowhere.

In any case, here are the files that I use, they have all the options. You may try them.

Sorry for any inconvenience.

Rgds

beano33 11-02-2004 03:16 PM

Quote:

Originally Posted by sv1cec
I think you can do it.

Rgds

It worked perfectly. I ended up using anonymous email after all as some of my mods have email addresses they don't want made public. For folks using Zero Tolerance's version this is what was done:

Find:
Code:

// Send PM!! =D
$messageb="You have been warned for the post: }/showthread.php?p={$_POST['post']}]Your Post. Your warning level is now: {$level}. This action was taken for the following reason: {$_POST['comment']}. Please reply back if you have a dispute. {$bbuserinfo[username]}";
$messageb=ParseInput($messageb);
$title="You have been warned";
$to=$user['userid'];
$from=$bbuserinfo['userid'];
SendPM($messageb,$title,$to,$from);

// Redirect

and immediately above it add:

Code:

$messageb="";
eval('$messageb .= "' . fetch_template('warn_em') . '";');
$title="You have been warned";
$to=$user['userid'];
$fromemail='X';
$fromname='Y';
vbmail($user['email'], $title, $messageb, false, $fromemail, '', $fromname);

X is the email address of the anonymous warning account you create. I made mine a do_not_reply email and direct users in the template to refer to their PM and View My Warnings page if they want to discuss the warning with the person who issued it.
Y is the username for the account.

You need to add the template warn_em
I used the one provided by sv1cec in this post and edited it for my board
https://vborg.vbsupport.ru/showpost....&postcount=408

Thanks again for all the help!

j_86 11-02-2004 03:58 PM

All my old warning types are no longer visable with some changes? Without going to much trouble, is there any warning type DB update I missed that may cause this?

PS: Many more thanks sv1

sv1cec 11-02-2004 04:10 PM

Quote:

Originally Posted by JimpsEd
All my old warning types are no longer visable with some changes? Without going to much trouble, is there any warning type DB update I missed that may cause this?

PS: Many more thanks sv1

No, there are no changes which may cause your old warnings to vanish. Check them out with an SQL Query, something like " select * from `warnings` ".

Or to be more precise, there might be something. The fact that I am using "active" and "inactive" warnings, in other words, I keep historical records. Check your warnings with the SQL above. If they are there, and they do not appear in the View Warnings, I'll explain what you have to do to see them again.

Rgds

j_86 11-02-2004 04:13 PM

They're still in the database.

But I notice you had a table warn_type in the warning_types table - which NULL = YES.

I created this entry too - could this be related?

sv1cec 11-02-2004 04:34 PM

No the warn_type, if set to Yes, means it is a post-related warning, if set to No, it is a non-post related one. If you upgraded to the latest version I posted, you have to go to the AdminCP and edit your warning types accordingly.

For the warnings not showing, the thing is, there is a column in the warnings table, called warned_status. If this is empty in your records, they may not show up in the View Warnings. You have to fill them in with the letter 'A'. In other words, run this query:

update `warnings` set warned_status='A'

Let me know if this works.

j_86 11-02-2004 04:59 PM

Working great :)

Many thanks sv1!

sv1cec 11-02-2004 05:05 PM

Quote:

Originally Posted by JimpsEd
Working great :)

Many thanks sv1!

You are most welcome.


All times are GMT. The time now is 02: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.01490 seconds
  • Memory Usage 1,755KB
  • 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
  • (2)bbcode_code_printable
  • (2)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
  • (2)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