WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Sociable] Target=_blank not working in all sites + not showing in RSS (10 posts)

  1. Robertoms
    Member
    Posted 5 years ago #

    Hi, well I downloaded Sociable because I liked how it works but upon installation I ran into this errors:

    First the Target=_blank option is not working in all of the buttons (facebook, twitter, myspace, are the ones that don't work so far), no matter what I do they just won't open in a new tab or window.

    Second, it's not showing sociable in my RSS feed (I'm using regular RSS not Feedburner), also tried everything I coud to make it work.

    Any kind of feed back or help would be awesome, thanks in advance.

    P.S.: I'm using WP 2.8 and Sociable 3.3

  2. drizzi
    Member
    Posted 5 years ago #


  3. drizzi
    Member
    Posted 5 years ago #

    I had the same problem and I solved it writing the "_blank" string directly into the code of sociable.php file.
    I know that is not the cleaner solution but it goes! So if you want to do the same thing open the sociable.php file. Search lines 52 and insert the bold code.

    $link .= "<a <strong>target=\"_blank\"</strong> rel=\"nofollow\"";
    		if (get_option('sociable_usetargetblank') && empty($site['awesm_channel'])) {
    			$link .= " target=\"_blank\"";

    After that Save file modification + Deactive plugin + Active plugin + Try and let me know :-)

  4. Robertoms
    Member
    Posted 5 years ago #

    Drizzi thank you very much!!, it worked like a charm all of them now target
    _blank, so I am a happy man.

    There is however a little error in the code, you added "strong" tags to it and when I pasted to my sociables.php got my page all scrambled up, it's just a little error but you should modify it for other users sake.

    Still my feed remain without the sociables option, I gues I'll have to live with this little problem, thanks again for the great help.

  5. Robertoms
    Member
    Posted 5 years ago #

    I've made the change to feedburner so I really don't need the fix for the rss, so I will concider this resolved, thanks again to drizzi for the help.

  6. pfpc123
    Member
    Posted 5 years ago #

    It's a very simple bug on the "_blank" problem. Sociable will be fully functional if you just replace drizzy's bit of code with this. The bug is that the boolean operator "||" should have been used instead of "&&".

    $link .= "<a rel=\"nofollow\"";
    		if (get_option('sociable_usetargetblank') || empty($site['awesm_channel'])) {
    			$link .= " target=\"_blank\"";
    		}
  7. Joost de Valk
    Member
    Posted 5 years ago #

    Will be fixed in 3.3.1, thanks for noticing!

  8. MYODB
    Member
    Posted 4 years ago #

    Help the sociable Target=_blank not working in version 3.5.1. Any chance for a fix?

  9. sociable
    Member
    Posted 4 years ago #

    Are you sure you have upgraded to 3.5.1? We fixed those two issues. Send us a screenshot at info@blogplay.com if it still doesn't work

  10. JEDs
    Member
    Posted 4 years ago #

    I have 3.5.1 and not all of the links open a new window. Until I saw this thread I figured it was that those sites were using a no-frames script.

    If my assumption is incorrect, what would you need a screenshot of?

    Also, in IE8 the iframes open halfway down in my browser window, with no way to view the bottom of the frame. Works fine in FF. Drat IE, but can this be fixed?

    Thanks,JEDs

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags