phpBB [media]: one bbcode for audio, video, maps, panoramas, etc.

Список разделов phpBBex in English General

Описание: General discussion about phpBBex.
Модератор: Поддержка

Сообщение #21 VEG » 30.06.2014, 20:34

eirki, check your page for JS errors. Any JS error on your page stops execution of JavaScript on your pages. BB [media] can't work without it.
VEG M
Автор темы, Администратор
Аватара
Откуда: Finland
Репутация: 1670
С нами: 12 лет 8 месяцев

Сообщение #22 kuko61 » 22.10.2014, 21:05

Hallo, i add [media] BBcode to our forum. Embedding works well, except google panoramas.
There is a possibility to embed panoramas from Google maps?
URL examples:
Код: Выделить всё
https://www.google.com/maps/views/u/0/view/115913791291134036336/gphoto/6063143057338202850?gl=us&heading=40&pitch=90&fovy=90
https://www.google.sk/maps/@48.1430761,16.9490082,3a,90y,84.09h,89.27t/data=!3m5!1e1!3m3!1sZ40NsVmmpp0AAAQW-a1yDA!2e0!3e11
Thank you
kuko61
Гость

Сообщение #23 VEG » 03.11.2014, 12:43

kuko61, I've added this type of URLs in my TODO list.
VEG M
Автор темы, Администратор
Аватара
Откуда: Finland
Репутация: 1670
С нами: 12 лет 8 месяцев

Сообщение #24 Douglas3362 » 28.12.2015, 14:12

Hi,
:help:
Don't work with Garmin Connect...
Do you work on an update?
Douglas3362
Гость

Сообщение #25 Sumanai » 28.12.2015, 15:19

Sorry, but the author had not updated bbсode, afraid to add support for new services it will not be.
Sumanai M
Аватара
Репутация: 1677
С нами: 11 лет 10 месяцев

Сообщение #26 sina92 » 14.01.2016, 20:14

I can't figure out how to embed an .mp4 attachment into my post on my phpbb forum.

I've followed this great guide guide: /viewtopic.php?t=29, but unfortunately it doesn't apply to attached .mp4 files it seems.

[media]http: //blablabla[/media] works for videos on the internet, but what should I write if I want to embed an attached video?

xxxx.mp4
gives me a plug in error.

Anyone has any idea?

Best regards
sina92
Репутация: 0
С нами: 8 лет 11 месяцев

Сообщение #27 Гость » 20.01.2016, 03:21

phpBB [media]
Гость
Гость

Сообщение #28 voomm » 01.08.2016, 00:16

Hi!
I use the bbmedia.js in Version 1.0 from 2012 in a phpBB 3.1.9 Forum and it works nicely. In order to get all those new additions working I installed the new version 1.69 but now for any embed I get "Invalid BBCode" error message. I replaced the old BBCode with the one from this thread and I tried including the js locally as well as from the phpbbex-URL. Any idea what might go wrong?
Greetings, voom
voomm
Гость

Сообщение #29 Sumanai » 01.08.2016, 00:28

Can you provide a link to the message witch error?
Sumanai M
Аватара
Репутация: 1677
С нами: 11 лет 10 месяцев

Сообщение #30 RrrrobbbB » 24.02.2017, 21:37

When I implement both [Media] and [Media=] to my board, the [Media] won't work again after [Media=] has been used. Not even deleting the post with the [Media=] will repair the ones with just [Media]. It seems that the server regards them not as two different functions, but one, and that [Media=] has overwritten [Media]

Earlier today I had a similar problem with [VIDEO] and [VIDEO=].

Is there a way to fix this? (I can think of a workaround but that's not a neat solution. People should be able to use [Media] both as it is and with specified dimensions.

Oh, my board uses phpBB v. 3.2
RrrrobbbB
Гость

Сообщение #31 Sumanai » 24.02.2017, 23:46

RrrrobbbB:Oh, my board uses phpBB v. 3.2
Use XSLT, see:
https://area51.phpbb.com/phpBB/viewtopic.php?t=44467&start=150#p298531
Sumanai M
Аватара
Репутация: 1677
С нами: 11 лет 10 месяцев

Сообщение #32 RrrrobbbB » 25.02.2017, 01:08

Hey thanks that actually works!!

Код: Выделить всё
[media={INTTEXT;optional}]{URL}[/media]

Код: Выделить всё
<xsl:choose>
   <xsl:when test="@*">
      <div class='bbmedia' data-url='{URL}' data-args='{INTTEXT}' style='margin: 1px; display: inline-block; vertical-align: bottom;'><div style='width: 200px; height: 40px; border: 1px solid #999; display: table-cell; text-align: center; vertical-align: middle; font: 10px/10px Verdana; color: #555; opacity: 0.5;'><a style='color: #105289; text-decoration: none;' href='http://phpbbex.com/' target='_blank'>phpBB</a> &#91;media&#93;</div><script>if (typeof bbmedia == 'undefined') { bbmedia = true; var e = document.createElement('script'); e.async = true; e.src = 'http://phpbbex.com/api/bbmedia.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); }</script></div>
   </xsl:when>
   <xsl:otherwise>
      <div class='bbmedia' data-url='{URL}' style='margin: 1px; display: inline-block; vertical-align: bottom;'><div style='width: 200px; height: 40px; border: 1px solid #999; display: table-cell; text-align: center; vertical-align: middle; font: 10px/10px Verdana; color: #555; opacity: 0.5;'><a style='color: #105289; text-decoration: none;' href='http://phpbbex.com/' target='_blank'>phpBB</a> &#91;media&#93;</div><script>if (typeof bbmedia == 'undefined') { bbmedia = true; var e = document.createElement('script'); e.async = true; e.src = 'http://phpbbex.com/api/bbmedia.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); }</script></div>
   </xsl:otherwise>
</xsl:choose>

The only somewhat bothering fact is that now the button is called media= instead of just media. I tried to get rid of the space before the = by insterting a space in the code before it (media =) but that renders the tag non-functioning.

Is there way to set how the tag appears in the Posting Page interface? (It would also be cool to have an icon instead of the text, but I suppose that is virtually impossible.)

Добавлено спустя 5 минут 32 секунды:
PS It *did* work, but now it doesn't anymore. Weird. Maybe I damaged the code by copying it.
RrrrobbbB
Гость

Сообщение #33 Sumanai » 25.02.2017, 03:02

RrrrobbbB:PS It *did* work, but now it doesn't anymore. Weird. Maybe I damaged the code by copying it.
This code works for me. Maybe, your site work on HTTPS?
Sumanai M
Аватара
Репутация: 1677
С нами: 11 лет 10 месяцев

Сообщение #34 RrrrobbbB » 25.02.2017, 18:10

It works again. I'm not sure why my site sometimes won't work but it seems to be an artifact of implementing new code, not something that would occur when all the code is tested and approved.

Back to my question: is there a way to hide the = sign from the button on the posting page (so that I can have "Media" rather than "Media=")?
RrrrobbbB
Гость

Сообщение #35 maxelocked » 03.04.2017, 00:15

Hello, is not working google maps.

It said, that the URL is not supported.

This is the link that i use for my country, that is ARgentina.

Код: Выделить всё
https://www.google.com.ar/maps/dir/-34.5678535,-58.5592722/Tigre,+Buenos+Aires/@-34.5065587,-58.6149428,12z/data=!3m1!4b1!4m9!4m8!1m0!1m5!1m1!1s0x95bca5a2d0ddb9b1:0x2c1a974c67cba1e4!2m2!1d-58.5796585!2d-34.425087!3e0?hl=es

As you can see the url the google maps give you to share is that

Example:
phpBB [media]


In my forum i am using 3.2

HOpe you can help me.
Best regards.
maxelocked
Репутация: 0
С нами: 7 лет 8 месяцев

Сообщение #36 Francois » 06.06.2019, 13:27

Hi :hi: ,

Does It work with Facebook videos?
A border surround the video on my template...

Thanks!! :wink:
Francois
Репутация: 0
С нами: 5 лет 6 месяцев

Сообщение #37 Sumanai » 06.06.2019, 19:02

Unlikely. The code has no active support.
Sumanai M
Аватара
Репутация: 1677
С нами: 11 лет 10 месяцев

Сообщение #38 Francois » 07.06.2019, 12:18

Yes, I've installed this, an official Extension of phpBB.
And it works fine.

Have a nice day!! :)
Francois
Репутация: 0
С нами: 5 лет 6 месяцев

Сообщение #39 Sumanai » 07.06.2019, 17:43

These are different solutions.
Sumanai M
Аватара
Репутация: 1677
С нами: 11 лет 10 месяцев

Пред.

Вернуться в General



cron