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%')


All times are GMT. The time now is 09:55 PM.

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.05361 seconds
  • Memory Usage 1,746KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (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