Home > Forum

Support Forum

'add to favorites' not working

Discussion forum for WP Socializer plugin

'add to favorites' not working

Postby sidejack » Thu Sep 22, 2011 4:42 pm

'Add to favorites' when added as a 16px button doesn't work. It's not surprising because in one or two of the source files it says 'add to favotites' or something like that. And the code doesn't look right. Even when I changed 'favotites' to 'favorites' where I found it, it still isn't working.

And how can I fix this now?
sidejack
 
Posts: 4
Joined: Thu Sep 22, 2011 4:38 pm

Re: 'add to favorites' not working

Postby vaakash » Fri Sep 23, 2011 2:16 pm

sidejack wrote:'Add to favorites' when added as a 16px button doesn't work. It's not surprising because in one or two of the source files it says 'add to favotites' or something like that. And the code doesn't look right. Even when I changed 'favotites' to 'favorites' where I found it, it still isn't working.

And how can I fix this now?

Are you using the beta version ?
User avatar
vaakash
Site Admin
 
Posts: 704
Joined: Sun Jan 17, 2010 11:15 am
Location: India

Re: 'add to favorites' not working

Postby sidejack » Fri Sep 23, 2011 3:25 pm

No. 1.0. This is the code in socializer-socialbuttons.php --

Code: Select all
function wpsr_addtofavorites_script(){
   echo "
<script type=\"text/javascript\">function addToFavotites(url) 
{  a
    var title = document.title;
    if (window.sidebar) // Firefox 
        window.sidebar.addPanel(title, url, ''); 
    else if(window.opera && window.print) // Opera 
    { 
        var elem = document.createElement('a'); 
        elem.setAttribute('href',url); 
        elem.setAttribute('title',title); 
        elem.setAttribute('rel','sidebar'); // Opera 7+ 
        elem.click(); 
    }   
    else if(document.all) // IE 
        window.external.AddFavorite(url, title); 
}</script>";
}


It says addToFavotites, with a 't'.

wp-socializer.php's code is --

Code: Select all
'Add to favorites' => array(
       'icon' => 'addtofavorites.png',
       'url' => 'javascript:addToFavotites(\'{permalink}\');',
      'support32px' => 1,
    ),


Also favotites with a 't'.

I changed those both to the proper spelling, but it doesn't make a difference; it still doesn't work.

I can't really upgrade at the moment on this site. I've made some changes to positioning and such and can't go back and play with that now. How can I make 'add to favorites' work with 1.0? Thanks.
sidejack
 
Posts: 4
Joined: Thu Sep 22, 2011 4:38 pm

Re: 'add to favorites' not working

Postby vaakash » Sat Sep 24, 2011 11:28 am

Actually, this bug is already fixed in version 2.0 So just try the v2.0 beta version and look out for errors.. Here is the link,
wp-socializer-f22/wp-socializer-v2-0-beta-2-released-t333.html
User avatar
vaakash
Site Admin
 
Posts: 704
Joined: Sun Jan 17, 2010 11:15 am
Location: India

Re: 'add to favorites' not working

Postby sidejack » Sun Sep 25, 2011 10:06 pm

As I thought would happen, 'add to favorites' still doesn't work. I've got a whole lot of like ghosts or something of other social services I haven't even chosen displaying under the ones I have. The social buttons are sitting in the middle of my text. If I choose a one click preset, it cracks the post and gives a button javascript error. And I've lost all the alterations I had to make in 1.0 to get that to work properly. And 'add to favorites', after all that, still doesn't work. It just refreshes the page.

Sorry, bud, seriously don't want to come across as too spiteful as I can see you've put a lot of hours into this plugin. You the man. But wow there's some bugs hanging around with each release. I mean, you told me to update to 2.0 beta. So I did. This beta doesn't fix the bug I mentioned in 1.0, plus it adds a whole bunch more. And I've lost the little tweaks I had to make to 1.0 to get that one right.

And it doesn't seem like you've nofollowed the links in this version either. One of many tweaks that had to be done to 1.0. You can't have 5, 10, 20, 30 links on a page pointing out to other sites.

Anyway...
sidejack
 
Posts: 4
Joined: Thu Sep 22, 2011 4:38 pm

Re: 'add to favorites' not working

Postby vaakash » Mon Sep 26, 2011 12:04 pm

sidejack wrote:As I thought would happen, 'add to favorites' still doesn't work. I've got a whole lot of like ghosts or something of other social services I haven't even chosen displaying under the ones I have. The social buttons are sitting in the middle of my text. If I choose a one click preset, it cracks the post and gives a button javascript error. And I've lost all the alterations I had to make in 1.0 to get that to work properly. And 'add to favorites', after all that, still doesn't work. It just refreshes the page.

Sorry, bud, seriously don't want to come across as too spiteful as I can see you've put a lot of hours into this plugin. You the man. But wow there's some bugs hanging around with each release. I mean, you told me to update to 2.0 beta. So I did. This beta doesn't fix the bug I mentioned in 1.0, plus it adds a whole bunch more. And I've lost the little tweaks I had to make to 1.0 to get that one right.

And it doesn't seem like you've nofollowed the links in this version either. One of many tweaks that had to be done to 1.0. You can't have 5, 10, 20, 30 links on a page pointing out to other sites.

Anyway...

Seriously, this should not happen. Because, i released the beta after so many testing. And addtofavorites is fixed.
When the one click template is clicked, the previously made template will be over written. It will be good for me, if you give your site URL for more examination.
Also, please note that this is only the 2nd release. So there are lots more to come.
User avatar
vaakash
Site Admin
 
Posts: 704
Joined: Sun Jan 17, 2010 11:15 am
Location: India

Re: 'add to favorites' not working

Postby sidejack » Tue Sep 27, 2011 2:06 pm

Hi,

Okay, I've gone back to 1.0 for now. I've looked at my site now in other browsers and see that IE9 and all Firefox browsers have this ghosting problem for 16px social buttons, like this --

http://imageshack.us/photo/my-images/856/wpsocializerghosting.png/

As you can see, the image underneath, I think in the sprite map, appears. In IE8 I gave a CSS of
Code: Select all
.wp-socializer ul li { width: 16px !important; height: 16px !important; }
and that fixes it for IE8 and below. But IE9 and all Firefox and Chrome browsers are showing that ghosting.

I noticed 2.0 doing that as well.

Any ideas? Thanks.

Edit: Okay, nevermind. I fixed it by removing image padding for .wp-socializer.
sidejack
 
Posts: 4
Joined: Thu Sep 22, 2011 4:38 pm

Re: 'add to favorites' not working

Postby vaakash » Wed Sep 28, 2011 11:14 am

The padding mistake can also be due to the theme's default CSS for the <li> tag
User avatar
vaakash
Site Admin
 
Posts: 704
Joined: Sun Jan 17, 2010 11:15 am
Location: India


 


  • Related topics
    Replies
    Views
    Last post


Return to WP Socializer


phpBB SEO