-
AuthorPosts
-
techspecx Friend
techspecx
- Join date:
- July 2012
- Posts:
- 16
- Downloads:
- 2
- Uploads:
- 2
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
December 5, 2012 at 6:21 pm #182847Hello,
Is there anyway to eliminate the # symbols that come over with the pictures that are pulled from the Flickr or instagram sites?
Could you tell me if I can set a variable that would strip the # plus the words that come over.
My site millionsmileproject.com shows the pictures but also comes in with all the hashtags with words – could you help?
Thank you.
Regards,
RobHeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
December 6, 2012 at 8:47 am #475347Hi Techspecx,
The symbols is data of Flickr, Instagram data. Therefore, the social plugin does not catch.
Now, in the order to do that, try to do as below to resolve your issue:
1. Open file plugins/systems/ja_socialfeed/tables/joomla.php
2. Go to function store and try to find [PHP]$item[‘title’] = html_entity_decode($post[‘source_title’], ENT_COMPAT, ‘UTF-8’);[/PHP] replace it to
[PHP]$item[‘title’] = html_entity_decode($post[‘source_title’], ENT_COMPAT, ‘UTF-8’);
$item[‘title’] = str_replace(‘#’, ”, $item[‘title’]);[/PHP]
Find $item[‘articletext’] = html_entity_decode($txt, ENT_COMPAT, ‘UTF-8’); replace it to
[PHP]$item[‘articletext’] = html_entity_decode($txt, ENT_COMPAT, ‘UTF-8’);
$item[‘articletext’] = str_replace(‘#’, ”, $item[‘articletext’]);[/PHP]
3. Open file plugins/systems/ja_socialfeed/tables/k2.php
4.Go to function store and try find [PHP]$item[‘title’] = html_entity_decode($post[‘source_title’], ENT_COMPAT, ‘UTF-8’);[/PHP] replace it to
[PHP]$item[‘title’] = html_entity_decode($post[‘source_title’], ENT_COMPAT, ‘UTF-8’);
$item[‘title’] = str_replace(‘#’, ”, $item[‘title’]);[/PHP]
Find $item[‘introtext’] = html_entity_decode($txt, ENT_COMPAT, ‘UTF-8’); replace it to
[PHP]$item[‘introtext’] = html_entity_decode($txt, ENT_COMPAT, ‘UTF-8’);
$item[‘introtext’] = str_replace(‘#’, ”, $item[‘introtext’]);[/PHP]
Hope this help.Regards
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
December 6, 2012 at 9:07 am #475350You can try with my suggestion as follows:
<blockquote>Open plugins/system/jasocial_feed/jasocial_feed.php file</blockquote>
and find
<blockquote>private function fetchInstagramPost ($profile)
private function fetchFlickrPost ($profile)</blockquote>
You can change to add this script. It will help to eliminate # plus words
from
$title = $dt['title'];<- Instagram
$tcontent = $dt->title;<- flickr
change to
$title = str_replace("#","",$dt['title']);<- Instagram
$tcontent = str_replace("#","",$dt->title);<- flickr1 user says Thank You to Ninja Lead for this useful post
techspecx Friendtechspecx
- Join date:
- July 2012
- Posts:
- 16
- Downloads:
- 2
- Uploads:
- 2
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
December 8, 2012 at 4:30 am #475508<em>@HeR0 349405 wrote:</em><blockquote>Hi Techspecx,
The symbols is data of Flickr, Instagram data. Therefore, the social plugin does not catch.
Now, in the order to do that, try to do as below to resolve your issue:
1. Open file plugins/systems/ja_socialfeed/tables/joomla.php
2. Go to function store and try to find [PHP]$item[‘title’] = html_entity_decode($post[‘source_title’], ENT_COMPAT, ‘UTF-8’);[/PHP] replace it to
[PHP]$item[‘title’] = html_entity_decode($post[‘source_title’], ENT_COMPAT, ‘UTF-8’);
$item[‘title’] = str_replace(‘#’, ”, $item[‘title’]);[/PHP]
Find $item[‘articletext’] = html_entity_decode($txt, ENT_COMPAT, ‘UTF-8’); replace it to
[PHP]$item[‘articletext’] = html_entity_decode($txt, ENT_COMPAT, ‘UTF-8’);
$item[‘articletext’] = str_replace(‘#’, ”, $item[‘articletext’]);[/PHP]
3. Open file plugins/systems/ja_socialfeed/tables/k2.php
4.Go to function store and try find [PHP]$item[‘title’] = html_entity_decode($post[‘source_title’], ENT_COMPAT, ‘UTF-8’);[/PHP] replace it to
[PHP]$item[‘title’] = html_entity_decode($post[‘source_title’], ENT_COMPAT, ‘UTF-8’);
$item[‘title’] = str_replace(‘#’, ”, $item[‘title’]);[/PHP]
Find $item[‘introtext’] = html_entity_decode($txt, ENT_COMPAT, ‘UTF-8’); replace it to
[PHP]$item[‘introtext’] = html_entity_decode($txt, ENT_COMPAT, ‘UTF-8’);
$item[‘introtext’] = str_replace(‘#’, ”, $item[‘introtext’]);[/PHP]
Hope this help.Regards</blockquote>
Hello – I tried and it did not work – could you attach maybe the modified php file and I will upload it to my server and see if it works. Thanks you for your time with this matter – I appreciate it.
Regards,
Roberttechspecx Friendtechspecx
- Join date:
- July 2012
- Posts:
- 16
- Downloads:
- 2
- Uploads:
- 2
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
December 8, 2012 at 4:31 am #475509<em>@Ninja Lead 349409 wrote:</em><blockquote>You can try with my suggestion as follows:
and find
You can change to add this script. It will help to eliminate # plus words
from$title = $dt['title'];<- Instagram
$tcontent = $dt->title;<- flickrchange to
$title = str_replace("#","",$dt['title']);<- Instagram
$tcontent = str_replace("#","",$dt->title);<- flickr
</blockquote>Hello – I tried and it did not work – could you attach maybe the modified php file and I will upload it to my server and see if it works. Thanks you for your time with this matter – I appreciate it.
Regards,
RobertNinja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
techspecx Friendtechspecx
- Join date:
- July 2012
- Posts:
- 16
- Downloads:
- 2
- Uploads:
- 2
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
December 12, 2012 at 9:33 pm #476036Hello,
I think it is fixed. I believe it was a caching issue and it seems to have solved the # and words issue. Thank you very much. This is solved 🙂
Regards,
Robert1 user says Thank You to techspecx for this useful post
-
AuthorPosts
This topic contains 7 replies, has 3 voices, and was last updated by techspecx 11 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum