vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - RedInk Design - Smart OG Image Tag (https://vborg.vbsupport.ru/showthread.php?t=292850)

Waiter 01-15-2013 02:48 PM

not work for CMS :(
Any idea for this? Thx :)

sticky 01-16-2013 06:22 AM

Finally! Been waiting for something like this.

As long as this works on the CMS I'm good :)

Testing.

sticky 01-16-2013 06:24 AM

Quote:

Originally Posted by redinkdesign (Post 2396032)
This mod looks for the first [img] or [attach] tags in a post and uses that image for the <og:image> meta tag. This will tell facebook's crawler to use that image for the post.

You don't explicitly set the og:image tag.

Why does the facebook platform need to be enabled for this to work? Shouldn't it just work regardless?

Waiter 01-16-2013 02:24 PM

Quote:

Originally Posted by sticky (Post 2397224)
Finally! Been waiting for something like this.

As long as this works on the CMS I'm good :)

Testing.

but this don't work in CMS :(

abdobasha2004 01-16-2013 02:49 PM

I need this mod for vb 3.7 pleeeeeeeeeease......

sticky 01-16-2013 04:31 PM

Quote:

Originally Posted by Waiter (Post 2397288)
but this don't work in CMS :(

If you're promoting a forum post why not?

Waiter 01-18-2013 10:43 AM

because the article of CMS are automatic connect with the page of Facebook and Twitter, by RSS....if I use the forum post, I don't use the custom Meta Desciption and Key :(

LifesGreatestGift 01-18-2013 01:05 PM

Works great. Suggestion for future version.

A switch selection in admincp options that say

1) First Image
2) Provide Array

1) First Image is exactly as this mod acts.

2) Provide Array - would take all IMG and ATTACH in first post, and convert them all to

<meta property="og:image" content="http://example.com/image1.jpg" />
<meta property="og:image" content="http://example.com/image2.jpg" />

that way, when a thread is posted it will give you the option to choose the pic.

LifesGreatestGift 01-18-2013 01:13 PM

your mod doesn't account for if the site is http or https properly

had to change this line

Code:

$og_array['og:image'] = 'http://' . $img_str;
to

Code:

$og_array['og:image'] = 'https://' . $img_str;

sticky 01-19-2013 10:56 PM

Quote:

Originally Posted by Waiter (Post 2397694)
because the article of CMS are automatic connect with the page of Facebook and Twitter, by RSS....if I use the forum post, I don't use the custom Meta Desciption and Key :(

I'm not quite sure I understand as if this replaces the tags when you promote the post the new tags should be there and in RSS.


All times are GMT. The time now is 09:16 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01098 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete