Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • techspecx Friend
    #182847

    Hello,

    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,
    Rob

    HeR0 Friend
    #475347

    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

    Ninja Lead Moderator
    #475350

    You 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);<- flickr

    techspecx Friend
    #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,
    Robert

    techspecx Friend
    #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;<- flickr

    change 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,
    Robert

    Ninja Lead Moderator
    #475680

    Hi Robert,

    I would need to take a closer look at your site. Pls PM me with url, admin access and ftp account. I shall help you out.

    Regards

    techspecx Friend
    #476036

    Hello,

    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,
    Robert

Viewing 7 posts - 1 through 7 (of 7 total)

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