Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications

Reply
 
Thread Tools
[SEO Enhancement] rel="author" markup for thread starters Details »»
[SEO Enhancement] rel="author" markup for thread starters
Version: 1.00, by valdet valdet is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.7 Rating:
Released: 07-03-2011 Last Update: Never Installs: 33
Template Edits
Re-useable Code Translations  
No support by the author.

As with the new developments around schema.org standards, Google announced that they will highlight page authors in their search results as below.




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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
4 благодарности(ей) от:
Brandon Sheley, m7sen, Manoel J?nior, xorex

Comments
  #12  
Old 04-11-2012, 03:24 PM
fai99al99 fai99al99 is offline
 
Join Date: Sep 2011
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

waiting for vb4 >>>
Reply With Quote
  #13  
Old 04-12-2012, 08:21 PM
wacnstac wacnstac is offline
 
Join Date: Nov 2001
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #14  
Old 05-01-2012, 04:16 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wacnstac View Post
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/
Reply With Quote
  #15  
Old 05-28-2012, 09:32 PM
matrex722's Avatar
matrex722 matrex722 is offline
 
Join Date: Jan 2007
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any risk if i use this ? in search angine
Reply With Quote
  #16  
Old 07-13-2012, 03:52 PM
PingCity PingCity is offline
 
Join Date: Jun 2012
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 07-13-2012, 04:20 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PingCity View Post
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
Reply With Quote
  #18  
Old 07-13-2012, 05:07 PM
PingCity PingCity is offline
 
Join Date: Jun 2012
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tpearl5 View Post
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.
Reply With Quote
  #19  
Old 07-14-2012, 11:26 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PingCity View Post
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
Reply With Quote
  #20  
Old 07-15-2012, 12:18 AM
PingCity PingCity is offline
 
Join Date: Jun 2012
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tpearl5 View Post
Thank you.

Unfortunately it doesn't work on VB4.2.x
Reply With Quote
  #21  
Old 08-28-2012, 07:28 AM
fizzow fizzow is offline
 
Join Date: Oct 2009
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by valdet View Post
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?
Reply With Quote
Reply

Thread Tools

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 12:04 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.05046 seconds
  • Memory Usage 2,327KB
  • 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
  • (3)bbcode_code
  • (6)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
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete