Advertisement:

Author Topic: Embed Facebook BBCode  (Read 42108 times)

Offline villasg

  • Full Member
  • ***
  • Posts: 484
Re: Embed Facebook BBCode
« Reply #40 on: August 26, 2015, 04:48:59 PM »
I do not have this issue with  2.4

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,671
  • Mod King
    • XPtsp.com Community
Re: Embed Facebook BBCode
« Reply #41 on: August 26, 2015, 05:10:18 PM »
Huh, my test site did.....  Hence the need for the fix....
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,671
  • Mod King
    • XPtsp.com Community
Re: Embed Facebook BBCode
« Reply #42 on: August 29, 2015, 11:37:26 AM »
Uploaded v2.6 - August 29th, 2015
o Fixed missing CSS file operations within package-info.xml
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,671
  • Mod King
    • XPtsp.com Community
Re: Embed Facebook BBCode
« Reply #43 on: September 06, 2015, 01:08:07 PM »
Uploaded v2.7 - September 6th, 2015
o Fixed issue where BBCodes list was completely empty because of mod... (shrug)
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline stefan357965

  • Semi-Newbie
  • *
  • Posts: 37
    • CHEGI i Braca Bluz Bend
Re: Embed Facebook BBCode
« Reply #44 on: September 14, 2015, 11:46:09 AM »
Uploaded v2.7 - September 6th, 2015
o Fixed issue where BBCodes list was completely empty because of mod... (shrug)
[/quote

Great work man!
Agencija muzickih bendova
bend za svadbe i vencanja Beograd

Offline Koda

  • Semi-Newbie
  • *
  • Posts: 21
Re: Embed Facebook BBCode
« Reply #45 on: September 20, 2015, 10:34:02 PM »
Thank you for making this mod dougiefresh!  I have an issue, and I am sure it is mine, but maybe you can assist me.

All facebook posts that have type=1 or an &id tag at the end are not showing up with this mod when I post to my forum.  I can post everything from my wall fine for some reason, but with others the &id is present which prevents me from sharing, even if the post is marked as public.  Any idea?  I am not that well versed in facebook.  Thank you!



Think I figured it out, some profiles are set to private even though the posts are set to public.  This is preventing the posts from being shared even if they appear public.  To get the proper link for public posts, right click the timestamp when it was posted and copy/paste the link.  Posts that have extra text after the proper id are not public posts.

As a recommendation for a future version, maybe include a hover info box over the facebook icon explaining these things to new users.  A dev may be able to figure it out but I doubt even 10% of my members would be able to figure out how to use this feature correctly due to facebooks security settings.
« Last Edit: September 20, 2015, 10:58:35 PM by Koda »

Offline Koda

  • Semi-Newbie
  • *
  • Posts: 21
Re: Embed Facebook BBCode
« Reply #46 on: September 21, 2015, 03:44:20 AM »
Sorry for the double post, but I have been working with your mods for the past few hours and really like them, but there seems to be some issue with the mods and the bbcode.  When I post the links with the code manually entered it sometimes messes up and throws out an extra
Code: [Select]
[/facebook] tag, this also happens if I insert multiple bbcode tags into the same thread, but the formatting really gets messed up and only the first link is displayed, the rest are eaten up and bbcode is displayed instead.  Any input is much appreciated, thank you.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,671
  • Mod King
    • XPtsp.com Community
Re: Embed Facebook BBCode
« Reply #47 on: September 21, 2015, 11:27:57 AM »
Uploaded v2.8 - September 21st, 2015
o Fixed auto-embedding issue where URLs inside code tags where auto-linked.
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,671
  • Mod King
    • XPtsp.com Community
Re: Embed Facebook BBCode
« Reply #48 on: September 21, 2015, 11:31:38 AM »
Uploaded v2.8 - September 21st, 2015
o Fixed auto-embedding issue where URLs inside code tags where auto-linked.



@Koda: Let me look into these bug reports.  If you could provide the text of the post for me to test against, it might be very helpful....
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline Koda

  • Semi-Newbie
  • *
  • Posts: 21
Re: Embed Facebook BBCode
« Reply #49 on: September 22, 2015, 04:50:54 PM »
Anytime I post a facebook link it tries to auto embed including when I use the embed manually.

Code: [Select]
[facebook]facebook.com/page#goeshere[facebook]f will turn into the facebook post followed by [/facebook] text.  When a link to facebook is posted, a [/facebook] also follows.  Just tested with 2.8 update.

This also happens with your tumblr mod, perhaps it may be specific to my theme or other mods I have installed?

Here is an example with the tumblr mod, it is the same error with the facebook mod:

http://phytoactive.net/herbs/test-104/msg125/#msg125 [nofollow]

Thanks!
« Last Edit: September 22, 2015, 05:10:41 PM by Koda »

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,671
  • Mod King
    • XPtsp.com Community
Re: Embed Facebook BBCode
« Reply #50 on: September 22, 2015, 07:51:35 PM »
Code: [Select]
[facebook]facebook.com/page#goeshere[facebook]f
@Koda:  I need actual links to check against.  Giving me something so generic is virtually useless in trying to diagnose this issue....
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline Koda

  • Semi-Newbie
  • *
  • Posts: 21
Re: Embed Facebook BBCode
« Reply #51 on: September 27, 2015, 02:07:36 PM »
Well the issue is with the bbcode not exactly the display of the facebook code.  I experience the same error with all of your bbc embed mods (facebook, tumblr). 

Example:  posting
Code: [Select]
http://h-e-r-b-s.tumblr.com/post/129892397465 into a post creates
Code: [Select]
http://h-e-r-b-s.tumblr.com/post/129892397465[/tumblr]
If I post
Code: [Select]
[tumblr]http://h-e-r-b-s.tumblr.com/post/129892397465[/tumblr] I will receive the embedded tumblr code, but there is always a visible [/tumblr] after it.  If I post another [tumblr] tag afterwards, the formatting gets really messed up and only the first embedded tumblr is shown, afterwards is broken bbc. 

You can see my test page here: http://phytoactive.net/herbs/test-104/msg125/#msg125 [nofollow]

Scroll to the bottom where you can see the bbc start to break.  The issue is the same as facebook, and your other bbc mods with my template.  Other bbc mods do not cause this issue.


Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,671
  • Mod King
    • XPtsp.com Community
Re: Embed Facebook BBCode
« Reply #52 on: September 27, 2015, 07:57:54 PM »
I had to register on your forum in order to see how you used the bbcodes.  One problem that you have is the mod expects this:
Code: [Select]
[tumblr]http://h-e-r-b-s.tumblr.com/post/129892397465[/tumblr]and what you have is this:
Code: [Select]
[tumblr]http://h-e-r-b-s.tumblr.com/post/129892397465
[/tumblr]
Putting the closing tag on the same line as the rest of it SHOULD fix this.  Since your usage wasn't an expected usage of the bbcode, the auto-embed isn't "equipped" to deal with the issue....

I've fixed this issue for the next version of each of the Facebook, Tumblr and Instagram mods, however, I don't have time tonight to package them up and release them properly since it's my bedtime.  (I get up too early in the morning...  :P) I'll do it tomorrow.
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline Koda

  • Semi-Newbie
  • *
  • Posts: 21
Re: Embed Facebook BBCode
« Reply #53 on: September 28, 2015, 02:12:33 AM »
Not sure how the formatting would have been changed to that, but I did just try to post 2x tumblr posts and received no errors.  I will install the updated facebook mod tomorrow and let you know if the issue still exists.

It may be entirely with my software, I noticed another mod doing this too when I tried to tag a link with the bbc, it tried to format after the link was already formatted.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,671
  • Mod King
    • XPtsp.com Community
Re: Embed Facebook BBCode
« Reply #54 on: October 02, 2015, 10:23:27 AM »
I've been working multple 12+ hour shifts over the last week and haven't had the energy or time to work on this bug report.  However, today, I've fixed and uploaded the new version of the Tumblr mod.  Later today, I'll fix my Facebook and Instagram mods and upload them.
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,671
  • Mod King
    • XPtsp.com Community
Re: Embed Facebook BBCode
« Reply #55 on: October 02, 2015, 10:51:08 AM »
Uploaded v2.9 - October 2nd, 2015
o Rewrote auto-embedding code to deal with line-breaks and duplicate closing brackets.
o Added "Invalid Facebook URL" message for use with invalid FB URLs (duh)....



@Everybody: This update fixes the auto-embed code so that tags and URLs like the following are correctly dealt with:
Code: (Line break after URL) [Select]
[facebook]{link here}
[/facebook]
Code: (Line break before URL) [Select]
[facebook]
{link here}[/facebook]
Code: (Line break before and after URL) [Select]
[facebook]
{link here}
[/facebook]
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline Mimmi

  • Jr. Member
  • **
  • Posts: 166
  • Gender: Female
    • Liv lagas forum
Re: Embed Facebook BBCode
« Reply #56 on: October 26, 2015, 07:00:52 AM »
Thank you for a nice mod! Here is Norwegian translation:

Code: [Select]
$txt['fb_default_lang'] = 'Språket Facebook-kontrollene er vist i:';
$txt['fb_default_video_width'] = 'Standard bredde av innebygd Facebook-video:';
$txt['fb_default_post_width'] = 'Standard bredde av innebygd Facebook-innlegg:';
$txt['fb_invalid'] = '[ Ugyldig Facebook-URL ]';
Forum-junkie and still a newbie in the world of administrating php etc... Volunteers in reproductive rights. http://www.liv-laga.no/

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,671
  • Mod King
    • XPtsp.com Community
Re: Embed Facebook BBCode
« Reply #57 on: November 06, 2015, 09:22:47 AM »
Uploaded v2.10 - November 6th, 2015
o Added Norwegian language modifications to the mod.  Thanks, Mimmi!
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,671
  • Mod King
    • XPtsp.com Community
Re: Embed Facebook BBCode
« Reply #58 on: November 07, 2015, 11:13:42 AM »
Uploaded v2.11 - November 7th, 2015
o Fixed Norwegian language modifications so that they are added to correct language file.
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,671
  • Mod King
    • XPtsp.com Community
Re: Embed Facebook BBCode
« Reply #59 on: November 12, 2015, 03:39:15 PM »
Uploaded v2.12 - November 12th, 2015
o Issue already been addressed.  No functional changes made to the mod.
« Last Edit: November 12, 2015, 04:01:52 PM by dougiefresh »
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!