PDA

View Full Version : Auto PM on Reputation


tnguy3n
10-09-2005, 10:00 PM
Author: tnguy3n
Source: http://12.226.255.221/forums/showthread.php?t=16

This is port of my Send PM On Reputation For vB3.0

This mod allow members to enable sending PM option when a user give him/her a reputation point.

To enable sending PM upon receiving reputation point, go to User CP => Edit Profile =>
PM upon reputation option, then check the option.

Plugins: 1
Template mod: none
Installation Time: 1-2 mins

=========================

Log into AdminCP => User Profile Fields => Add New User Profile Field => Multiple-Selection Checkbox

Title: Automatic PM on Reputation Option
Description: A PM will be sent to you when a user give your a reputation point if you enable this option.
Limit Selection: 1
Boxes Per Line: 1
Options: Enable Automatic PM on Reputation
(default to other fields)

Now go to User Profile Field Manager and jot down new field id, i.e fieldXX.
---------

PLUGINS:

UPLOAD AutoPMonRep.xml plugin.

Dont forget to open Auto PM On Reputation, and adjust fieldX to your fieldid.

SnowBot
10-10-2005, 08:20 AM
Great little hack, can the PM sent be altered to what you want via a phrase?

trackpads
10-10-2005, 01:37 PM
Excellent!!! Thanks!!

hotrod1
10-10-2005, 02:04 PM
Simple install, thanks!!!

trackpads
10-10-2005, 02:34 PM
One of the old features was that the PM would come from the actual user sending the rep, is there a way to do that with this version?

Thanks!

-Jason

tnguy3n
10-10-2005, 02:37 PM
One of the old features was that the PM would come from the actual user sending the rep, is there a way to do that with this version?

Thanks!

-Jason

Open you plugin,

FIND:

$sender = "Forum Bot"; // rename it to whatever you like
$senderid = 1; // userid
$pm_title = "You have been given $score rep point.";
$pm_content = $vbulletin->userinfo['username'] . " has just given you $score reputation point for your post.\n\rKeep up good work!\n\r";

if($score < 0)
{

$pm_content = $vbulletin->userinfo['username'] . " has disagreed with your post of yours\n\rYou may need to investigate the reason.\n\r";
}


CHANGE TO::

$sender = "$vbulletin->userinfo['username']"; // rename it to whatever you like
$senderid = $vbulletin->userinfo['userid']; // userid
$pm_title = "You have been given $score rep point.";
$pm_content = $vbulletin->userinfo['username'] . " has just given you $score reputation point for your post.\n\rKeep up good work!\n\r";

if($score < 0)
{

$pm_content = $vbulletin->userinfo['username'] . " has disagreed with your post of yours\n\rYou may need to investigate the reason.\n\r";
}


dont forget to change your pm content.

tnguy3n
10-10-2005, 02:39 PM
Great little hack, can the PM sent be altered to what you want via a phrase?

I'm pretty sure that'll work just fine.

trackpads
10-10-2005, 03:06 PM
Open you plugin,

FIND:

$sender = "Forum Bot"; // rename it to whatever you like
$senderid = 1; // userid
$pm_title = "You have been given $score rep point.";
$pm_content = $vbulletin->userinfo['username'] . " has just given you $score reputation point for your post.\n\rKeep up good work!\n\r";

if($score < 0)
{

$pm_content = $vbulletin->userinfo['username'] . " has disagreed with your post of yours\n\rYou may need to investigate the reason.\n\r";
}


CHANGE TO::

$sender = "$vbulletin->userinfo['username']"; // rename it to whatever you like
$senderid = $vbulletin->userinfo['userid']; // userid
$pm_title = "You have been given $score rep point.";
$pm_content = $vbulletin->userinfo['username'] . " has just given you $score reputation point for your post.\n\rKeep up good work!\n\r";

if($score < 0)
{

$pm_content = $vbulletin->userinfo['username'] . " has disagreed with your post of yours\n\rYou may need to investigate the reason.\n\r";
}


dont forget to change your pm content.

I get this as the username when a member gives a rep. This shows up as the sender of the pm:

Array['username']

Any idea?

trackpads
10-10-2005, 03:07 PM
Ok, that is just in the PM list, when I open the actual PM it is the right user and avatar.

trackpads
10-10-2005, 03:08 PM
Screenshot

tnguy3n
10-10-2005, 04:42 PM
sorry, i'm at work now. I'll look into when I get home.

trackpads
10-10-2005, 04:56 PM
sorry, i'm at work now. I'll look into when I get home.

np, thanks!!

trackpads
10-23-2005, 12:27 AM
**bump**

Thanks again!!!

lordnex
10-23-2005, 08:47 AM
Thanks. Is there any way to make the check box "yes" by default? how do I change all the existing users to this aside from either having them do it themselves or doing it myself?

tnguy3n
10-25-2005, 12:53 AM
**bump**

Thanks again!!!

my bad, totally forgot this hack. :p

trackpads
10-25-2005, 12:33 PM
my bad, totally forgot this hack. :p

np! thanks for working on it!!!

folkish
10-26-2005, 12:06 AM
Can someone please point out exactly where "fieldx" is supposed to be? I opened the plug in and found a 'field6' so I changed it to the appropriate fieldxx for my forum, and I've done all the necessary profile field additions, but still no luck. Thanks.

tnguy3n
10-26-2005, 09:33 PM
Can someone please point out exactly where "fieldx" is supposed to be? I opened the plug in and found a 'field6' so I changed it to the appropriate fieldxx for my forum, and I've done all the necessary profile field additions, but still no luck. Thanks.

Log into your Admin CP -> User Profile Fields -> User Profile Fields Manager, then look in name column for the fieldid. ;)

tnguy3n
10-27-2005, 10:09 PM
np! thanks for working on it!!!

updated. it now should work regardless whether you use forumbot or actual username.

trackpads
10-27-2005, 11:00 PM
updated. it now should work regardless whether you use forumbot or actual username.

Thanks for this!!!

Synth
11-28-2005, 01:09 AM
is there any way to get this to send a pm automatically to a user once they are promoted to a additional group?

akanevsky
11-28-2005, 01:31 AM
I get this as the username when a member gives a rep. This shows up as the sender of the pm:

Array['username']

Any idea?

change "$vbulletin->userinfo['username']" to $vbulletin->userinfo['username'] (e.g. remove the quotes) p.P :)
Also, IMHO, it should be \r\n not \n\r...

Edit..
Also, $pmpermission should be $pmpermission['adminpermissions']...

tnguy3n
11-28-2005, 01:38 AM
change "$vbulletin->userinfo['username']" to $vbulletin->userinfo['username'] (e.g. remove the quotes) p.P :)
Also, IMHO, it should be \r\n not \n\r...

Edit..
Also, $pmpermission should be $pmpermission['adminpermissions']...

:laugh: :rolleyes: the code had been changed since its verion 1.0.

akanevsky
11-28-2005, 10:51 AM
It still has $pmpermission = 2;

prettyboi
11-28-2005, 09:54 PM
Great little hack, can the PM sent be altered to what you want via a phrase?

Hey Snowbot! I like how your site goes but could u please explain to me how you can seperate your forum from your main display? I mean, you know what im talking about?

check out my page at www.asianunityforum.com

When u first click on it. You'll automatically see each and everyone of my forum. How can I make it to where they have to click on the forum link on top like yours to view all of the forum?

Please, help me! Thanks!!!

mpadc
01-05-2006, 10:29 AM
Very good!

is iit possible in anyway to enter the POST url in the pm for that they were repped for?

hydn
05-18-2007, 02:09 PM
i dont see a download file above. Am i missing something?

saib
06-11-2007, 02:42 PM
I wonder if it works on vB 3.6.5?
Where can I download that plugin?

On the other way, maybe you can create plugin which will send auto e-mail on reputation?
It will be awesome.

Black_Widow
10-20-2007, 12:46 PM
The plugin isnt' more available to download.