http://www.icyphoenix.com/viewtopic.php?f=35&t=1120
-----------------------------------
Zuker
Tue 13 Feb, 2007 01:54

Viewonline.php and forum.php show two shoutbox's
-----------------------------------
From a momento to another i've got this error

Shoutbox is showing twice...

I've replacesd forum.php, index_boduy.tpl with original files and the error cointinues...

Test yourself

User: test
pass: 159753

www.eddb.com.ar/foro/forum.php

I'm using  058b

Greets


-----------------------------------
Mighty Gorgon
Tue 13 Feb, 2007 11:50

Re: Viewonline.php and forum.php show two shoutbox's
-----------------------------------
It is strange... are you sure it isn't a template issue?

It could be also related to shoutbox files or page_header.

Try to check.


-----------------------------------
Zuker
Tue 13 Feb, 2007 15:30

Re: Viewonline.php and forum.php show two shoutbox's
-----------------------------------
index_body.tpl it's ok... there is only one call to shoutbox.
I've replaced shoutbox files and the problem it's still there

When i arrive home i'll check to replace page_header.php...

 :(


-----------------------------------
Zuker
Wed 14 Feb, 2007 11:54

Re: Viewonline.php and forum.php show two shoutbox's
-----------------------------------
:mricy: solved

there was a problem with the "switch_show_shoutbox"

There was @ page_header.php & forum.php twice

My mistake


-----------------------------------
Zuker
Wed 14 Feb, 2007 11:59

Re: Viewonline.php and forum.php show two shoutbox's
-----------------------------------
Another question...

is it this code ok?

[code]if (  (($auth_level_req == AUTH_REG) && (!$userdata['session_logged_in'])) || ($userdata['user_posts'] < 1000) && ( $userdata['user_level'] != ADMIN && $userdata['user_level'] != MOD ) && ( $userdata['user_color_group'] != 23 ) && ( $userdata['user_color_group'] != 24 ) )
	{
		message_die(GENERAL_MESSAGE, $lang['Not_Auth_View']);
	}[/code]

This code it's on shoutbox.php files, and allow admin, mods, users with more than 1k messages, and users with some specific colour

I want to make a template switch for this code... but i can't make it

I've got this, but it doesn't work the "user_color_group" condition

[code]if (($userdata['user_posts'] > 1000) || (($userdata['user_level'] == ADMIN || $userdata['user_level'] == MOD) && !(($userdata['user_color_group'] == 23) || ($userdata['user_color_group'] == 24))))
{
	$template->assign_block_vars('switch_show_shoutbox', array() );
}[/code]

Thanks


