• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ phpBB, Simple Machines Forum (SMF), and Forum Software (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

parametreo para no dejar entrar a un grupo del foro

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
4 posts • Page 1 of 1

Postby andresgl » Tue Aug 14, 2012 8:08 pm

Hola!!

Cuando integro el chat a un foro phpbb3, cómo podría hacer para que un grupo del foro no tenga acceso al foro? ¿Qué parametro tendría que usar?

creo que el cófigo php sería:

Code: Select all
if ($user->data['group_id'] == id_grupo ) // ID del grupo que no tiene acceso al chat
{
$params[" parametro "] = false;
}

Espero que me puedan ayudar!!!


Muchas Gracias!!
Last edited by andresgl on Tue Aug 14, 2012 8:10 pm, edited 1 time in total.
andresgl
New member
 
Posts: 6
Joined: Mon Aug 13, 2012 12:41 am
Top

Postby re*s.t.a.r.s.*2 » Tue Aug 14, 2012 9:38 pm

Hola,

Puedes hacer esto..

Code: Select all
if ($user->data['group_id'] == id_grupo ) // ID del grupo que no tiene acceso al chat
{
header('Location: /')
}

colocalo antes que printees cual quier cosa en tu documento o te dara un error.

 gracias
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby andresgl » Tue Aug 14, 2012 10:51 pm

Muchas gracias por la ayuda re*s.t.a.r.s.*2

No se me había ocurrido hacer la redirección :P

Dejo el código bien ya que le hacía falta un ";"

Code: Select all
if ($user->data['group_id'] == id_grupo ) // ID del grupo que no tiene acceso al chat
{
header('Location: /'); //en la "/" hay que poner la dirección relativa de la página a la que se quiere redireccionar
}

--salu2"
Last edited by andresgl on Tue Aug 14, 2012 10:51 pm, edited 1 time in total.
andresgl
New member
 
Posts: 6
Joined: Mon Aug 13, 2012 12:41 am
Top

Postby re*s.t.a.r.s.*2 » Wed Aug 15, 2012 1:53 am

oh,

Me tiene enredado Javascript.. ya que este si permite dejar el semicolon.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top


Post a reply
4 posts • Page 1 of 1

Return to phpBB, Simple Machines Forum (SMF), and Forum Software (v1.x)

Who is online

Users browsing this forum: No registered users and 1 guest

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub