Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Meta tags - Thread description - Search Engine and Facebook share Details »»
Meta tags - Thread description - Search Engine and Facebook share
Version: 1.00, by sivaganeshk sivaganeshk is offline
Developer Last Online: Jun 2018 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.1.4 Rating:
Released: 07-12-2011 Last Update: Never Installs: 44
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

This simple trick allows you to change Thread's Meta tag from ForumHome Meta details to thread description.


Before :



After :


Instruction :

Edit facebook_opengraph in the template

Replace :
Code:
<vb:each from="opengrapharray" key="property" value="content"><meta property="{vb:raw property}" content="{vb:raw content}" />
</vb:each>
with

Code:
<vb:each from="opengrapharray" key="property" value="content"><meta property="{vb:raw $threadinfo['description']}" content="{vb:raw content}" />
</vb:each>
That's all.

Now when you share in facebook, you will see the Thread desc as the meta tag.


Disclaimer :
  • I tried changing many codes in Template and finally succeeded. So I am not responsible if there is any problem.
  • Length of Meta Keyword/description may be greater than 200 words.

P.S :
Facebook caches the meta title and desc. when you try to share any link. In that case, you won't see any new meta details. So add ?v=1 or &p=19 [something like that]
eg. http://collegers.net/showthread.php?...enter-HOAX?v=1

Otherwise check the meta details using
http://www.seocentro.com/tools/searc...-analyzer.html

**If you are using vbSEO , this Mod is not necessary

Demo : http://collegers.net/forum.php

(edited on 17 Oct )
P.P.S : Support me to buy a new Macbook Pro. Please donate if this Mod helped you.
Amazon Wishlist : http://www.amazon.com/gp/wishlist/35WEWZGXOJSQC/

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
6 благодарности(ей) от:
8thos, eTiKeT?, hexeditor, jokergameth, tacklebox joe, The Rocketeer

Comments
  #42  
Old 12-03-2011, 09:15 PM
MertTurk's Avatar
MertTurk MertTurk is offline
 
Join Date: Apr 2009
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

alo help
Reply With Quote
  #43  
Old 01-19-2012, 11:33 PM
xertox xertox is offline
 
Join Date: Apr 2011
Location: Westlock AB
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a mod to do this with regular meta tags?

Currently when I share a link from my forums at a non facebook site it defaults to my TLD and basic description...
Reply With Quote
  #44  
Old 01-20-2012, 11:44 AM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@xertox : So it works with Facebook ? What meta details you see in seocentro ?
PM me the forum URL.
Reply With Quote
  #45  
Old 01-20-2012, 12:03 PM
xertox xertox is offline
 
Join Date: Apr 2011
Location: Westlock AB
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@sivaganeshk The information appears to be correct in SEOcentro...


Title: 70 Muhammad Ali talks man down from a ledge - 1981 - Fatwillie.Net Forums

Description: 190 Muhammad Ali turns 70 today. Here's some amazing footage of him stopping a suicide attempt in 1981. https://www.youtube.com/watch?v=KNuT...eature=related Happy Birthday Muhammad!

Keywords: 181 muhammad ali, video, muhammad, stopping, footage, attempt, happy, birthday, https://www.youtube.com/watch?v=knut...eature=related, amazing, suicide, today, talks, ledge, turns

Here's the thing though. When I share a link to twitter or meebo the preview only pulls the info you see in the attachment I provided using the same URL I used in centro.
Attached Images
File Type: jpg twitter.jpg (21.3 KB, 0 views)
File Type: jpg meebo.jpg (24.2 KB, 0 views)
Reply With Quote
  #46  
Old 01-20-2012, 12:19 PM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I click the twitter button(via AddThis) above the first post - right corner, it shows the Title of the thread in the tweet.
Reply With Quote
  #47  
Old 01-20-2012, 12:24 PM
xertox xertox is offline
 
Join Date: Apr 2011
Location: Westlock AB
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same goes for me... but if you submit the tweet, it looks like this. One thing I did notice though is that my meta tags are missing some information...

Code:
<meta property="" content="xxxxx" />

<meta property="" content="Fatwillie.Net - Forums" />

<meta property="" content="Media for People Who Like Media" />

<meta property="" content="http://www.fatwillie.net/forum/showthread.php?3749-Yesterdays-SOPA-Blackout-Was-a-Total-Success" />

<meta property="" content="article" />
There is no information in property="" That seems a little odd. Plus there is two more meta tags a little further down.

Code:
<meta name="keywords" content="blackout, sopa, success, relief, support, shifted, http://boingboing.net/2012/01/19/how...kout-affe.html, breathing, total, yesterdays" />

	<meta name="description" content="I'm breathing a sigh of relief now that SOPA support has shifted.
Attached Images
File Type: jpg twitter2.jpg (23.7 KB, 0 views)
Reply With Quote
  #48  
Old 01-20-2012, 12:46 PM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you install any other SEO plugins or make changes in header ?
It feels like Twitter , meebo and few others pulls the meta property that is available first on the page.

Try to *undo* any edits in template
Reply With Quote
  #49  
Old 01-20-2012, 01:58 PM
xertox xertox is offline
 
Join Date: Apr 2011
Location: Westlock AB
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just discovered that changing the facebook_opengraph template makes my meta tags go from this....

Code:
<meta property="fb:app_id" content="xxxxxxx" />

<meta property="og:site_name" content="Fatwillie.Net - Forums" />

<meta property="og:description" content="Media for People Who Like Media" />

<meta property="og:url" content="http://www.fatwillie.net/forum/showthread.php?3749-Yesterdays-SOPA-Blackout-Was-a-Total-Success" />

<meta property="og:type" content="article" />
To this...

Code:
<meta property="" content="xxxxxxx" />

 <meta property="" content="Fatwillie.Net - Forums" />

 <meta property="" content="Media for People Who Like Media" />

 <meta property="" content="http://www.fatwillie.net/forum/showthread.php?3749-Yesterdays-SOPA-Blackout-Was-a-Total-Success" />

 <meta property="" content="article" />
I'm no expert but I am pretty sure it's not supposed to do that... Once I reverted my opengraph template my meta tags returned to normal...

I'm using 4.1.10
Reply With Quote
  #50  
Old 01-22-2012, 05:47 PM
RedPoint RedPoint is offline
 
Join Date: Oct 2007
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

run this changes with vers 4.1.10 ?
Reply With Quote
  #51  
Old 01-23-2012, 10:42 AM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@redpoint: yup. It works.
@xertox : can I look into your settings?
Reply With Quote
Reply


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 02:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06973 seconds
  • Memory Usage 2,340KB
  • 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
  • (6)bbcode_code
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (6)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
  • (3)postbit_attachment
  • (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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete