The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#422
|
|||
|
|||
![]() Quote:
Let me know if this helps. Rgds |
#423
|
|||
|
|||
![]() Quote:
HTML Code:
<a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[musername]</a> ? <a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[musername]'s Warnings</a> Rgds |
#424
|
|||
|
|||
![]() Quote:
![]() I need to know how to modify the original author's hack to send the email warning. The only references I can find to PM there are in warn.php here: Code:
function SendPM($message,$title,$to,$from){ global $DB; // Permssions Crap XD your getting a damn PM!! XD // Parse It Out $title = addslashes(htmlspecialchars_uni(fetch_censored_text($title))); $message = addslashes(fetch_censored_text($message)); $to=$DB->query_first("select * from ".TABLE_PREFIX."user where userid='{$to}'"); // Grab Member Its Going TO if($from=="BOT"){ $from=$DB->query_first("select * from ".TABLE_PREFIX."user where userid='{$rpg_option['pmbot']}'"); // FROM Teh Bot =D } else { $from=$DB->query_first("select * from ".TABLE_PREFIX."user where userid='{$from}'"); // Grab Member Its Coming FROM } // Insert The Message $to_string["$to[userid]"] = $to['username']; $now=time(); $DB->query("insert into ".TABLE_PREFIX."pmtext (fromuserid,fromusername,title,message,touserarray,iconid,dateline,showsignature ,allowsmilie) values ('{$from['userid']}','".addslashes($from['username'])."','{$title}','{$message}','".addslashes(serialize($to_string))."','4','{$now}','1','1')"); // id thingy $DB->query("insert into ".TABLE_PREFIX."pm (pmtextid, userid) values (".$DB->insert_id().", '{$to['userid']}')"); // Update pm count $DB->shutdown_query("update ".TABLE_PREFIX."user set pmtotal=pmtotal+'1',pmunread=pmunread+'1' WHERE userid='{$to['userid']}'"); } 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 |
#425
|
|||
|
|||
![]() Quote:
PHP Code:
PHP Code:
Good luck. |
#426
|
|||
|
|||
![]() Quote:
Quote:
|
#427
|
|||
|
|||
![]() Quote:
Rgds |
#428
|
|||
|
|||
![]()
I have this hack installed modification by sv1cec. many thanks for all your worked.
One question:- in the admincp to view that "View Warning Logs", if I have over 2000 members are warned, will it wait for long time to load the whole page? possibly separate in difference pages, likes 1 page show 20 warns, then go click next page see others. Thanks in advance!!! rgds, |
#429
|
|||
|
|||
![]()
What are the parameters for this in the database? That mod is not in your instructions. This is all I see in your instrcutions
PHP Code:
Quote:
|
#430
|
|||
|
|||
![]() Quote:
Sorry about any inconvenience. |
#431
|
|||
|
|||
![]() Quote:
Rgds |
#432
|
|||
|
|||
![]() Quote:
Awaiting for the good news. thanks again!!! rgds, |
#433
|
|||
|
|||
![]()
Hi sv1;
In the nopostrelatedwarnings instructions, I cannot find PHP Code:
|
#434
|
|||
|
|||
![]() Quote:
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 |
#435
|
|||
|
|||
![]() Quote:
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 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); 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! |
#436
|
|||
|
|||
![]()
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 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|