Bienvenido, Invitado
Nombre de Usuario: Contraseña: Recordarme

TEMA: youtube bbcode broken?

youtube bbcode broken? 7 años 8 meses ago #20047

  • dazhelpwiz
  • Avatar de dazhelpwiz
  • Offline
  • Visitante
  • Mensajes: 6
  • Gracias recibidas 2
  • Karma: 1
Ive been using this shoutbox for quite a while now.
Since I upgrade from 0.9.6 (ive tried many versions between latest and now) the youtube links have been broken. I get this instead of the actual link.

[youtube]1_hKLfTKU5Y [/youtube]

It was fine before the update. Ive tried the usual clear the cache etc.

Any ideas?

Also is there a way to kill off inactive sessions so that if someone was to leave the page open but not be there we can stop the shoutbox from updating?
El administrador ha desactivado la escritura pública.

Re: youtube bbcode broken? 7 años 8 meses ago #20063

  • JoniJnm
  • Avatar de JoniJnm
  • Offline
  • Administrador
  • Mensajes: 4579
  • Gracias recibidas 544
  • Karma: 160
You have to write the url:
[youtube]http://www.youtube.com/watch?v=1_hKLfTKU5Y[/youtube]

I will add an option to write the video id :-)
Última Edición: 7 años 8 meses ago por JoniJnm.
El administrador ha desactivado la escritura pública.

Re: youtube bbcode broken? 7 años 8 meses ago #20085

  • dazhelpwiz
  • Avatar de dazhelpwiz
  • Offline
  • Visitante
  • Mensajes: 6
  • Gracias recibidas 2
  • Karma: 1
Hi thanks for the reply.

That doesnt work either :S it just posts in the shoutbox exactly how you have it written..

I tried to find what was different between 0.9.6 and the latest version but couldnt quite work it out. the reg exp looks the same so it must be done elsewhere?

in 0.9.6 you could literally just post the link and it would do its magic, now in both cases, and as your suggestion, they just post broken as explained/written. Sorry to be a pain. Theres no errors from php or the server in any logs.

Im thinking I may revert back to 0.9.6 for the time being and try again in a future update :)
Última Edición: 7 años 8 meses ago por dazhelpwiz.
El administrador ha desactivado la escritura pública.

Re: youtube bbcode broken? 7 años 8 meses ago #20088

  • JoniJnm
  • Avatar de JoniJnm
  • Offline
  • Administrador
  • Mensajes: 4579
  • Gracias recibidas 544
  • Karma: 160
I'm silly!

It works only with the ID.

The problem is, maybe, that you are using the free version. BBcode was in some free versions (my mistake), but I moved it to pro

If you have the pro version, can I look your site? (to test)
Última Edición: 7 años 8 meses ago por JoniJnm.
El administrador ha desactivado la escritura pública.

Re: youtube bbcode broken? 7 años 8 meses ago #20099

  • StepOne
  • Avatar de StepOne
  • Offline
  • Visitante
  • Mensajes: 15
  • Karma: 0
I am currently having this problem on my pro version of kide chat.
There seems to be a space added in there that is causing the problem, see what i put below.

[youtube]1_hKLfTKU5Y"space is right here"[/youtube]

If you change [youtube]1_hKLfTKU5Y [/youtube] to [youtube]1_hKLfTKU5Y[/youtube] it works.

Removing the space before [/youtube] seems to be the trick.
El administrador ha desactivado la escritura pública.

Re: youtube bbcode broken? 7 años 8 meses ago #20101

  • dazhelpwiz
  • Avatar de dazhelpwiz
  • Offline
  • Visitante
  • Mensajes: 6
  • Gracias recibidas 2
  • Karma: 1
yes I am using the free version. If its been moved to the pro version can we strip it completely from the free version so that it will just post youtube links like any other link and open in a new tab?
El administrador ha desactivado la escritura pública.

Re: youtube bbcode broken? 7 años 8 meses ago #20118

  • JoniJnm
  • Avatar de JoniJnm
  • Offline
  • Administrador
  • Mensajes: 4579
  • Gracias recibidas 544
  • Karma: 160
Fixed. Will be in the next version.

PD: The old messages won't be fixed, but the new messages, since you install the new version, will be ok
El administrador ha desactivado la escritura pública.
Los siguientes usuarios han agradecido: dazhelpwiz

Re: youtube bbcode broken? 7 años 8 meses ago #20133

  • dazhelpwiz
  • Avatar de dazhelpwiz
  • Offline
  • Visitante
  • Mensajes: 6
  • Gracias recibidas 2
  • Karma: 1
Thank you very much kind sir. :)
El administrador ha desactivado la escritura pública.

Re: youtube bbcode broken? 7 años 8 meses ago #20184

  • Houndy
  • Avatar de Houndy
  • Offline
  • Visitante
  • Mensajes: 11
  • Gracias recibidas 2
  • Karma: 2
dazhelpwiz escribió:
can we strip it completely from the free version so that it will just post youtube links like any other link and open in a new tab?
If you don't want to wait for next version, you can remove it by doing this:

In components/com_kide/helpers/kide.php:
$txt = preg_replace('# http://www.youtube.com/watch\?v=([^&]+)#', ' [youtube]\1[/youtube]', $txt);
Find and delete that line.
Última Edición: 7 años 8 meses ago por Houndy.
El administrador ha desactivado la escritura pública.
Los siguientes usuarios han agradecido: JoniJnm
Tiempo de carga de la página: 0.350 segundos