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

Implemented [Suggestion] HTML5 microdata

NolF

Active member
#1
So reading a recent article on HTML5 I saw that it doesn't look like it has been implemented here at xenForo. It looks to be very valuable and relatively simple to implement though perhaps quite laborious. I think that it is important to implemented now so no radical template changes will be required in the future.
 

Forsaken

Well-known member
#2
So reading a recent article on HTML5 I saw that it doesn't look like it has been implemented here at xenForo. It looks to be very valuable and relatively simple to implement though perhaps quite laborious. I think that it is important to implemented now so no radical template changes will be required in the future.
Give an example of why it would be valuable?

Microformats didn't get that large an adoption rate in the first place, and it remains to be seen if it'll happen with HTML5, though it would be nice. 
 

NolF

Active member
#3
Mostly for SEO. Google records microdata and is how it shows the stars when you search for a movie title and imdb comes up, in some discussion boards, it shows up the number of posts and when the last post was. This could be extended to member profile indicating registered date, location and the like. IT would be very good for attachments (if they can be tagged) or when an album like feature is added. It will also be excellent for CMS (even if it is a custom one) to include the author date etc...
 
F

Floris

Guest
#4
XenForo already shows in Google with thread+ thread_data information.
And if you view the source code here you can see the breadcrumb is also adapted already :)

Good stuff.
 

Kier

XenForo Developer
Staff member
#8
Pretty much what we have then?

Where else do you think we could make use of microdata?
HTML:
<span class="crumbs">
	<span class="crust" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
		<a href="http://xenforo.com/" class="crumb" rel="up" itemprop="url"><span itemprop="title">Home</span></a>
		<span class="arrow"><span></span></span>
	</span>
	<span class="crust" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
		<a href="http://xenforo.com/community/" class="crumb" rel="up" itemprop="url"><span itemprop="title">Forums</span></a>
		<span class="arrow"><span>&gt;</span></span>
	</span>
	<span class="crust" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
		<a href="http://xenforo.com/community/#xenforo-suggestions.17" class="crumb" rel="up" itemprop="url"><span itemprop="title">XenForo Suggestions</span></a>
		<span class="arrow"><span>&gt;</span></span>
	</span>
	<span class="crust" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
		<a href="http://xenforo.com/community/forums/suggestions-bigger-features.9/" class="crumb" rel="up" itemprop="url"><span itemprop="title">Suggestions: Bigger Features</span></a>
		<span class="arrow"><span>&gt;</span></span>
	</span>
</span>