vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   ICash Integration (https://vborg.vbsupport.ru/showthread.php?t=142749)

Enigami 03-21-2007 09:10 PM

ICash Integration
 
I am currently wanting to put a points system on my website and with vbplaze not availible due to recent exploits i have to use an alternative...i choose icash/ibank/ishop but need to integrate the arcade with the points system. Does anyone know of this hack? or is there one being developed?
thanks, ENigami

MrZeropage 03-22-2007 05:16 PM

ibProArcade has all necessary hooks for ICash-PlugIns included, somebody just needs to dothe plugins...

does anybody have the vbPlaza-PlugIns from last release for ibProArcade ? I guess they are easy to adapt to ICash, maybe I take a look if somebody provides them :)

Vinyljunky 03-27-2007 07:37 PM

Im sure that this has been answered within the icash post ;)

A few people have done it.


Regards

VJ...

MrZeropage 03-27-2007 08:05 PM

any link to a iCash-Plugin for ibProArcade ?

Black Tiger 03-28-2007 12:10 AM

https://vborg.vbsupport.ru/showthrea...119086&page=27
Post number: 392

That's an example if you want to have users pay with icash to play games.

Would be nice if you could tell us such example how to make it so that if they win a game, they get "amount=x" of money into their account.;)

kylek 05-02-2007 09:17 PM

Quote:

Originally Posted by Black Tiger (Post 1214113)
https://vborg.vbsupport.ru/showthrea...119086&page=27
Post number: 392

That's an example if you want to have users pay with icash to play games.

Would be nice if you could tell us such example how to make it so that if they win a game, they get "amount=x" of money into their account.;)


I got the above working to charge per game play with ICash and it works great. But it does not seem to work for games played in a new window. Anyone got any ideas for how to include these?

MrZeropage 05-03-2007 12:26 PM

did you use all hooks/plugins ?
There is a hook "ibproarcade_play_game_popup" which should be helpful :)

You also should think about the tournaments ect.

Here is a list of all available hooks in ibProArcade:
ibproarcade_global_start
ibproarcade_navbar_complete
ibproarcade_play_game
ibproarcade_play_game_popup
ibproarcade_play_game_tourney
ibproarcade_new_champ
ibproarcade_tourney_won
ibproarcade_register_tourney_start
ibproarcade_do_create_tourney_start
ibproarcade_gamebit

kylek 05-05-2007 01:34 AM

Thanks, that list helps. I used the same code that was shown here https://vborg.vbsupport.ru/showt...119086&page=27
Post number: 392 and made a new plug in called ibproarcade_play_game_popup and it now charges a price for games opened in a new window also.

MrZeropage 05-05-2007 04:24 PM

you should make use of all the hooks to provide full payment options throughout the arcade ...

spaceman33 05-08-2007 12:01 PM

Can someone help me out here?

I tried this but kept getting the error message "phrase xxx could not be found". Can I check I have tried to do this right:

Created a plugin:
Product=ibproarcade for vbulletin, title ibproarcade pay
code:
Code:

$amount = '50';

if (($vbulletin->userinfo[$vbulletin->options['money']] - $amount) < 0) {
          eval(standard_error(fetch_error('ibproarcade_shortage')));
}
$vbulletin->db->query("update " . TABLE_PREFIX . "user set {$vbulletin->options['money']}={$vbulletin->options['money']}-'{$amount}' where userid='{$vbulletin->userinfo['userid']}'");

Phrase:
Created a phrase:
Product=ibproarcade for vbulletin, varname ibproarcade_shortage, Text You dont have enough to play this game

Am I missing something obvious?

Cheers.

ArchangelX 09-21-2007 09:07 PM

Quote:

Originally Posted by Black Tiger (Post 1214113)
https://vborg.vbsupport.ru/showthrea...119086&page=27
Post number: 392

That's an example if you want to have users pay with icash to play games.

Would be nice if you could tell us such example how to make it so that if they win a game, they get "amount=x" of money into their account.;)

Does anyone have a plug-in built to do this yet? Thanks!

McCarroll21 09-29-2007 10:51 AM

Can you tell us what each hook does?

Like, which hook should I call to 'charge' to play in a tournament?

And will the members have to 'pay' to play games in a tournament if I am already 'charging' so much for playing games by using plugins that call these hooks?

ibproarcade_play_game
ibproarcade_play_game_popup

SBlueman 10-08-2007 01:17 AM

Quote:

Originally Posted by ArchangelX (Post 1344102)
Does anyone have a plug-in built to do this yet? Thanks!

Same question. A plugin would rock!

Zaiaku 12-30-2007 06:39 PM

I'm needing this pretty bad, does anyone have a way to make this work?

ArchangelX 01-03-2008 04:22 AM

Same here...anyone? It seems kinda funny that noone has this working...I would think that it's a great option. :(

--------------- Added [DATE]1199343901[/DATE] at [TIME]1199343901[/TIME] ---------------

I take it back...it was actually pretty easy after I checked it out! Thanks for those hooks, MrZeropage!

Zaiaku 01-06-2008 12:32 PM

Maybe its just me butSeeing the method being use there only 1 price for all games instead of settin a price for each game.


All times are GMT. The time now is 10:09 AM.

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.01103 seconds
  • Memory Usage 1,748KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete