Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Point Market System 3.1x Details »»
Point Market System 3.1x
Version: 3.1.2, by TheMayhem TheMayhem is offline
Developer Last Online: May 2015 Show Printable Version Email this Page

Category: Major Additions - Version: 4.0.x Rating:
Released: 01-09-2010 Last Update: 02-02-2012 Installs: 725
DB Changes Uses Plugins Auto-Templates
Additional Files  
No support by the author.

Hack Summary
The Point Market System 3.1 is a stand alone "store" or "shop" hack for vBulletin 4x series. This hack is considered a major addition that allows for you to install one or multiple point systems, activity systems, or currency systems to use points for forum related item enhancements or a virtual/physical store system for your vBulletin forum.

The Point Market is actually four major hacks combined into one. Those five major hacks are a Forum Enhancement Store, A Virtual & Physical Store, a detailed Banking/Payment System, Currency to Point Converter, and a Lottery/Gambling Center. Below is a little bit more about each section.

Forum Item Enhancement Store
The Point Market Forum Item section is what is considered a traditional forum store. You can use a very comprehensive Admin background to be able to sell a variety of forum items that can help enhance a user's enjoyability on the forums. In addition, there are many forum items that a user can purchase for other users. I should also note that a point donation is possible in this section since many point systems do not offer the ability to donate. Below is a listing of the market items & categories:

Forum Items User can Purchase
Market Features (Additional Market Access Features Users Can Purchased)
- Steal Protection
- Gift Market Access
- Stolen Point History
- Donation History
- Gambling Access
- Coupon Access
User Title
- Custom User Title
- User Title Glow
- User Title Color
- Usertitle Strikethrough
Gifts / Awards / Ribbons
- Purchase a Gift
- Create a Gift
User Permissions
- Primary Usergroup Change
- Secondary Usergroup Change
Username Permissions
- Change Username
- Username Color
- Username Glow
- Username Strikethrough
Forum Permissions
- Special Forum Access
- Forum Password Access
- Moderate a Forum
- Change Forum Description
- Create a Forum
Images
- Create Smiley Category
- Upload Smiley
- Upload Avatar
Other Users
- Change Custom User Title
- Gift a Gift
- Donate to Another User
- Steal From a User
- Fire a Moderator
- Change Avatar
Posts
- Post Font Bold
- Post Font Color
- Post Font Face
- Post Font Italics
Threads
- Sticky a Thread
- Delete a Thread
- Color a Thread
- Thread Strikethrough
- Ban a User From a Thread


In addition to these powerful Forum Items, the Point Market has revolutionized the way shop systems can handle charging items. The Point Market allows for all market items above to be charged in two different currencies. That means you could use a combination of any of the supporting point mods to charge for each forum item. Additional features that have been recently been introduced involves the ability to set when these market items expire, allowing for only tempory or permanent purchases. Furthermore, Administrators can choose whether to enable/disable the refund capabilities of these market items as well as individual usergroup permissions that can set individual access, coupon capabilities, and an individual maximum purchase.

Other powerful enhancements to our forum item store system allows for Administrators to set the ability of charging for category access in order to access these market items. This will give the user's one more way to stay active and motivated on accumulating points in order to use them for store purchases. A recently introduced user requested feature also allows for subcategories and the ability to create an unlimited amount of duplicate forum items by using the above market items as a template for a new item. This means you can choose to set different quotos for each market item and can truly personalize your forum item store section.

Bank & Paycheck Center
The Point Market version 3.1x series has done some extreme enhancements to how point banking is now handled. Users have the classic ability to be able to use a bank to store two different point system currencies of the Administrators choosing. These currencies are stored and can accumulate primary usergroup interest that is set during a specified time period by the Administrator. Below is an exact list of Banking features.

Bank Features
- Store Two Currencies that are protected from all steal protection
- Allow for interest to be earned controlled by Administrators on a payout period
- Set minimum/maximum fees (usergroup controlled)
- Set minimum/maximum withdraw and deposit amounts (usergroup controlled)


A main change in the Point Market that makes it so different is the concept of receiving paychecks. Many forums that use point systems want the ability to pay their staff or special usergroups with a paycheck to say thanks as a form of payment. The Point Market gives you the ability to pay users on a specified period by the Administrator. There best part about this paycheck feature is the Admin can choose two different amounts that a user can earn. Admins can choose a set amount that is guarenteed during each pay period OR Administrators can choose for the user to earn a percentage of Point Market Forum Item Sales during a specified period that is defined by their primary usergroup. This allows for staff to become almost salesman like within the Market and can also guarentee a fluxuating paycheck based off of activiity.

Virtual & Physical Online Store
Based off of user demands, the Point Market has created a store system that users can create virtual and physical items and sell it on the website with users using points to purchase these items. Administrators can create an unlimited amount of store items. These items have the ability to:

Store Features
- Purchase an unlimited products by the Admin
- Multiple shipping methods (Email, Mail, Downloadable, No Shipping)
- Control shipping costs if by Mail based off a user's Country
- Up to 5 screenshots uploaded by the Administrator that can be viewed
- Give detailed reviews of products purchased
- Rate products 1 to 5
- Control Quantity of available products
- Coupons Enabled

A designated Administrator will immediately be notified via Private Message of a purchase. From there an Admin can enter the Admin Control Panel and choose to ship the product in whatever method the user chose. A log of this purchase is also available for the user who can view it in their User Purchase history as well as the shipping status of the item.

Point Currency Converter
Sometimes you need to generate actual cash revenue. Many users are willing to purchase points for money. So what better way then to introduce a cash transaction center that will allow for the Administrator to set an amount to charge for a set amount of points? This feature is supported via Paypal and allows for a great income method.

Furthermore, some sites like to use more then two currency systems and the Point Market is designed to meet those needs. Users can be able to select from a specified currency list by the Admin and change points from one system to the next at a fee chosen by the Administrator. This is a pretty convinient method to use every point system possible and allow for user's main goal to be as active as possible so that they can adjust their points to their liking.


Lottery & Gambling
Gambling these days are in high demand and the Point Market has set to address it. The Point Market has created 3 seperate games to allow user's to gamble their points on multiplying their points. Those 3 games are:

- Match The Card
- Higher Card
- Lottery


The Lottery has a built in expiration set by the Administrators and can also be used with coupons for discounts. Massive jackpots can be set at a starting amount or at 0 and an adjustable charge price as well. Administrators can also control the odds of the other two games. Finally a powerful Administrative backend will allow for Admins to see information and statistics related to the lottery.


Other Administrative Features
The Point Market has a series of features in addition to the main 5 hacks that creates the Point Market. The author truly believes the reason the Point Market is truly the best shop system is the easy Admin system combined with the powerful feature capabilities. Below are some of the main Administrative features:

- Advanced individual Administrative Access features (controlled by superadmin)
- Detailed Moderator/Supermoderator Control Panel (features controlled by superadmin)
- Informative statistics related to purchases & activity within the market
- History & Transaction log of all Forum Market Items
- Controllable Coupon creation with pages of advanced controls
- Maintenance section used for debugging purposes and serious updates
- Detailed Gift/Ribbon/Award section
- Banking paycheck creation & transaction history



vBulletin.org Mods This Works With
1) vBExperience (Point Market v3.0+)
2) uCash
3) vBookie
4) Kbank
5) vBCredits Deluxe II
6) vBActivity

Integration With Other Mods
This hack has been intended to be integrated with a 3rd party point system. You can choose to either use a hack added on vBulletin.org or write your own point system. The hack is dependent on the user table having a point/credit/cash field within the user control panel. Please note that vBExperience will only work with the Point Market version 3x series.

In addition, if you do not want to integrate this hack directly with another point system. You can still install this hack and use the reputation field, which will allow user's to purchase items based off of their reputation. I suggest if you choose this option that you set all prices to not include any decimals, as it will be useless and cause unwanted errors.

As of the 3.1x series, the Point Market has begun to create individual forum items related to other modifications offered on vBulletin.org. If you would like your hack to have a special feature &/or capability that can be purchased within the Point Market, just let the developer of this modification know. I will gladly work with any developer to create purchaseable forum items within the Point Market that enhances your modification.


Support Policy
The only available modification that can be downloaded now is the 3.1x alpha/beta series. The reason why I have it marked in such titles is because the bugs that are remaining seem to be very minimal and the product is pretty stable. That being said their are still a few features that have not been scripted and are marked in a lime green color above in my post. Those features still might not correctly function once they are introduced into the beta series of the 3.1x series and users should use some caution. That being said, I will do my best to offer support in this thread. In order to gain support, you must have downloaded the Point Market product and be listed as installed with the latest available version. PLEASE NOTE: if you are having an issue, please provide the following information
- URL to the page you are experiencing problems or a database error
- Primary Point Field name (What point system are you using)
- Secondary Point Field name (What point system are you using
I need to know these in order to fix the majority of problems I need to know this information as there are so many combinations and point systems that can cause different problems, this is the only way I can help replicate an error in order to fix it


IMPORTANT UPGRADE INFORMATION: After you have upgraded from version 1.0.4 to version 2x, please visit the Maintenance section of the Admin CP. Please update the transaction counter and refund counter so that user's information is displayed accurately. Do not use the User Title updater unless you have recently run vBulletin's User Title and Rank Updater in the maintenance section of vBulletin's Admin CP. Please note that only purchases after 2.0.1 is installed can be fixed on the User Title Updater within the Market Admin CP. If you are upgrading to the 3.1x series for the first time, please run the update Maintenance scrippted called Forum Expirations to deal with expired forum items.

Screenshot and release information: To view specific information about the historical releases of the Point Market, please visit this post:
https://vborg.vbsupport.ru/showpost....14&postcount=2
This includes a changelog summary and screenshots of the latest version of the Point Market.

Lastly, I ask all users who install it to kindly click the install button and please rate my product as it is my motivation for future versions of this product.

3.1.0 Gold Release Information
Visit https://vborg.vbsupport.ru/showpost....postcount=1861 for 3.1.0 Gold Release. This Upgrade IS REQUIRED!

The following directories must be chmodded to 777
/customavatars/
/images/smilies/
/images/pointmarket/store/
/pointmarket/downloads/

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
10 благодарности(ей) от:
8thos, Alien, BCP Hung, Jasem, kafi, markoroots, michal72, Mopar1973Man, nchoate97, NukeET

Comments
  #512  
Old 05-12-2010, 09:41 PM
nishant.soni nishant.soni is offline
 
Join Date: Apr 2010
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AWESOME MODE... really great work..

2 questions though:

1.How can i have big smilies by default, because small smilies look a bit smaller then they should be in my theme.
2. Does not display avatar

Thanks.
Reply With Quote
  #513  
Old 05-12-2010, 10:56 PM
kurios kurios is offline
 
Join Date: Nov 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First of all, awesome mod! We use it on a fairly large forum (500k users, nearly 2M posts), and it's given our users something new to play with.

With that said; I've had to modify a few things to make it more usable on bigger boards, and more happy with custom postbit_legacy users.

The first thing we changed was in the following plugin (Point Market: Postbit Adjustments):

PHP Code:
if ($post['market_username_subscript']) {
    
$post[username] = "<s>$post[username]</s>";
}
if (
$post['market_username_color']) {
    
$post[username] = "<span style='color: #$post[market_username_color]'>$post[username]</span>";
}
if (
$post['market_username_glow']) {
    
$post[username] = "<span style='font-weight: bold;text-shadow: 0 0 4px #$post[market_ct_glow]'>$post[username]</span>";
}

if (
$post['market_usertitle_subscript']) {
    
$post[usertitle] = "<s>$post[usertitle]</s>";
}
if (
$post['market_ct_color'] AND $post[customtitle] == 1) {
    
$post[usertitle] = "<span style='color: #$post[market_ct_color]'>$post[usertitle]</span>";
}
if (
$post['market_ct_color'] AND $post[customtitle] != 1) {
    
$new_usertitle "<span style='color: #$post[market_ct_color]'>$post[usertitle]</span>";
}
if (
$post['market_ct_glow'] AND $post[customtitle] == 1) {
    
$post[usertitle] = "<span style='font-weight: bold;text-shadow: 0 0 4px #$post[market_ct_glow]'>$post[usertitle]</span>";
}
if (
$post['market_ct_glow'] AND $post[customtitle] != 1) {
    
$new_usertitle "<span style='font-weight: bold;text-shadow: 0 0 4px #$post[market_ct_glow]'>$post[usertitle]</span>";
}
if (
$post['market_ct_glow'] AND $post[customtitle] != AND $post[market_ct_color]) {
    
$new_usertitle "<span style='font-weight: bold;text-shadow: 0 0 4px #$post[market_ct_glow]'><span style='color: #$post[market_ct_color]'>$post[usertitle]</span></span>";
}

if (
$new_usertitle != "") {
    
$post[usertitle] = $new_usertitle;

That simply makes sure that we only set the user's title, and not append it to the username. However, doing that caused the title to not always display correctly. The fix was to move the hook location to postbit_display_complete.

It also allows us to add far more color options in the template for item_buy (and our custom template for username colors) without having to also modify the CSS files to include the glows.

Further down in that hook, is a potentially server-intensive set of queries that was causing certain threads to have query counts in the 400s which is unacceptable.

The potentially bad code is as follows:

PHP Code:
$gift_tran$vbulletin->db->query_read("SELECT reason, userid, affecteduser, gift_id, gift_customid from " TABLE_PREFIX "market_transactions where `affecteduser`='$post[userid]' AND (gift_id > 0 OR gift_customid > 0)");

while (
$gift$vbulletin->db->fetch_array($gift_tran)) {

if (
$gift[gift_customid]) {
$gift[gift_id] = $gift[gift_customid];
}

$gift_info $vbulletin->db->fetch_array($vbulletin->db->query_read("SELECT icon_small, name from " TABLE_PREFIX "market_gifts where `giftid`='$gift[gift_id]'"));

        if (
$gift[userid] != $gift[affecteduser]) {
$grab_name $vbulletin->db->fetch_array($vbulletin->db->query_read("SELECT username from " TABLE_PREFIX "user where `userid`='$gift[userid]'"));
        } else {
$grab_name "";
        }

$reason ". Reason: ".stripslashes($gift[reason])."";
        
$templater vB_Template::create('market_gifts_bit');
            
$templater->register('icon_big'$gift_info[icon_small]);
            
$templater->register('name'$gift_info[name]);
            
$templater->register('givenby'$grab_name[username]);
            
$templater->register('gift_reason'$reason);
        
$market_gifts_bit .= $templater->render();


This has the potential of 1 + (giftcount*2) queries, which can cause quite a few unnecessary queries.

Since we don't display who gave the gift, and why, in the postbit (we leave that to the member profiles to cut down on page sizes) I could change the above code to the following, to drop the query count down to 1 per post, which is acceptable.

PHP Code:
 $gift_tran$vbulletin->db->query_read("SELECT ".TABLE_PREFIX."market_gifts.icon_small AS icon_small,
                                                    "
.TABLE_PREFIX."market_gifts.name AS name
                                            FROM "
.TABLE_PREFIX."market_transactions, ".TABLE_PREFIX."market_gifts
                                            WHERE "
.TABLE_PREFIX."market_transactions.affecteduser=$post[userid] 
                                                AND ("
.TABLE_PREFIX."market_transactions.gift_id > 0 OR ".TABLE_PREFIX."market_transactions.gift_customid > 0) 
                                                AND ("
.TABLE_PREFIX."market_gifts.giftid=".TABLE_PREFIX."market_transactions.gift_id 
                                                  OR "
.TABLE_PREFIX."market_gifts.giftid=".TABLE_PREFIX."market_transactions.gift_customid)
                                                "
);
                                            
    
    while (
$gift$vbulletin->db->fetch_array($gift_tran)) 
    {
        
$templater vB_Template::create('market_gifts_bit');
        
$templater->register('icon_big'$gift[icon_small]);
        
$templater->register('name'$gift[name]);
        
$market_gifts_bit .= $templater->render();
    } 
I'm no SQL guru, but 1 query vs potentially hundreds is a vast improvement.

Other changes include actually setting the message to use the [COLOR][B][I] BBCode tags, instead of wrapping them in HTML for display. (Which messes with quotes, and other tags inside the posts) I simply modified your plugin code for that to the following:

PHP Code:
if($vbulletin->GPC['wysiwyg'])
{
    if (
$vbulletin->userinfo['market_post_bold']) {
        
$vbulletin->GPC['message'] = "<b>".$vbulletin->GPC['message']."</b>";
    }
    if (
$vbulletin->userinfo['market_post_italics']) {
        
$vbulletin->GPC['message'] = "<i>".$vbulletin->GPC['message']."</i>";
    }
    if (
$vbulletin->userinfo['market_post_fontface']) {
        
$vbulletin->GPC['message'] = "<span style='font-family: ".$vbulletin->userinfo['market_post_fontface'].";'>".$vbulletin->GPC['message']."</span>";
    }
    if (
$vbulletin->userinfo['market_post_color']) {
        
$vbulletin->GPC['message'] = "<span style='color: #".$vbulletin->userinfo['market_post_color']."'>".$vbulletin->GPC['message']."</span>";
    }
}
else
{
    if (
$vbulletin->userinfo['market_post_bold']) {
        
$vbulletin->GPC['message'] = "[B]".$vbulletin->GPC[message]."[/B]";
    }
    if (
$vbulletin->userinfo['market_post_italics']) {
        
$vbulletin->GPC['message'] = "[I]".$vbulletin->GPC['message']."[/I]";
    }
    if (
$vbulletin->userinfo['market_post_fontface']) {
        
$vbulletin->GPC['message'] = "[FONT='".$vbulletin->userinfo[market_post_fontface]."']".$vbulletin->GPC['message']."[/FONT]";
    }
    if (
$vbulletin->userinfo['market_post_color']) {
        
$vbulletin->GPC['message'] = "[COLOR=#".$vbulletin->userinfo[market_post_color]."]".$vbulletin->GPC['message']."[/COLOR]";
    }

And added that to a hook on newreply_post_start, which effectively wraps it properly, instead of wrapping it for display. (It sends the formatted message to the DB, where the colors can be edited later by the user if they want)

We also had to change the way username/title coloring is handled, since we want certain colors unavailable for usernames, but still available for titles/posts.

There are various other things we've changed, but overall, great mod!

I'd personally like to see a bit easier-to-use item adding system, so I don't have to manually insert things into the DB and add the code later. (An eval() type system would be awesome)
Reply With Quote
  #514  
Old 05-13-2010, 04:30 AM
TheMayhem's Avatar
TheMayhem TheMayhem is offline
 
Join Date: Oct 2002
Location: Pittsburgh, Pa
Posts: 526
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting changes you've done there. Kurios is right on how I have written some of the queries in the hook locations for the gifts is a bit database intensive and I might apply one or more of a fix to the next version before I release.

As far as the user title changes you applied, I'm very unsure of that... The user title bug issues is one of three bugs I haven't fixed and want to before the next version so I will look into what you suggested and see if I can come up with a better way of doing it then I currently have so that the usernames & usertitles can still be purchased with the items I currently offer without having to do template edits. Having no template edits is a very important part of this product that I refuse to ever change.

Now as far as the final thing about manually editing the database for items. As I've previously stated if you ever plan on applying any upgrades of this product never ever-ever-ever start adding new items to the market_items table in the database. With how I have it coded it just won't work. Instead use one of the predefined market items I have included in the 2.0.1 series or one of the predefined categories that have no functionality but are available for custom coding and modify the coding with how you wish. Just don't insert anything new on the table. The reason I did that is so I can still have some control over the reported bugs and errors without having much 3rd party issues coming into play on why things don't work. I'm not saying I won't change that in the future but it all depends on how popular this mod becomes.

Finally, I'm only 3 bugs away from releasing 2.1.0. I can safely say version 3.0.0 will be the next release which will majorly rework the design of purchasing items and I plan on introducing a new major feature that will greatly work with vbcredits when it comes out to allow multiple currencies for purchase and for users to be able to determine if multiple currencies are needed for each item to purchase or if a user can choose what to charge their account and how much of each. More will be available on that after I release this in the next day or two.
Reply With Quote
  #515  
Old 05-13-2010, 12:35 PM
Footman Footman is offline
 
Join Date: Mar 2010
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheMayhem View Post

Now as far as the final thing about manually editing the database for items. As I've previously stated if you ever plan on applying any upgrades of this product never ever-ever-ever start adding new items to the market_items table in the database. With how I have it coded it just won't work. Instead use one of the predefined market items I have included in the 2.0.1 series or one of the predefined categories that have no functionality but are available for custom coding and modify the coding with how you wish. Just don't insert anything new on the table. The reason I did that is so I can still have some control over the reported bugs and errors without having much 3rd party issues coming into play on why things don't work. I'm not saying I won't change that in the future but it all depends on how popular this mod becomes.
Ah, ok, so I gather it's possible to offer different things then what you've pre-written so long as we do it within your structure, is that correct? If so that's great. Just the ability to tailor the items a bit more to different specific needs is great.

The other thought I personally had regarding 'items' was for actual 'things' like a t-shirt or hat with the sites logo, or even put the points towards their next years membership for example. I'm assuming the best way to do that is manually subtracting the points from a members profile if they order something like that.
Reply With Quote
  #516  
Old 05-13-2010, 01:34 PM
kurios kurios is offline
 
Join Date: Nov 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheMayhem View Post
As far as the user title changes you applied, I'm very unsure of that... The user title bug issues is one of three bugs I haven't fixed and want to before the next version so I will look into what you suggested and see if I can come up with a better way of doing it then I currently have so that the usernames & usertitles can still be purchased with the items I currently offer without having to do template edits. Having no template edits is a very important part of this product that I refuse to ever change.
That's why I had to move the location of the hook to postbit_display_complete, and set the execution order as high as it will go. If it was left where it was, it simply became URL encoded by other mods (namely VBSEO and another one I couldn't bother hunting down). It doesn't seem to cause any issues by changing the location and order.

Also; the only template edit we did, was to let us quickly add/remove colors for the color purchases. There are some colors we want off-limits for usernames. (It's simply 'appending' colors to the selection box, if it's not the username color item)

As for the actual template edits, we needed to add/remove some colors due to our skin, as some are very very hard to read on our style, so we didn't want our members to have the ability to purchase them at all. (Thus, saving us the headache of having to manually change their color)

The changes for that are as follows:

PHP Code:
$templater vB_Template::create('market_itembuy');
$templater->register('market_gift_list'$market_gift_list);
$templater->register('name'$itembuy[name]);
$templater->register('item_id'$itembuy[marketid]);
$templater->register('item_type'$item_type);
$templater->register('amount'$item_amount);
$templater->register('new_amount'number_format($item_new_amount2'.'','));
$templater->register('current_points'$current_points);
$templater->register('discount_percentage'number_format($discount_percentage2'.'''));
$templater->register('remaining'$remaining);
$templater->register('image'$image);
$templater->register('disabled'$disabled);
$templater->register('maxchar'$maxchar);
$templater->register('instructions'$instructions);
$templater->register('gift_minimum'$permissions['market_gift_minimum']);
$templater->register('gift_maximum'$permissions['market_gift_maximum']);
if (
$itembuy[type] == 4) {
$templater->register('max_donate'$max_donate);
}

/** Begin Custom Color Selection **/

// Check if this is a colorized template we need to use
if ($itembuy['type'] == 3)
{
    
// These are the username colors. Which we can effectively exclude.
    
if ($itembuy['parentid'] != 12)
    {
        
// market_item_buy_color_posttitle simply has a bunch of extra <option="#COLOR">COLOR</option>
        // lines defined, to allow more color options. extra_color_selections is defined right before the
        // closing </selection> tag in the market_item_buy template.
        
$templater->register('extra_color_selections'vB_Template::create('market_item_buy_color_posttitle')->render());
    }
}

/** End Custom Color Selection **/

$market_itembuy .= $templater->render(); 


Quote:
Originally Posted by TheMayhem View Post
Now as far as the final thing about manually editing the database for items. As I've previously stated if you ever plan on applying any upgrades of this product never ever-ever-ever start adding new items to the market_items table in the database. With how I have it coded it just won't work. Instead use one of the predefined market items I have included in the 2.0.1 series or one of the predefined categories that have no functionality but are available for custom coding and modify the coding with how you wish. Just don't insert anything new on the table. The reason I did that is so I can still have some control over the reported bugs and errors without having much 3rd party issues coming into play on why things don't work. I'm not saying I won't change that in the future but it all depends on how popular this mod becomes.
They're easily removed for updates, and can be added back in afterwards.

Since you're still working on bugs; there are quite a few ways to 'force' buying items without having to pay for them. (You can open multiple tabs at the actual purchase screen for different items, and purchase an item in each tab. You'll only be deducted points for certain items.)

The gambling stuff has a nasty bug that doesn't even check if you have enough points to play the games at all. You can effectively buy 10 million lotto tickets, nearly making your chances of winning 100%. (You go into the far negatives for points, but you can still win the Lotto and make all your points back, plus whatever else was in the pot)

And lastly; we had to add a small little onclick handler to disable the 'Purchase' button after clicking it once, or you could accidentally buy more than 1 of the same item (if applicable).
Reply With Quote
  #517  
Old 05-13-2010, 03:12 PM
TheMayhem's Avatar
TheMayhem TheMayhem is offline
 
Join Date: Oct 2002
Location: Pittsburgh, Pa
Posts: 526
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very well done on findings... I'm upset that some of those bugs exist but very well done Check your private messages.


Also, I have done a lot of investigating on why user's are having issues with the Group By function while most other users are not. The only answer I can come up with is an out of date mysql version of 4.1 when the majority of users of this script and vBulletin use the 5x series. I am looking into alternatives on how to redo the Group By function, which is used on the statistics page within the Admin CP AND the Market home page.
Reply With Quote
  #518  
Old 05-13-2010, 07:52 PM
nishant.soni nishant.soni is offline
 
Join Date: Apr 2010
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nishant.soni View Post
AWESOME MODE... really great work..

2 questions though:

1.How can i have big smilies by default, because small smilies look a bit smaller then they should be in my theme.
2. Does not display avatar

Thanks.

CAN SOMEONE ANSWER THAT?

3. more question, what would have to be edited if i want to change the name of the tab that says "Market" which is created under the banner and next to forum?

Thanks.
Reply With Quote
  #519  
Old 05-14-2010, 01:03 AM
SoulStealer SoulStealer is offline
 
Join Date: Jan 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i am getting error when it try to open my forum's market.php ? how can i increase my own point from admincp and what is point field incorrect error? help

Quote:
The Points Market is currently disabled. This can occur for a number of reasons. The most likely reason is that you currently do not have any earned points. In order to access the Point Market you must have at least 1 point. Another reason you could be seeing this error is the point field entered into the Point Market Control Panel is incorrect or was not found.
Reply With Quote
  #520  
Old 05-14-2010, 05:04 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 SoulStealer View Post
i am getting error when it try to open my forum's market.php ? how can i increase my own point from admincp and what is point field incorrect error? help
Do you have a point system such as uCash, vbcredits, or vbookie installed? If you do use whatever the point field is for them so for example for uCash it would be ucash. If you don't you can always use the reputation system or other numerical values within the user table.
Reply With Quote
  #521  
Old 05-14-2010, 06:21 AM
SoulStealer SoulStealer is offline
 
Join Date: Jan 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh thanks , its working now using ucash ~marked
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09679 seconds
  • Memory Usage 2,480KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (10)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete