Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 04 Mar 2018, 18:00
Bestrafung Bestrafung is offline
Join Date: Aug 2009
Custom Facebook Sharing

I don't like the way vBulletin generates the Facebook meta tags by default. We have a long site name and description which is placed before the article title. It also tends to always want to use the default sharing picture set in options instead of the article image. I've been editing "/includes/functions_facebook.php" to achieve what we want, if there's a way to do it with plugins please let me know. So far I've managed to get it to use the first attached image in an article as "og:image" by parsing the attachment ID from the description text. Now I need to make "og:title" simply be the article title or maybe "Article Title - bbtitle". I did a var_dump on $vbulletin but see that the article title is a protected array. Can anyone tell me how to access this variable or how to otherwise access the title. I'm to the point where I think I may have to convert the SEO url back to text and use that but I'm hoping there's a better way. Any help would be appreciated.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

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

New To Site? Need Help?

All times are GMT. The time now is 18:35.

Layout Options | Width: Wide Color: