The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[SEO] Add Microdata Breadcrumbs Details »» | |||||||||||||||||||||||||||||
Hello.
Before you find out what this mod does, you need to have some knowledge of Microdata. Now its time to take advantage of this wonderful feature; and we will label our breadcrumbs to describe it's type to Google for better understanding and to presenting your site better in Google search result. In order add microdata tags in our breadcrumb here is what we need to do: (please take backup of your template before performing following steps) Step 1: Find and Replace everything in navbar_link template with the following code: Code:
<vb:if condition="$show['breadcrumb']"> <div itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"> <li class="navbit"><a href="{vb:raw nav_url}" itemprop="url"><span itemprop="title">{vb:raw nav_title}</span></a></li> </div> <vb:else /> <div itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"> <li class="navbit lastnavbit"><span><span itemprop="title">{vb:raw nav_title}</span></span></li> </div> </vb:if> Code:
Hit Save button !! Also check following articles for better understanding: http://support.google.com/webmasters...8472&ctx=topic http://support.google.com/webmasters...8472&ctx=topic http://support.google.com/webmasters...8472&ctx=topic Thank You Download Now
Screenshots
Show Your Support
|
14 благодарности(ей) от: | ||
Abhik, apaydin2148, eTiKeT?, Filgga, heyzeus909, iiioroh, JamalFree, Randhal007, RichieBoy67, sacobra, StormBreaker, xertox, zero477 |
Comments |
#42
|
|||
|
|||
That seemed to do the trick.
Verified and proven. Thanks given ramesh_umk3 ! |
#43
|
|||
|
|||
Since it is now displaying properly, I started to analyze the links themselves.
my example of how the microdata is displaying for me.... w ww.xxxxxx.com › ... › Main Category › Forum 1 - The main url is not hyperlinked 2 - the category link points to ht tp://www.xxxxxx.com/threads/forums/forum name 3 - the forum link points to ht tp://www.xxxxxx.com/threads/forums/forum name (spaces added in urls to prevent auto-linking here) Note the latter two are just completely incorrect as the "/threads" should not be in there at all in order to be a correct link on my site. Clicked on vB just returns "no thread specified" error. Note that my real breadcrumb links on my website are correct, in that the phrase "/threads" is not in the url. So somewhere between my site, and google, it is picking up and adding that phrase to the url. Any help would be severely appreciated. edit to add - I am testing a change with my root url hard coded into line 3 h ttp://www.xxx.com/{vb:raw nav_url} as I noticed in my page source example the urls do not contain the root domain in them, and I suspect that this is where the extra text is being injected into the microdata url, as the root url would be domain.com/thread in reference to where the breadcrumb exists to google. The change does reflect full url properly in my source now. This may fix problem 1,2, and 3 together. I will report back when I can see a change on google, good or bad. |
#44
|
|||
|
|||
OK, yup,... I am an idiot. lol
1 - I decided I was smart and changed the http://data-vocabulary.org references to use my domain url. Wrong, dont do it, leave it as is, it works and is not just someone elses domain. 2 - a href="{vb:raw nav_url}" does not work as described, the microdata url only appends the actual page spidered url to the url also in the address bar. IE: your threads and catagory links will look like this in microdata,... /threads/thread.... /forum/forums.... Dead 404's, not good. instead use this,... href="{vb:raw vboptions.bburl}/{vb:raw nav_url}" To make this mod work out of the box, use this code replacement which requires no editing to work on your forum no matter the url or sub directory location... Code:
<vb:if condition="$show['breadcrumb']"> <span itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"> <li class="navbit"><a href="{vb:raw vboptions.bburl}/{vb:raw nav_url}" itemprop="url"><span itemprop="title">{vb:raw nav_title}</span></a></li> </span> <vb:else /> <span itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"> <li class="navbit lastnavbit"><span><span itemprop="title">{vb:raw nav_title}</span></span></li> </span> </vb:if> Includes any necessary changes needed through this thread. |
#45
|
|||
|
|||
Quote:
|
#46
|
|||
|
|||
John,... you can test it out here and now using this tool if you dont want to wait.
http://www.google.com/webmasters/tools/richsnippets Just enter the url to one of your threads. |
Благодарность от: | ||
John Lester |
#47
|
|||
|
|||
I have just validated actual google results are correct with my modified version works as desired.
Now I just have to wait for the other thousands of other links of mine on google to get corrected from the original code attempt. |
#49
|
|||
|
|||
I am just surprised this mod isnt being used more.
It works, period. (modified of course) Yes I think people should bring their forums back in to the 21st century in the eyes of google. (etc) |
Благодарность от: | ||
Krusty1231 |
#50
|
||||
|
||||
Just installed this. Using the richsnippets it seems to be working.
|
#51
|
|||
|
|||
just installed now waits until google update my listing
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|