Viewonline.php and forum.php show two shoutbox's


Subject: 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

Subject: 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.

Subject: 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...

:(

Subject: 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

Subject: Re: Viewonline.php and forum.php show two shoutbox's
Another question...

is it this code ok?

Code: [Download] [Hide]
  1. 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 ) )  
  2. {  
  3. message_die(GENERAL_MESSAGE, $lang['Not_Auth_View']);  


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: [Download] [Hide]
  1. if (($userdata['user_posts'] > 1000) || (($userdata['user_level'] == ADMIN || $userdata['user_level'] == MOD) && !(($userdata['user_color_group'] == 23) || ($userdata['user_color_group'] == 24))))  
  2. {  
  3. $template->assign_block_vars('switch_show_shoutbox', array() );  


Thanks


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.0331s (PHP: 49% SQL: 51%)
SQL queries: 10 - Debug Off - GZIP Enabled