Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 YouTube profile ID regex
Zenk Offline
Junior Member
**
Posts: 27
Joined: Nov 2011
Post: #3
RE: YouTube profile ID regex
Thanks!

Code:
<if strpos($mybb->input['xthreads_kanaly'], 'youtube.com') !== false then>
substr(strrchr({VALUE}, '/'), 1)
<else>
{VALUE}
</if>


Will something like this work for Input Formatter?

@Edit: The if statement works, not sure how to trim the {VALUE}:

PHP Code:
substr(strrchr({VALUE}, '/'), 1)

(This post was last modified: 12-27-2014 11:18 AM by Zenk.)
12-27-2014 11:10 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
YouTube profile ID regex - Zenk - 12-27-2014, 09:48 AM
RE: YouTube profile ID regex - ZiNgA BuRgA - 12-27-2014, 10:38 AM
RE: YouTube profile ID regex - Zenk - 12-27-2014 11:10 AM
RE: YouTube profile ID regex - ZiNgA BuRgA - 12-27-2014, 05:00 PM
RE: YouTube profile ID regex - Zenk - 12-27-2014, 07:17 PM
RE: YouTube profile ID regex - ZiNgA BuRgA - 12-28-2014, 02:59 PM

 Standard Tools
Forum Jump: