View Full Version : Miscellaneous Hacks - Meta tags - Thread description - Search Engine and Facebook share
sivaganeshk
07-12-2011, 10:00 PM
This simple trick allows you to change Thread's Meta tag from ForumHome Meta details to thread description.
Before :
https://vborg.vbsupport.ru/external/2011/07/77.jpg
After :
https://vborg.vbsupport.ru/external/2011/07/78.jpg
Instruction :
Edit facebook_opengraph in the template
Replace :
<vb:each from="opengrapharray" key="property" value="content"><meta property="{vb:raw property}" content="{vb:raw content}" />
</vb:each>
with
<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 : http://www.amazon.com/gp/wishlist/35WEWZGXOJSQC/
Krusty1231
07-13-2011, 11:20 PM
This maybe exactly what I needed.
Thank you. Installed and working most excellent.....very much appreciated....was exactly what I wanted!
sivaganeshk
07-14-2011, 11:40 AM
This maybe exactly what I needed.
Thank you. Installed and working most excellent.....very much appreciated....was exactly what I wanted!
Thanks. :)
8thos
07-22-2011, 05:36 AM
I've been searching for this everywhere tonight. Thanks a lot!
8thos
07-22-2011, 06:20 AM
How do you include images in first post?
sivaganeshk
07-22-2011, 10:59 AM
How do you include images in first post?
To display the necessary image(thumbnail) from First post , you need to click the Arrow.
https://vborg.vbsupport.ru/external/2011/07/54.jpg
(Sometimes, FB may not load images. )
8thos
07-22-2011, 05:18 PM
Not working for me but thanks anyway.
Krusty1231
07-22-2011, 08:53 PM
Prior to installing this when I posted an article to Facebook only my header and my footer appeared as image options on FB.
The information in the article was not an option, as again only my site info was appearing on FB.
After installing this ALL images on the article page where given as an option to choose from, not just the header and footer.
About 90% of my sites images are hosted at Photobucket - and easily link to FB using this mod.
I love it. Works great for me!
Thanks again!
bosanci28
08-13-2011, 04:49 AM
i am having the same problem,i did the edit ,but still does that!...:(
please help!
thanks.
CouponWCents
08-13-2011, 03:15 PM
This doesn't work for me either
sivaganeshk
08-13-2011, 04:29 PM
@CouponWcents: can u post ur forum url ??
CouponWCents
08-13-2011, 04:31 PM
<a href="http://www.couponwithcents.com" target="_blank">www.couponwithcents.com</a>
sivaganeshk
08-13-2011, 05:14 PM
@CouponWC :
I checked the Meta tag using seocentro .
See the result.
https://vborg.vbsupport.ru/external/2011/08/37.jpg
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
sivaganeshk
08-13-2011, 05:17 PM
@bosanci : Are you sure, you replaced the code in the correct template ??
CouponWCents
08-13-2011, 06:21 PM
How would I check if there is any custom modification? Thanks so much for your help! :)
sivaganeshk
08-13-2011, 06:42 PM
@CWC : Did you check the Friendly URL settings ?
http://i.imgur.com/bOgMM.jpg
Who designed the vb Template ?
sivaganeshk
08-13-2011, 06:48 PM
@octavius : seems like when u pull images from another site, images are visible in facebook.
https://vborg.vbsupport.ru/external/2011/08/36.jpg
8thos
08-13-2011, 06:57 PM
@octavius : seems like when u pull images from another site, images are visible in facebook.
https://vborg.vbsupport.ru/external/2011/08/36.jpgOh wow so it does work. Thanks man!
sivaganeshk
08-13-2011, 07:04 PM
Yup :D
CouponWCents
08-13-2011, 07:15 PM
Yes, I changed it from Mod Rewrite to basic.
I designed it.
bosanci28
08-13-2011, 07:23 PM
@bosanci : Are you sure, you replaced the code in the correct template ??
yes,i did do exactly like the info "how to " above !
now can someone tell me what will be the code for facebook,is and where exactly should be?
to compare,because maybe there is a error some where and maybe thats why is not working right,
thank you,
edit : disabled all my plugins and still no working... even on default theme or the main one i use..
sivaganeshk
08-16-2011, 12:03 PM
@Bosanci :
Go to "Search in Template"
Select the style,
type headinclude ,
Choose Yes in Title only
and click FIND
check whether the following code is available or not:
<vb:if condition="$show['fb_opengraph']">
{vb:raw facebook_opengraph}
</vb:if>
P.S : Sorry for the delay. Suffering from viral fever :(
bosanci28
08-16-2011, 01:21 PM
yes,i do have that! line.
and hope you will get better soon!
thanks,
BlueCheri
08-16-2011, 02:36 PM
Looks good.
Thanx
ngocol
08-20-2011, 06:52 AM
i try this hack its good , but if only you could do it on friendly url ? or maybe another anyone have a solution or help on this?
bosanci28
08-20-2011, 02:36 PM
for me still no go ,in 4.1.5
thanks
rendanny
11-05-2011, 10:53 PM
thank you so much for this!! it frustrated the hell out of me to get this to work.. and I searched all over and no one was even close!! thank you!
just a quick question though.. is there anyways to hide the image links to clean the description up a bit?? example
http://img840.imageshack.us/img840/7684/screenshot20111105at428.png
sivaganeshk
11-06-2011, 12:29 PM
no. :-\ (for now )
In my site, i requested few frequent forum posters to include image after first paragraph .
MertTurk
12-01-2011, 07:43 PM
I did all of them did not help, but how www.gruevo.com name of my site, but must be just like adding a link to facebook language: (((help please
MertTurk
12-01-2011, 07:52 PM
:(((((:(:(:(:(
sivaganeshk
12-01-2011, 07:58 PM
vbSEO overwrites this(my hack) changes. So contact vbSEO support/post it in their forum. .
sivaganeshk
12-01-2011, 08:01 PM
disable vbSEO(if possible) and try this.
MertTurk
12-02-2011, 01:51 PM
Go to vbulletin support video support, and they said I did vseo did not help in this event please
sivaganeshk
12-02-2011, 02:02 PM
@MertTurk: can't get you ? can you rephrase it ?
MertTurk
12-02-2011, 03:03 PM
facebook link to my site www.gruevo.com appears:? ?
<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
MertTurk
12-02-2011, 03:06 PM
that is: (((see picture
https://vborg.vbsupport.ru/attachment.php?attachmentid=134805&d=1322841994
sivaganeshk
12-02-2011, 03:13 PM
did u disable vbSEO ?
MertTurk
12-02-2011, 06:33 PM
vBSEO is disabled the mirror
Does this question has no answer Can not I vBSEO
sivaganeshk
12-03-2011, 07:38 AM
No. I guess.
MertTurk
12-03-2011, 09:27 AM
What will happen now, this problem does not improve please help
MertTurk
12-03-2011, 09:15 PM
alo help
xertox
01-19-2012, 11:33 PM
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...
sivaganeshk
01-20-2012, 11:44 AM
@xertox : So it works with Facebook ? What meta details you see in seocentro ?
PM me the forum URL.
xertox
01-20-2012, 12:03 PM
@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=KNuTex1jZB4&feature=related Happy Birthday Muhammad!
Keywords: 181 muhammad ali, video, muhammad, stopping, footage, attempt, happy, birthday, https://www.youtube.com/watch?v=knutex1jzb4&feature=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.
sivaganeshk
01-20-2012, 12:19 PM
When I click the twitter button(via AddThis) above the first post - right corner, it shows the Title of the thread in the tweet.
xertox
01-20-2012, 12:24 PM
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...
<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.
<meta name="keywords" content="blackout, sopa, success, relief, support, shifted, http://boingboing.net/2012/01/19/how-the-internet-blackout-affe.html, breathing, total, yesterdays" />
<meta name="description" content="I'm breathing a sigh of relief now that SOPA support has shifted.
https://vborg.vbsupport.ru/attachment.php?attachmentid=135911&stc=1&d=1327065824
sivaganeshk
01-20-2012, 12:46 PM
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
xertox
01-20-2012, 01:58 PM
I just discovered that changing the facebook_opengraph template makes my meta tags go from this....
<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...
<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
RedPoint
01-22-2012, 05:47 PM
run this changes with vers 4.1.10 ?
sivaganeshk
01-23-2012, 10:42 AM
@redpoint: yup. It works.
@xertox : can I look into your settings?
joeman
09-17-2012, 01:43 AM
I tired this mod and on my facebook fanpage it still doesnt display any type of preview for my vbulletin forum photos
sivaganeshk
09-19-2012, 12:02 PM
I tired this mod and on my facebook fanpage it still doesnt display any type of preview for my vbulletin forum photos
Share the forum URL
dog-tag
09-21-2012, 10:21 AM
Does this work with the most recent 4.2.0 ?
Any input is much appreciated!
sivaganeshk
09-21-2012, 12:11 PM
Does this work with the most recent 4.2.0 ?
Any input is much appreciated!
Should work fine since there is no change in template code.
Try it yourself or else revert to original.
I have installed vbSEO , so it provides built-in meta option.
Bisha
03-08-2013, 11:09 AM
Why my
{vb:raw $threadinfo['description']}
is empty?
sivaganeshk
03-08-2013, 01:02 PM
Please share the URL of the forum so that I can look in to ..
vimarc
03-08-2013, 02:59 PM
beautiful modification.. thanks
Winter Sonata
03-10-2013, 04:19 AM
Anyone can confirm that worked on 4.2 ? I have tried it and as some reported the link now appears as :
https://vborg.vbsupport.ru/attachment.php?attachmentid=134805&d=1322841994
sivaganeshk
03-10-2013, 07:41 AM
Anyone can confirm that worked on 4.2 ? I have tried it and as some reported the link now appears as :
Many people had reported that it is working on 4.2 version. I'm getting 404 page not found message when I enter the url as shown in the image.
Spangle
03-10-2013, 11:22 AM
Why are people working on meta tags, all the big search engines ignore them now, Google, Bing and Yahoo use algorithm's to work out page titles and threads.
sivaganeshk
03-10-2013, 01:33 PM
Why are people working on meta tags, all the big search engines ignore them now, Google, Bing and Yahoo use algorithm's to work out page titles and threads.
It doesn't do anything for Search Engine Ranking Position. The most prominent use of Meta description in a page is, It is the text that will be displayed in Search Result near the link. If it is not relevant (other than thread info), users may ignore your page.
Divvy
03-19-2013, 09:41 PM
I just discovered that changing the facebook_opengraph template makes my meta tags go from this....
<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...
<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
Same problem here... does anyone got a fix?
Im using 4.2 version.
pablodip
10-26-2014, 05:51 PM
4.2.2 run :up:
geosharing
07-20-2015, 07:27 AM
yes working on 4.X all version
jokergameth
04-29-2020, 11:52 AM
wow, Still works on vBulletin v4.2.1 in year 2020
Thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.