vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   v3 Arcade - Games Arcade & Challenge System [vB 3.0.3] (https://vborg.vbsupport.ru/showthread.php?t=60377)

sarge0087 07-18-2004 06:07 AM

Ok, try this. Go to my forum http://www.nextdictator.com/forum/index.php and login as:

Username: Testarcade
Password: test

Try and play a game in my arcade and you will see the problem.

Intex 07-18-2004 06:14 AM

OK, this is typically caused by the usergroup not having permission to access the arcade. Go to AdminCP | Usergroups, then select the usergroup that the user your testing belongs to, scroll down to the 'Arcade Permissions' setting and check to make sure that:

Can View the Arcade?
Allows usergroup to play arcade games

Are both set to YES.

sarge0087 07-18-2004 06:23 AM

Hmm... even on my admin account I can't play. Everything is set to yes for everyone too... I'm not sure what's going on.

Intex 07-18-2004 06:30 AM

What version of vB are you using? I believe there are known issues with 3.0.2 including this paticular problem, but I'm not 100%.

sarge0087 07-18-2004 06:33 AM

3.0.3

I saw someone else with 3.0.3 saying it worked fine with him. Maybe it's just me?

Intex 07-18-2004 06:42 AM

OK, then I don't really know. The only other thing I can think off is to check the location of your games and make sure their in the same location as originally specified.

sarge0087 07-18-2004 07:02 AM

Hmmm, I think I know the problem. I remember a while ago trying to install this arcade but I failed horribly. When I try to make the database changes during the installation I get the following error:

"Database error in vBulletin 3.0.3:

Invalid SQL:
CREATE TABLE gamechallenges (
challengeid int(10) unsigned NOT NULL auto_increment,
type tinyint(1) unsigned NOT NULL default '0',
challengerid int(10) unsigned NOT NULL default '0',
challengedid int(10) unsigned NOT NULL default '0',
game varchar(30) NOT NULL default '',
status tinyint(1) unsigned NOT NULL default '0',
datestamp int(13) unsigned NOT NULL default '0',
challengersession int(20) unsigned NOT NULL default '0',
challengedsession int(20) unsigned NOT NULL default '0',
PRIMARY KEY (challengeid)
) TYPE=MyISAM

mysql error: Table 'gamechallenges' already exists

mysql error number: 1050"

I know what this means, so how do I delete those old databases?

Intex 07-18-2004 07:06 AM

Use phpmyadmin or similar program to access your database and delete the table (backup your database first!). Alternatively if you know your SQL, then simply run the query from the vBulletin AdminCP | Import & Maintenance | Execute SQL Query.

sarge0087 07-18-2004 07:13 AM

I don't know much about SQL. When I try to Execute SQL Query it tells me I am not authorized. I used to have phpmyadmin but I had no idea what to do with it.

sarge0087 07-18-2004 07:17 AM

Do you think the SQL thing is even the problem?

Intex 07-18-2004 07:20 AM

To be honest I don't think so. That error is just saying that a table already exists with the same name (from your previous install). It also relates to the game challenges, so not related.

Let's see if anybody else has any suggestinos on how to fix the problem before you start using utilities you're not familiar with, i.e. phpmyadmin.

kenji4861 07-18-2004 08:10 AM

Quote:

Originally Posted by sarge0087
Hmm... even on my admin account I can't play. Everything is set to yes for everyone too... I'm not sure what's going on.

I am experiencing this same problem. If you found a solution, please let me know.

hello 07-18-2004 08:39 AM

i get this error

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/nrelamun/public_html/forum/includes/init.php on line 520

kenji4861 07-18-2004 08:40 AM

hello : post us about 3 or 5 lines of code surrounding that area.

hello 07-18-2004 09:22 AM

ok fixed that error but now when i go to a topic it says this Warning: Invalid argument supplied for foreach() in /home/nrelamun/public_html/forum/includes/functions_showthread.php on line 716

Warning: Invalid argument supplied for foreach() in /home/nrelamun/public_html/forum/includes/functions_showthread.php on line 716
and when i go to the arcadce main page it just shows a blank page

royals 07-18-2004 04:08 PM

Thanks Intex, but that didn't help. Its only keeping 3 Card Poker scores and not even updating those now. Its stuck on a score from yesterday and a new high score was played this morning.

Quote:

Originally Posted by Intex
royals - It could be that the arcade tasks have not run. These run by default at 23:00 daily. If you want to test that, go to AdminCP | Scheduled Tasks and select RUN NOW against the 'Arcade Tasks'.


kenji4861 07-18-2004 05:03 PM

<a href="http://www.spoofee.com/forums" target="_blank">http://www.spoofee.com/forums</a>

No matter what I do, my arcade section is giving me this.

"you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation. "


-I redid all installation processes about 3 times now using notepad (windows).
-I set the permissions on all games to active.
-I set all the permissions on usergroups to be able to access the arcade.
-Even the admin cannot access it.

Thanks for any pointers. If you have AIM, please contact me at kenji4861

Intex 07-18-2004 05:07 PM

kenji4861 - this sounds like a problem experienced just recently in another post by someone else. Go back a couple of pages and check out what I'd suggested, it might help you.

Also, although very fundamental, make sure your games are enabled, because that's another reason you'd get that message.

hello 07-18-2004 05:07 PM

when i go to the aracde system i installed on every skin it just shows a white blank page. I have tried reinstalling it again and again but it still does that.

Intex 07-18-2004 05:07 PM

And have you checked to make sure the scheduled tasks are running correctly? Check the logfile.



Quote:

Originally Posted by royals
Thanks Intex, but that didn't help. Its only keeping 3 Card Poker scores and not even updating those now. Its stuck on a score from yesterday and a new high score was played this morning.


kenji4861 07-18-2004 05:15 PM

Hi Intex, I did try what you suggested such as setting usergroup permission, but it is not working. Also all the game settings are active.

You were discussing something about sql editting with sarge, does that help this situation?

Intex 07-18-2004 05:15 PM

Are you sure you have it installed on all the templates? Double-check in AdminCP and confirm they're all there. Also, make sure you database contains the tables for the arcade with something like myphpadmin.



Quote:

Originally Posted by hello
when i go to the aracde system i installed on every skin it just shows a white blank page. I have tried reinstalling it again and again but it still does that.


Intex 07-18-2004 05:17 PM

No, this was only because he was asking about how to remove an entry in the database. I'm not sure why people are having problems. I've confirmed this works with 3.0.3 as well.

Quote:

Originally Posted by kenji4861
Hi Intex, I did try what you suggested such as setting usergroup permission, but it is not working. Also all the game settings are active.


You were discussing something about sql editting with sarge, does that help this situation?


kenji4861 07-18-2004 05:20 PM

Darnit!

hello 07-18-2004 05:25 PM

Intex everything is there but it still doesn't load on. When i was on invision board the happened to me on posts so i went to admin cp and on the setting for Type of auto-redirect?
(This is for quick no page redirects) and it was on Location type (*nix savvy) so i put it on HTML META redirect (If all else fails...) and then it worked but i can't find the setting in the vbulletin admin cp

royals 07-18-2004 05:58 PM

Quote:

Originally Posted by Intex
And have you checked to make sure the scheduled tasks are running correctly? Check the logfile.


This can't be right...

91 Subscriptions 02:03, 18th Jul 2004 Subscriptions Updated
90 Daily Digest 02:02, 18th Jul 2004 Daily Digests Sent
89 Subscriptions 02:02, 17th Jul 2004 Subscriptions Updated
88 Daily Digest 02:02, 17th Jul 2004 Daily Digests Sent
87 Subscriptions 02:06, 16th Jul 2004 Subscriptions Updated
86 Daily Digest 02:02, 16th Jul 2004 Daily Digests Sent


Edit - Sorry I ddin't have it turned on to log the entires. I ran it and the same thing.

KTBleeding 07-18-2004 09:21 PM

I upgraded to 3.0.3 and now none of my posts show up after this hack.

I'm pretty sure it's because I could not figure this out at all:
Code:

=================================
includes/functions_showthread.php
=================================

Find:
___________________________________________________________________________________________

// ###################### Start getreputationimage #######################

???????????????????????????????????????????????????????????????????????????????????????????

Above this, add:
___________________________________________________________________________________________

if ($arcadegeneral['awardson']==1) {
        // declares the arcade image directory
        $stylevar['imgdir_arcade'] = "images/arcade";
        $arcade_result = $DB_site->query("SELECT shortname,title,gamesettings,highscorerid,highscore,miniimage,gameid FROM " . TABLE_PREFIX . "games ");
        while ($arcade = $DB_site->fetch_array($arcade_result)){
                if (($arcade[gamesettings] & $_GAMESCHECK['showaward'])){
                        $awards[$arcade[shortname]]['userid'] = $arcade['highscorerid'];
                        $awards[$arcade[shortname]]['gametitle'] = $arcade['title'];
                        $awards[$arcade[shortname]]['icon'] = $arcade['miniimage'];
                        $awards[$arcade[shortname]]['highscore'] = $arcade['highscore'];
                        $awards[$arcade[shortname]]['gameid'] = $arcade['gameid'];
                }
        }
}

I can't find that line anywhere.
Anyone know where else I should put this?

KTBleeding 07-18-2004 10:56 PM

This is the error message I recieve from showthread.php
Quote:

Warning: Invalid argument supplied for foreach() in /home2/keepthem/public_html/forums/includes/functions_showthread.php on line 657

Warning: Invalid argument supplied for foreach() in /home2/keepthem/public_html/forums/includes/functions_showthread.php on line 657

Warning: Invalid argument supplied for foreach() in /home2/keepthem/public_html/forums/includes/functions_showthread.php on line 657

Warning: Invalid argument supplied for foreach() in /home2/keepthem/public_html/forums/includes/functions_showthread.php on line 657

Warning: Invalid argument supplied for foreach() in /home2/keepthem/public_html/forums/includes/functions_showthread.php on line 657

Warning: Invalid argument supplied for foreach() in /home2/keepthem/public_html/forums/includes/functions_showthread.php on line 657

sarge0087 07-19-2004 12:02 AM

KTBleeding, you're right, there is no line like that. Instead it's called:

###################### Start doimicons #######################

sarge0087 07-19-2004 12:16 AM

Well... I still have my same problem. Just to update someone that may help me:

Go to my forum and login with the following:

Username: Testarcade
Password: test

Go to the Arcade and try and play a game. Why am I having that problem? Why does it go to "extendsession" instead of the game?

KTBleeding 07-19-2004 01:30 AM

Quote:

Originally Posted by sarge0087
KTBleeding, you're right, there is no line like that. Instead it's called:

###################### Start doimicons #######################

Awesome, it works adding the code above that. Thanks!

And, I have no clue on your issue. Good luck with it.. :nervous:

MissKalunji 07-19-2004 04:08 PM

heres a new game from yetis

GoTTi 07-20-2004 12:36 AM

i had to delete a user on my board and he had alot of scores on the arcade..

now where his name use to be is the name of the game, and it just shows the highscore.

how can i remove all the scores not linked to a nick?

Jesus Cranberry 07-20-2004 10:35 AM

Quote:

Originally Posted by hello
i get this error

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/nrelamun/public_html/forum/includes/init.php on line 520

I get the same error, how do you fix it?

JGM007 07-20-2004 04:46 PM

Everything seems to be working for me with 303, BUT the edit to the navbar and postbit templates.
I reverted them and tried the edits and a few suggestions mentioned a ways back, but no dice on the postbit champ icon.

JGM007 07-20-2004 06:15 PM

never mind. My own lack of sleep and stupidity made me over look the fact that the arcade templates were not in the style I was editing.

flstreetscene 07-22-2004 01:24 AM

I posted this on v3arcade but no one bothered to help me out:

"Ok well here it is to those who might be able to figure out;

I've created a fresh new database and forums and placed it here;

http://www.floridastreetscene.com/testforums

I'm at the point where I'm suppose to run the arcade install script but as you can see the entire site is blank and all because of the minor modification in 'includes/functions.php':

Code:

Find:
___________________________________________________________________________________________

// get CSS width for outerdivwidth from outertablewidth

???????????????????????????????????????????????????????????????????????????????????????????

Above this, add:
___________________________________________________________________________________________

        // declares the arcade image directory
        $stylevar['imgdir_arcade'] = "images/arcade";

???????????????????????????????????????????????????????????????????????????????????????????

You can take a look at my modified 'includes/funtions.php' document here;

http://www.floridastreetscene.com/testforums/temp

Thanks for the help."

montda 07-22-2004 04:26 PM

hi ...cool hack and i have some problem after uploading files
when i go 2 my admincp homepage this error appere
Quote:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/montda/public_html/vb/includes/init.php on line 518
i chack the file 518 and i find:
PHP Code:

            $specialtemplates array_merge(array(
                
'options',
                
'cron',
                
'forumcache',
                
'usergroupcache',
                
'stylecache',
                
'utt_store_act'
                'arcadesettings'
            
), $specialtemplates); 

i have ustore at my forums

and when i want to sign in this line show on the top of my forum page
Quote:

Warning: Invalid argument supplied for foreach() in /home/montda/public_html/vb/global.php on line 639
i chck it and i find
PHP Code:

// ######################## USHOP #################################### 
// Unserialize uShop Actions. 
$storeactions unserialize($datastore['utt_store_act']); 

// Make a list of the all the actions... 
foreach ($storeactions as $actionid => $theaction) { 
    if (
$theaction['active'] == "1") { 
        
$allowed explode(","$theaction['allowedgroups']); 
        foreach (
$allowed as $allow) { 
            if (
is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $allow)) { 
                
$canenter "1"
            } 
        } 
        
$denied explode(","$theaction['deniedgroups']); 
        foreach (
$denied as $deny) { 
            if (
is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $deny)) { 
                unset(
$canenter); 
            } 
        } 
        if (!isset(
$canenter)) { 
            
$canenter "0"
        } 
        if (
THIS_SCRIPT == 'ushop') { 
            if (
$canenter == 1) { 
                
$action1[$actionid] = $theaction
            } 
            if (
$theaction['showinstore'] == 1) { 
                (isset(
$actioncount) ? $actioncount++ : $actioncount "1"); 
            } 
        } 
        if (
$canenter == && $theaction['showinstore'] == 1) { 
            eval(
'$ushop_navbar .= "' fetch_template('navbar_uttstore_actions') . '";'); 
        } 
    } 

// The end all solution. 
unset($theaction); 
unset(
$storeactions); 
if (
THIS_SCRIPT == 'ushop') { 
    
$storeactions $action1

unset(
$action1);
if (
DB_QUERIES)
{
    
$pageendtime microtime();
    
$starttime explode(' '$pagestarttime);
    
$endtime explode(' '$pageendtime);
    
$aftertime $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
    echo 
"End call of global.php:  $aftertime\n";
    echo 
"\n<hr />\n\n";
}
// Creates general settings for the Arcade
$arcadegeneral convert_bits_to_array($arcadesettings,$_ARCADE);
$arcadeuser convert_bits_to_array($bbuserinfo['arcadesettings'],$_ARCADEUSER);
$arcadepermissions convert_bits_to_array($permissions['arcadepermissions'],$_BITFIELD['usergroup']['arcadepermissions']); 

and i can't sign in

i have ucash&ushop installed atmy forums :surprised:

Oldfart 07-22-2004 10:17 PM

Quote:

Originally Posted by montda
hi ...cool hack and i have some problem after uploading files
when i go 2 my admincp homepage this error appere

i chack the file 518 and i find:
PHP Code:

            $specialtemplates array_merge(array(
                
'options',
                
'cron',
                
'forumcache',
                
'usergroupcache',
                
'stylecache',
                
'utt_store_act'
                'arcadesettings'
            
), $specialtemplates); 

i have ustore at my forums

and when i want to sign in this line show on the top of my forum page


i chck it and i find
PHP Code:

// ######################## USHOP #################################### 
// Unserialize uShop Actions. 
$storeactions unserialize($datastore['utt_store_act']); 

// Make a list of the all the actions... 
foreach ($storeactions as $actionid => $theaction) { 
    if (
$theaction['active'] == "1") { 
        
$allowed explode(","$theaction['allowedgroups']); 
        foreach (
$allowed as $allow) { 
            if (
is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $allow)) { 
                
$canenter "1"
            } 
        } 
        
$denied explode(","$theaction['deniedgroups']); 
        foreach (
$denied as $deny) { 
            if (
is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $deny)) { 
                unset(
$canenter); 
            } 
        } 
        if (!isset(
$canenter)) { 
            
$canenter "0"
        } 
        if (
THIS_SCRIPT == 'ushop') { 
            if (
$canenter == 1) { 
                
$action1[$actionid] = $theaction
            } 
            if (
$theaction['showinstore'] == 1) { 
                (isset(
$actioncount) ? $actioncount++ : $actioncount "1"); 
            } 
        } 
        if (
$canenter == && $theaction['showinstore'] == 1) { 
            eval(
'$ushop_navbar .= "' fetch_template('navbar_uttstore_actions') . '";'); 
        } 
    } 

// The end all solution. 
unset($theaction); 
unset(
$storeactions); 
if (
THIS_SCRIPT == 'ushop') { 
    
$storeactions $action1

unset(
$action1);
if (
DB_QUERIES)
{
    
$pageendtime microtime();
    
$starttime explode(' '$pagestarttime);
    
$endtime explode(' '$pageendtime);
    
$aftertime $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
    echo 
"End call of global.php:  $aftertime\n";
    echo 
"\n<hr />\n\n";
}
// Creates general settings for the Arcade
$arcadegeneral convert_bits_to_array($arcadesettings,$_ARCADE);
$arcadeuser convert_bits_to_array($bbuserinfo['arcadesettings'],$_ARCADEUSER);
$arcadepermissions convert_bits_to_array($permissions['arcadepermissions'],$_BITFIELD['usergroup']['arcadepermissions']); 

and i can't sign in

i have ucash&ushop installed atmy forums :surprised:

Well I can help you with the first problem, you're missing a , after 'utt_store_act' it should look like this 'utt_store_act',

As far as the other problem goes I have no idea, sorry maybe someone else can help you.

Oldfart 07-22-2004 10:24 PM

Quote:

Originally Posted by flstreetscene
I posted this on v3arcade but no one bothered to help me out:

"Ok well here it is to those who might be able to figure out;

I've created a fresh new database and forums and placed it here;

http://www.floridastreetscene.com/testforums

I'm at the point where I'm suppose to run the arcade install script but as you can see the entire site is blank and all because of the minor modification in 'includes/functions.php':

Code:

Find:
___________________________________________________________________________________________

// get CSS width for outerdivwidth from outertablewidth

???????????????????????????????????????????????????????????????????????????????????????????

Above this, add:
___________________________________________________________________________________________

        // declares the arcade image directory
        $stylevar['imgdir_arcade'] = "images/arcade";

???????????????????????????????????????????????????????????????????????????????????????????

You can take a look at my modified 'includes/funtions.php' document here;

http://www.floridastreetscene.com/testforums/temp

Thanks for the help."

Well all that line is doing is making sure that you have the arcade image directory where it's supposed to be like in your /forum/images/arcade there really shouldn't be any problems as long as thats where you put the arcade images directory at. You should check it. If it is post back here and let me know.


All times are GMT. The time now is 04:28 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.05459 seconds
  • Memory Usage 1,920KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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