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)

Kane@airrifle 07-28-2016 02:48 PM

Any compelling SEO reason not to use Schema.org markup?

Code:

<vb:if condition="$show['breadcrumb']">
<div itemscope="itemscope" itemtype="https://schema.org/BreadcrumbList">
    <li class="navbit"><a href="{vb:raw nav_url}" itemprop="url"><span itemprop="name">{vb:raw nav_title}</span></a></li>
</div>
<vb:else />
<div itemscope="itemscope" itemtype="https://schema.org/BreadcrumbList">
    <li class="navbit lastnavbit"><span><span itemprop="name">{vb:raw nav_title}</span></span></li>
</div>
</vb:if>


boxingscene 09-23-2016 10:09 PM

Quote:

Originally Posted by marysnow786 (Post 2567092)
modules available for vb 3.8.x

What module does this on 3.8?

RichieBoy67 10-11-2016 07:04 AM

When running the live test I get a not found error and my thread shows like this:
http://############.com/showthread.php?t%3D211935

I have tried both scheme and data-vocab..

zorcocuq 02-10-2017 05:48 PM

1 Attachment(s)
An error on my site.

Kane@airrifle 02-11-2017 06:23 AM

I get better results with (VB4 - Mod Rewrite Friendly URLs)

Code:

<vb:if condition="THIS_SCRIPT != 'index'">
<vb:if condition="$show['breadcrumb']">
<span itemscope="itemscope" itemtype="https://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>
</span>
<vb:else />
<span itemscope="itemscope" itemtype="https://data-vocabulary.org/Title">
    <li class="navbit lastnavbit"><span itemprop="title">{vb:raw nav_title}</span></li>
</span>
</vb:if>
</vb:if>


Flipfloptrader 04-05-2017 08:43 AM

I used the schema.org reference and no errors.

Emad ELsayed 04-05-2017 12:00 PM

Quote:

Originally Posted by AutoFx (Post 2584754)
I used the schema.org reference and no errors.

Please ... how add code schema.org with vb4

Flipfloptrader 04-05-2017 12:28 PM

Quote:

Originally Posted by Emad ELsayed (Post 2584761)
Please ... how add code schema.org with vb4



Post 81 right above you.

Emad ELsayed 04-05-2017 12:38 PM

Quote:

Originally Posted by AutoFx (Post 2584754)
I used the schema.org reference and no errors.

Quote:

Originally Posted by AutoFx (Post 2584767)
Post 81 right above you.

Thank you dear
this is good

m7sen 08-17-2018 06:59 PM

any help please for vb3.8 ?

NeshteR054 10-20-2018 09:00 PM

Quote:

Originally Posted by m7sen (Post 2596028)
any help please for vb3.8 ?

Find your theme => navbar_link
replace
Code:

<if condition="$show['breadcrumb']">
<div itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
<span class="navbar"><a href="$nav_url" itemprop="url"><span itemprop="title">$nav_title</span></a></span></div>
<else />
<div itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
<span itemprop="title">$nav_title</span></div>
</if>


Kane@airrifle 01-22-2020 10:35 PM

So Google has depreacted data-vocabulary.org and some of us are getting warnings from Google. To that end; any Schema.org microdata experts care pick out problems with this code before I implement same?

In navbar_link

PHP Code:

<vb:if condition="$show['breadcrumb']">
    <
li class="navbit"><a href="{vb:raw nav_url}">{vb:raw nav_title}</a></li>
<
vb:else />
    <
li class="navbit lastnavbit"><span>{vb:raw nav_title}</span></li>
</
vb:if>

<
script type="application/ld+json">
{
 
"@context""http://schema.org",
 
"@type""BreadcrumbList",
 
"itemListElement":
    [
    {
   
"@type""ListItem",
   
"position""{vb:raw breadcounter}",
   
"item":
    {
     
"url""https://www.yourforumurl.com/{vb:raw nav_url}",
     
"name""{vb:raw vboptions.bbtitle} | {vb:raw nav_title}"
    
}
    }
    ]
}
</
script

As you can see I am leaving the default VB code in there as the styling is fine for me and Google prefers json for this application anyway.

*Edit: Added this plugin https://vborg.vbsupport.ru/showthread.php?t=323652 to take care of the static counter.

Hook Location: navbits
Plugin PHP Code:
PHP Code:

$breadcounter $counter;
vB_Template::preRegister('navbar_link', array('breadcounter' => $breadcounter)); 

Then add {vb:raw breadcounter} into the navbar_link template.

scottkoz20 01-23-2020 03:06 PM

only question I have is how is the position being updated if you have 1 static'd in?

scottkoz20 01-29-2020 12:29 AM

testing to this URL from the google search console --> https://www.sportscardforum.com/thre...t-Fat-Pack-Box

Got the following on a live test
Quote:

6 items detected: Some are invalid
Invalid items are not eligible for Google Search's rich results. Learn more
the last element is throwing the following

Quote:

Unnamed item
2 errors
type
BreadcrumbList
itemListElement
Missing field "position"
Either "name" or "item.name" should be specified
type
ListItem
item
id
https://www.sportscardforum.com/
type
Thing
title
Sports Card Forum

final kaoss 01-29-2020 05:17 PM

try this

https://vborg.vbsupport.ru/showthread.php?t=323652

scottkoz20 01-29-2020 08:12 PM

thanks gents!

final kaoss 01-31-2020 11:06 PM

1 Attachment(s)
This still needs some work on it. Breadcrumbs show a error in google webmaster tools.

It complains about

Error Missing field "position"

Inspection of an example url shows.

Kane@airrifle 02-01-2020 12:12 AM

Getting zero errors with https://vbulletin.org/forum/showpost...8&postcount=92

final kaoss 02-01-2020 12:15 AM

1 Attachment(s)
Here's what I was talking about. Detected it today with the fix implemented yesterday.

Kane@airrifle 02-01-2020 12:24 AM

I have noticed it can take about 3 days for the fix validation to come through. Do a live url test and it should show zero errors.

final kaoss 02-01-2020 12:32 AM

I'll give it a few days then, all of the live url test results look similar to the above SS.

Kane@airrifle 02-01-2020 12:43 AM

@final kaoss

Random url test from your site using the https://search.google.com/structured-data/testing-tool# Looks fine from here other than DBSEO seems to be doubling up the structure.

Attachment 157540

final kaoss 02-01-2020 12:53 AM

Quote:

Originally Posted by Kane@airrifle (Post 2601896)
@final kaoss

Random url test from your site using the https://search.google.com/structured-data/testing-tool# Looks fine from here other than DBSEO seems to be doubling up the structure.

Attachment 157540

Actually it's showing double the structure because I have an addon to display breadcrumbs a 2nd time, above the users browsing this thread box. So, that's intentional.

Kane@airrifle 02-01-2020 12:56 AM

<vb:if condition="$show['member']">
:D

webnsn 05-16-2020 06:21 AM

data-vocabulary.org schema is deprecated and not supported by Google anymore. Please migrate to using schema.org types. @ https://schema.org/docs/gs.html


All times are GMT. The time now is 07:32 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.01456 seconds
  • Memory Usage 1,784KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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