Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   Bug in VIP bonus points? (http://www.bvlist.com/showthread.php?t=8862)

KnightRaider 9th February 2013 12:12

Bug in VIP bonus points?
 
Hi there, Recently I have just noticed with a friend of mine and me, that the bonus system has a bit of an issue, whenever we try to Purchase VIP from our bonus points it says this error.
Code:

Unfortunately this Item is unavailable, Please try again later.
and when I looked into it, by just searching for mybonus.php I found the code and was wondering could this be the issue?

Code:

    if ($kpsvip != 'yes')
            {
              $errors[] = $lang->mybonus['error3'];
            }
            else
            {
              if (($is_mod OR $usergroups['isvipgroup'] == 'yes'))
              {
                $errors[] = $lang->mybonus['error11'];
              }
              else
              {
                $vip_until = get_date_time (gmtime () + 28 * 86400);
                (sql_query ('REPLACE INTO ts_auto_vip (userid, vip_until, old_gid) VALUES (\'' . $Userid . '\', \'' . $vip_until . '\', \'' . $CURUSER['usergroup'] . '\')') OR sqlerr (__FILE__, 180));
                if (mysql_affected_rows ())
                {
                  $KPSUSED = true;
                  (sql_query ('UPDATE users SET usergroup = \'' . UC_VIP . '\', seedbonus = IF(seedbonus < ' . $Result['points'] . ', 0, seedbonus - ' . $Result['points'] . ') WHERE id = ' . sqlesc ($Userid)) OR sqlerr (__FILE__, 184));
                  update_user ($Userid, 'Purchased item: ' . $Result['bonusname'] . ' for ' . $Result['points'] . ' points.');
                }
                else
                {
                  $errors[] = $lang->global['dberror'];
                }
              }
            }

            break;
          }

          case 'gift_1':
          {

if you see the error3 what does that mean? Would like some more info on fixing the issue with the VIP bonus points.

-KnightRaider.

Daz 9th February 2013 12:23

Make sure you have "Enable VIP Status Usage?" set to yes in settings panel.

KnightRaider 9th February 2013 12:28

Quote:

Originally Posted by Daz (Post 39393)
Make sure you have "Enable/Disable VIP Gift for KPS Page." set to yes in settings panel.

Thank you, it worked, but now I'm getting this error?
Code:

You have no permission to purchase this item!

Daz 9th February 2013 12:34

Are you a mod or already a vip member? If so that might be why..

KnightRaider 9th February 2013 12:39

Quote:

Originally Posted by Daz (Post 39395)
Are you a mod or already a vip member? If so that might be why..

I'm Team Leader/Owner, Is that maybe why I cant use it?

Daz 9th February 2013 12:42

Quote:

Originally Posted by KnightRaider (Post 39396)
I'm Team Leader/Owner, Is that maybe why I cant use it?

Yeah only users can purchase the VIP status because if you think about it, you would be demoting yourself :chch:

KnightRaider 9th February 2013 12:44

Quote:

Originally Posted by Daz (Post 39397)
Yeah only users can purchase the VIP status because if you think about it, you would be demoting yourself :chch:

Thanks again for your help Daz. :friend:

x360zone 9th February 2013 13:33

hi
 
phpmyadmin via kloxo open your database- users - click edit on your name and check donor box scroll down to the bottom save
you now have golden star:ok:


All times are GMT +2. The time now is 16:13.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.