XF 2.0 Having trouble with moving X1 Custom Fields to X2

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
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
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
 
Back
Top Bottom