The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Blank showthread.php, anyone a wiz on this?
Started setting up my forum, got it to work the way I wanted (to start with) except for one thing, showthread.php ends up all white, so I suppose I've done a doodie in there somewhere. Since this is my first confrontation with vb3 I'm not familiar with it yet.
Think anyone can spot the error? Probably something small & stupid :/ v3Articles, v3Arcade, Statistics hacks installed. http://www.vajb.se/forums http://www.vajb.se/forums/showthread.php?t=1 Attaching showthread.php / functions_showthread.php. [edit] http://vajb.se/forums/announcement.php?f=2 - didn't work too well either |
#2
|
||||
|
||||
Well you get a valid error message if the thread isn't around. (t=88)
I also get a foreach error on line 653 of the functions_showthread file, which when I check in your file is something from the arcade I think it's missing the $awards variable, but I see a global $awards, so let's have a look at the showthread file as well... OK, it's not in the showthread file either. I don't know the arcade hack that well. Go through the instructions again and check if you did everything the way it says... |
#3
|
|||
|
|||
Okay, so if VB3 misses a variable it just doesn't ignore that "part" but blanks out the page instead?
I'll browse through the arcade straigth away. |
#4
|
||||
|
||||
it doesn't have anything to do with vBulletin but rather with PHP
you inserted code which asked it to do something with a variable. Because it can't find that variable (I'm assuming that's the problem) it displays an error. |
#5
|
|||
|
|||
Well the only thing that doesn't seem right straight away would be that it instructs me to find;
// ###################### Start getreputationimage ####################### and Add this Above it; Code:
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']; } } } Though, there is no get reputation image line, but - there is something i thought was similar, which made me add it before that part instead. Code:
// get reputation if ($vboptions['reputationenable']) { fetch_reputation_image($post, $checkperms["$post[userid]"]); $show['reputation'] = true; } else { $show['reputation'] = false; } This part did not exist in functions_showthread either: Code:
// sorts through all the stuff to return the postbit template Code:
// arcade global $awards,$arcadegeneral; Code:
// arcade global $awards,$arcadegeneral; // do alternate postbit types |
#6
|
||||
|
||||
I found the second part.
try looking for this: Code:
// ###################### Start getpostbit ####################### function construct_postbit($post, $maintemplatename = 'postbit', $alternate = '') { // sorts through all the stuff to return the postbit template I coudn't find the first part in the functions_showthread file either... |
#7
|
|||
|
|||
Sorted the secondpart, dunno how I could've missed it to be honest, still no result from trying to look at threads/announcements, hopeless.
Hmm, tried replacing showthread and includes/functions_showthread with the "original" ones from the vb package, still no result, hence the error is not in there. This might be the spot for me to express a loud Blah! |
#8
|
||||
|
||||
Once again, try going through the whole instructions... |
#9
|
|||
|
|||
Already did, think I'll just to the whole install procedure over again in a couple of hours when I get back, something lost track somewhere. Did follow the instructions for the arcade, and the article/ statistics weren't complicated nor deep enough to cause problems i reckon.
I normally just code my own stuff, a cs-gamingleague for a few friends, getting into someone elses code is just the worst thing |
#10
|
||||
|
||||
vajb: I have deleted the files from your first post.
Our board rules do not allow to upload full vb files. Just so you know of next time. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|