vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   upgrade this simple hack - report post send pm (https://vborg.vbsupport.ru/showthread.php?t=186492)

logicuk 07-27-2008 04:46 PM

upgrade this simple hack - report post send pm
 
Can someone upgrade this hack to work with vb 3.7 thanks

PHP Code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="devel_reppm" active="1">
    <title>Reported post send pm</title>
    <description><![CDATA[By Developer]]></description>
    <version>1.0.0</version>
    <codes>
    </codes>
    <templates>
    </templates>
    <plugins>
    <plugin active="1">
            <title>disable emails</title>
            <hookname>report_send_email</hookname>
            <phpcode><![CDATA[$moderator['email'] = '';]]></phpcode>
        </plugin>
        <plugin active="1">
            <title>send pm</title>
            <hookname>report_send_complete</hookname>
            <phpcode><![CDATA[
        eval(fetch_email_phrases('devreppm', $email_langid));
        $pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
        $pmdm->set('fromuserid', $vbulletin->userinfo[userid]);
        $pmdm->set('fromusername', $vbulletin->userinfo[username]);
        $pmdm->set('title', $subject);
        $pmdm->set('message', $message);
        $pmdm->set_recipients($moderator['username'], $null);
        $pmdm->set('dateline', TIMENOW);
        $pmdm->pre_save();

        $errors = $pmdm->errors;

        $pmdm->save();
        unset($pmdm);]]></phpcode>
        </plugin>
    </plugins>
    <phrases>
        <phrasetype name="Email Body Text" fieldname="emailbody">
            <phrase name="devreppm"><![CDATA[$bbuserinfo[username] has reported this post:

$postinfo[title]
[url]$vboptions[bburl]/showthread.php?p=$postinfo[postid]#post$postinfo[postid][/url]

This is part of this thread:
$threadinfo[title]
[url]$vboptions[bburl]/showthread.php?t=$threadinfo[threadid][/url]

This is the reason that the user gave:
$reason

This message has been sent to all moderators of this forum, or all administrators if there are no moderators.

Please respond to this post as applicable.]]></phrase>
        </phrasetype>
        <phrasetype name="Email Subject Text" fieldname="emailsubject">
            <phrase name="devreppm"><![CDATA[Reported post from $threadinfo[title]]]></phrase>
        </phrasetype>
    </phrases>
    <options>
    </options>
</product>


Marco van Herwaarden 07-28-2008 07:45 AM

If you have questions/problems with a modification or style, then please post in the thread (or support forum/board) about that modification/style. Best chance to receive a reply from either the author or another member using the same modification/style.

logicuk 07-28-2008 02:11 PM

i did and no replys thats why i posted it here

logicuk 08-01-2008 04:40 PM

no one?????

nexialys 08-05-2008 05:25 PM

yeah, yeah, one...

you have it... http://nexialys.net/vb/showthread.php?t=929


All times are GMT. The time now is 10:01 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.01097 seconds
  • Memory Usage 1,723KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete