View Single Post
  #3  
Old 11 Mar 2016, 01:05
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Originally Posted by Dr.CustUmz View Post
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?
The original code will throw a database error, you just wont see it because its being run as a shutdown query.

You final code is fine, but you dont actually need the LIMIT 1.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote