PDA

View Full Version : tableprefix bugs


The Geek
07-08-2006, 04:45 AM
Hey there, just upgrading to 1.5.7 and there are 2 typos I have come across that prevent deleting data. They are in:
plugins/vbplaza_threaddata_delete
plugins/vbplaza_postdata_delete

You have TABLEPREFIX instead of TABLE_PREFIX

This causes db errors when deleting data.

Thanks

on another note:

your ` around the column names errors out the deletion process too.

CMX_CMGSCCC
07-13-2006, 07:41 PM
The TABLEPREFIX I know about, what do u mean about the ` error though?

Do u mean it should be `user`." ?

-CMX

The Geek
07-15-2006, 07:10 AM
you fully qualified the columns including prefixes like: `user.points` which says that its a column called `user.points` instead of a column called user.points (not sure if that makes sense!

Neal-UK
07-25-2006, 09:32 PM
Which files need editing then?

Omega Prime
08-07-2006, 03:16 PM
I just noticed this issue moments ago. Neal-UK, you'd need to edit the 2 files that The Geek mentioned and change the following:

In "vbplaza_postdata_delete.php", remove the " ` " from the following line so that it looks like this:


user." . $vbulletin->options['vbbux_pointsfield'] . " = user." . $vbulletin->options['vbbux_pointsfield'] . " + post.vbbux


In "vbplaza_threaddata_delete", do the same as above, as well as changing "THREADPREFIX" to "THREAD_PREFIX".

Neal-UK
08-07-2006, 03:34 PM
I've installed the newer version and it's all working fine now. Thanks for the help though both of you.

Omega Prime
08-07-2006, 11:54 PM
I've installed the newer version and it's all working fine now. Thanks for the help though both of you.
Odd, because I'm using both vBPlaza 1.5.8 and GARS 2 and had to do the above edits to get deleting to work.

Neal-UK
08-07-2006, 11:59 PM
It deletes fine, no errors came back this time.

MissKalunji
08-23-2006, 05:25 AM
great thanks!

The Geek
09-12-2006, 07:21 AM
This bug STILL seems to exists and I posted this 3 months ago.

VTXCafe.com
10-06-2006, 10:27 PM
Ok, I'm not sure what I'm missing here but....

I am looking at the plugin and I'm looking to make the above edits but the text show above is not inside the plugin. Here is what is inside the plugin:

Edit Plugin vbBux / vbPlaza - Delete Post Data

// include the vbplaza_postdata_delete.php
include(DIR . '/plugins/vbplaza_postdata_delete.php');

What am I doing wrong?

Phatback
06-15-2007, 08:37 PM
you need to edit plugins/vbplazza_postdata_delete.php