Add-on [What Addon?] YouTube Sub Button in Signature


Well-known member
On a forum I frequent, a custom field allows users to enter their YouTube username. This causes a "Subscribe" button and subscriber counter to be added to their signature. What addon is this? Screenshot and link enclosed.

What addon is this?




Active member

Here you go :) I have got this working here:


Add YouTube Subscribe Button
Open "Templates" in "Appearance" tab.

Search for "message"

Add the following right above {xen:raw $messageAfterTemplate}

<br />
<br />
<xen:if is="{$}">
  <div class="g-ytsubscribe" data-channel="{$}" data-layout="full" data-count="default"></div>

In "Users" tab, click "Custom User Fields" and click "Create new field"

Field ID: youtube
Title: YouTube Channel
Description: Just your YouTube username, not the full link. For example, enter "mcnfreedom" and not ""

That's it!

How this works: If <script src=""></script> is anywhere in a template, such as the header, that's how it is being displayed.
I am new purchaser of XenForo and been loving it so far :)

I have it working "but" issue is that urls will not work for some youtube accounts who have not get 100 subs necessary to make url username. I did all the research and know solution to the problem but dont know what thing I need to change.

Problem is anytime someone enters their username into custom box it sends person enters) OR person enters)
These both go to same place just showing what could they be written as.

What needs to sent is: person enters)

Does anyone have an idea? I just have to change the url from "/C OR /Channel" to "/User"
Last edited: