Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Spend vBCredits in your ibProArcade Details »»
Spend vBCredits in your ibProArcade
Version: 1.2, by Darkwaltz4 Darkwaltz4 is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.x Rating:
Released: 07-29-2007 Last Update: 01-03-2009 Installs: 114
DB Changes Uses Plugins
Code Changes Additional Files Translations  
No support by the author.

This is the addon to integrate ibProArcade 2.6.6+ with vBCredits 1.4x

Now you can use vBCredits for ibProArcade just like you used to, except better!

You will need BOTH installed on your forum already for this addon to work!


Features:
  • Games
    • Costs per Play
    • Static or Raising Jackpot Type
    • Editable Jackpots
    • Jackpot Tax
    • Qualifying Rank Threshhold for Jackpot
    • Jackpot displayed along with score to beat
    • Individual Jackpot Intervals
    • Three Winnings Types
      • Divide by Rank
      • Multiply by Rank Points
      • Entire Jackpot
  • Tournaments
    • Edit Costs and Jackpots Even After Creation
    • Entrance Fee
    • Static or Raising Jackpot Type
    • Deducts Fees From Players and Adds to Raising Jackpots
      • Works Even When Added via ACP
    • Costs and Jackpots Listed Throughout Tournament Area
    • Winner Takes All After Taxes
  • Arcade Passes
    • Allow all Games to be Free to Play, but Unable to Win Jackpots
    • Option to Still Pay Cost to Try For Jackpot, With Alternative Link
    • Usergroup Price Configuration
    • Configurable Expiry Time, Editable in ACP User Editor
  • General
    • Order Games by Cost or Jackpot in Both ACP and Forum
    • Mass Configure Costs and Jackpots for Games
    • Transaction Log Entries When You Win
    • Works for Both Layout Styles
    • Set Usergroup Discounts
    • Charge For Arcade Access
    • Taxes Go Into Central Board Account
  • Overall Quality
    • Everything is Easily Disabled / Unlimited
    • Will Not Alter Environment for vB or Other Hacks
    • Fully Phrased
    • Obeys canspend and canearn
    • Complete Admin Help
    • Unique Plugin Optimization
Now, ibProArcade was originally meant for another points hack, which was pretty much hard coded into the script, and is still there. So, basically you have to remove all of that code and replace it with the new vBCredits code.




I have two options for you:
  • I have the set of ibProArcade files pre-edited for you (used with permission)
  • I have provided the instructions for editing your own arcade files (if you have other addons you dont want to undo by overwritting the originals)
In either case - you still have to follow all directions in the instructions! The above is only step #3!

Support for this addon will NOT be here, but instead at this thread:
http://www.vbcredits.com/forum/showthread.php?t=67
I will post announcements and updates here though regarding it. There is also a v3 Arcade version with the same features.

(note: until vBCredits 1.4 final is available, the settings for this addon may appear in a "blank" settings group)

Click here for screenshots and support for this addon

The edited files are only step 3 of the installation / upgrade process! You still need to download and follow all instructions in the main zip!

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 05-08-2008, 12:49 AM
Darkwaltz4's Avatar
Darkwaltz4 Darkwaltz4 is offline
 
Join Date: Oct 2002
Location: Chicago
Posts: 1,538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i looked through the 2.6.7 files and it should be alright, if you find a problem let me know.
Reply With Quote
  #73  
Old 05-10-2008, 02:54 AM
Darkwaltz4's Avatar
Darkwaltz4 Darkwaltz4 is offline
 
Join Date: Oct 2002
Location: Chicago
Posts: 1,538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have posted the pre-edited files for use with ibproarcade 2.6.7a+
Reply With Quote
  #74  
Old 05-10-2008, 03:31 AM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great work Darkwaltz4, thanks!!
Reply With Quote
  #75  
Old 05-16-2008, 12:03 PM
Fallback Fallback is offline
 
Join Date: May 2005
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #76  
Old 05-16-2008, 12:23 PM
Darkwaltz4's Avatar
Darkwaltz4 Darkwaltz4 is offline
 
Join Date: Oct 2002
Location: Chicago
Posts: 1,538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #77  
Old 05-16-2008, 02:54 PM
Fallback Fallback is offline
 
Join Date: May 2005
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!

How can i get the code to work in the navbar template?
Reply With Quote
  #78  
Old 05-17-2008, 10:57 AM
Darkwaltz4's Avatar
Darkwaltz4 Darkwaltz4 is offline
 
Join Date: Oct 2002
Location: Chicago
Posts: 1,538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #79  
Old 08-18-2008, 12:57 AM
SavvyPirates SavvyPirates is offline
 
Join Date: Apr 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #80  
Old 08-18-2008, 09:30 AM
Darkwaltz4's Avatar
Darkwaltz4 Darkwaltz4 is offline
 
Join Date: Oct 2002
Location: Chicago
Posts: 1,538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #81  
Old 08-18-2008, 08:48 PM
SavvyPirates SavvyPirates is offline
 
Join Date: Apr 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the quick reply!

That worked great!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04837 seconds
  • Memory Usage 2,327KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete