Forums

[Plugin: Sociable] double Urls (2 posts)

  1. Beta2k
    Member
    Posted 2 years ago #

    Hey!

    today i installed the 'sociable' plugin ( http://blogplay.com/sociable-for-wordpress ) and wanted to adapt it a bit.

    in sociable.php i tried changing an url of a service:
    'url' => 'PERMALINK',

    permalink should get replaced by the url of the wordpress-page, on which the code gets executed. when i load a wordpress-page the PERMALINK gets replaced by "http://klimakongress.org/http%3A%2F%2Fklimakongress.org". as you can see the url gets doubled and i dont know why.

    i also have set up my permalinks correctly (.htaccess-file and so on...)

    whats the reason for that?

    best,
    Peter

  2. Beta2k
    Member
    Posted 2 years ago #

    in sociable.php i had to change
    $permalink = urlencode(get_permalink($post->ID));
    to
    $permalink = get_permalink($post->ID);

    dont know why... but then it worked. i hope the deletion of 'urlencode' has no other (negative) effects.

Topic Closed

This topic has been closed to new replies.

About this Topic