Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
v3 Arcade/Arcade Pass Hack - Usergroup Option - Can Free Arcade Details »»
v3 Arcade/Arcade Pass Hack - Usergroup Option - Can Free Arcade
Version: 1.00, by kall kall is offline
Developer Last Online: Aug 2021 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 06-07-2004 Last Update: Never Installs: 13
 
No support by the author.

This gives you the ability to define which Usergroups have to use the Arcade Pass.

If a Usergroup has Can Free Arcade enabled, they will not have to purchase an Arcade Pass or pay points to play games, nor be eligible for jackpots...as they are completely skipping the Arcade pass Hack.

Limitations: If the member wins a game (or places in whatever place you have defined in order to win a portion of the Jackpot), they will still receive the Points.

Members will not be able to see what the Jackpot for a game is, as vB assumes that the Arcade Pass hack is turned off, template-wise.

We use it for paid members.

**UPDATE**

If you wish to disable the Group's ability to win prize points for top scoring (or whatever you have set as the position required to win points), do the following:

Find n arcade.php:
PHP Code:
if ($vboptions['arcadepass_enablejackpot'] == 1) { 
Replace with:
PHP Code:
if ($vboptions['arcadepass_enablejackpot'] == AND $arcadepermissions['canfreearcade']==0) { 

Show Your Support

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

Comments
  #2  
Old 06-08-2004, 12:33 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm. Attachment didn't attach.

Oh well, this way is much easier to follow anyway.

Phrases.

Add New Phrase

Phrase Type: Permissions
Varname: can_free_arcade
Text: Can play free in Arcade without a Pass


Admin Help.

To access the Admin Help Manager, your board must be running in debug mode.
It is recommended that you close your board while debug is enabled as it is a potential security risk.

In includes/config.php

Add line

PHP Code:
$debug=1
ACP --> vBulletin Options --> Admin Help Manager

[Add New Topic]

Script: usergroup
Action: add,edit
Option: canfreearcade
Display Order: 321
Title: Can Play Free in Arcade
Text: This permission allows members of this group to play free without an Arcade Pass in the <a href="arcade.php" target="_blank">Arcade</a>.
vBulletin Default: No

When you are done, remove the line $debug=1; from includes/config.php


Bitfield Permissions

Add new usergroup forumpermission

In includes/init.php

Find:
PHP Code:
$_BITFIELD['usergroup']['arcadepermissions'] = array(
    
'canviewarcade'            => 1,
    
'canplayarcade'            => 2,
    
'caneditscores'             => 4,
    
'candelscores'             => 8,
    
'canmakecomments'        => 16
    
); 
Replace with

PHP Code:
$_BITFIELD['usergroup']['arcadepermissions'] = array(
    
'canviewarcade'            => 1,
    
'canplayarcade'            => 2,
    
'caneditscores'             => 4,
    
'candelscores'             => 8,
    
'canmakecomments'        => 16,
    
'canfreearcade'            => 32
); 
Admin CP functionality

Add option to Admin CP Usergroup Manager

In admincp/usergroup.php

Find:

PHP Code:
print_yes_no_row("Can Play Games in the Arcade? <dfn>Allows usergroup to play arcade games</dfn>"'usergroup[canplayarcade]'$ug_bitfield['canplayarcade']); 

Under that add:

PHP Code:
print_yes_no_row("Can Play Games Free Without a Pass? <dfn>Allows usergroup to play arcade games</dfn>"'usergroup[canfreearcade]'$ug_bitfield['canfreearcade']); 


Integrate into Arcade

In arcade.php

Find (three times):

PHP Code:
if ($vboptions['arcadepass_enable'] == 1) { 

Replace with:

PHP Code:
if ($vboptions['arcadepass_enable'] == AND $arcadepermissions['canfreearcade']==0) { 

And there you have it.
Reply With Quote
  #3  
Old 06-08-2004, 12:55 AM
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Location: Tampa, FL
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this is a nice addition to the Arcade Pass. I'm gonna set it so Registered Users "Can Free Arcade". Then, I'll set up a promotion scheme so that after one week they move into a "Registered Plus" group where the Arcade Pass system will kick in. They'll be hooked by then and will be forced to post in order to play...
Reply With Quote
  #4  
Old 06-08-2004, 06:12 AM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool one
Reply With Quote
  #5  
Old 06-25-2004, 07:51 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems to be working fine on 3.0.1. Nice one!
Reply With Quote
  #6  
Old 07-05-2004, 02:24 PM
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Location: Tampa, FL
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall
**UPDATE**

If you wish to disable the Group's ability to win prize points for top scoring (or whatever you have set as the position required to win points), do the following:

Find n arcade.php:
PHP Code:
if ($vboptions['arcadepass_enablejackpot'] == 1) { 
Replace with:
PHP Code:
if ($vboptions['arcadepass_enablejackpot'] == AND $arcadepermissions['canfreearcade']==0) { 
There are two
PHP Code:
if ($vboptions['arcadepass_enablejackpot'] == 1) { 
Do we replace one or both?
Reply With Quote
  #7  
Old 07-05-2004, 06:32 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by the Sandman
There are two
PHP Code:
if ($vboptions['arcadepass_enablejackpot'] == 1) { 
Do we replace one or both?
It's the one in the part that defines the new points value after getting a valid position...

After:

PHP Code:
$position $DB_site->query_first("
        SELECT COUNT(*) + 1 AS position
        FROM " 
TABLE_PREFIX "gamesessions AS gamesessions
        WHERE score > 
$game[score] AND valid=1 AND gamesessions.gamename='$game[shortname]'
    "
); 
Change
PHP Code:
if ($vboptions['arcadepass_enablejackpot'] == 1) { 
to

PHP Code:
if ($vboptions['arcadepass_enablejackpot'] == AND $arcadepermissions['canfreearcade']==0) { 
Reply With Quote
  #8  
Old 08-23-2004, 03:31 AM
idslamyou idslamyou is offline
 
Join Date: Jan 2004
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting this error when I try to change the a usergroups setting to play the arcade without a pass

Code:
Invalid SQL: UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
	title = 'Platinum Member',
	description = '',
	usertitle = 'Platinum Member',
	opentag = '<b>',
	closetag = '</b>',
	passwordexpires = '0',
	passwordhistory = '0',
	ispublicgroup = '0',
	canoverride = '0',
	canfreearcade = '1',
Anybody?
Reply With Quote
  #9  
Old 08-26-2004, 11:14 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by idslamyou
I am getting this error when I try to change the a usergroups setting to play the arcade without a pass

Code:
Invalid SQL: UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
	title = 'Platinum Member',
	description = '',
	usertitle = 'Platinum Member',
	opentag = '<b>',
	closetag = '</b>',
	passwordexpires = '0',
	passwordhistory = '0',
	ispublicgroup = '0',
	canoverride = '0',
	canfreearcade = '1',
Anybody?
Do you mean that you get that after you hit the Submit button in the AdminCP page usergroup.php?

I haven't ever seen an SQL error in that format, so I'm stumped at the moment.
Reply With Quote
  #10  
Old 08-27-2004, 08:53 PM
idslamyou idslamyou is offline
 
Join Date: Jan 2004
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is correct. I forgot to copy the complete error. Here it is again:

Code:
Database error in vBulletin 3.0.3:

Invalid SQL: UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
	title = 'Platinum Member',
	description = '',
	usertitle = 'Platinum Member',
	opentag = '<b>',
	closetag = '</b>',
	passwordexpires = '0',
	passwordhistory = '0',
	ispublicgroup = '0',
	canoverride = '0',
	canfreearcade = '1',
	attachlimit = '50000000',
	avatarmaxwidth = '50',
	avatarmaxheight = '50',
	avatarmaxsize = '40000',
	profilepicmaxwidth = '100',
	profilepicmaxheight = '100',
	profilepicmaxsize = '100000',
	pmquota = '100',
	pmsendmax = '5',
	uttstore_discount = '0',
	forumpermissions = '127487',
	pmpermissions = '3',
	calendarpermissions = '31',
	wolpermissions = '1',
	adminpermissions = '0',
	genericpermissions = '2735839',
	genericoptions = '13',
	arcadepermissions = '19',
	articlepermissions = '0'
WHERE usergroupid=9
mysql error: Unknown column 'canfreearcade' in 'field list'

mysql error number: 1054
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 06:14 PM.


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.04799 seconds
  • Memory Usage 2,332KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_code
  • (16)bbcode_php
  • (3)bbcode_quote
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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