Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Auto PM on Reputation Details »»
Auto PM on Reputation
Version: 1.00, by tnguy3n tnguy3n is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-09-2005 Last Update: Never Installs: 23
Uses Plugins
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-10-2005, 08:20 AM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great little hack, can the PM sent be altered to what you want via a phrase?
Reply With Quote
  #3  
Old 10-10-2005, 01:37 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent!!! Thanks!!
Reply With Quote
  #4  
Old 10-10-2005, 02:04 PM
hotrod1 hotrod1 is offline
 
Join Date: Apr 2005
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Simple install, thanks!!!
Reply With Quote
  #5  
Old 10-10-2005, 02:34 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 10-10-2005, 02:37 PM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by trackpads
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:
PHP Code:
    $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::
PHP Code:
    $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.
Reply With Quote
  #7  
Old 10-10-2005, 02:39 PM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SnowBot
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.
Reply With Quote
  #8  
Old 10-10-2005, 03:06 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tnguy3n
Open you plugin,

FIND:
PHP Code:
    $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::
PHP Code:
    $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?
Reply With Quote
  #9  
Old 10-10-2005, 03:07 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, that is just in the PM list, when I open the actual PM it is the right user and avatar.
Reply With Quote
  #10  
Old 10-10-2005, 03:08 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshot
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:25 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09251 seconds
  • Memory Usage 2,319KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete