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.

fai99al99 04-11-2012 03:24 PM

waiting for vb4 >>>

wacnstac 04-12-2012 08:21 PM

Don't see how this would work unless something like this was added to vb profile page:

<a rel="me" href="https://plus.google.com/11111000000XXXX/"> <img src="//www.google.com/images/icons/ui/gprofile_button-16.png"> </a>

Seems like we need another hack. this would make VB and vb profile pages work like Google suggests for multiple author pages. Seems like you'd have to allow another user profile field to accept the Google profile number and then create a hidden link in the form above on everyone's profile page, no?

tpearl5 05-01-2012 04:16 PM

Quote:

Originally Posted by wacnstac (Post 2319526)
Don't see how this would work unless something like this was added to vb profile page:

<a rel="me" href="https://plus.google.com/11111000000XXXX/"> <img src="//www.google.com/images/icons/ui/gprofile_button-16.png"> </a>

Seems like we need another hack. this would make VB and vb profile pages work like Google suggests for multiple author pages. Seems like you'd have to allow another user profile field to accept the Google profile number and then create a hidden link in the form above on everyone's profile page, no?

http://www.vbseo.com/f30/how-add-aut...-google-53067/

matrex722 05-28-2012 09:32 PM

is there any risk if i use this ? in search angine

PingCity 07-13-2012 03:52 PM

This can not be applied to vB 4.x

Could you please let us know how we can do this with vB 4.2 ?

Thank you.

tpearl5 07-13-2012 04:20 PM

Quote:

Originally Posted by PingCity (Post 2347619)
This can not be applied to vB 4.x

Could you please let us know how we can do this with vB 4.2 ?

Thank you.

See my reply above

PingCity 07-13-2012 05:07 PM

Quote:

Originally Posted by tpearl5 (Post 2347633)
See my reply above

Sorry but I can not find any reply related to adding rel=author to VB4.2. Could you please help?

Thank you.

tpearl5 07-14-2012 11:26 PM

Quote:

Originally Posted by PingCity (Post 2347645)
Sorry but I can not find any reply related to adding rel=author to VB4.2. Could you please help?

Thank you.

See my post in this modification: https://vborg.vbsupport.ru/showthrea...35#post2290535

PingCity 07-15-2012 12:18 AM

Quote:

Originally Posted by tpearl5 (Post 2348183)

Thank you.

Unfortunately it doesn't work on VB4.2.x

fizzow 08-28-2012 07:28 AM

Quote:

Originally Posted by valdet (Post 2219061)
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.

Any update on this for vB4?

tpearl5 08-28-2012 04:15 PM

see my post above...

freepchelp 11-04-2013 12:40 PM

anything for vB 4.2?

dizzynation 11-04-2013 07:45 PM

Quote:

Originally Posted by tpearl5 (Post 2347633)
See my reply above

Quote:

Originally Posted by tpearl5 (Post 2348183)

Quote:

Originally Posted by tpearl5 (Post 2360732)
see my post above...



Can anyone else other then the failed attempts of tpearl5 confirm that this works on 4.2? :)

ramesh_umk3 11-09-2013 03:19 PM

Yep this can be applied for vBulletin 4.x.x but different pattern follow below step - by - step procedure

1) Goto Style Manager --> SHOWTHREAD

2) Search for {vb:raw threadinfo.title}

Find:
Code:

<span class="threadtitle"><a href="{vb:raw thread_url}" title="{vb:rawphrase reload_this_page}">{vb:raw threadinfo.title}</a></span>
Replace with:
Code:

<span class="threadtitle"><a rel="author" href="{vb:raw thread_url}" title="{vb:rawphrase reload_this_page}">{vb:raw threadinfo.title}</a></span>
SEE DEMO BY VIEW SOURCE "rel=author" IS ADDED TO THREAD TITLE ONLY

And dont forget to apply this mod aswell https://vborg.vbsupport.ru/showthread.php?t=242579 ;)

tpearl5 11-09-2013 05:34 PM

Quote:

Originally Posted by ramesh_umk3 (Post 2459437)
Yep this can be applied for vBulletin 4.x.x but different pattern follow below step - by - step procedure

Sorry, but this is not how it should be done. You're basically saying the thread is the author.

If you want to use author tags effectively read up: https://support.google.com/webmaster.../2539557?hl=en

tpearl5 11-09-2013 05:43 PM

Quote:

Originally Posted by dizzynation (Post 2458222)
Can anyone else other then the failed attempts of tpearl5 confirm that this works on 4.2? :)

I see no reason it shouldn't work with the instructions I posted above. However, Google recently changed some things and will allow you to link directly to your Goolge+ profile. In this case I put a conditional around the Google + link for this mod to say "only put rel="author" in for the Goolge + link for the OP" . See instructions here: https://vborg.vbsupport.ru/showpost....&postcount=175


All times are GMT. The time now is 12:22 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.01295 seconds
  • Memory Usage 1,773KB
  • 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
  • (5)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete