jDownloadsownloads.com



Author Topic: Social buttons don't displays  (Read 7592 times)

0 Members and 1 Guest are viewing this topic.

Offline romagromov

  • Sr. Member
  • ****
  • Posts: 317
Social buttons don't displays
« on: 13.03.2014 21:23:54 »
Hi!
I insert this code in details layout

Code: [Select]
<script type="text/javascript" src="//yandex.st/share/share.js"
charset="utf-8"></script>
<div class="yashare-auto-init" data-yashareL10n="ru"
 data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir" data-yashareTheme="counter"

></div>


So layout code looks like:

Code: [Select]
<table style="width: 100%;" border="0" cellspacing="5" cellpadding="0">
<tbody>
<tr>
<td colspan="3" valign="top" height="38">
<h1>{file_pic} Скачать {file_title}</h1>
<span>{release}</span></td>
<td>
<p style="text-align: right;">{rating}</p>
</td>
</tr>
</tbody>
</table>
<p>{tabs begin} {tab pics}</p>
<table border="0" cellspacing="1" cellpadding="4" align="center">
<tbody>
<tr>
<td>
<div style="width: 200px; height: 200px; border: 1px dotted #f3f3f3;">googledetail_top</div>
</td>
<td>{screenshot_begin}<a href="{screenshot}" rel="lightbox"> <img src="{thumbnail}" alt="" align="right" hspace="10" vspace="0" /></a>{screenshot_end}</td>
<td>{screenshot_begin2}<a href="{screenshot2}" rel="lightbox"> <img src="{thumbnail2}" alt="" align="right" hspace="10" vspace="0" /></a>{screenshot_end}</td>
</tr>
</tbody>
</table>
<p>{tab pics end} {tab description}</p>
<table style="width: 100%;" border="0" cellspacing="5" cellpadding="0">
<tbody>
<tr>
<td valign="top">{description_long}</td>
</tr>
</tbody>
</table>
<div align="center">
<table class="myborderline" style="border: thin solid #cecece; padding: 5px; background-color: #efefef; width: 87%;" border="1" cellspacing="3" cellpadding="0">
<tbody>
<tr>
<td colspan="2" valign="top" height="25">
<p style="background-color: #cecece; padding: 2px;" align="center"><strong>{details_block_title}</strong></p>
</td>
</tr>
<tr>
<td valign="top">{file_name_title}</td>
<td style="text-align: right;" valign="top">{file_name}</td>
</tr>
<tr>
<td valign="top">{filesize_title}</td>
<td style="text-align: right;" valign="top">{filesize_value}</td>
</tr>
<tr>
<td valign="top">{hits_title}</td>
<td style="text-align: right;" valign="top">{hits_value}</td>
</tr>
<tr>
<td valign="top">{language_title}</td>
<td style="text-align: right;" valign="top">{language_text}</td>
</tr>
<tr>
<td valign="top">{license_title}</td>
<td style="text-align: right;" valign="top">{license_text}</td>
</tr>
<tr>
<td valign="top">{author_title}</td>
<td style="text-align: right;" valign="top">{author_text}</td>
</tr>
<tr>
<td valign="top">{author_url_title}</td>
<td style="text-align: right;" valign="top">{author_url_text}</td>
</tr>
<tr>
<td valign="top">{price_title}</td>
<td style="text-align: right;" valign="top">{price_value}</td>
</tr>
<tr>
<td valign="top">{created_date_title}</td>
<td style="text-align: right;" valign="top">{created_date_value}</td>
</tr>
<tr>
<td valign="top">{modified_date_title}</td>
<td style="text-align: right;" valign="top">{modified_date_value}</td>
</tr>
</tbody>
</table>
</div>

<script type="text/javascript" src="//yandex.st/share/share.js"
charset="utf-8"></script>
<div class="yashare-auto-init" data-yashareL10n="ru"
 data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir" data-yashareTheme="counter"

></div>




<p>{tab data end} {tab download}</p>
<table style="width: 100%;" border="0" cellspacing="5" cellpadding="0">
<tbody>
<tr>
<td align="center" height="20">{filesize_title}: {filesize_value}</td>
</tr>
<tr>
<td align="center" valign="middle">{url_download} {mirror_1} {mirror_2}</td>
</tr>
<tr>
<td align="center" height="20">{report_link}</td>
</tr>
</tbody>
</table>
<p>{tab download end}{tabs end}</p>

This code must displays social buttons from this service http://api.yandex.ru/share/

Buttons don't displays
I changed site template - no results/
Why this code don't work?


Best free windows software for your PC at bestwinsoft.com

Offline romagromov

  • Sr. Member
  • ****
  • Posts: 317
Re: Social buttons don't displays
« Reply #1 on: 15.03.2014 22:01:32 »
I found that any other code don't work too.
I think problem in jdownloads layouts.
Need help....
Best free windows software for your PC at bestwinsoft.com

Offline Arno

  • Administrator
  • ***
  • Posts: 12.239
    • jDownloads.com
Re: Social buttons don't displays
« Reply #2 on: 17.03.2014 11:10:46 »
Hi,
i think it is not possible to add in this way javascript code.
But i have it not tried self.

Perhaps it is better to use a special joomla script plugin. So you define in it what you need and insert it in the layout via the plugin placeholder syntax.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline romagromov

  • Sr. Member
  • ****
  • Posts: 317
Re: Social buttons don't displays
« Reply #3 on: 17.03.2014 11:32:26 »
Hi,
i think it is not possible to add in this way javascript code.
But i have it not tried self.

Perhaps it is better to use a special joomla script plugin. So you define in it what you need and insert it in the layout via the plugin placeholder syntax.

Thanks for the reply.
I tried to use sourcerer - no success.

Please, point me in the right direction.
What should I do with a special joomla script plugin? How it called?
How do define plugin placeholder syntax and use it?
« Last Edit: 17.03.2014 11:34:18 by romagromov »
Best free windows software for your PC at bestwinsoft.com

Offline Arno

  • Administrator
  • ***
  • Posts: 12.239
    • jDownloads.com
Re: Social buttons don't displays
« Reply #4 on: 17.03.2014 11:38:32 »
You must activate in the jD configuration the support for other joomla plugins. Then should it work.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline romagromov

  • Sr. Member
  • ****
  • Posts: 317
Re: Social buttons don't displays
« Reply #5 on: 17.03.2014 13:21:05 »
You must activate in the jD configuration the support for other joomla plugins. Then should it work.

Joomla plugins already enabled




Then I tryed to insert code using sourcerer syntax

Code: [Select]
</tr>
</tbody>
</table>
</div>
------------

-----------

<p>{tab data end} {tab download}</p>
<table style="width: 100%;" border="0" cellspacing="5" cellpadding="0">
<tbody>
<tr>>


But it don't work...


Best free windows software for your PC at bestwinsoft.com

Offline Arno

  • Administrator
  • ***
  • Posts: 12.239
    • jDownloads.com
Re: Social buttons don't displays
« Reply #6 on: 17.03.2014 15:58:11 »
Hi,
post here the scripts what i need to test it self.
I have only found a yashare module...
« Last Edit: 17.03.2014 15:59:35 by Arno »
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline romagromov

  • Sr. Member
  • ****
  • Posts: 317
Re: Social buttons don't displays
« Reply #7 on: 17.03.2014 16:26:00 »
Hi,
post here the scripts what i need to test it self.
I have only found a yashare module...



I tested a couple scripts - no one works.

Ok, here some scripts

1. Yandex Social Share

Code: [Select]
<script type="text/javascript" src="//yandex.st/share/share.js"
charset="utf-8"></script>
<div class="yashare-auto-init" data-yashareL10n="ru"
 data-yashareQuickServices="vkontakte,facebook,twitter,gplus,odnoklassniki,moimir,yaru" data-yashareTheme="counter">
</div>
 


2 share.pluso

Code: [Select]
<script type="text/javascript">(function() {
  if (window.pluso)if (typeof window.pluso.start == "function") return;
  if (window.ifpluso==undefined) { window.ifpluso = 1;
    var d = document, s = d.createElement('script'), g = 'getElementsByTagName';
    s.type = 'text/javascript'; s.charset='UTF-8'; s.async = true;
    s.src = ('https:' == window.location.protocol ? 'https' : 'http')  + '://share.pluso.ru/pluso-like.js';
    var h=d[g]('body')[0];
    h.appendChild(s);
  }})();</script>
<div class="pluso" data-background="transparent" data-options="medium,square,line,horizontal,nocounter,theme=04" data-services="vkontakte,odnoklassniki,facebook,twitter,google,moimir,email,print"></div>

 
Best free windows software for your PC at bestwinsoft.com

Offline Arno

  • Administrator
  • ***
  • Posts: 12.239
    • jDownloads.com
Re: Social buttons don't displays
« Reply #8 on: 18.03.2014 00:10:18 »
Hm... seems it is a problem with the layouts.
Must test this more tomorrow....
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline romagromov

  • Sr. Member
  • ****
  • Posts: 317
Re: Social buttons don't displays
« Reply #9 on: 18.03.2014 10:31:28 »
Hm... seems it is a problem with the layouts.
Must test this more tomorrow....

Thank you. I'll be waiting.
Best free windows software for your PC at bestwinsoft.com

Offline junisheikh

  • Newbie
  • *
  • Posts: 1
Re: Social buttons don't displays
« Reply #10 on: 18.03.2014 15:51:37 »
Yes after activating, it was working fine. I had some issues though after activation. but they dont seem to come agian. Its stable now! Thank you guys!

Offline romagromov

  • Sr. Member
  • ****
  • Posts: 317
Re: Social buttons don't displays
« Reply #11 on: 18.03.2014 19:24:50 »
Yes after activating, it was working fine. I had some issues though after activation. but they dont seem to come agian. Its stable now! Thank you guys!

What are you talking about?
Best free windows software for your PC at bestwinsoft.com

Offline Arno

  • Administrator
  • ***
  • Posts: 12.239
    • jDownloads.com
Re: Social buttons don't displays
« Reply #12 on: 18.03.2014 19:25:26 »
Yes after activating, it was working fine. I had some issues though after activation. but they dont seem to come agian. Its stable now! Thank you guys!
You have tested the posted code from romagromov and it works for you in your templates?  ???
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline romagromov

  • Sr. Member
  • ****
  • Posts: 317
Re: Social buttons don't displays
« Reply #13 on: 18.03.2014 19:52:41 »
You have tested the posted code from romagromov and it works for you in your templates?  ???

May be he wrote in wrong topic  ::)

I checked problem in native joomla templates - no success, it seems problem in jdownloads layouts.
Best free windows software for your PC at bestwinsoft.com

Offline Arno

  • Administrator
  • ***
  • Posts: 12.239
    • jDownloads.com
Re: Social buttons don't displays
« Reply #14 on: 19.03.2014 00:14:37 »
Hi,
after extensive debugging, i have now found the solution.
- since we use normally not an editor for the layouts, you must use for the first placeholder instead {source}. See info in pic 1.
- when you have activated this jD option in config (see pic 2), you must insert a character between the script tag. Otherwise it is empty and complete removed.

The result can you seen in the third pic (example with Joomla 2.5).

Here is the complete example:
Code: [Select]
{source 0}<script type="text/javascript" src="//yandex.st/share/share.js"
charset="utf-8">x</script>
<div class="yashare-auto-init" data-yashareL10n="ru"
data-yashareQuickServices="vkontakte,facebook,twitter,gplus,odnoklassniki,moimir,yaru" data-yashareTheme="counter">
</div>
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!