Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[SEO] Add Microdata Breadcrumbs Details »»
[SEO] Add Microdata Breadcrumbs
Version: 1.00, by tafreeh tafreeh is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Category: Board Optimization - Version: 4.x.x Rating:
Released: 01-25-2012 Last Update: 01-25-2012 Installs: 167
Template Edits
 
No support by the author.

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>
Step 2:
Code:
Hit Save button !!
And That's it you are done. Now you just have to wait until Google show your website in search result like this:


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

File Type: txt Microdata_Breadcrumb.txt (460 Bytes, 504 views)

Screenshots

File Type: png Untitled.png (103.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 03-22-2013, 03:22 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That seemed to do the trick.

Verified and proven.

Thanks given ramesh_umk3 !
Reply With Quote
  #43  
Old 03-22-2013, 05:01 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #44  
Old 04-12-2013, 01:33 AM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
This is tested on my site and Google microdata test site.
Includes any necessary changes needed through this thread.
Reply With Quote
  #45  
Old 04-12-2013, 08:38 AM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by smirkley View Post
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>
This is tested on my site and Google microdata test site.
Includes any necessary changes needed through this thread.
Just implemented this change on all of my styles. Will report back when I see the results
Reply With Quote
  #46  
Old 04-12-2013, 11:50 AM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
John Lester
  #47  
Old 04-14-2013, 04:12 AM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #48  
Old 04-15-2013, 11:20 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup using smirkley's modified code brings excellent results
Reply With Quote
Благодарность от:
smirkley
  #49  
Old 05-13-2013, 02:25 AM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
Благодарность от:
Krusty1231
  #50  
Old 05-24-2013, 06:52 PM
GamerPerfection's Avatar
GamerPerfection GamerPerfection is offline
 
Join Date: Feb 2006
Posts: 389
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just installed this. Using the richsnippets it seems to be working.
Reply With Quote
  #51  
Old 05-25-2013, 05:53 PM
freak46 freak46 is offline
 
Join Date: Apr 2013
Location: Pakistan
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just installed now waits until google update my listing
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:49 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05652 seconds
  • Memory Usage 2,363KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (16)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete