vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vbBux / vbPlaza (https://vborg.vbsupport.ru/forumdisplay.php?f=171)
-   -   tableprefix bugs (https://vborg.vbsupport.ru/showthread.php?t=120624)

The Geek 07-08-2006 04:45 AM

tableprefix bugs
 
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:

Code:

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

Quote:

Originally Posted by Neal-UK
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


All times are GMT. The time now is 06:15 PM.

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.01078 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete