Help: Trying to convert [url] tag to [bbvideo], but for only one forum

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
jtb33
Registered User
Posts: 76
Joined: Thu Dec 02, 2004 11:36 pm

Help: Trying to convert [url] tag to [bbvideo], but for only one forum

Post 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?
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52767
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Help: Trying to convert [url] tag to [bbvideo], but for only one forum

Post 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?
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
jtb33
Registered User
Posts: 76
Joined: Thu Dec 02, 2004 11:36 pm

Re: Help: Trying to convert [url] tag to [bbvideo], but for only one forum

Post 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.
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52767
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Help: Trying to convert [url] tag to [bbvideo], but for only one forum

Post by stevemaury »

jtb33 wrote: Sat Jun 23, 2018 2:54 pm Maybe I should discuss this with the extension creator.
Absolutely.
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
Post Reply

Return to “[3.2.x] Support Forum”