Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2004, 10:38 AM
vajb vajb is offline
 
Join Date: May 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 08-04-2004, 10:52 AM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #3  
Old 08-04-2004, 10:57 AM
vajb vajb is offline
 
Join Date: May 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 08-04-2004, 11:05 AM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 08-04-2004, 11:09 AM
vajb vajb is offline
 
Join Date: May 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Where you should place this below it:
Code:
	// arcade
	global $awards,$arcadegeneral;
So i ended up placing it "here" instead:
Code:
	// arcade
	global $awards,$arcadegeneral;
	// do alternate postbit types
Reply With Quote
  #6  
Old 08-04-2004, 11:13 AM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
and if you don't find exactly that, try looking for parts of it. It should be around line 85

I coudn't find the first part in the functions_showthread file either...
Reply With Quote
  #7  
Old 08-04-2004, 11:19 AM
vajb vajb is offline
 
Join Date: May 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #8  
Old 08-04-2004, 11:26 AM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



Once again, try going through the whole instructions...
Reply With Quote
  #9  
Old 08-04-2004, 11:41 AM
vajb vajb is offline
 
Join Date: May 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 08-04-2004, 04:05 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:04 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.04470 seconds
  • Memory Usage 2,259KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete