Forum
Welcome, Guest
Please Login to access forum.
Re:Small problem with twitter buttons in views (1 viewing) 
Go to bottom
TOPIC: Re:Small problem with twitter buttons in views
#1555
Roland Verhaar
Fresh Boarder
Posts: 2
User Offline
Small problem with twitter buttons in views Karma: 0  
When I use the twitter-button in featured, the 'link' used is always the same, so all twitter counters in the view, show the same number of likes.
When the article is opened, the counter is correct.
I understand from the code, that the JavaScript takes the url of the browser to generate the twitterbutton, however in a view (featured or blog) this is not correct.
Can you please add the correct 'code' into the JavaScript?
I suggest the line 185:
Code:

<a href="https://twitter.com/share" class="twitter-share-button" data-text="$title" data-count="$twitterCounter" data-via="$twitterName" data-lang="{$this->langStartTag}">Tweet</a>
in fastsocialshare.php has to be expanded to contain the correct url for the article it is showing.
 
Logged Logged  
  The administrator has disabled public write access.
#1556
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:Small problem with twitter buttons in views Karma: 79  
Hello Roland,

thanks a lot to report this issue.

It has been fixed, this is the correct code:

Code:

<a href="https://twitter.com/share" class="twitter-share-button" data-text="$title" data-count="$twitterCounter" data-via="$twitterName" data-url="$url" data-lang="{$this->langStartTag}">Tweet</a>
Best regards John
 
Logged Logged  
  The administrator has disabled public write access.
#1557
Roland Verhaar
Fresh Boarder
Posts: 2
User Offline
Re:Small problem with twitter buttons in views Karma: 0  
Thanks a bunch!
That did the trick.

Roland
 
Logged Logged  
  The administrator has disabled public write access.
#1558
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:Small problem with twitter buttons in views Karma: 79  
Thanks to you we to report this

John
 
Logged Logged  
  The administrator has disabled public write access.
Go to top