News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

The Casino 2.2 (with Shop, Bank)

Started by dr.wills, February 20, 2009, 09:19:43 AM

Previous topic - Next topic

dr.wills

Currently being rewritten for SMF2 RC2
Await...

The Casino
Author: Akai Phan
Compability: SMF2 RC1

Introductions: This mod places a casino right into your forum where you can enjoy to find out your luck. Further it includes a shop where you can find many interesting items. You can also earn money by posting or replying, even bonus for how many words you write. You can send gift, items, money to other people. You can also use the bank to make your earning even greater. There are more features for you to explore.

Change log:
+ New features
* Change
! Fix bugs

2.2 3/26/09 go to announcement
+ Small column to see who sent gift

* Change the layout, easier to navigate
* No more support for SMF 1.1.8

! Fixed small bugs

2.1 as of 3/13/09
+ Now compatible with SMF 1.1.8
+ Shop items are included
! Fixed some small bugs

2.0 as of 3/1/09
   ** New features:
   -Games: the bet, twentyone, lucky seven, lucky dice, min/max bet
   -Bank: withdraw, deposit, withdraw/deposit fee, maximum/minimum withdraw/deposit, interest
   -Shop: Buy items
   -Gift: Send items, send money
   -Inventory: See your items, see other people items
   -Stats: See who's the richest
   -Admin:    +enable/disable games/shop/gift...,
            +set money upon registration
            +set points per topic/post/word/character, point limit
            +set bank interest, fee, min/max deposit/withdraw, min/max bet
            +set currency prefix, surfix
            +change user's cash, inventory
            +update/enable/disable/delete items
   -A new row to show user's money in the Post section.

Older version: See the changelog.txt
http://movies-on-mediafire.com

Never dying collection of high definition mediafire movies link

Angelotus

Why not a 2.0 version? Will wait till that is done ;)

phpMyTony


phpMyTony

I get this error-  0.     Execute Modification     ./Themes/default/index.template.php     Test failed

~Killer~

¬_¬

What is that error for CSS?

And I can't wait for a 2.X Version!

phpMyTony

Well, not error, but it fails. Liam, did it install for you??

dr.wills

 ;) I tested on my fresh 1.1.8 and it didn't have any error.

your testing failed I think because when it runs the install_casino.xml, it didn't find the spot in the index.template.php that matches. You can install it manually by opening your index.template.php and find the spot and then put the code in as specified in install_casino.xml or you can post your index.template file here and I can help you.
;)
The code modification to index.template.php is just to add a button 'casino' to the menu bar, and make it bold  ;)

I will update to 2.x soon + some mroe games and functionality
I'm thinking about a shop also :p
http://movies-on-mediafire.com

Never dying collection of high definition mediafire movies link

M-DVD

Wow, this mod looks great  :D

Sheree

I've been waiting for this for a long time...

Good Job akaiphan9x !!

kingkingston

I have unistalled casino yet i get this error log

http://wewantsport.com/index.php?action=viewErrorLog;desc 
8: Undefined index: casino_admin_general
File: /home/wewantsp/public_html/Sources/Subs.php
Line: 2909

and under the maintence block there is an empty half block where im assuming casino admin section goes,how do i fix this ?

dr.wills

you can go to Subs.php, find and del the following code

// Begin Casino code
loadLanguage('Casino');
        if (allowedTo('casino_admin'))
    $context['admin_areas']['casino'] = array (
    'title' => $txt['casino_admin'],
    'areas' => array(
    'casino_general' => '<a href="' . $scripturl . '?action=casino_general">' . $txt['casino_admin_general'] . '</a>',
)
    );
// End Casino code
http://movies-on-mediafire.com

Never dying collection of high definition mediafire movies link

fasterthanyours

Not to knock aka for a cool mod, but sometimes modders don't take into account, well not really that, but it's just hard to deal with sites that have other mods installed already because it changes the code of the source files.

So if he's been modding this on a fresh install with no other mods, of course it works fine.  Throw in a site like mine with 30+ mods and it never works right the first time.  I usually end up modding the xml install to work with my site.

kingkingston

Quote from: akaiphan9x on February 21, 2009, 09:42:59 PM
you can go to Subs.php, find and del the following code

// Begin Casino code
loadLanguage('Casino');
        if (allowedTo('casino_admin'))
    $context['admin_areas']['casino'] = array (
    'title' => $txt['casino_admin'],
    'areas' => array(
    'casino_general' => '<a href="' . $scripturl . '?action=casino_general">' . $txt['casino_admin_general'] . '</a>',
)
    );
// End Casino code


Thanks champ

Realinfo

Sir.......... my all members have 0 amount in their pocket......... how i can give them 1000 to all so they can play..... as they not able to play without money.............

Joe N

Quote from: Realinfo on February 22, 2009, 02:12:13 AM
Sir.......... my all members have 0 amount in their pocket......... how i can give them 1000 to all so they can play..... as they not able to play without money.............

Wouldn't you need the shop installed for the money?
Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


Realinfo

what is that,,,,,,,,,,,,,,,,, how we install it...... how it works............ Please help............

phpMyTony

SMF Shop. Do a search.

dr.wills

 ;D

Don't worry guys, I'm almost done coding this mod for SMF2.0

it will have more feature and will be able to stand alone from other mod ;)

I will try to finish it for 1.1.8 also

will be soon  ;)
http://movies-on-mediafire.com

Never dying collection of high definition mediafire movies link

phpMyTony

Which code do I add in the index.template.php to add the button?

dr.wills

find

<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' :


add before

//Begin Casino code
loadLanguage('Casino');
echo ($current_action == 'casino' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'casino' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=casino">',$txt['casino'],'</a>
</td>' , $current_action == 'casino' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
//END Casino code


That code will make a button. worked in the default theme. if it doesn't work on your theme, tell me the name of your theme so I can try.  ;D
http://movies-on-mediafire.com

Never dying collection of high definition mediafire movies link

Advertisement: