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

How to find the Xenforo template you need visually!

A widget to find all the templates in Xenforo visually. How do I see what a template looks like?

=MGN=RedEagle

Well-known member
#1

Chris D

XenForo developer
Staff member
#2
This is actually a really nice idea. Of course you can just look in the HTML source, but clicking a bookmark is obviously easier.

Here's a slightly "more XF" way of getting the same result. It uses an XF flash message and also uses jQuery. No particular benefit there apart from making the code snippet slightly shorter. The benefit of the flash message is that it doesn't need to be clicked to remove it. The "5000" is the number of milliseconds the message will be displayed for:

Code:
javascript:(function() {XenForo.alert($('#content').attr('class'), '', 5000);}())
 

=MGN=RedEagle

Well-known member
#5
Remember I cannot take credit! My good friend made this, he loves people enjoying his stuff so I am sure he is happy to see you guys helped!


This is actually a really nice idea. Of course you can just look in the HTML source, but clicking a bookmark is obviously easier.

Here's a slightly "more XF" way of getting the same result. It uses an XF flash message and also uses jQuery. No particular benefit there apart from making the code snippet slightly shorter. The benefit of the flash message is that it doesn't need to be clicked to remove it. The "5000" is the number of milliseconds the message will be displayed for:

Code:
javascript:(function() {XenForo.alert($('#content').attr('class'), '', 5000);}())
Shall I made this the new code? I like it better.