vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Board Optimization - [SEO] Add Microdata Breadcrumbs (https://vborg.vbsupport.ru/showthread.php?t=277570)

mobile4persian 05-30-2013 12:30 PM

does it work on 4.2.1?

smirkley 05-30-2013 06:29 PM

Never tried it on 4.2.1, dont see why it wouldnt.

NOTE: I just noticed that if you are using Sections in CMS in the Suite, that the url isnt constructed properly.

I just used a vb:if/else statement and removed the bburl from vbcms entries.

ramesh_umk3 05-31-2013 08:26 AM

Quote:

Originally Posted by mobile4persian (Post 2424935)
does it work on 4.2.1?

it will work on any 4.x.x

mobile4persian 06-03-2013 04:25 PM

i changed it about 3-4 days ago but it doesn't seem to work:
https://www.google.com/search?q=site...l=np&source=hp

GamerPerfection 06-03-2013 05:39 PM

You'll have to wait a lot longer than 4 days for it to update on google.

humb 06-10-2013 08:52 PM

I make this change, I hope the results...

ramesh_umk3 06-11-2013 12:01 PM

you can check your results instantly mate, just place thread url and hit preview
http://www.google.com/webmasters/tools/richsnippets

jmorton 06-11-2013 12:26 PM

just installed on 4.2.1 and it is working.
utilizing microdata will pull more traffic!

gsmlover4u 11-09-2013 02:19 AM

1 Attachment(s)
Quote:

Originally Posted by smirkley (Post 2415847)
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.

i did as you said in post
but showing some error in http://validator.w3.org/
will you plz correct it

SPEEDKILLZ 11-09-2013 05:46 AM

gonna read later


All times are GMT. The time now is 09:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01173 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete