Page 1 of 2

installation issues

Posted: Tue Jun 14, 2005 2:43 am
by mynfel
I actually have most of the installation working, but two things appear to be incorrect. One is in the overall_header.tpl - with the lines:

<span class="mainmenu">&nbsp; &nbsp;<a href="{U_QUIZ}" class="mainmenu"><img src="templates/thorns/images/icon_mini_quiz.gif" width="12" height="13" border="0" alt="{L_QUIZ}" hspace="3" />{L_QUIZ}</a></span>

With this code, the link to Quiz shows up in the header - but the link doesn't go anywhere - just back to the index. I know the link exists because if I type in in manually (i.e. /thorns/quiz.php it works just fine. Thoughts?

Also when I go to actually click on a quiz and it starts up - underneath the title of the quiz is a box with an x - clicking on the box toggles the statistics bar. What graphic is supposed to be here?

I have several other mods installed, including the categories mod. Thanks.

Posted: Sat Jun 25, 2005 7:16 am
by battye
Have you changed the setting to Categories Hierachy installed? (Information on how to do this is in the install file).

As for the x issue, it sounds like you haven't uploaded the image files :)

The link issue was resolved in 1.0.6 :)

Posted: Tue Jul 12, 2005 7:44 am
by Jazz(FU)
I also installed 1.0.3 and have the ame problem with the link simply repeating the current page. I also have the latest version of the Cat Heirarchy mod installed on phpbb2.0.15

And yes, i set $categories_hierachy_on to "On" as instructed in the install file.

Posted: Tue Jul 12, 2005 9:23 am
by battye
I'm pretty sure I fixed that in 1.0.4 or 1.0.5, seeing the latest version is 1.0.6, I would suggest updating to it as that should fix the problem. Let me know how you go, thanks :)

Posted: Tue Jul 12, 2005 10:19 am
by Jazz(FU)
I am using 1.0.6

Posted: Tue Jul 12, 2005 10:22 am
by battye
Did you reapply the changes to page_header.php?

Posted: Tue Jul 12, 2005 10:48 am
by Jazz(FU)
reapply? These changes are the only ones i see.

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
#
includes/page_header.php
# 
#-----[ FIND ]------------------------------------------ 
#
	else
	{
		// We have a nested array, used for items like <link rel='chapter'> that can occur more than once.
		while( list(,$nested_array) = each($nav_array) )
		{
			$nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']);
		}
	}
}
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	// Check if there is only one quiz category
	if($board_config['quiz_one_category'] == "On")
	{
	$category_number = '1'; // Change this if for some reason you do not use id '1' as your only category
	$quizlink = append_sid('quiz.' . $phpEx . '?category=' . intval($category_number) . '');
	}
	
	else if($board_config['quiz_one_category'] == "Off")
	{
	$quizlink = append_sid("quiz.$phpEx");
	}
# 
#-----[ FIND ]------------------------------------------ 
#
	'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'),
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	'L_QUIZ' => $lang['L_quiz'],
	'U_QUIZ' => $quizlink,

Posted: Tue Jul 12, 2005 12:10 pm
by battye
This line is very important, make sure it is exactly as follows:

Code: Select all

$quizlink = append_sid('quiz.' . $phpEx . '?category=' . intval($category_number) . '');

Posted: Tue Jul 12, 2005 12:59 pm
by Jazz(FU)
battye wrote:This line is very important, make sure it is exactly as follows:

Code: Select all

$quizlink = append_sid('quiz.' . $phpEx . '?category=' . intval($category_number) . '');
exactly.

Posted: Tue Jul 12, 2005 1:04 pm
by battye
Can you please post a link to your site? Thanks :)

Posted: Tue Jul 12, 2005 1:08 pm
by Jazz(FU)
http://www.bornforthegame.com/forums/

If i type in http://www.bornforthegame.com/forums/quiz.php you get the quiz page, but the link in the header doesnt work.

Posted: Wed Jul 13, 2005 10:25 am
by Jazz(FU)
Any ideas?

Posted: Wed Jul 13, 2005 10:38 am
by battye
Have you got the one category setting on by any chance?

Posted: Wed Jul 13, 2005 2:51 pm
by Jazz(FU)
No that setting was not changed. The defeault is in place.

Code: Select all

$category_number = '1'; // Change this if for some reason you do not use id '1' as your only

Posted: Wed Jul 13, 2005 3:04 pm
by battye
Hmm, can you post the quiz section of overall_header.tpl please (the one you are using). I'm wondering if something hard-coded is there.