vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Spend vBCredits in your ibProArcade (https://vborg.vbsupport.ru/showthread.php?t=153822)

Darkwaltz4 05-08-2008 12:49 AM

i looked through the 2.6.7 files and it should be alright, if you find a problem let me know.

Darkwaltz4 05-10-2008 02:54 AM

i have posted the pre-edited files for use with ibproarcade 2.6.7a+

Black Tiger 05-10-2008 03:31 AM

Great work Darkwaltz4, thanks!!

Fallback 05-16-2008 12:03 PM

Is there anyway to have a "visual" arcade pass. Like an arcade pass icon and/or data that appears by the pm message info at the top of the screen to let you know you still have a pass.

For example you could have a green icon when you have the pass and red or greyed out icon show when the arcade pass expires with a link to purchase a new one.

Any pointers on the template variables related to the arcade passes would be appreciated.

Darkwaltz4 05-16-2008 12:23 PM

in the arcade there should be a message saying when the active pass expires. you can play around with this in the arcade/modules/mod_arcade.php file

PHP Code:

$the_links '<span class="smallfont"><b>' . ( $vbulletin->userinfo['credits_ibp_pass'] > TIMENOW construct_phrase($GLOBALS['vbphrase']['credits_ibp_passexpires'], vbdate($vbulletin->options['dateformat'] . ', ' $vbulletin->options['timeformat'], $vbulletin->userinfo['credits_ibp_pass']), $GLOBALS['vbphrase']['credits']) : construct_phrase($GLOBALS['vbphrase']['credits_ibp_buypass'], vb_number_format($vbulletin->userinfo['creditperms']['credit_ibp_passcost'], $vbulletin->options['credits_decimals']), $GLOBALS['vbphrase']['credits'], $vbulletin->session->vars['sessionurl']) ) . '</b></span><br />' $the_links


Fallback 05-16-2008 02:54 PM

Thanks!

How can i get the code to work in the navbar template?

Darkwaltz4 05-17-2008 10:57 AM

well, put the code in the parse_templates plugin, and use $the_links in the navbar template.

you will have to alter that code a little to fit better, but thats the basics

SavvyPirates 08-18-2008 12:57 AM

When a usergroup is excluded from using vBCredits, it doesn't affect the arcade use.

If there is a charge to play the game, they must pay it and if they get a high score, they are awarded the jackpot.

Is there a way to remove the requirement for credits to play the arcade if they are excluded from using the credits system?

If not, this would be a good idea for a future release. ;)

Darkwaltz4 08-18-2008 09:30 AM

hmm you have a point there, must have gotten forgotten.

this should do the trick:

in plugins/credits_ibproarcade_plugins.php find:
PHP Code:

if ($vbulletin->userinfo['userid'] AND $game['cost'] AND ($vbulletin->userinfo['credits_ibp_pass'] <= TIMENOW OR $_GET['pay'])) 

replace with

PHP Code:

   if (!($vbulletin->bf_ugp['creditpermissions']['credit_locked'] & $vbulletin->userinfo['creditperms']['creditpermissions']) AND $vbulletin->userinfo['userid'] AND $game['cost'] AND ($vbulletin->userinfo['credits_ibp_pass'] <= TIMENOW OR $_GET['pay'])) 

and in forum/arcade.php find

PHP Code:

     if ($vbulletin->userinfo['credits_canearn'] AND $ctr <= $vbulletin->options['credits_ibp_minrank'] AND $lboard['score'] == $player_score AND $vbulletin->userinfo['credits_ibp_paid']) 

replace with
PHP Code:

     if (!($vbulletin->bf_ugp['creditpermissions']['credit_locked'] & $vbulletin->userinfo['creditperms']['creditpermissions']) AND $vbulletin->userinfo['credits_canearn'] AND $ctr <= $vbulletin->options['credits_ibp_minrank'] AND $lboard['score'] == $player_score AND $vbulletin->userinfo['credits_ibp_paid']) 

note this doesnt affect tournaments

SavvyPirates 08-18-2008 08:48 PM

Thanks for the quick reply!

That worked great!


All times are GMT. The time now is 02:22 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.01136 seconds
  • Memory Usage 1,756KB
  • 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
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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