Back to vBulletin 4.x Template Modifications

Meta tags - Thread description - Search Engine and Facebook share
Mod Version: 1.00, by sivaganeshk

vB Version: 4.1.4 Rating: (7 votes - 4.57 average) Installs: 45
Released: 13 Jul 2011 Last Update: Never Downloads: 0
Not Supported Template Edits Code Changes Re-usable Code Translations  

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?58-World-Trade-Center-HOAX?v=1

Otherwise check the meta details using
http://www.seocentro.com/tools/search-engines/metatag-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 : https://www.amazon.com/gp/wishlist/35WEWZGXOJSQC/

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024