Hi,
Is it possible to embed a Facebook post within a Forum post?
The code I have is:
<iframe src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fgofishingni%2Fposts%2F598836550310375%3A0&width=500" width="500" height="536" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
Many thanks!
(2017-02-19, 10:29 AM)Euan T Wrote: [ -> ]You'd need to create a MyCode (something like [facebook]), in the ACP. There's some documentation here that may help: https://docs.mybb.com/1.6/MyCode/
Could you explain in more detail?
Can anyone help me at all?
Try this:
Add a new MyCode in ACP
Regular Expression:
\[fbpost\](.*?)\[/fbpost\]
Replacement:
<iframe src="https://www.facebook.com/plugins/post.php?href=$1&width=500" width="500" height="536" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
Save the new MyCode and test it in a forum post, like:
[fbpost]https://www.facebook.com/gofishingni/posts/598836550310375[/fbpost]
(2017-02-20, 01:33 PM)SvePu Wrote: [ -> ]Try this:
Add a new MyCode in ACP
Regular Expression:
\[fbpost\](.*?)\[/fbpost\]
Replacement:
<iframe src="https://www.facebook.com/plugins/post.php?href=$1&width=500" width="500" height="536" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
Save the new MyCode and test it in a forum post, like:
[fbpost]https://www.facebook.com/gofishingni/posts/598836550310375[/fbpost]
I'm afraid this doesn't seem to work. Is there something I am missing?
Please check the MyCode in ACP (no whitespaces in front or back of regular expression)
It works for me like charming:
[
attachment=38434]
(2017-02-20, 05:37 PM)SvePu Wrote: [ -> ]Please check the MyCode in ACP (no whitespaces in front or back of regular expression)
It works for me like charming:
Hmmm still can't seem to get it to work - have I set it up correct
[
attachment=38435]
(2017-02-20, 05:37 PM)SvePu Wrote: [ -> ]Please check the MyCode in ACP (no whitespaces in front or back of regular expression)
It works for me like charming:
I think I have got it sorted now, thank you!