Page 1 of 1
Help: Trying to convert [url] tag to [bbvideo], but for only one forum
Posted: Sat Jun 23, 2018 1:33 pm
by jtb33
I have an RSS feed that auto dumps into one specific forum and creates new topics with a subject and only a single link to a youtube video for the content. My forum detects that link and puts it into the
Code: Select all
[URL]http://www.youtube.com/linktovideo[/URL]
bbcode brackets to make it clickable. Is there any way for me to change it so that any youtube link in that forum will use
Code: Select all
[bbvideo]http://www.youtube.com/linktovideo[/bbvideo]
instead of the standard URL bbcode? The catch is that this change would [ideally] be for only that forum, though I suppose that as long as it only caught it for youtube.com links, forum-wide would probably be OK.
Suggestions?
Re: Help: Trying to convert [url] tag to [bbvideo], but for only one forum
Posted: Sat Jun 23, 2018 2:28 pm
by stevemaury
jtb33 wrote: ↑Sat Jun 23, 2018 1:33 pm
My forum detects that link and puts it into the bbcode brackets to make it clickable.
Can you show us the code that does that?
Re: Help: Trying to convert [url] tag to [bbvideo], but for only one forum
Posted: Sat Jun 23, 2018 2:54 pm
by jtb33
I may have mis-stated, so let me clarify. The extension I use is the "Feed Post Bot". Re:
viewtopic.php?f=456&t=2411596
and
https://www.phpbb.com/customise/db/exte ... edpostbot/
From the RSS feeds, it will apparently parse the RSS and finds this:
Code: Select all
<link rel="alternate" href="https://www.youtube.com/watch?v={randomalphanumerics}"/>
and in the resulting new topic, it changes it to:
Code: Select all
[url]https://www.youtube.com/watch?v={randomalphanumerics}[/url]
I'd like it to detect that since it's youtube, it use the [bbvideo] tags instead of URL tags so that it just imbeds the video in the topic. Maybe I should discuss this with the extension creator. I approached it here first, in case there was some functionality I wasn't aware of that was already part of the forum that I could use.
Re: Help: Trying to convert [url] tag to [bbvideo], but for only one forum
Posted: Sat Jun 23, 2018 4:29 pm
by stevemaury
jtb33 wrote: ↑Sat Jun 23, 2018 2:54 pm
Maybe I should discuss this with the extension creator.
Absolutely.