Off Canvas sidebar is empty
  Wednesday, 06 November 2019
  5 Replies
  3.5K Visits
0
Votes
Undo
  Subscribe
HI, I added the social addon to the site, it displays well but when I click on the share, facebook for example; I get a "sorry something went wrong" . Apparently, it doesn't give the right url.
Anything I can do?
It doesn't seem to give the right og informations either...
<meta property="og:title" content="Blog Posts"><meta property="og:site_name" content="Aurel'déco"><meta property="og:url" content="https://www.XXXX.com/demo7/index.php/blog-actus/actu-aurel-deco-2/37">
on
https://www.XXX.com/demo7/index.php/blog-actus/actu-aurel-deco-2/37
0
Votes
Undo
Hi,

I apologize for our late fix! The issue was detected and forwarded to the developer. But busy schedule has made the task delayed for weeks.
And I appreciate your effort to shed a light on the issue here. We'll look into it and update the add-on, as well as its demo.

Best regards,
4 years ago
·
#1636
0
Votes
Undo
Ok, doing a self forum :D :D :D
the urls coded don't give the right informations to the social network... I thought buying templates and paid plugins were made to spare you time ...

Below is a functionning code for your social plugin, Thanks for giving credits.
IN case someone gets into the same problems

[code type="markup"]
<?php

// No direct access
defined('_JEXEC') or die;
$myUrl= (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http";) . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
if(isset($this -> item) && $this -> item){
$params = $this -> params;
$url = $this->item->link;
?>
<?php if(($params -> get('show_twitter_button',1)) OR ($params -> get('show_facebook_button',1))
OR ($params -> get('show_google_button',1)) OR $params -> get('show_pinterest_button',1)
OR $params -> get('show_linkedin_button',1)) : ?>
<div class="tz_portfolio_plus_like_button">
<div class="TzLikeButtonInner">
<?php
echo JText::_('PLG_CONTENT_SOCIAL_SHARE_LABEL');
// Facebook Button
if($params -> get('show_facebook_button',1)):
?>

<div class="FacebookButton">
<a id="fb-share"class="facebook fa-2x" rel="bookmark" onclick="window.open('http://www.facebook.com/sharer.php?u=<;?php echo $myUrl; ?>','sharer','toolbar=0,status=0,width=580,height=325')" href="javascript: void(0)">
<i class="tp tp-facebook-square"></i>
</a>
</div>

<?php endif; ?>

<?php
// Twitter Button
if($params -> get('show_twitter_button',1)):
?>
<div class="TwitterButton">
<a href="javascript:" onclick="popUp=window.open('https://twitter.com/intent/tweet?url=<;?php echo $myUrl; ?>', 'popupwindow', 'scrollbars=yes,width=800,height=400');popUp.focus();return false" class="tz-social-button tz-twitter fa-2x">
<i class="tp tp-twitter-square"></i>
</a>
</div>
<?php endif; ?>

<?php
// Google +1 Button
if($params -> get('show_google_button',1) == 1):
?>
<div class="GooglePlusOneButton">
<a id="g-share" class="st google fa-2x" onclick="window.open('https://plus.google.com/share?url=<;?php echo $myUrl; ?>','sharer','toolbar=0,status=0,width=580,height=325');" href="javascript: void(0)">
<i class="tp tp-google-plus-square"></i>
</a>
</div>
<?php endif; ?>

<?php
// Pinterest Button
if($params -> get('show_pinterest_button',1)):
?>
<div class="PinterestButton">
<a href="javascript:" onclick="popUp=window.open('http://pinterest.com/pin/create/button/?url=<;?php echo $myUrl; ?>', 'popupwindow', 'scrollbars=yes,width=800,height=450'); popUp.focus();return false" class="tz-social-button tz-pinterest fa-2x">
<i class="tp tp-pinterest-square"></i>
</a>
</div>
<?php endif;?>

<?php
// Linkedin Button
if($params -> get('show_linkedin_button',1)):
?>
<!-- Linkedin Button -->
<div class="LinkedinButton">
<a href="javascript:" onclick="popUp=window.open('http://www.linkedin.com/shareArticle?mini=true&url=<;?php echo $myUrl; ?>', 'popupwindow', 'scrollbars=yes,width=1000,height=400'); popUp.focus();return false" class="tz-social-button tz-linkedin fa-2x">
<i class="tp tp-linkedin-square"></i>
</a>
</div>
<?php endif;?>
<div class="clearfix"></div>
</div>
</div>
<?php endif; ?>
<?php }
[code type="markup"]

</code>
</code>
4 years ago
·
#1635
0
Votes
Undo
Notice that you have exactly the same problem on your sample test view social addon...
http://tzportfolio.templaza.net/addons/social.html
:( :( :(
0
Votes
Undo
Hi,

Thanks for your feedback!
We'll check the add-on and let you know then

Best regards,
4 years ago
·
#1603
0
Votes
Undo
I just checked my meta og informations on my pages and they seem fine.
  • Page :
  • 1
There are no replies made for this post yet.
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below.
Supported: gif,jpg,png,zip,rar
· Insert · Remove
  Upload Files (Maximum 2MB)

Sharing your current location while posting a new question allow viewers to identify the location you are located.

Login