Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • I wrote a solution to my problem so i am posting it here in case someone else has the same problem with me.

    First of all after you install, activate and configure FeedWordPress you must then install, activate and configure Add Attribution for FeedWordPress.

    After you install and activate both of the above plugins you have to edit two php files, 1)feedwordpress.php (which is inside your “FeedWordPress” plugin folder) and 2)add-attribution-feedwordpress.php (which is inside your “Add Attribution for FeedWordPress” plugin folder.

    Open feedwordpress.php

    find the following segment of code

    function the_syndication_permalink ($id = NULL) {
    	echo get_syndication_permalink($id);
    }

    and right bellow the “}” add the following segment of code

    function the_syndication_permalink_return ($id = NULL) {
    	$srclnk = get_syndication_permalink($id);
    	return $srclnk;
    }

    Then save changes to this file and close it.

    Then open add-attribution-feedwordpress.php

    Find the following segment of code

    <dt><code>[source-url]</code></dt>
    <dd>URL of the source you syndicated the post from</dd>

    and right bellow it add the following segment of code

    <dt><code>[syndication-source-link]</code></dt>
    <dd>URL of the exact location to the source you syndicated the post from</dd>

    Then find

    add_shortcode('feed-setting', array($ref, 'source_setting'));

    and right bellow it add

    add_shortcode('syndication-source-link', array($ref, 'syndication_source_link'));

    Then find

    remove_shortcode('feed-setting');

    and right bellow it add

    remove_shortcode('syndication-source-link');

    Then find

    function source_url ($atts) {
    	$param = shortcode_atts(array(
    	'original' => NULL,
    	), $atts);
    	return get_syndication_source_link($param['original'], $this->id);
    }

    and right above “function source_url ($atts) {“ add

    function syndication_source_link ($atts) {
    	return the_syndication_permalink_return();
    }

    Save changes and close the file.

    Then go to your wordpress page and login to the dashboard.
    Go to Syndication -> Posts & Links and go all the way down to the Attribution Boilerplate.
    Click “Add new boilerplate” give the settings you like and then write the following code snipet in the white box:

    Source: <a href="[syndication-source-link]">[source-name]</a>

    Save changes and you are ready to go.

    Hi mate,

    Did you find a solution to your second problem (the one where the permalinks point to “The local copy on this website”)???

    I am trying to find a way to make FeedWordPress add the link to the source automatically at the end of the post but no luck yet.

    A little help would be greatly appreciated

    Thanks

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