dopetalk

Technology => SMF Forum Code Modifications => Topic started by: Chip on October 14, 2018, 05:02:00 AM

Title: Embed Facebook BBCode
Post by: Chip on October 14, 2018, 05:02:00 AM
https://custom.simplemachines.org/mods/index.php?mod=4062

Introduction

This modification adds a BBCode to embed Facebook posts and videos into your forum.  Embedding posts and videos are simple way to put public posts and videos - by a Page or a person on Facebook - into the content of your web site or web page.  Only public posts from Facebook Pages and profiles can be embedded.

The BBCode takes these forms:

Code: [Select]
[facebook]{facebook URL}[/facebook]
[facebook width={x}]{facebook URL}[/facebook]

where {facebook URL} is the URL to the facebook photo post, post or video that you want to display and {x} is the width of the post desired.  Note that if the width isn't specified, the global setting will be applied.

User Profile Settings


Under Profile => Look and Layout, there is a new option called Language the Facebook controls are shown in.  It's purpose is set the language of the Facebook controls used in each post that the user can see, which is overridden by Facebook when the user is already logged in.  Please note that setting this option only controls the default language of the FB controls, not the posts themselves, and does NOT translate the posts into a different language!

Admin Settings

Under Admin => Modification Settings, there are some new options:
o Language the Facebook controls are shown in.  It's purpose is to define the forum's default language for the Facebook post, which is overridden by Facebook when the user is already logged in.  Please note that setting this option only controls the default language of the FB controls, not the posts themselves, and does NOT translate the posts into a different language!
o Default width of embedded Facebook video
o Default height of embedded Facebook video
o Include Facebook link beneath?


will test in dev
SimplePortal 2.3.6 © 2008-2014, SimplePortal