Thread: Major Additions - Point Market System 3.1x
View Single Post
  #991  
Old 08-11-2010, 02:03 AM
TheMayhem's Avatar
TheMayhem TheMayhem is offline
 
Join Date: Oct 2002
Location: Pittsburgh, Pa
Posts: 526
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Aramist View Post
HI,


When i create a new item store, and click it to access...it gives me the following my sql error...

Code:
Database error in vBulletin 4.0.5:

Invalid SQL:
select * from market_store_transactions where marketid ='4' and userid='1';

MySQL Error   : Table 'mybd.market_store_transactions' doesn't exist
Error Number  : 1146
Request Date  : Tuesday, August 10th 2010 @ 10:49:11 PM
Error Date    : Tuesday, August 10th 2010 @ 10:49:11 PM
Script        : http://www.mysite.com/forum/market.php?do=storeitem&id=4
Referrer      : http://www.mysite.com/forum/market.php?do=storecat&storeid=3
IP Address    : My IP
Username      : Aramist
Classname     : vB_Database
MySQL Version : 5.0.91-community

He's not inserting the Table prefix

Any fix for it ?

Ty in advance
Looks like I missed this, here is your fix for it or you can wait for the next release:

Open root/market.php

Find:

PHP Code:
// Check to See if User Can Rate
$user_purchase $db->num_rows($db->query_read("select * from market_store_transactions where marketid ='".addslashes($itemid)."' and userid='".addslashes($userid)."'"));
if (
$user_purchase 0) {
$can_review $db->num_rows($db->query_read("select * from market_store_review where marketid ='".addslashes($itemid)."' and userid='".addslashes($userid)."'")); 
Change to:

PHP Code:
// Check to See if User Can Rate
$user_purchase $db->num_rows($db->query_read("select * from " TABLE_PREFIX "market_store_transactions where marketid ='".addslashes($itemid)."' and userid='".addslashes($userid)."'"));
if (
$user_purchase 0) {
$can_review $db->num_rows($db->query_read("select * from " TABLE_PREFIX "market_store_review where marketid ='".addslashes($itemid)."' and userid='".addslashes($userid)."'"));
} else { 






Quote:
Originally Posted by RollaJedi View Post
i noticed that you said you can convert currencies. Can you convert vbexperience points into ucash, so that i may use ucash on your store and also spend the newly converted ucash on other 3rd party shops?

vbexperience points -----> point market system turns them into ucash ----------> able to spend these converted points in another shop
Yes you can use the Point Market Converter to turn a currency such as vBExperience into uCash and then a user could use those points from uCash to use it on another point store other then the market if you like.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01288 seconds
  • Memory Usage 1,796KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete