Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBPunch v1.2 - A Quick Warning System Details »»
vBPunch v1.2 - A Quick Warning System
Version: 1.2, by Alan @ CIT Alan @ CIT is offline
Developer Last Online: Apr 2012 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 09-28-2005 Last Update: 11-05-2005 Installs: 83
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

If Upgrading from version 1.1, upload all of the files in the Zip, making sure that they overwrite the old ones, then install the product XML.

If upgrading from version 1.0, please follow the instructions in the install guide in the Zip file.

Changelog
Version 1.2
  • Clicking "Cancel" on the extra text prompt means that the PM will not be sent
  • Adding an option to display a confirmation popup when the PM has been sent
  • Fixed a bug with usergroup permission checking (thanks Osmosis)
Version 1.1
  • Added a global on/off switch for vBPunch
  • Added the ability to add/remove reputation points when punching
  • Added usergroup permissions - you can now choose which usergroups are allowed to use vBPunch
  • Now includes 3 "Punch User" images as well as the text link
What is vBPunch?
vBPunch is a quick way of sending a warning PM to a user, based on a post they have made.
It adds a link to the postbit called "Punch User". When an admin clicks this, vBPunch pops up a textbox letting the admin type a reason (if they wish, it's optional), then it sends the user a PM.

What makes vBPunch so special then???!?
The useful thing about vBPunch is that it does it all in the backgorund using Ajax. That means, no popup windows, no page refreshes, nothing. All the admin does is click the "Punch User" link, enter a reason if needed, then continues reading the thread / post, without being interupted.

Installation
Please read install.html located in the zip file

Un-installation
Please read install.html located in the zip file. Please ensure that you delete the uploaded files, before un-installing the product in the vBulletin AdminCP, otherwise you will recieve errors when you edit a usergroup.

-----------------------------------------------------------------

Important: Unfortunately, my leased vBulletin licence has now expired, and I won't be renewing it until September which means I will be unable to reply to this thread, or update this mod until then. I'm hopeful that the great vBulletin.org community will step in to answer any questions in my absence though See you all in early September!

Show Your Support

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

Comments
  #122  
Old 02-14-2006, 09:01 PM
Renee's Avatar
Renee Renee is offline
 
Join Date: May 2004
Location: Hungary
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed it on a new board with no any hacks and it sends me on punch a new pm.

Now I installed it on the publish board, which is hacked to death, it don't works

But I changed in the vbpunch.php on

Code:
// No errors, so send the PM
		$pm->save();
I add before this:

Code:
$pmpunch = "UPDATE " . TABLE_PREFIX . "user SET pmtotal=pmtotal+1, pmunread=pmunread+1 WHERE userid=" . $vbulletin->GPC['punch'] . "";
			        $db->query_write($pmpunch);
So it works for me with the pmcount
Reply With Quote
  #123  
Old 04-15-2006, 11:54 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Renee
I installed it on a new board with no any hacks and it sends me on punch a new pm.

Now I installed it on the publish board, which is hacked to death, it don't works

But I changed in the vbpunch.php on

Code:
// No errors, so send the PM
		$pm->save();
I add before this:

Code:
$pmpunch = "UPDATE " . TABLE_PREFIX . "user SET pmtotal=pmtotal+1, pmunread=pmunread+1 WHERE userid=" . $vbulletin->GPC['punch'] . "";
			        $db->query_write($pmpunch);
So it works for me with the pmcount
Try this instead:
Code:
$db->query_write("UPDATE " . TABLE_PREFIX . "user SET pmtotal+1, pmunread+1 WHERE userid=" . $vbulletin->GPC['punch'] . ");
I think that should work.. *scratches head*
Reply With Quote
  #124  
Old 04-16-2006, 12:30 AM
yinyang's Avatar
yinyang yinyang is offline
 
Join Date: May 2004
Location: Los Angeles
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to track how many times a user is punched? i.e., can you show this in the postbit area?
Reply With Quote
  #125  
Old 04-16-2006, 10:14 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't get this to work for me (running 3.5.4)..

Everything seems fine until it comes to "punching" a user, text is added to the prompt and ok is clicked, but the PM is never sent and the confirmation box never pops up.
Reply With Quote
  #126  
Old 04-16-2006, 05:03 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Oblivion Knight,

I've just installed a clean copy of vB 3.5.4 and tested vB Punch and it seems to work fine here.

Anyone else found this hack to stop working on 3.5.4? If so, what other hacks do you have installed?

Thanks,
Alan.
Reply With Quote
  #127  
Old 04-26-2006, 05:57 AM
ElForro ElForro is offline
 
Join Date: Mar 2006
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack is great!!! Installed!

Works in 3.5.4

Although, I had to make this change in vbpunch.php in order to show the "new PM"...
Reply With Quote
  #128  
Old 05-19-2006, 12:25 PM
Smiry Kin's's Avatar
Smiry Kin's Smiry Kin's is offline
 
Join Date: Dec 2005
Location: United Kingdom!
Posts: 954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when i punch a user, it and it sends a PM, it doesnt count as a PM, in the inbox, doesnt say any new PM's but its there.. any help.?
Reply With Quote
  #129  
Old 05-19-2006, 12:51 PM
phonexpo phonexpo is offline
 
Join Date: Sep 2005
Location: Dublin
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Smiry Kin's
when i punch a user, it and it sends a PM, it doesnt count as a PM, in the inbox, doesnt say any new PM's but its there.. any help.?
https://vborg.vbsupport.ru/showpost....&postcount=126
Reply With Quote
  #130  
Old 06-28-2006, 12:13 PM
futuredood futuredood is offline
 
Join Date: Jan 2002
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey Alan, can we get this to work in the memberinfo?
Reply With Quote
  #131  
Old 06-27-2007, 12:13 AM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bit of a longshot, but would this work on 3.6.7?
Reply With Quote
Reply


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 06:34 AM.


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.05057 seconds
  • Memory Usage 2,311KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_code
  • (2)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
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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