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

vbSEO overwrites this(my hack) changes. So contact vbSEO support/post it in their forum. .
Reply With Quote
  #33  
Old 12-01-2011, 08:01 PM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

disable vbSEO(if possible) and try this.
Reply With Quote
  #34  
Old 12-02-2011, 01:51 PM
MertTurk's Avatar
MertTurk MertTurk is offline
 
Join Date: Apr 2009
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to vbulletin support video support, and they said I did vseo did not help in this event please
Reply With Quote
  #35  
Old 12-02-2011, 02:02 PM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@MertTurk: can't get you ? can you rephrase it ?
Reply With Quote
  #36  
Old 12-02-2011, 03:03 PM
MertTurk's Avatar
MertTurk MertTurk is offline
 
Join Date: Apr 2009
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

facebook link to my site www.gruevo.com appears:? ?

Code:
<vb:each from="opengrapharray" key="property" value="content"> content="{vb:raw content}" /> <meta property="{vb:raw $threadinfo['description']}"
 </ vb: each>
did not help what I did, this code can perform
Reply With Quote
  #37  
Old 12-02-2011, 03:06 PM
MertTurk's Avatar
MertTurk MertTurk is offline
 
Join Date: Apr 2009
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that is: (((see picture

Attached Images
File Type: jpg 1.jpg (103.5 KB, 0 views)
Reply With Quote
  #38  
Old 12-02-2011, 03:13 PM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did u disable vbSEO ?
Reply With Quote
  #39  
Old 12-02-2011, 06:33 PM
MertTurk's Avatar
MertTurk MertTurk is offline
 
Join Date: Apr 2009
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vBSEO is disabled the mirror
Does this question has no answer Can not I vBSEO
Reply With Quote
  #40  
Old 12-03-2011, 07:38 AM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No. I guess.
Reply With Quote
  #41  
Old 12-03-2011, 09:27 AM
MertTurk's Avatar
MertTurk MertTurk is offline
 
Join Date: Apr 2009
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What will happen now, this problem does not improve please help
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 01:20 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.04646 seconds
  • Memory Usage 2,329KB
  • 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
  • (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
  • (1)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