Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Help with include on index.template.php

Aloittaja jazz, maaliskuu 23, 2005, 02:16:45 AP

« edellinen - seuraava »

jazz

I'm trying to put an include tag on index.template.php for certain membergroups to view only.  The way that I have it, I'm getting a template parse error.

          <tr>
            <td height="19" colspan="3"> <div align="center">';
if (in_array(22, $user_info['groups']) || in_array(23, $user_info['groups']) || in_array(24, $user_info['groups']) || in_array(25, $user_info['groups'])
include '/home/carmmcom/public_html/forum/fanclub_menu.html';
                echo '</div></td>
          </tr>


What am I doing wrong?

[Unknown]

          <tr>
            <td height="19" colspan="3"> <div align="center">';
if (in_array(22, $user_info['groups']) || in_array(23, $user_info['groups']) || in_array(24, $user_info['groups']) || in_array(25, $user_info['groups']))
include '/home/carmmcom/public_html/forum/fanclub_menu.html';
                echo '</div></td>
          </tr>


Missing paren.

-[Unknown]

jazz

I had it with the 2 paren. initially, but I tried it again.

I get the following error.

2: in_array(): Wrong datatype for second argument
File: /home/carmmcom/public_html/forum/Themes/helios/BoardIndex.template.php (eval?)
Line: 146

[Unknown]

Try $GLOBALS['user_info'] in place of $user_info.

-[Unknown]

jazz


Advertisement: