[xFv] Well-known member Aug 18, 2017 #1 This dont work in xf2. I seen a post somewhere with the correct way for xf2, but cant find it anymore.. Code: javascript:(function() {XenForo.alert($('#content').attr('class'), '', 5000);}()) Any hel is much appreciated!
This dont work in xf2. I seen a post somewhere with the correct way for xf2, but cant find it anymore.. Code: javascript:(function() {XenForo.alert($('#content').attr('class'), '', 5000);}()) Any hel is much appreciated!
Chris D XenForo developer Staff member Aug 18, 2017 #2 Is this a bookmarklet to display the current page template name? If so, this is the recommended approach in XF2: JavaScript: javascript:(function(){XF.flashMessage($('html').data('template'), 3000)}())
Is this a bookmarklet to display the current page template name? If so, this is the recommended approach in XF2: JavaScript: javascript:(function(){XF.flashMessage($('html').data('template'), 3000)}())