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.


All times are GMT. The time now is 06:27 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.01130 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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