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

see my post above...
Reply With Quote
  #23  
Old 11-04-2013, 12:40 PM
freepchelp freepchelp is offline
 
Join Date: Mar 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anything for vB 4.2?
Reply With Quote
  #24  
Old 11-04-2013, 07:45 PM
dizzynation's Avatar
dizzynation dizzynation is offline
 
Join Date: Jun 2011
Posts: 279
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tpearl5 View Post
See my reply above
Quote:
Originally Posted by tpearl5 View Post
Quote:
Originally Posted by tpearl5 View Post
see my post above...


Can anyone else other then the failed attempts of tpearl5 confirm that this works on 4.2?
Reply With Quote
  #25  
Old 11-09-2013, 03:19 PM
ramesh_umk3 ramesh_umk3 is offline
 
Join Date: Jul 2010
Location: Earth
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #26  
Old 11-09-2013, 05:34 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 ramesh_umk3 View Post
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
Reply With Quote
Благодарность от:
ramesh_umk3
  #27  
Old 11-09-2013, 05:43 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 dizzynation View Post
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
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 10:52 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.07444 seconds
  • Memory Usage 2,296KB
  • Queries Executed 24 (?)
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
  • (5)bbcode_code
  • (5)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
  • (7)post_thanks_box
  • (5)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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