Skocz do zawartości

Rekomendowane odpowiedzi

Opublikowano

need help on this code , for some reason the select forums is not workin i want this code to select the forums where the mod to show and also what groups allow to view the mod , this last one works.

<if=" in_array( intval( $this->forum['id'] ), explode(',',$this->ipsclass->vars['ae_extend_forums'] && in_array( $this->ipsclass->member['mgroup'] , explode(',' ,$this->ipsclass->vars['ae_extend_groups']) )">

this will go in a template bit

Opublikowano

yes the settings are made the mod is set and workin just that only part wont work the select forums. i've cheked also in settings for setting's key and seems fine ae_extend_forums and the Raw php code

if ( $save == 1)
{
if ( is_array($_POST['ae_extend_forums']) )
{
	$_POST['ae_extend_forums'] = implode(",",$_POST['ae_extend_forums']);
}
else
{
	$_POST['ae_extend_forums'] = "";
}

$key = 'ae_extend_forums';
}
if ( $show == 1 )
{
$key = 'ae_extend_forums[]';
}

Opublikowano

So it will be like this ryt?

<if=" in_array( intval( $this->ipsclass->input['f'] ), explode(',',$this->ipsclass->vars['ae_extend_forums'] && in_array( $this->ipsclass->member['mgroup'] , explode(',' ,$this->ipsclass->vars['ae_extend_groups']) )">

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.