[Plugin: Facebook Page Publish] Feature: Remove Image Tags, Img Lightbox links and embedded object
-
Hi!
With my plugins I always got a nasty link written out as text in the facebook updates (see older posts on https://www.facebook.com/MyEnergyPlan for an example)
I added the following to fpp_extract_message in the file fpp_index.php at line 364:
/* @khbites : remove IMG Tags from excerpt
also remove a links (lightbox) <p>
and remove objects (flash)
inspired by https://drupal.org/node/317018
*/$message = preg_replace(“/<img[^>]+\>/i”, “”, $message) ;
$message = preg_replace(“/<object[0-9 a-z_?*=\”:\-\/\.#\,<>\\n\\r\\t]+<\/object>/smi”, “”, $message) ;
$message = preg_replace(“/<a[^>]*>(.*)<\/a>/iU”, “”, $message) ;In addition I also had to apply the changes from this forum post, but now everything works flawlessly
https://www.ads-software.com/extend/plugins/facebook-page-publish/
- The topic ‘[Plugin: Facebook Page Publish] Feature: Remove Image Tags, Img Lightbox links and embedded object’ is closed to new replies.