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)

Beth 07-05-2004 03:23 AM

I'm now getting the no permissions page with:
Quote:

Warning: Invalid argument supplied for foreach() in /home3/me/myname/www/forum/includes/functions.php on line 2853
but thats without the proper files.


Quote:

Originally Posted by Pixelgrounds
another vB upgrade... 3.0.3

So, will this hack work in 3.0.3???

i do give up.

Beth 07-05-2004 03:48 AM

Success. it installed templates to styleid 1 but not the rest. i had not got my styleid 1 set to show up.
Thanks for trying to help The Sandman

weitalia 07-05-2004 06:01 PM

Best hack i ever had on my forum,great job!!
The only negative is the phrasing,++++ i'm trying to do this by myself,but needs many time to spend.... :(

;)

Limey-YMR 07-05-2004 07:54 PM

This is a fantastic mod

I have Vbulletin 3.0.3 up and running and the only hitch was in the file includes/showthread.php the following is not there anymore
"// ###################### Start getreputationimage #######################"

Inserting the necessary code in where I next saw "reputation" code blew up cookies and all threads were not accessible.

So I used a little common sense and looked again, the code insertion was near the top so I popped it in above what looked like a new external function call for the reputation image.

here is what my file looks like that works fine with 3.0.3 now - note the // hack and // hack end comments delimiting the inseted arcade hack code.

require_once('./includes/functions_bbcodeparse.php');
//hack
if ($arcadegeneral['awardson']==1) {
// declares the arcade image directory
$stylevar['imgdir_arcade'] = "images/arcade";
$arcade_result = $DB_site->query("SELECT shortname,title,gamesettings,highscorerid,highscor e,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'];
}
}
}
//end hack
require_once('./includes/functions_reputation.php');

yinyang 07-05-2004 11:41 PM

i'm having a problem with individual game installations. since i've upgraded, i've been getting this error when i try to install a new game:

Warning: main(./global.php): failed to open stream: No such file or directory in /forum/games/zookeeper.game.php on line 13

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/lib/php:/tmp:/home:/usr/home:/usr/local/bin:/usr/share/') in /forum/games/zookeeper.game.php on line 13

perhaps i'm just installing it wrong. can someone give me a quick reply on exactly where to put the files?

so far, i put the images files in the /images/arcade folder (the .gifs)
i put the .swf and .php install file in the /games folder and run the .php from the browser.

it doesn't work and i get the above error. anyone have any ideas?

-yinyang

Erwin 07-06-2004 02:39 AM

This hack works with 3.0.3.

Beth 07-06-2004 03:03 AM

Quote:

Originally Posted by Erwin
This hack works with 3.0.3.

Perfect install. Such a relief.

alqafelah 07-06-2004 10:17 AM

nice hack but i can't install :(

whene i press the "Add Templates" button (first step) i got blank page !

can any one help me ?

thanks,

MinDxFlaW_BRH 07-06-2004 05:50 PM

Nvm, I got it to work perfectly

TexasAtvs 07-07-2004 03:25 AM

I need some help!

I edited all of the php files, then went to access my forums. I am getting this error on my forum home:

Unable to add cookies, header already sent.
File: /home/texasatv/public_html/forums/includes/functions.php
Line: 3827

Here is the code I edited. I thought I did everything correct? Can someone please help me!

$stylevar['outerdivwidth'] = $stylevar['outertablewidth'] . 'px';
}
else
{
$stylevar['outerdivwidth'] = $stylevar['outertablewidth'];
}
// declares the arcade image directory
$stylevar['imgdir_arcade'] = "images/arcade";
// get CSS width for divwidth from tablewidth
if (strpos($stylevar['tablewidth'], '%') === false)
{
$stylevar['divwidth'] = $stylevar['tablewidth'] . 'px';
}
else if ($stylevar['tablewidth'] == '100%')

JirQUEST 07-07-2004 03:32 AM

Quote:

Originally Posted by Beth
Success. it installed templates to styleid 1 but not the rest. i had not got my styleid 1 set to show up.
Thanks for trying to help The Sandman

hmm how did u solve this problem of urs? i am getting the same situation.

Beth 07-07-2004 05:01 AM

I couldnt be bothered repeating the process of creating the styles again so that the templates would be inherited, so i went into Style Manager-> All Style options. Then i chose the styles that didnt have the templates, selected Edit Settings from the drop down menu and at the top I changed the Parent style to be the one with the installed templates.

It just means that i have 1 parent style and 3 Child Styles of that group now, rather than 4 parent styles.

JirQUEST 07-07-2004 06:07 AM

Quote:

Originally Posted by Beth
I couldnt be bothered repeating the process of creating the styles again so that the templates would be inherited, so i went into Style Manager-> All Style options. Then i chose the styles that didnt have the templates, selected Edit Settings from the drop down menu and at the top I changed the Parent style to be the one with the installed templates.

It just means that i have 1 parent style and 3 Child Styles of that group now, rather than 4 parent styles.

damn.... still cant solve the prob. getting this error again and again:

Warning: Invalid argument supplied for foreach() in /home3/me/myname/www/forum/includes/functions.php on line 2853

JirQUEST 07-07-2004 06:42 AM

alright stupid me.... LOL got the prob solved somehow :D thanks for the help, beth :D

geovadim 07-07-2004 04:28 PM

What happens if I upgrade to 3.03? The arcade does not work anymore... Any solutions?

ConqSoft 07-07-2004 04:30 PM

Quote:

Originally Posted by geovadim
What happens if I upgrade to 3.03? The arcade does not work anymore... Any solutions?

You did go back through and make all the source code changes again, right?

Beth 07-07-2004 07:14 PM

Quote:

Originally Posted by JirQUEST
alright stupid me.... LOL got the prob solved somehow :D thanks for the help, beth :D

Good to hear. Anyone that has re-done all their work on version 3.0.3 I strongly suggest you record it somewhere so you don't have the same problem trying to get it to work again if you needed to use 3.0.3 for a fresh install or anthing like that. I didnt record it after trying me test forums and it was quite stupid of me not to so i would have a speedy upgrade of it to 3.0.3 on my live forums.

Yanks1343 07-07-2004 10:20 PM

I installed this mod and I have a small, well sorta small problem.

I did all the template changes for two of my 4 skins..

Default Liquid
-----Default Fixed

White Powder Liquid
-----White Powder Fixed

I did the edits for the two Liquid versions. I figured they would auto do it for the child skins.

So when everything was complete. I found out that I get blank pages on all the arcade pages on every skin accept White Powder Fixed. This doesn't make any sense.

So I went back and checked to see if the edits got erased some how. They didn't..

You can see here..

http://symptales.net/forums/?styleid=1

Please try and see how the arcade only shows up on White Powder Fixed.

I did skip one edit in the php files.

In the includes/functions_showthread.php

I couldn't find

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

What should I do? Could that be the problem?

Beth 07-07-2004 10:26 PM

If you read through the thread for the last few pages you'd have the answer to the getreputationimage.

Instead of putting the code into functions_showthread.php above this:
Code:

// ###################### Start getreputationimage #######################
Put it above this:
Code:

// ###################### Start doimicons #######################

yinyang 07-07-2004 10:34 PM

Quote:

Originally Posted by yinyang
i'm having a problem with individual game installations. since i've upgraded, i've been getting this error when i try to install a new game:


Warning: main(./global.php): failed to open stream: No such file or directory in /forum/games/zookeeper.game.php on line 13

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/lib/php:/tmp:/home:/usr/home:/usr/local/bin:/usr/share/') in /forum/games/zookeeper.game.php on line 13

perhaps i'm just installing it wrong. can someone give me a quick reply on exactly where to put the files?

so far, i put the images files in the /images/arcade folder (the .gifs)
i put the .swf and .php install file in the /games folder and run the .php from the browser.

it doesn't work and i get the above error. anyone have any ideas?

-yinyang


anyone have an answer to this? please help!

Beth 07-07-2004 10:41 PM

the php file needs to be in the admincp folder.

Yanks1343 07-07-2004 11:12 PM

Quote:

Originally Posted by Beth
If you read through the thread for the last few pages you'd have the answer to the getreputationimage.

Instead of putting the code into functions_showthread.php above this:
Code:

// ###################### Start getreputationimage #######################
Put it above this:
Code:

// ###################### Start doimicons #######################

Ok thanks.

hmm..it still didn't fix my problem with the skins. Any ideas for that?

Beth 07-07-2004 11:35 PM

Sorry I've no idea. I'm only a learner at this stuff. The solution i had for my problem was only worked out through what made sense on a test board so maybe someone with more experience can help.
Good luck. :)

Yanks1343 07-08-2004 04:56 AM

can anyone else help me with my skin problem?

alqafelah 07-08-2004 10:05 AM

Quote:

Originally Posted by alqafelah
nice hack but i can't install :(

whene i press the "Add Templates" button (first step) i got blank page !

can any one help me ?

thanks,

any body here ? :ermm:

yinyang 07-08-2004 10:13 AM

Quote:

Originally Posted by Beth
the php file needs to be in the admincp folder.

OMG, you are the best! i feel so stupid...well, i am so stupid.. but thank you thank you.

Yanks1343 07-08-2004 01:41 PM

Does anyone know how to help me?

I did all the template changes for two of my 4 skins..

Default Liquid
-----Default Fixed

White Powder Liquid
-----White Powder Fixed

I did the edits for the two Liquid versions. I figured they would auto do it for the child skins.

So when everything was complete. I found out that I get blank pages on all the arcade pages on every skin accept White Powder Fixed. This doesn't make any sense.

So I went back and checked to see if the edits got erased some how. They didn't..

You can see here..

http://symptales.net/forums/?styleid=1

Please try and see how the arcade only shows up on White Powder Fixed.

VinhVinh 07-08-2004 05:42 PM

Upgraded fine how ever my images are broken with the arcage.. instead of to images/arcade/ its just think the pictures are at root e.g http://www.domain.com/trophy.gif http://www.domain.com/chopper1.gif http://www.domain.com/arrow.gif http://www.domain.com/tetris1.gif etc etc

Anyone help???

Ordovicium 07-08-2004 10:24 PM

@John: Can you post an updated Version of the hack, which works with v3.0.3

Greets
Ordo

RichieBoy67 07-08-2004 11:01 PM

I simply love this arcade but I messed something up and now high scores are not bing recorded....

Help please... I have many members who love my arcade....

Yanks1343 07-09-2004 02:11 AM

Quote:

Originally Posted by Yanks1343
Does anyone know how to help me?

I did all the template changes for two of my 4 skins..

Default Liquid
-----Default Fixed

White Powder Liquid
-----White Powder Fixed

I did the edits for the two Liquid versions. I figured they would auto do it for the child skins.

So when everything was complete. I found out that I get blank pages on all the arcade pages on every skin accept White Powder Fixed. This doesn't make any sense.

So I went back and checked to see if the edits got erased some how. They didn't..

You can see here..

http://symptales.net/forums/?styleid=1

Please try and see how the arcade only shows up on White Powder Fixed.

Please help me

bonnmac 07-09-2004 03:48 AM

Quote:

Originally Posted by Yanks1343
Please help me

to fix that problem set 1 skin at a time as the default skin in vbulliten options run the arcade install again templets only do this for each skin problem solved

Yanks1343 07-10-2004 01:06 AM

Thanks ^_^

RichieBoy67 07-10-2004 01:13 AM

Can anyone offer me a fix????

Megareus Rex 07-10-2004 02:22 AM

It installed fime and everything, but when the link to it is clicked, by me, other admins/mods, or members, it says they don't have permission to access it. I checked all usergroup permissions and everything, but it still persists...

Megareus Rex 07-10-2004 02:40 AM

Nvm, i figured it out. I forgot to edit the global.php file. Thats what i get for trying to do it at 6am, after working w/ coding for the last 15 hours ^_^;;

ambrosious 07-10-2004 04:25 AM

Thanks, works great!

armkbdotcom 07-10-2004 10:09 AM

Just a quick question. Is there any Multiplayer games for this great hack so many users can play together? I had no chance to go deeper and investigate this myself, so if anyone could answer this I'll appreciate that.

VinhVinh 07-10-2004 07:06 PM

Quote:

Originally Posted by VinhVinh
Upgraded fine how ever my images are broken with the arcage.. instead of to images/arcade/ its just think the pictures are at root e.g http://www.domain.com/trophy.gif http://www.domain.com/chopper1.gif http://www.domain.com/arrow.gif http://www.domain.com/tetris1.gif etc etc

Anyone help???

Bump.. :(

bonnmac 07-10-2004 10:47 PM

Quote:

Originally Posted by VinhVinh
Bump.. :(

the images have to be inside the forum folder in images/arcade


All times are GMT. The time now is 09:35 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.03493 seconds
  • Memory Usage 1,841KB
  • 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
  • (4)bbcode_code_printable
  • (15)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