• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 Looking for this...

[xFv]

Previously Cylent1
#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!
 

Chris D

XenForo developer
Staff member
#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)}())