vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - vbBux / vbPlaza v1.5.8 (Points + Store System) (https://vborg.vbsupport.ru/showthread.php?t=106953)

CMX_CMGSCCC 02-14-2006 04:57 AM

Quote:

Originally Posted by shaynehammy
What would be great if there was a history list that displayed who changed anothers user titles. Say the last 20 titles changes.

So where the Most sold catergory is.Clicking on this (Change Others User Title) would take you to who bought what.

This will happen in v1.1.3 when it releases.

Quote:

Originally Posted by kylek
Can't find this doing a search so,

Can points be removed from a specific member? Or is there a way to reset one members point total to zero?

Yes, you can edit the user in the Admin CP by using the Users -> Search For User admin feature. On the left hand side at the bottom it will display the eBux/eStore options for that individual user.

Quote:

Originally Posted by caimakale
Are you talking about serializing it and leaving it in the user table or adding it to the datastore?

I'm saying that the gifts field inside of the user database has to be an array of "serialized" fields so that it will not have to query the actual estore_gifts TABLE.

-CMX

Geser 02-14-2006 05:46 AM

I am reinstalled eBux / eStore. Uninstalled and then installed v1.1.2
I still unable to remove items. Still getting "You do not have enough points to perform this action.".
And still not see option to change user title color after i bought this option(fist change is ok, but after this i unable to change. I set "Can Change Always" in admin cp). I see only button "Remove"
Anybody can confirm this problems?

caimakale 02-14-2006 05:58 AM

Quote:

Originally Posted by Geser
I am reinstalled eBux / eStore. Uninstalled and then installed v1.1.2
I still unable to remove items. Still getting "You do not have enough points
to perform this action.".

And still not see option to change user title color after i bought this option. I see only button "Renove"
Anybody can confirm this problems?

OK here goes.

In order to be able to go back and change your color etc...you had to have that option enabled before you bought the item. If you bought it, then enabled the "Change Always Items" in the item, it won't work unless you set it manually now.

If it is set now, then anybody who purchases it at this point will have the ability to come back and change at any time.

So how do you manually set it? You first need to figure out what the item number is. One way of doing this is finding the item in the store and then hover over it. It will show you the URL and will look something like this:

http://www.yourwebsitehere.com/estore.php?do=action&itemid=6

In that link you can see that the itemid is 6.

So get your itemids that you need to change on your user. Open up your AdminCP >> User area. Find the user you want to change. When you find the user and are viewing their info, scroll to the bottm where you can see their points and other store options. You will want to add the itemid to the "Change Always Items". Separate them by commas. For example, in my personal account I have 5,6,11 in that field so I can continually change my username color, username glow, and usertitle color because I have purchased these things.

If you don't have these numbers in the "Change Always Items" area then it thinks you are either going to need to remove it or repurchase it, those will be your only options until you manually set it. And if you don't have enough eBux to repurchase it again, then you will get the error that you got.

These probably aren't the best instructions but I hope it helps.

Geser 02-14-2006 06:06 AM

Quote:

Originally Posted by caimakale
OK here goes.

In order to be able to go back and change your color etc...you had to have that option enabled before you bought the item. If you bought it, then enabled the "Change Always Items" in the item, it won't work unless you set it manually now.

If it is set now, then anybody who purchases it at this point will have the ability to come back and change at any time.

So how do you manually set it? You first need to figure out what the item number is. One way of doing this is finding the item in the store and then hover over it. It will show you the URL and will look something like this:

http://www.yourwebsitehere.com/estore.php?do=action&itemid=6

In that link you can see that the itemid is 6.

So get your itemids that you need to change on your user. Open up your AdminCP >> User area. Find the user you want to change. When you find the user and are viewing their info, scroll to the bottm where you can see their points and other store options. You will want to add the itemid to the "Change Always Items". Separate them by commas. For example, in my personal account I have 5,6,11 in that field so I can continually change my username color, username glow, and usertitle color because I have purchased these things.

If you don't have these numbers in the "Change Always Items" area then it thinks you are either going to need to remove it or repurchase it, those will be your only options until you manually set it. And if you don't have enough eBux to repurchase it again, then you will get the error that you got.

These probably aren't the best instructions but I hope it helps.

Thanks alot. It helps.
But what about first problem? I still unable to remove items.

caimakale 02-14-2006 06:16 AM

Quote:

Originally Posted by Geser
Thanks alot. It helps.
But what about first problem? I still unable to remove items.

It looks like a bug, and in checking it out, I found another bug.

So concerning your problem, unless you have enough money to purchase the item again, you can't return it. Even if it is going to give you a refund.

So when I was testing it. I returned the glowing username and it put the points back into my account. I then hit the back button in my browser and it took me right back to the previous page where I had the option to remove it or change the color. I entered in a color and selected change and it changed it just fine without charging me any money. So not only did I get a refund for the item, but I still ended up with my glowing username. This could be exploited and somebody could earn a ton of points doing it.

***EDIT***
So I just checked something else. It turns out you don't even have to hit the back button. Once it's been purchased you always own it if the "Change Always Items" is active. One of two things needs to happen. Refunds need to be turned off when "Change Always Items" is active on an item, or when an item is removed and a refund issued, the itemid# for the "Change Always Items" needs to be deleted from the database. I know for the time being, I am turning off refunds so people can't rob the bank.

Geser 02-14-2006 10:00 AM

Quote:

Originally Posted by caimakale
It looks like a bug, and in checking it out, I found another bug.

So concerning your problem, unless you have enough money to purchase the item again, you can't return it. Even if it is going to give you a refund.

So when I was testing it. I returned the glowing username and it put the points back into my account. I then hit the back button in my browser and it took me right back to the previous page where I had the option to remove it or change the color. I entered in a color and selected change and it changed it just fine without charging me any money. So not only did I get a refund for the item, but I still ended up with my glowing username. This could be exploited and somebody could earn a ton of points doing it.

***EDIT***
So I just checked something else. It turns out you don't even have to hit the back button. Once it's been purchased you always own it if the "Change Always Items" is active. One of two things needs to happen. Refunds need to be turned off when "Change Always Items" is active on an item, or when an item is removed and a refund issued, the itemid# for the "Change Always Items" needs to be deleted from the database. I know for the time being, I am turning off refunds so people can't rob the bank.

Ok, thanks for your work. Now i know it's bug and not problem of my installation.

voleibolmurcia 02-14-2006 11:19 AM

This mod allows to create any "shop" to insert items, and users can buy it?

chairman miaow 02-14-2006 11:50 AM

Quote:

Originally Posted by Frugal
I have now edited this post

https://vborg.vbsupport.ru/showpost....postcount=1389

to include a comprehensive guide to getting vbookie working with eBux using both the sql and file editing methods.

Frugal - thanks for this - it was getting confusing with all the different stuff being quoted about vBookie....mine works perfectly with ebux now.

CMX_CMGSCCC - Many many thanks for this mod...it's amazing how often and quickly you update it ! Also would love it to be integrated with the ibpro arcade ( haven't got a clue about the "hooks" etc though !)

Sooner95 02-14-2006 11:51 AM

Quote:

Did you reupload all of the files in the UPLOAD folder? That is a common mistake people tend to forget as well.
Yes, I always make sure I do the basics before complaining. This error has never went away, since 1.08. Not a big deal, more than likely you have it fixed, unfiortanetly, I have been unable to fix the table for that user via phpadmin. Got a friend who will check it out for me, see if it can be salvaged, otherwise I'll just delete that user and recreate.


Quote:

In the future, I'll add it so the Admin CP, search for Users can edit the otherflags and some of the other fields that are added to the usertable in case of corruption too.
excellent, that would be great CMX.

Quote:

Does IBProArcade have any hooks implemented?
I'm not very code savy, but if you mean a file hooks_ebuxestore.xml in the includes/xml folder, then no. thats in the 2.5.3 release, i know he has released one m ore update since, so woud have to check if their are any in that one.

I know a PM was sent to MR Zeropage (author of ibPro) so hopefully he will contact you about working out this addon.

Thanks again for the support and fine work.

Also, with the help of others, figured out the timestamp thing for creating lottos as well.

Sooner95 02-14-2006 12:55 PM

Got bored, made another gift.

its a dollar..lol

amykhar 02-14-2006 01:13 PM

Sooner's problem with the userid is fixed. To fix it, I had to go in as another admin - I registered a new account and then made it an admin by changing the database since it was his admin account that was hosed.

As the other admin, I cleared the estore history. Then, I set his admin account back to the correct usergroup, and he was good to go.

Sooner95 02-14-2006 02:05 PM

Quote:

Originally Posted by amykhar
Sooner's problem with the userid is fixed. To fix it, I had to go in as another admin - I registered a new account and then made it an admin by changing the database since it was his admin account that was hosed.

As the other admin, I cleared the estore history. Then, I set his admin account back to the correct usergroup, and he was good to go.

Big time thx Amy. Noted for future issues as well.

MustangLisa 02-14-2006 02:21 PM

Quote:

Originally Posted by WolfsongNevan
Thank you SO much for all your AWESOME support, seriously.

Just one quick thing (but a big thing to our members) that I didn't see answered .... will the "hover" over gifts (which will show the gift giver's name and message) be added?

Also, you said in reply to my question about missing gifts (in the threads, not in the profile like you mentioned) that it will not show 2 of the same gifts ... would it be possible to make this an option in a future update? We have a board full of ladies that are VERY into the gifts and are disappointed that their gifts aren't showing up in the threads ... especially since there is a only a small selection of gifts at this time (working on adding more ;) ). The rose and bouquet are popular gifts in our forum and because of this, members are getting multiples of them from different members, but can't see them.

Off to donate to PayPal because I am just so completely impressed with your dedication to this project. :) (no kissing up intended)

Ditto ... my members would love that and I'll donate for it. Thanks for all your hard work on this!!

Frugal 02-14-2006 02:22 PM

Quote:

Originally Posted by kylek
Frugal - maybe you could include the functions_vbookie.php file in your post, a lot easier for people who are not too sure of what to do.

Yes I thought about that last night but as it was something like 3am when I made the post and I had to get up for work at 7am and lordofgun had already attached the file I decided to make sure the instructions were adequate then hit the sack. I'll drop a pm to the author of vbookie and ask him for permission to post an edited version and once I have his ok I'll attach the file.

Frugal

Frugal 02-14-2006 02:38 PM

Quote:

Originally Posted by caimakale
If I made a hack calling the ebux field from the user table it wouldn't find it because you have it renamed to ucash. It would have to be a pretty big hack to do that as most hacks will use the functions CMX has built in, but nonetheless it is a possibility.

Hehe anything is possible, but as you say the points field is a user configurable variable, it is not hard coded so one would hope any hacker worth his salt would use the built in functions rather than hard coding it when CMX designed it to be user configurable. However in the event of a fantastic but hard coded hack being released it is just 1 query and the field is again called eBux. Of course until that day I can use several hacks with ebux that were designed for ucash, as well as vbookie I also use the league system that uses the ucash points field.

Mind you, I never really intended to get into a debate on the merits of file editing vs sql queries, which is best is down to the needs and preferences of the individual forum owner. I originally suggested the file edit method on page 24 and when the guy had no success I posted the sql query on page 25 which got him up and running, as lots of others have reported success with those instructions I continued to favour the sql method. My only motivation was to help those wanting to integrate vbookie and eBux and now that there is a comprehensive post giving both options we should find less people having difficulty in this area.

Thanks for your input though, it is always good to have the pro's and cons from many sources so that people can make an informed choice about which method suits them best.

Frugal

caimakale 02-14-2006 02:41 PM

Quote:

Originally Posted by MustangLisa
Ditto ... my members would love that and I'll donate for it. Thanks for all your hard work on this!!

It's actually not very hard to do, but as CMX said, it does run more queries on every page load.

Right now the ribbons hack does that and I am looking into (as is CMX) a way to serialize the ribbons hack into the user table. I will have to clear the estore_ribbons in the users table, and then read and serialize the data in the current ribbons table and then store it in estore_ribbons that I initially cleared. After that I want to then re-use the ribbons table to store the ribbon color and cause, so that they can be edited/deleted/added via the admincp. The current method has everything hard coded in the files.

As I have never serialized anything before, I did start reading up on it last night. But who knows when I will actually finish everything.

Frugal 02-14-2006 02:48 PM

Quote:

Originally Posted by chairman miaow
Frugal - thanks for this - it was getting confusing with all the different stuff being quoted about vBookie....mine works perfectly with ebux now.

Glad I could be of help, as you can see by my 50 odd posts in 4 and a bit years (most of which are in this thread) I'm not a big poster but I was inspired by the level of support that CMX has given in this thread and figured that if I could do my little bit I should.

Frugal

EasyTarget 02-14-2006 02:55 PM

is anyone else having the issue that the users' status icon is being moved to a new line?

also earlier today I was being redirected to a do=expireoptions url but I would get the message no input file specified. I upgraded from 1.1.1.1 to 1.1.2 and I don't seem to have that issue now.

bashy 02-14-2006 02:58 PM

Hi Frugal

I have followed your instuctions....
I did have the vbookie edit in there, now removed and added what you said

I have a : on its own...see below

This is copied from my postbit

Points: 26,759.00
Bank: 721.14
: <<<<<<<<<<there
Thanks: 9

What is the : any ideas please?


Quote:

Originally Posted by Frugal
You also need to make sure your template edit is for ebux not vbookie, the vbookie postbit template edit only shows vbookies own money vCash.

In the postbit after

Code:

$vbphrase[posts]: $post[posts]
You should have
Code:

<br />
<a href="estore.php?do=donate&amp;userid=$post[userid]">$vbphrase[ebux_points]</a>: $post[points]<br />
$vbphrase[ebux_bank]: $post[bank]<br />
$vbphrase[ebux_total_points]: $post[totalpoints]<br />

You should not have
Code:

<if condition="$vboptions['vbookiecashon']">
                                                <br />vCash: $post[vbookie_cash]
                                                </if>

Providing ebux is set to use the field ucash, the query has been run to change the ebux field to ucash, vbookie has been set to use ucash, and the postbit has the ebux changes and not the vbookie changes, all should work.

Frugal


Frugal 02-14-2006 03:15 PM

Quote:

Originally Posted by bashy
Hi Frugal

I have followed your instuctions....
I did have the vbookie edit in there, now removed and added what you said

I have a : on its own...see below

This is copied from my postbit

Points: 26,759.00
Bank: 721.14
: <<<<<<<<<<there
Thanks: 9

What is the : any ideas please?

At a guess it looks like you are using a version of eBux earlier than 1.1.2

The total points field and phrase was added in 1.1.2 which is why it shows as just : on your forum. You can either upgrade to 1.1.2 or remove this line from your postbit until you upgrade.

Code:

$vbphrase[ebux_total_points]: $post[totalpoints]<br />
Frugal

bashy 02-14-2006 03:22 PM

Ok m8 i will try to upgrade.... although i thought i had lol

Cheers will do either 1 now!!

bashy 02-14-2006 03:31 PM

Just a quicky...

I have done the upgrade and all seems well now thanks...

This line in the instructions

You will need to redo the template edit below if you want to add the 'Donate' feature for the postbit.

What is this all about, Whats the donate function and which edit is this please?

cuphongle 02-14-2006 03:42 PM

is the reputation system not working with this? i saw that it should be, but i set it up so that when someone gets a good reputation, they should get points....but it doesnt work

proxx 02-14-2006 03:47 PM

There is a BUG with lottery+bank

Quote:

I brought a lottery ticket, when I had 200 bux out of the bank, however, I got into negative bux.

I have 9000 bux in the bank, but because I have negative bux it will not let me withdraw them...

Frugal 02-14-2006 03:59 PM

Quote:

Originally Posted by bashy
Just a quicky...

I have done the upgrade and all seems well now thanks...

This line in the instructions

You will need to redo the template edit below if you want to add the 'Donate' feature for the postbit.

What is this all about, Whats the donate function and which edit is this please?

The donate function is when you click on someones points link in the postbit you can donate eBux points to them. The reason it tells you to redo it is because it has changed in version 1.1.2. The template edit from my vbookie instructions is the 1.1.2 version so if you left the postbit as it was in your earlier post then you should not need to redo it.

Frugal

bashy 02-14-2006 04:52 PM

Ah i see ok m8 cheers all appears ok atm... :)
Whats the easiest way to change the "Points" name to something esle?
Perhaps sommat like Bashy Bux :)

Ignignokt 02-14-2006 05:23 PM

Quote:

Originally Posted by bashy
Ah i see ok m8 cheers all appears ok atm... :)
Whats the easiest way to change the "Points" name to something esle?
Perhaps sommat like Bashy Bux :)

Search for Points in the phrase manager and then rename it to whatever you wish...

roni1015 02-14-2006 05:23 PM

Sorry if this has been covered somewhere in the 97 other pages of this post (holy cow) but is there an easy way to add extra gifts? I'd love to create some more gift options but am unsure how to add them.

Everyone on my board is loving this by the way! Awesome!

The Chief 02-14-2006 05:35 PM

Quote:

Originally Posted by roni1015
Sorry if this has been covered somewhere in the 97 other pages of this post (holy cow) but is there an easy way to add extra gifts? I'd love to create some more gift options but am unsure how to add them.

Everyone on my board is loving this by the way! Awesome!

don't know about that, there probably is an easy way...

bashy 02-14-2006 05:35 PM

Hi

I did this before i asked the question....theres loads for the ebux system, do i change them all?

chizzzz 02-14-2006 05:51 PM

Quote:

Originally Posted by Frugal
Execute the following query


Code:

ALTER TABLE `user` CHANGE `ebux` `ucash` DECIMAL( 30, 5 ) NOT NULL DEFAULT '0.00000'

Hey I did this and its working fine, but lets say in the FUTURE, I want to revert back to the original, can you post a Query that will set the filed back to normal?

Thanks

Sooner95 02-14-2006 05:59 PM

Quote:

Originally Posted by roni1015
Sorry if this has been covered somewhere in the 97 other pages of this post (holy cow) but is there an easy way to add extra gifts? I'd love to create some more gift options but am unsure how to add them.

Everyone on my board is loving this by the way! Awesome!


Its very ez.

Create gif images, 15x15 pixels is the norm. make sure the ext is lower case .gif

make sure they have transparent backgrd.

Upload them to your forums/images/gifts directory and your all set. Next time you go to purchase a gift, it will be in the drop down.

Post what you create, CMX has been addign the good ones to his installs for everyone. Somehow 3 of my awful ones made it haha..

Hope this helps!

QueenBee 02-14-2006 06:03 PM

clicks install. thanks. so much better than ushop:)

and i was just gonna ask how to add new gifts. but u already answered. thanks again!

Frugal 02-14-2006 06:31 PM

Quote:

Originally Posted by chizzzz
Hey I did this and its working fine, but lets say in the FUTURE, I want to revert back to the original, can you post a Query that will set the filed back to normal?

Thanks

To revert it back to normal use this

Code:

ALTER TABLE `user` CHANGE `ucash` `ebux` DECIMAL( 30, 5 ) NOT NULL DEFAULT '0.00000'
Frugal

2fast4ya 02-14-2006 06:33 PM

i dont understand whats going on... but admin can view the estore... and member's can't seem to view it.. i have a group called "Elite Members" and they can't view it at all... I edit it in the user group permissions to say "Yes" for them to be able to use the ebux system, but still... they can't use it. what am i doing wrong here?

bashy 02-14-2006 06:47 PM

There is about 30 to change...Do i change them all?
I dont want to go ahead without confirmation in case i break sommat!!!! :smoke:

Quote:

Originally Posted by Ignignokt
Search for Points in the phrase manager and then rename it to whatever you wish...


EasyTarget 02-14-2006 06:54 PM

Quote:

Originally Posted by EasyTarget
is anyone else having the issue that the users' status icon is being moved to a new line?

bump :D


it seems to happen when someone changes their username color, the status icon gets bumped to a new line.

Frugal 02-14-2006 07:36 PM

Quote:

Originally Posted by bashy
There is about 30 to change...Do i change them all?
I dont want to go ahead without confirmation in case i break sommat!!!! :smoke:

Yes you can change them all, also because they are simply phrases you won't "break" anything and can easily change them back if you are not happy with the results.

Frugal

voleibolmurcia 02-14-2006 08:51 PM

With this hack can i create shops and add items and users can buy it?

caimakale 02-14-2006 08:52 PM

Quote:

Originally Posted by 2fast4ya
i dont understand whats going on... but admin can view the estore... and member's can't seem to view it.. i have a group called "Elite Members" and they can't view it at all... I edit it in the user group permissions to say "Yes" for them to be able to use the ebux system, but still... they can't use it. what am i doing wrong here?

You also have to go into each category in AdminCP >> eStore Options >> and set the usergroup permissions in each category (Manage Categories) and each item (Manage Items). This is aside from editing the usergroups section of the admincp.


All times are GMT. The time now is 09:18 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.04606 seconds
  • Memory Usage 1,900KB
  • 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
  • (30)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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