View Single Post
  #1  
Old 10 Mar 2016, 22:06
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
[HELP] Removing row from table plugin query

so ive got my plugin at showthread_complete, its working pretty good =)

but im trying to add a query to it that reverses something done in showthread.php

This is the code straight from showthread.php

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

So I would think to reverse that my plugin would have to be

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This doesnt give me an error, but it's not working, and threadviews table still continues to grow.

i have also tried

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

both resulting in database errors.

The goal:
if vb options are not set to update view counts immediately, each view is stored in the threadviews table. this happens with that first block of code from showthread.php

so when you view a thread that query runs, i want my query to just delete the row that first query added.

i have got this all worked out if admins update threads immediately, but i don't want to dictate their having to choose that option.

--------------- Added 11 Mar 2016 at 00:17 ---------------

this is working

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

is it proper?
__________________
If you need custom work done please use Dirt RIF CustUmz
Owner of vBTeam
vBulletin 3.8.14 DRC Edition PHP 7.4 Compatible- NOT a null, NOT complete files Requires a legit copy of vBulletin 3.8.11.
Reply With Quote