Button does not work to share in facebook . At the demo site , too

2 years 8 months ago #244
Topic Author
stako's Avatar
Posts: 1
Button does not work to share in facebook . At the demo site , too

Button does not work to share in facebook . At the demo site , too

2 years 8 months ago #245
Dmitry's Avatar
Posts: 660
Re: Button does not work to share in facebook . At the demo site , too

Hello!

I just checked our demo website - everything is working. Can you be more specific - what exactly is wrong?

Dmitry


Like our extensions and support?
Add your voice to the JED listing with a 100-score review: bit.ly/2ciJBqC
Thanks!

2 years 8 months ago #246
Dmitry's Avatar
Posts: 660
Re: Button does not work to share in facebook . At the demo site , too

Ok, I was checking on mobile device through application - is working. In browser I see the problem - window is closing immediately. Not sure why :( We will investigate ;)

Dmitry


Like our extensions and support?
Add your voice to the JED listing with a 100-score review: bit.ly/2ciJBqC
Thanks!

2 years 8 months ago #247
Dmitry's Avatar
Posts: 660
Re: Button does not work to share in facebook . At the demo site , too

Hi!

We have founded an issue and fixed it. You can fix it until new version 1.4.0 will come out (estimate end of February).

Open components/com_competition/themes/your_theme/_share.php and add this code before line 92:

else if( type === 'facebook' ){
	popupwindow(link+encodeURIComponent(location.href), encodeURIComponent(document.title)+' '+encodeURIComponent(location.href),600,600);
}

It should look like this:
if( type === 'pinterest' ){
	popupwindow(link + '&media=<?php echo urlencode($img); ?>&description='+encodeURIComponent(document.title), encodeURIComponent(document.title)+' '+encodeURIComponent(location.href),600,600);
}else if( type === 'vk' ){
	popupwindow(link +'&image=<?php echo urlencode($img); ?>&description='+ encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href), encodeURIComponent(document.title)+' '+encodeURIComponent(location.href),600,600);
}else if( type === 'facebook' ){
	popupwindow(link+encodeURIComponent(location.href), encodeURIComponent(document.title)+' '+encodeURIComponent(location.href),600,600);
}else{
	popupwindow(link + encodeURIComponent(document.title)+' '+encodeURIComponent(location.href), encodeURIComponent(document.title)+' '+encodeURIComponent(location.href),600,600);
}

Dmitry


Like our extensions and support?
Add your voice to the JED listing with a 100-score review: bit.ly/2ciJBqC
Thanks!

2 years 7 months ago #257
web@chabo.ca's Avatar
Posts: 2
Re: Button does not work to share in facebook . At the demo site , too

I have the same issue and I try to fix it but we don't have the same code at all...

NorrCompetition	Administrator 	Component 	1.3.0 	15-12-2015 	Dmitry Rekun
jQuery("#nc-share [data-network] a").on({
	  click: function(e) {
			var link = jQuery(this).attr('href');
			var type = jQuery(this).closest('[data-network]').data('network');
			if (type === 'pinterest'){
				popupwindow(link + '&media=<?php echo urlencode($img); ?>&description='+encodeURIComponent(document.title), encodeURIComponent(document.title)+' '+encodeURIComponent(location.href),600,600);
			}else if (type === 'vk'){
				popupwindow(link +'&image=<?php echo urlencode($img); ?>&description='+ encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href), encodeURIComponent(document.title)+' '+encodeURIComponent(location.href),600,600);
			}else{
				popupwindow(link + encodeURIComponent(document.title)+' '+encodeURIComponent(location.href), encodeURIComponent(document.title)+' '+encodeURIComponent(location.href),600,600);
			}
			e.preventDefault();
		}
	});

What do I need to change until you release the new version?

2 years 7 months ago #258
Dmitry's Avatar
Posts: 660
Re: Button does not work to share in facebook . At the demo site , too

Hello!

It is not possible that you do not have this code. What file you are checking?

P.S.
We are planning to release new version on 02.03.2016.


Like our extensions and support?
Add your voice to the JED listing with a 100-score review: bit.ly/2ciJBqC
Thanks!

2 years 7 months ago #279
Dmitry's Avatar
Posts: 660
Re: Button does not work to share in facebook . At the demo site , too

We have released 1.4.0 with the fix.


Like our extensions and support?
Add your voice to the JED listing with a 100-score review: bit.ly/2ciJBqC
Thanks!

You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+2). but not limited. Our staff will be pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days. In case of free extensions we do the best to develop and maintain them either, but their support is not necessary.

Product Latest Update