![]() |
OK, I solved my Connect button issue and I made a small change to this hack, so that it covers all pages of the site. Here is the code I used.
Code:
if (THIS_SCRIPT == 'showthread') |
Quote:
|
Obviously Joe is right about this (not using my code shown above, if you are using vBSuite.
However, being the stubborn person I am, I keep trying to figure out how to fill the og: array with the proper values. So far, here is what I have come up with: Code:
if (THIS_SCRIPT == 'showthread') I am using the blog_show_entry template as a guide line, and in there, it appears that the proper variable to use is indeed $blog['message'], but that is obviously not set, when the script above loads?? I do not understand. Interestingly enough, the vbcms articles automatically get the proper og:description (the article text itself, but their title comprises of the site title and then the title of the article. I wonder if there is a way to use only the article's title. |
Looks cool, thanks
|
sv1cec, and everyone-
I went ahead and upgraded this to version 1.2.0- it now adds full support for a blog description (limited to 300 characters if need be) and a better blog title. The blog title is now formatted "blog title Posted By username" And the "Posted By" uses the default vBulletin phrase so it will translate to whatever language your forum uses. I did a lot of research on using it for Articles- it does not appear worth the effort- the way Articles are coded you simply can't get the title or preview text where the facebook open graph text is built. It could be done but would likely need additional plugins- but besides that Articles have a meta description option that you can fill in yourself and if available vBulletin does use the meta description as the open graph description on Article pages. |
I've got a 4.2.2 forum, and have just installed this, but it doesn't seem to be working, I've gone from the Thread title to the URL and from the generic meta description to nothing !
https://www.facebook.com/groups/footballounge/ |
Quote:
https://developers.facebook.com/tool...Carroll-regret The image must be a full absolute URL, with the http at the front, not the relative path you have. |
Quote:
|
I am using vb 4.1.7 is there anyway you could get this to work for 4.0 and higher?
|
Quote:
If You want I suppose you can add the hook manually. You'll need to edit 2 things. First, edit your includes/functions_facebook.php file Find the line: Code:
return $og_array; Code:
($hook = vBulletinHook::fetch_hook('fb_opengraph_array')) ? eval($hook) : false; Then edit this product's .xml file before you import it to product manager. Find: Code:
4.1.10 Code:
4.0.0 It *should* work. Also note- you'll never be able to edit the plugin in plugin manager because your vBulletin version doesn't know the hook exists and won't let you re-save the plugin in the correct hook. Not that you should have any reason to edit the plugin, just keep it in mind. |
All times are GMT. The time now is 06:53 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|