vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Show Thread Enhancements - [SEO Enhancement] rel="author" markup for thread starters (https://vborg.vbsupport.ru/showthread.php?t=266259)

valdet 07-03-2011 10:00 PM

[SEO Enhancement] rel="author" markup for thread starters
 
1 Attachment(s)
As with the new developments around schema.org standards, Google announced that they will highlight page authors in their search results as below.

https://vborg.vbsupport.ru/external/2011/07/49.png


To achieve this result in SERP's you need to apply authorship markup.

For vBulletin, this can be done by adding the rel="author" markup to the threads, so this tag will get linked to the profile page of thread starter.

In template postbit(_legacy) find:
Code:

<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
Replace it with:
Code:

<a <if condition="$thread['postuserid'] == $post['userid'] && $thread['firstpostid'] == $post['postid']">rel="author"</if> class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>

Example: Becoming A Health Insurance Agent

Only thread starter has the rel="author" tag applied:
Code:

<a rel="author" class="bigusername" href="http://www.insurance-forums.net/forum/healthagent-4/">healthagent</a>

Note: This won't mean all of your members will show up as authors in google search results. Google will consider as original authors only those who have linked their Google Profile pages to your forum.

Works on all vB 3.x

Further reading here

I hope you find it useful.

Manoel J?nior 07-05-2011 01:54 PM

Very Thanks... Installed

Brandon Sheley 07-05-2011 02:12 PM

Nice addition!

BirdOPrey5 07-05-2011 02:34 PM

Won't this put author attribute for every post on the page, not just the first post?

valdet 07-06-2011 10:32 AM

Actually Joe, the conditional makes sure that rel="author" tag will show up at the username of only the first post.

BirdOPrey5 07-06-2011 12:02 PM

Thanks. Missed that. :o

synseal 07-07-2011 02:21 PM

Hi, can this be done for VB4?.

TIA.

VBIran 07-09-2011 10:03 PM

For vb4 please

Forumi Shqiptar 07-10-2011 04:41 PM

Thanks Valdet very good mod

valdet 07-10-2011 07:32 PM

I don't use vB4 too much, but I will release the vB4 mod soon, once I get some free time.
Thanks all.

Humori, flm.


All times are GMT. The time now is 07:09 PM.

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.00992 seconds
  • Memory Usage 1,728KB
  • 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
  • (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
  • (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