PDA

View Full Version : Miscellaneous Hacks - Automatic PM on Reputation


tnguy3n
01-27-2005, 10:00 PM
Modded by tnguy3n @ http://www.all4actions.net

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.

File modification: 1
Template mod: none
Installation Time: 3-4 mins

Requested here (https://vborg.vbsupport.ru/showthread.php?t=75264)
--------------
IMPORTANT:
Make sure to change to your own fieldid of following line in the mod:
$reputationfield = $userfield['fieldXX']; // adjust field id to your own value

yoyoyoyo
01-28-2005, 01:33 PM
isn't the rep usually anonymous unless a user enters a name? won't this defeat that system?

Ghostsuit
01-28-2005, 02:16 PM
You have the option to make it Anonymous or not. Some boards have it set some don't.

Floris
01-28-2005, 02:26 PM
Nice idea, thank you for making it and sharing it with the customers for free! I hope to see nice addons to vBulletin from you in the future! I've installed this on a test board without problems.

yoyoyoyo
01-28-2005, 02:34 PM
You have the option to make it Anonymous or not. Some boards have it set some don't.good to know.. I need to check those prefs more closely :)

trackpads
01-28-2005, 02:48 PM
Thanks for making my request!! Mucho Appreciated!!!!!

Ghostsuit
01-28-2005, 03:03 PM
good to know.. I need to check those prefs more closely :)

Tell me about it, I come across things I've not noticed all the time ;).

Guest190829
01-28-2005, 04:23 PM
Nice hack. Good Job, = )

trackpads
01-28-2005, 06:49 PM
What would the query to be to turn this on for all current users?

tnguy3n
01-28-2005, 08:55 PM
What would the query to be to turn this on for all current users?
you this query in admin cp or phpmyadmin:
UPDATE userfield SET fieldXX = 1;

change fieldXX to fieldid of yours. be careful or you'll update wrong column in userfield table.

trackpads
01-28-2005, 09:15 PM
Thanks!!!

trackpads
01-29-2005, 02:37 PM
Is there a way to make the PM from the person that gave you rep? That way people could reply directly to them. I have neg rep disabled so for me it is a good idea.

Thanks!

-Jason

Boofo
01-29-2005, 03:22 PM
Can this be made to send a pm for other than 1 point? If an admin gives rep on my site, it is 100 points. Can it reflect the right amount, too? ;)

trackpads
01-29-2005, 05:32 PM
Can this be made to send a pm for other than 1 point? If an admin gives rep on my site, it is 100 points. Can it reflect the right amount, too? ;)
I just edited the text so that this just says they were given rep and to check their usercp.

tnguy3n
01-30-2005, 02:05 AM
Is there a way to make the PM from the person that gave you rep? That way people could reply directly to them. I have neg rep disabled so for me it is a good idea.

Thanks!

-Jason

change $forumbot, $forumbotid variables to following ones:

$forumbot = "$bbuserinfo[username]"; // rename it to whatever you like
$forumbotid = "$bbuserinfo[userid]"; // don't change this value if you don't know what it is
$pm_title = "You have been given 1 rep point.";
$pm_content = "I've just given you 1 reputation point for your excellent post.\n\rKeep up good work!\n\rRegard,\n\r$forumbot";

trackpads
01-30-2005, 02:16 AM
change $forumbot, $forumbotid variables to following ones:

$forumbot = "$bbuserinfo[username]"; // rename it to whatever you like
$forumbotid = "$bbuserinfo[userid]"; // don't change this value if you don't know what it is
$pm_title = "You have been given 1 rep point.";
$pm_content = "I've just given you 1 reputation point for your excellent post.\n\rKeep up good work!\n\rRegard,\n\r$forumbot";

Thanks!!!!

tnguy3n
01-30-2005, 02:29 AM
Can this be made to send a pm for other than 1 point? If an admin gives rep on my site, it is 100 points. Can it reflect the right amount, too? ;)

I have not tested this yet, but i think you can add an if ... else statement to check if the user is in admin group to return proper amount point. for example:


if($bbuserinfo[usergroupid] == '6')
{
$reppoint = '100';
}
else
{
$reppoint = '1';
}

now, in title + message, modify it a bit. i.e.
$pm_title = "You have been given $reppoint point.";

jilly
02-01-2005, 09:02 PM
You'd think people would know where to look, but new users sometimes need direct links to help them out - so I'd like a link in the PM that goes directly into the User CP so they can click to go see the reputation

trackpads
02-26-2005, 02:58 PM
I would just like to post that this hack ahas almost tripled the use of the rep system on my site. Members love it and are now pm'ing the heck out of each other with this simple little addon.

Thanks again!

-Jason

trackpads
10-02-2005, 11:58 PM
Will these be ported to 3.5?

Thanks again!

mano1.com
05-13-2006, 04:29 AM
does this work on 3.5.4?

jilly
08-23-2006, 05:41 AM
It's not working for me on 3.5.4 - would be interested in a port over to that!

Raptor
01-10-2007, 02:58 PM
can someone port to 3.6.4 ?