vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - microCART: Shopping System for vB4 (https://vborg.vbsupport.ru/showthread.php?t=256723)

bosanci28 04-17-2012 04:13 AM

i have downloaded this:
MICROCART_114_16_05_2011a.zip

now i cant figure out ,why is not uploading all pictures from the admincp
some are broken,also each item on main site ,photo is broken also.

any advice?

thanks

using vb 4.1.12

micheal332001 04-17-2012 08:40 PM

Quote:

Originally Posted by bosanci28 (Post 2320792)
i have downloaded this:
MICROCART_114_16_05_2011a.zip

now i cant figure out ,why is not uploading all pictures from the admincp
some are broken,also each item on main site ,photo is broken also.

any advice?

thanks

using vb 4.1.12

this will not work on that vbulletin version

bosanci28 04-17-2012 08:53 PM

Quote:

Originally Posted by micheal332001 (Post 2321029)
this will not work on that vbulletin version

are you guys working on ,so it can work?
or...

thanks

micheal332001 04-19-2012 02:27 PM

Quote:

Originally Posted by bosanci28 (Post 2321032)
are you guys working on ,so it can work?
or...

thanks

This is the only free version of this script and its not supported any more as its so out dated.

As you will see from other members they have uploaded the missing file from an older version of vbulletin to get it to work with this version.

The support i give to this free script is very limited as i have said its so out dated now i dont have the time to change the code for this.

I will help out from time to time and answer any questions that may come up.

Im working full time on my commercial scripts and dont have the time to update free scripts.

I can tell you that the commercial version does work on vb version 4.1.12 without any problems and its got alot more than this free version.

bosanci28 04-23-2012 02:02 PM

thanks,for your reply,will think about maybe will get the pro version at later time.
thanks,

belindazhu 04-24-2012 08:04 AM

Hi Micheal,

I got error after importing xml to product. It reminds error when importing:

Importing Product, Please Wait...

[:]

Unable to find a class to validate: vB_TemplateParser_Curlycssfile on line 1083 in /home/content/a/3/s/*****/html/includes/class_template_parser.php
#0 /home/content/a/3/s/*****/html/includes/class_template_parser.php(1019): vB_TemplateParser->validate_curly(Object(vB_CurlyNode), Array)
#1 /home/content/a/3/s/*****/html/includes/adminfunctions_template.php(2863): vB_TemplateParser->validate(Array)
#2 /home/content/a/3/s/*****/html/includes/adminfunctions_plugin.php(545): compile_template('{vb:stylevar ht...')
#3 /home/content/a/3/s/*****/html/admincp/plugin.php(1714): install_product(' #4 {main}

Fatal error: Unable to find a class to validate: vB_TemplateParser_Curlycssfile on line 1083 in [path]/includes/class_template_parser.php in [path]/vb/vb.php on line 287
#0 vb_error_handler(256, Unable to find a class to validate: vB_TemplateParser_Curlycssfile on line 1083 in /home/content/a/3/s/*****/html/includes/class_template_parser.php , /home/content/a/3/s/*****/html/vb/vb.php, 287, Array ([exception] => Exception Object ([] => Unable to find a class to validate: vB_TemplateParser_Curlycssfile,[] => ,[] => 0,[] => /home/content/a/3/s/*****/html/includes/class_template_parser.php,[] => 1083,[] => Array ([0] => Array ([file] => /home/content/a/3/s/*****/html/includes/class_template_parser.php,[line] => 1019,[function] => validate_curly,[class] => vB_TemplateParser,[type] => ->,[args] => Array ([0] => vB_CurlyNode Object ([type] => curly,[value] => cssfile,[attributes] => Array ([0] => forumhome-rollup.css),[] => 11),[1] => Array ())),[1] => Array ([file] => /home/content/a/3/s/*****/html/includes/adminfunctions_template.php,[line] => 2863,[function] => validate,[class] => vB_TemplateParser,[type] => ->,[args] => Array ([0] => Array ())),[2] => Array ([file] => /home/content/a/3/s/*****/html/includes/adminfunctions_plugin.php,[line] => 545,[function] => compile_template,[args] => Array ([0] => {vb:stylevar htmldoctype} {vb:raw headinclude} {vb:cssfile forumhome-rollup.css} {vb:cssfile forumbits.css,forumhome.css,widgets.css,sidebar.cs s,options.css,tagcloud.css} {vb:raw headinclude_bottom} {vb:raw header} {vb:raw navbar}
{vb:raw cart_products}
{vb:var vbphrase.microcart_your_shopping}

stemmy 05-01-2012 08:34 PM

Can somebody help me on this one.

I am selling a subscription on my forum that allows members to upgrade to a "Premium" membership. This "Premium" membership allows them to PM other members and have custom avatars and signatures etc.

When they do an ugrade using the forums subscription service it moves them to the "Premium" usergroup. This "Premium" usergroup becomes their primary usergroup. This usergroup changes the users profile name orange etc. This way you can easily see in the "Who has visited" section who is a premium member and who isnt.

When you use the subscription section on micro cart is adds the subscription but only adds the new usergroup as an additional usergroup not the primary one. This means that their name doesnt change colour etc.

Two questions -

1. Is there a way to make micro cart change the primary usergroup rather than adding an additional usergroup ??

or if not

2. Is there a way this can be done in the vbulletin software? I have the "Premium" usergroup set to "override primary group title/markup" but when I did a test that didnt seem to happen.

The test i completed meant that the members primary usergroup stayed as a "RegisteredMember" and they had "Premium" usergroup as an additiona usergroup.

Any help would be much appreciated.

stemmy 05-15-2012 01:27 PM

Why is it adding postage to subscriptions ?????

CLaNZeR 06-26-2012 07:04 AM

Quote:

Originally Posted by micheal332001 (Post 2321592)
I can tell you that the commercial version does work on vb version 4.1.12 without any problems and its got alot more than this free version.

Does the commercial version now work with VB 4.2 ?

Cheers

Sean.

micheal332001 06-27-2012 05:06 AM

Quote:

Originally Posted by belindazhu (Post 2323029)
Hi Micheal,

I got error after importing xml to product. It reminds error when importing:

Importing Product, Please Wait...

[:]

Unable to find a class to validate: vB_TemplateParser_Curlycssfile on line 1083 in /home/content/a/3/s/*****/html/includes/class_template_parser.php
#0 /home/content/a/3/s/*****/html/includes/class_template_parser.php(1019): vB_TemplateParser->validate_curly(Object(vB_CurlyNode), Array)
#1 /home/content/a/3/s/*****/html/includes/adminfunctions_template.php(2863): vB_TemplateParser->validate(Array)
#2 /home/content/a/3/s/*****/html/includes/adminfunctions_plugin.php(545): compile_template('{vb:stylevar ht...')
#3 /home/content/a/3/s/*****/html/admincp/plugin.php(1714): install_product(' #4 {main}


Fatal error: Unable to find a class to validate: vB_TemplateParser_Curlycssfile on line 1083 in [path]/includes/class_template_parser.php in [path]/vb/vb.php on line 287
#0 vb_error_handler(256, Unable to find a class to validate: vB_TemplateParser_Curlycssfile on line 1083 in /home/content/a/3/s/*****/html/includes/class_template_parser.php , /home/content/a/3/s/*****/html/vb/vb.php, 287, Array ([exception] => Exception Object ([] => Unable to find a class to validate: vB_TemplateParser_Curlycssfile,[] => ,[] => 0,[] => /home/content/a/3/s/*****/html/includes/class_template_parser.php,[] => 1083,[] => Array ([0] => Array ([file] => /home/content/a/3/s/*****/html/includes/class_template_parser.php,[line] => 1019,[function] => validate_curly,[class] => vB_TemplateParser,[type] => ->,[args] => Array ([0] => vB_CurlyNode Object ([type] => curly,[value] => cssfile,[attributes] => Array ([0] => forumhome-rollup.css),[] => 11),[1] => Array ())),[1] => Array ([file] => /home/content/a/3/s/*****/html/includes/adminfunctions_template.php,[line] => 2863,[function] => validate,[class] => vB_TemplateParser,[type] => ->,[args] => Array ([0] => Array ())),[2] => Array ([file] => /home/content/a/3/s/*****/html/includes/adminfunctions_plugin.php,[line] => 545,[function] => compile_template,[args] => Array ([0] => {vb:stylevar htmldoctype} {vb:raw headinclude} {vb:cssfile forumhome-rollup.css} {vb:cssfile forumbits.css,forumhome.css,widgets.css,sidebar.cs s,options.css,tagcloud.css} {vb:raw headinclude_bottom} {vb:raw header} {vb:raw navbar}
{vb:raw cart_products}
{vb:var vbphrase.microcart_your_shopping}

I have no idea why you are getting this error as it does not happen to alot of other members.

Quote:

Originally Posted by stemmy (Post 2325344)
Can somebody help me on this one.

I am selling a subscription on my forum that allows members to upgrade to a "Premium" membership. This "Premium" membership allows them to PM other members and have custom avatars and signatures etc.

When they do an ugrade using the forums subscription service it moves them to the "Premium" usergroup. This "Premium" usergroup becomes their primary usergroup. This usergroup changes the users profile name orange etc. This way you can easily see in the "Who has visited" section who is a premium member and who isnt.

When you use the subscription section on micro cart is adds the subscription but only adds the new usergroup as an additional usergroup not the primary one. This means that their name doesnt change colour etc.

Two questions -

1. Is there a way to make micro cart change the primary usergroup rather than adding an additional usergroup ??

or if not

2. Is there a way this can be done in the vbulletin software? I have the "Premium" usergroup set to "override primary group title/markup" but when I did a test that didnt seem to happen.

The test i completed meant that the members primary usergroup stayed as a "RegisteredMember" and they had "Premium" usergroup as an additiona usergroup.

Any help would be much appreciated.

In the commercial version this has been changed to let you choose if you want it to change there main usergroup or add a sub group.

Quote:

Originally Posted by stemmy (Post 2329570)
Why is it adding postage to subscriptions ?????

This is being addressed in the commercial version.

Quote:

Originally Posted by CLaNZeR (Post 2342966)
Does the commercial version now work with VB 4.2 ?

Cheers

Sean.

Yes the commercial version does work on version 4.2
and there is a new upgrade coming out soon that will add the menus to the vbulletins menu manager.

XtremeCrash 07-01-2012 08:30 PM

Does not work with 4.2 does not want..Marked uninstalled..

imported_dfmafia 07-09-2012 09:57 PM

1 Attachment(s)
paid version. installed on vB 4.2.0 PL2 - works great but unable to change CSS options to match custom styles

how to change main CSS...

trying to change the background color to match my styles.

adjusting templates don't work either
microcart.css isn't working
microcart_main isn't working


https://vborg.vbsupport.ru/attachmen...1&d=1341874628


background color of blocks
background color of main area and tabs inside that area


here are the main CSS colors I'm trying to change them too:

MAIN BACKGROUND #14191d
FIRST ALTERNATING COLOR #050C12 - block background color used for block titles
SECOND ALTERNATING COLOR #01060A - anything else to highlight areas
TEXT #828E99
LINK #83B4CC
BORDER #505960

micheal332001 07-10-2012 05:51 AM

you need to edit this file as there are more then one css file

microcart\js\style.css as this one controls the page layout manager css

i will be changing all css files to be in one place very soon.

micheal332001 07-10-2012 05:52 AM

Quote:

Originally Posted by XtremeCrash (Post 2344351)
Does not work with 4.2 does not want..Marked uninstalled..

the commercial version does work with 4.2 free version may not work.

imported_dfmafia 07-11-2012 01:13 AM

Quote:

Originally Posted by micheal332001 (Post 2346587)
you need to edit this file as there are more then one css file

microcart\js\style.css as this one controls the page layout manager css

i will be changing all css files to be in one place very soon.

thanks, hitting it up now! :up:


yep if you want vB 4.2.x buy it. its worth it :cool:


-----**------**-----

edited, but no changed took effect. - actually went through all the .css files and no changes took effect

micheal332001 07-11-2012 07:09 AM

Quote:

Originally Posted by imported_df+++++ (Post 2346849)
thanks, hitting it up now! :up:


yep if you want vB 4.2.x buy it. its worth it :cool:


-----**------**-----

edited, but no changed took effect. - actually went through all the .css files and no changes took effect

PM me with your sites url and admincp and ill have alook for you.

imported_dfmafia 07-13-2012 11:22 PM

when clicking on NEW for Coming Soon or any other menu option that has this page with the new button brings up nothing. it just sits there - LOADING

in the admincp

merk_aus 07-14-2012 12:55 AM

Hey Michael,
I know you are a busy person however was wondering if there would be an update to this soon. I would really love to get it for some new ventures however it currently isn't supported on the newer versions of vB.

If it is a licensing issue I could help you out just as you have I in the past.

imported_dfmafia 07-14-2012 02:17 AM

the paid version does work on vB 4.2.0 PL 2

Khriz 07-16-2012 12:56 PM

Error Messages:

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 349

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 2023

( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 2121

Solution:

line 349:
PHP Code:

$bbcode_parser =& new vB_BbCodeParser($vbulletinfetch_tag_list()); 

line 2023:
PHP Code:

$bbcode_parser =& new vB_BbCodeParser($vbulletinfetch_tag_list()); 

line 2121:
PHP Code:

$pdf =& new Cezpdf(('A4')); 

to solve, you should remove the reference "&":

line 349:
PHP Code:

$bbcode_parser = new vB_BbCodeParser($vbulletinfetch_tag_list()); 

line 2023:
PHP Code:

$bbcode_parser = new vB_BbCodeParser($vbulletinfetch_tag_list()); 

line 2121:
PHP Code:

$pdf = new Cezpdf(('A4')); 


Mellow 07-19-2012 09:09 PM

Careful with the full version. I couldn't get mine to work and was told I could get a refund and then - after not being able to use it - I'm now offered a partial refund but not sure I'll get that.. I'll delete this when I do..

ckelley 07-23-2012 03:14 AM

Although not a perfect cart for what we use it for, this mod works well on our forum using 4.2. We have had a little trouble finding where to change the css colors for a couple of the background colors, but nothing major that we are worried about. Check it out below....

http://www.syntheticmotorsports.org/cart.php

fishmaster 07-26-2012 01:45 AM

You are showing an error on your cart page...

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/synthe/public_html/microcart/pdf/tcpdf.php(2) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 6313

ckelley 07-26-2012 01:55 AM

Yeah, we just moved everything to a dedicated server this week and got that error after the move. We have the full version so we are having TotallyScripts handle it.

Lemminator 09-02-2012 06:55 PM

is it going in vb 4 ??

ckelley 09-04-2012 12:10 AM

It was at one point, but ever since migrating to a new dedicated server it has had errors. We have since built an off site store and have been linking back and forth between the two and attempting to make the transitions as seamless as possible. I am about done with the theme of the new store and plan to make changes to the forum to fall into line with the store.

But before the server migration it was working really well. It had a lot of functionality in the paid version. Although there are a few things that are not or have not been possible that we were looking for. One example is using CSV files for mass product database uploads, with microcart this is not possible so it does take a good while to upload a respectable number of products.

halilkoca 10-05-2012 08:20 PM

hi!
i see some problem about payment page.

HTML Code:

Invalid Redirect URL (https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=halilkoca%40outlook.com&item_name=domain%2C+&amount=500.00&handling=0&shipping=0&tax=0&quantity=1?cy_code=TL&return=http%3A%2F%2Fbeta.wmfun.net%2Fcart.php&item_number=webmasterbeta-06Oct12-FFGVV32Y8G?ify_url=http%3A%2F%2Fbeta.wmfun.net%2Fcart_gateway.php%3Fmethod%3Dpaypal)
what can i do?

Reece^B 11-19-2012 06:48 AM

Hi,

Why doesn't this mod work for the latest vB4? I've just uploaded and it appears to work fine. Where is the conflict?

Christos Teriakis 11-19-2012 06:55 AM

Quote:

Originally Posted by halilkoca (Post 2371054)
hi!
i see some problem about payment page.

HTML Code:

Invalid Redirect URL (https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=halilkoca%40outlook.com&item_name=domain%2C+&amount=500.00&handling=0&shipping=0&tax=0&quantity=1?cy_code=TL&return=http%3A%2F%2Fbeta.wmfun.net%2Fcart.php&item_number=webmasterbeta-06Oct12-FFGVV32Y8G?ify_url=http%3A%2F%2Fbeta.wmfun.net%2Fcart_gateway.php%3Fmethod%3Dpaypal)
what can i do?

You need to allow site redirections:
Admincp-> Settings-> Options-> Site name /URL
Add:
https://www.sandbox.paypal.com
https://www.paypal.com
to the white list.

Chris

Christos Teriakis 11-19-2012 06:56 AM

Quote:

Originally Posted by Reece^B (Post 2382476)
Hi,

Why doesn't this mod work for the latest vB4? I've just uploaded and it appears to work fine. Where is the conflict?

If you mean vB4.2 the difference is on the Navigation. This version uses a different way for navigation menus. You can add them manually or ask the author for an update.

Chris

Reece^B 11-20-2012 07:03 PM

Is there manual updates in this thread?

starletclub 12-12-2012 05:40 PM

Warning: require_once([path]/includes/functions_wysiwyg.php) [function.require-once]: failed to open stream: No such file or directory in [path]/cart.php on line 71

Fatal error: require_once() [function.require]: Failed opening required '/home/*/public_html/*/*/functions_wysiwyg.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*/public_html/*/cart.php on line 71

micheal332001 12-15-2012 10:45 AM

Quote:

Originally Posted by starletclub (Post 2390300)
Warning: require_once([path]/includes/functions_wysiwyg.php) [function.require-once]: failed to open stream: No such file or directory in [path]/cart.php on line 71

Fatal error: require_once() [function.require]: Failed opening required '/home/*/public_html/*/*/functions_wysiwyg.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*/public_html/*/cart.php on line 71

edit the file and remove these 2 lines and all will be fine.

Fatal Hazard 12-15-2012 08:18 PM

Hi, I can't see the tab. It all looks like it is working but no tab shows

Any Ideas?

thanks in advance

Fatal Hazard 12-19-2012 03:03 PM

I can't seem to get the upload path right. I keep linking it to the downloads directory on my server but it still does not work.

Ichigo88 12-22-2012 07:10 PM

Hi!
the product its work perfectly on mu vb 4.2.0 patch 3.

but i have a small question!

how to change the user in other primary usergruop?
now the usergroup upgrade its make in addizional.

thanks inadvance

comunidadmh 12-24-2012 01:40 AM

Hello people!

I wanted to know if anyone knows of any mods (I'm willing to buy it) that allows the purchase and sale of items between users of a forum. As already known sites pagins buying and selling things. Anyone know of a mod like this?

sorry for my English, use google translator xD

Christos Teriakis 12-24-2012 09:23 AM

Quote:

Originally Posted by Ichigo88 (Post 2392279)
Hi!
the product its work perfectly on mu vb 4.2.0 patch 3.

but i have a small question!

how to change the user in other primary usergruop?
now the usergroup upgrade its make in addizional.

thanks inadvance

Even if I advice you to avoid changing primary usergroup, follow the steps below:

1.- With a text editor (like Notepad) open the file: microcart/functions.php

2.- Search for:
Code:

function promoteUser($transid, $userid)
3.- Replace the whole function:
Code:

function promoteUser($transid, $userid)
{
    global $vbulletin, $db;
    $boughtdate = date("Y-m-d");
    $orders = $db->query_read("SELECT * FROM ".TABLE_PREFIX."microcart_orders WHERE transid='$transid'");
    while  ($order = $db->fetch_array($orders)) {
            $productid = $order["productid"];
            $product = $db->query_first("SELECT * FROM ".TABLE_PREFIX."microcart_products WHERE id=$productid");
            $leng = $product[dlperiod]/2;
            $expiration = add_date($order[dend],$leng,0,0);
            $dend = date("Y-m-d", strtotime($expiration));
            $db->query_write("UPDATE ".TABLE_PREFIX."microcart_orders SET paiddate='$boughtdate', dend='$dend' WHERE transid='$transid'");
            $promousergroup = $product["promousergroup"];
            if ($promousergroup > 0)
            {
                $user = $db->query_first("SELECT membergroupids FROM ".TABLE_PREFIX."user WHERE userid=$userid");
                $groups = $user["membergroupids"];
                $groupids = explode(',', $groups);
                if (!in_array($promousergroup, $groupids))
                {
                    if (empty($groups))
                    {
                        $upgrade = $promousergroup;
                    } else {
                        $upgrade = $groups.','.$promousergroup;
                    }
                    $db->query_write("UPDATE ".TABLE_PREFIX."user SET membergroupids='$upgrade' WHERE userid=$userid");
                }
            }
    }
    return;
}

With this new code:
Code:

function promoteUser($transid, $userid)
{
    global $vbulletin, $db;
    $boughtdate = date("Y-m-d");
    $orders = $db->query_read("SELECT * FROM ".TABLE_PREFIX."microcart_orders WHERE transid='$transid'");
    while  ($order = $db->fetch_array($orders)) {
            $productid = $order["productid"];
            $product = $db->query_first("SELECT * FROM ".TABLE_PREFIX."microcart_products WHERE id=$productid");
            $leng = $product[dlperiod]/2;
            $expiration = add_date($order[dend],$leng,0,0);
            $dend = date("Y-m-d", strtotime($expiration));
            $db->query_write("UPDATE ".TABLE_PREFIX."microcart_orders SET paiddate='$boughtdate', dend='$dend' WHERE transid='$transid'");
            $promousergroup = $product["promousergroup"];
            if ($promousergroup > 0)
            {
                $db->query_write("UPDATE ".TABLE_PREFIX."user SET usergroupid='$promousergroup' WHERE userid=$userid");
            }
    }
    return;
}

4.- Search for:
Code:

function downgradeUser($transid, $userid)
5.- Replace the whole function:
Code:

function downgradeUser($transid, $userid)
{
    global $vbulletin, $db;
    $vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."microcart_invoices SET invoicestatus=7 WHERE transid='$transid'");
    $vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."microcart_orders SET paid=0 WHERE transid='$transid'");
    $orders = $vbulletin->db->query_read("SELECT * FROM ".TABLE_PREFIX."microcart_orders WHERE transid='$transid'");
    while  ($order = $vbulletin->db->fetch_array($orders)) {
            $productid = $order["productid"];
            $product = $vbulletin->db->query_first("SELECT * FROM ".TABLE_PREFIX."microcart_products WHERE id=$productid");
            $promousergroup = $product["promousergroup"];
            if ($promousergroup > 0)
            {
                $user = $vbulletin->db->query_first("SELECT membergroupids FROM ".TABLE_PREFIX."user WHERE userid=$userid");
                $groups = $user["membergroupids"];
                $groupids = explode(',', $groups);
                if (in_array($promousergroup,$groupids))
                {
                    $key = array_search($promousergroup, $groupids);
                    unset($groupids[$key]);
                    $downgrade = implode(',', $groupids);
                    $vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."user SET membergroupids='$downgrade' WHERE userid=$userid");
                }
            }
    }
    return;
}

With...:
Code:

function downgradeUser($transid, $userid)
{
    global $vbulletin, $db;
    $vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."microcart_invoices SET invoicestatus=7 WHERE transid='$transid'");
    $vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."microcart_orders SET paid=0 WHERE transid='$transid'");
    $orders = $vbulletin->db->query_read("SELECT * FROM ".TABLE_PREFIX."microcart_orders WHERE transid='$transid'");
    while  ($order = $vbulletin->db->fetch_array($orders)) {
            $productid = $order["productid"];
            $product = $vbulletin->db->query_first("SELECT * FROM ".TABLE_PREFIX."microcart_products WHERE id=$productid");
            $promousergroup = $product["promousergroup"];
            if ($promousergroup > 0)
            {
                $vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."user SET usergroupid='2' WHERE userid=$userid");
            }
    }
    return;
}

6.- Save and upload the functions.php at: microcart/

*** ATTENTION ***
Downgrading the user means that he is going to usergroup 2 (Registered Members). So if you're selling another product which also promotes the user to a higher usergroup, then the user will LOSTS that promotion. That's why using the additional usergoups is the best choice.

Chris

Ichigo88 12-26-2012 10:45 PM

thank you! work perfectly now!! :D best plug

Mark4865 01-01-2013 06:01 AM

anyone know how to change the size of the product block that appears in the main forum page, I just want to shorten mine a bit.

thanks in advance for any help


All times are GMT. The time now is 05:49 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.02150 seconds
  • Memory Usage 1,917KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_html_printable
  • (6)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete