Quote:
Originally Posted by ChuanSE
Images should go into /forumroot/images/arcade/
no where else
I don't understand this doesn't work for you guyz, it's the easiest hack ever :x
describe your problems again from start of install...
Maybe we can help
|
I followed the instructions very well, even double and triple checked things. Everything workds great but the image directory.
Of course my images work becuase I put them in my main folder for now, but Ill explain below....
For 1. You had things in the install to edit that werent on some of our V3 files. Like this:
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'];
}
}
}
Some of us dont have this part in that PHP so alot of us added it here:
Code:
// 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'];
}
}
}
// ###################### Start doimicons #######################
Then for 2. This coudnt be done:
Code:
includes/functions.php
======================
Find:
___________________________________________________________________________________________
// get CSS width for outerdivwidth from outertablewidth
???????????????????????????????????????????????????????????????????????????????????????????
Above this, add:
___________________________________________________________________________________________
// declares the arcade image directory
$stylevar['imgdir_arcade'] = "images/arcade";
???????????????????????????????????????????????????????????????????????????????????????????
==============
Save and Close
==============
Everytime I did that edit I got a PHP error like this
Code:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/drewster/public_html/forums/includes/functions.php on line 1887