Foxum
Member
I have recently migrated some old stuff I had on my X1 forum from the https://xenforo.com/community/threads/what-addon-youtube-sub-button-in-signature.88225/#post-865898
Currently I have it working when I manually place in my channel ID into the "data-channelid" field. The "$user.Profile.custom_fields.youtube" seems to be incorrect and it does not yield my channel ID which is put inside of my account details custom field despite it being placed inside of currently the custom field is just text field under the name "youtube" nothing else changed from default.
Pretty much my goal is for whatever inside of the "YouTube" box on my profile above goes into the "data-channelid" below. I am quite confused even after looking at the documentation on https://xenforo.com/help/custom-user-fields/
Is the code
<xen:if is= $user.Profile.custom_fields.youtube>
div class="g-ytsubscribe" data-channelid="$user.Profile.custom_fields.youtube" data-layout="full" data-count="default"></div>
This is the API to play around with it https://developers.google.com/youtube/youtube_subscribe_button
Currently I have it working when I manually place in my channel ID into the "data-channelid" field. The "$user.Profile.custom_fields.youtube" seems to be incorrect and it does not yield my channel ID which is put inside of my account details custom field despite it being placed inside of currently the custom field is just text field under the name "youtube" nothing else changed from default.
Pretty much my goal is for whatever inside of the "YouTube" box on my profile above goes into the "data-channelid" below. I am quite confused even after looking at the documentation on https://xenforo.com/help/custom-user-fields/
Is the code
<xen:if is= $user.Profile.custom_fields.youtube>
div class="g-ytsubscribe" data-channelid="$user.Profile.custom_fields.youtube" data-layout="full" data-count="default"></div>
This is the API to play around with it https://developers.google.com/youtube/youtube_subscribe_button