Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Mo0nlight Moderator
    #960137

    Hi
    You could try this.
    edit file : plugins/system/jasocial_feed/jasocial_feed.php

    add this code :

    $prependtext = $this->getProperty($profile, 'facebook_title_prepend', '');

    above the code

    $titleMaxLen = (int) $this->getProperty($profile, 'facebook_title_length', 50);

    Change the code (the first 1 you could find.)

    $post['source_title'] = $artical_title;

    To this:

    $post['source_title'] = $prependtext.$artical_title;

    edit file : plugins/system/jasocial_feed/jasocial_feed.xml
    add this code

    <field name="facebook_title_prepend" type="text" default="(Prepend Text)" label="Prepend Text" description="The Text will be show before the title." />

    above the code:

    <field name="facebook_title_length" type="text" default="50" label="Maximum length" description="The maximum length of title" />

    Regards.

    noffy Friend
    #1002432

    Hi Mo0nlight,

    sorry for the delay, but I found time just now to test your code.

    All works great. I can directly add a prepend text to my facebook articles. I directly changes it to v1.2.9.

    Maybe you can add it to the official plugin.

    Thanks and best regard.
    Michael

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

This topic contains 2 replies, has 2 voices, and was last updated by  noffy 7 years, 10 months ago.

The topic ‘Feature Request: Pre-Text for imported title’ is closed to new replies.