Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 $socialbuttonfacebook parameter having no effect
Author « Topic »  

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 11/16/2020 :  18:38:30  
Most ECT Users will be including Social Media Buttons on Product and Article detail pages, particularly Facebook Like and Share buttons, the appearance of which is defined by adding this parameter to vsadmin/includes.php

$socialbuttonfacebook='<div class="fb-like" data-href="%pageurl%" data-layout="button" data-action="like" data-size="large" data-show-faces="false" data-share="true"></div>';

If you look at a Product page like this here notice that the right half of the Share button is chopped off. This is a bug in the Facebook embed code which has been reported and is under investigation. (The pixel width of the relevant table cell is wrong; should be auto.)

Anyway ... the point of my post ... my short term solution was to simply have a Like button only and omit the Share button, which is easily done as explained here by altering the $socialbuttonfacebook parameter entry like so:

$socialbuttonfacebook='<div class="fb-like" data-href="%pageurl%" data-layout="button" data-action="like" data-size="large" data-show-faces="false" data-share="false"></div>';

But did that work? NO

No matter what I could only get a button_count + Share button. Altering the $socialbuttonfacebook entry is having no effect whatsoever.
My I.T.ZAP website is running ECT PHP v7.2.3. The $socialbuttontwitter and $socialbuttonpinterest parameters appear to work fine.

However, on another website running earlier ECT PHP v6.9.1, making the same alteration to $socialbuttonfacebook works just fine

Much appreciate if you could please take a look at this issue Vince ?

P.S. Links to other pages in forum posts are now the same color as other text, not a color like blue?

Gary

Edited by - ITZAP on 11/16/2020 18:57:06

Vince
Administrator

42766 Posts

Posted - 11/17/2020 :  02:31:44  
Hi Gary
I'm not sure when this changed but could you try $sbfacebook instead of $socialbuttonfacebook. Also, $sblinkedin and $sbtwitter should work but there is no $socialbuttontwitter etc.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 11/17/2020 :  16:51:57  
Solved, thank you Vince

Gary
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000