Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter gearsgod

    (@gearsgod)

    I just posted a fixed version

    Fixed version

    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)