vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   vBPunch v1.2 - A Quick Warning System (https://vborg.vbsupport.ru/showthread.php?t=97117)

Renee 02-14-2006 09:01 PM

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 :D

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 :)

Oblivion Knight 04-15-2006 11:54 PM

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 :D

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*

yinyang 04-16-2006 12:30 AM

is there a way to track how many times a user is punched? i.e., can you show this in the postbit area?

Oblivion Knight 04-16-2006 10:14 AM

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.

Alan @ CIT 04-16-2006 05:03 PM

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.

ElForro 04-26-2006 05:57 AM

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"...

Smiry Kin's 05-19-2006 12:25 PM

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.?

phonexpo 05-19-2006 12:51 PM

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

futuredood 06-28-2006 12:13 PM

hey Alan, can we get this to work in the memberinfo?

powerful_rogue 06-27-2007 12:13 AM

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


All times are GMT. The time now is 07:41 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.01257 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete