• I wrote this simple gamble for the cubepoints pluging and all u do is

    1.stick it in a custom page template and post the page using that template

    2.then create a user and find its user ID so you can change the
    ” $uidd=; ” into ” $uidd=ur.house.user.id.here; “

    Optional 3. get into ur SQL database and change the user that stores the house amount so its hidden from people by going to the right in the data table wp_users or bp_users and changing the status to 99

    I have no idea if it works for others and if I get enough feedback I might make a plugin with this and other scripts I am making for cubepoints

    [Code moderated as per the Forum Rules. Please use the pastebin]

    as with all my scripts PLEASE credit it to me Donovan M.H.G
    thou u dont have to it would be nice

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hmm, i tried using a user id of a user which i have previously deleted and it still worked. I did it by mistake though cos I didnt know I have to create a user and so happen user id 5 is non-existent.

    I was wondering, which database are all the cubepoints store in? cos I couldn’t locate it except in the manage page and of cos the manage page wont have the non-existent user id no. 5 for me.

    I wonder what happens when the House go down to “0”? Would the user still be able to win points?

    Great script though. I am using it on live site 🙂

    hope there is no down side in using a non-existent user id…

    Thread Starter gearsgod

    (@gearsgod)

    I wrote this mostly for @bicky in case he needs a better solution.
    this only works in wordpress useing buddypress with cubepoints + cubepoints ext
    OK so I went ahead an made an even better one, but it’s a bit more complex but works a lot better, the first half is a page that the user goes to to access the gamble, which dose not refresh the page but works by using Ajax. the other half is a page that is called boo, but can be anything you want. so step one would be…
    1. Create two pages, one call “gamble” the other “boo”
    2. make sure to place both codes into .php files with the right names and in the buddypress theams dir. so “gamble.php” would have the top half of the code and “boo.php” would have the bottom half.
    I recommend “sexy add template” todo this, just create the file with the names “gamble.php” and “boo.php” then create then edit them.
    3. make sure you can choose the page templates of the two files I mentioned. gamble haveing “gamble” page template and “boo” page template of boo.
    4.now change the site path on line 26 to the sites path to the “boo” area.
    5.create a file called “gamblelog.html” at the root of you’re wordpress site
    6.create 3 user accounts called “bank” “house” and “tax”
    7. find the user ID for each one of them and put them into the variables on line’s 121-223
    8. goto those user accounts and mark them as spammers so they still work but cant be seen on the members or gone to.
    9. set the “house” user to have 50mill points, so “50000000”

    optional- use a plugin called “user role editor” to change it so that you’re normal user’s can see private pages (just use password protected if it needs hiding) and change the “boo” page to private so the tab isnt seen.
    hope this helps everyone 🙂
    Code here

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Gamblehouse ext for cubepoints’ is closed to new replies.