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
  #12  
Old 08-13-2011, 04:29 PM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@CouponWcents: can u post ur forum url ??
Reply With Quote
  #13  
Old 08-13-2011, 04:31 PM
CouponWCents CouponWCents is offline
 
Join Date: Jun 2011
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://www.couponwithcents.com" target="_blank">www.couponwithcents.com</a>
Reply With Quote
  #14  
Old 08-13-2011, 05:14 PM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@CouponWC :
I checked the Meta tag using seocentro .
See the result.

which means Meta tag description has been included from the Thread.

If there is any custom modification , check them.
Also check the URL structure.

http://i.imgur.com/bOgMM.jpg
Reply With Quote
Благодарность от:
CouponWCents
  #15  
Old 08-13-2011, 05:17 PM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@bosanci : Are you sure, you replaced the code in the correct template ??
Reply With Quote
  #16  
Old 08-13-2011, 06:21 PM
CouponWCents CouponWCents is offline
 
Join Date: Jun 2011
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would I check if there is any custom modification? Thanks so much for your help!
Reply With Quote
  #17  
Old 08-13-2011, 06:42 PM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@CWC : Did you check the Friendly URL settings ?
http://i.imgur.com/bOgMM.jpg

Who designed the vb Template ?
Reply With Quote
  #18  
Old 08-13-2011, 06:48 PM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@octavius : seems like when u pull images from another site, images are visible in facebook.
Reply With Quote
Благодарность от:
8thos
  #19  
Old 08-13-2011, 06:57 PM
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Location: Pensacola, FL
Posts: 772
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sivaganeshk View Post
@octavius : seems like when u pull images from another site, images are visible in facebook.
Oh wow so it does work. Thanks man!
Reply With Quote
  #20  
Old 08-13-2011, 07:04 PM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup
Reply With Quote
  #21  
Old 08-13-2011, 07:15 PM
CouponWCents CouponWCents is offline
 
Join Date: Jun 2011
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I changed it from Mod Rewrite to basic.

I designed it.
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 08:52 PM.


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.04718 seconds
  • Memory Usage 2,332KB
  • Queries Executed 28 (?)
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
  • (2)bbcode_code
  • (1)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (8)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)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_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