PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Artikelseite Facebook und g+1



Tormentor
14.11.2014, 15:44
Hallo,

auf der Artikelseite wenn man das per Facebook teilen möchte und den Butten anschaltet, verschwindet das Zeichen genau so auch bei g+1

Gruß

KlausK
18.11.2014, 20:14
Der IFrame für FB ist völlig durcheinander!
Schau dir mal die Datei /system/conf/js_options/social_share_plugin.php an.
Der Inhalt sollte so aussehen:


<?php
/*
# --------------------------------------------------------------
# social_share_plugin.js 2014-11-15 tb@gambio
# Gambio GmbH
# http://www.gambio.de
# Copyright (c) 2014 Gambio GmbH
# Released under the GNU General Public License (Version 2)
# [http://www.gnu.org/licenses/gpl-2.0.html]
# --------------------------------------------------------------
*/
?><?php

$t_local_code = $_SESSION['language_code'];

switch($t_local_code){
case 'en': $t_local_language_code = 'US';
break;
default: $t_local_language_code = strtoupper($t_local_code);
}

$array['social_share'] = array();
$array['social_share']['facebook_share_box'] = array();
$array['social_share']['facebook_share_box']['image'] = "<img src='templates/EyeCandy/img/social_share_dummy_facebook.png' alt='' title='Facebook' />";
$array['social_share']['facebook_share_box']['code'] = "<iframe src='http://www.facebook.com/plugins/like.php?locale=" . $t_local_code . "_" . $t_local_language_code . "&amp;href=#location_encoded#&amp;send=false&amp;layout=button_ count&amp;width=115&amp;show_faces=false&amp;action=recommend&amp; colorscheme=light&amp;height=20' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:115px; height:20px;' allowTransparency='true'></iframe>";
$array['social_share']['twitter_share_box'] = array();
$array['social_share']['twitter_share_box']['image'] = "<img src='templates/EyeCandy/img/social_share_dummy_twitter.png' alt='' title='Twitter' />";
$array['social_share']['twitter_share_box']['code'] = "<iframe allowtransparency='true' frameborder='0' scrolling='no' src='http://platform.twitter.com/widgets/tweet_button.html?url=#location_encoded#&amp;count=non e&amp;counturl=" . HTTP_SERVER . DIR_WS_CATALOG . "&amp;text=#text#&amp;count=data-count&amp;lang=" . $t_local_code . "' style='width:115px; height:20px;' class='twitter-count-none'></iframe>";
$array['social_share']['googleplus_share_box'] = array();
$array['social_share']['googleplus_share_box']['image'] = "<img src='templates/EyeCandy/img/social_share_dummy_googleplus.png' alt='' title='Google +1' />";
$array['social_share']['googleplus_share_box']['code'] = "<div class='g-plusone' data-size='medium' data-href='#location#'></div><script type='text/javascript'>window.___gcfg = {lang: '" . $t_local_code . "'}; (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script>";
$array['social_share']['pinterest_share_box'] = array();
$array['social_share']['pinterest_share_box']['image'] = "<img src='templates/EyeCandy/img/social_share_dummy_pinterest.png' alt='' title='Pinterest' />";
$array['social_share']['pinterest_share_box']['code'] = "<a href='http://pinterest.com/pin/create/button/?url=#location_encoded#&amp;media=#product_image#&amp;desc ription=#text#' rel='nofollow' data-pin-do='buttonPin' data-pin-config='none'><img src='http://assets.pinterest.com/images/pidgets/pin_it_button.png' alt='Pinterest' /></a><script type='text/javascript' src='http://assets.pinterest.com/js/pinit.js'></script>";

Tormentor
26.11.2014, 15:41
Hallo Klaus,

sorry konnte mich erst jetzt melden war bzw. bin beschäftigt mit Umzug in den Nachbahr - Ort, hab den Code mal bei mir einebaut un alles wird gut, DANKE auf dich ist Verlass :rolleyes:

Gruß
OLI

GB-Shop
28.03.2015, 13:09
Hallo Klaus,
war auf der Suche nach der "Zweiklicklösung" auf diesen Beitrag von dir gekommen. Den Code habe ich eingebunden, aber nichts passiert. Muss da in der Datenbank oder im Backend noch was eingestellt werden.
Schönes Wochenende.
Günter

KlausK
29.03.2015, 13:58
Den Code brauchst du nicht einbinden, der ist bereits voll im GX integriert.
Du musst die Buttons nur aktivieren!

Im StyleEdit >>> Option >>> Weitere Einstellungen >>> Template Konfiguration >>> alle drei Facebook-, Tweet- und Google-Buttons aktivieren >>> weiter unten auf Speichern

Oder direkt in der Datenbank:
Shopdatenbank >>> Table gm_configuration >>> gm_key SHOW_FACEBOOK >>> auf true setzen
Shopdatenbank >>> Table gm_configuration >>> gm_key SHOW_TWITTER >>> auf true setzen
Shopdatenbank >>> Table gm_configuration >>> gm_key SHOW_GOOGLEPLUS >>> auf true setzen

GB-Shop
29.03.2015, 14:19
Das war ja mal einfach, wenn man weiß wie es geht.
Vielen Dank und schönen Sonntag noch

GB-Shop
03.04.2015, 11:09
Hallo Klaus,
habe noch eine Zusatzfrage.
Wo kann ich Info-Text(box) als Mouse-Over auf die Schieberegler hinzufügen.
Z.B. bei Facebook:
2 Klicks f&uuml;r mehr Datenschutz:<br />Erst wenn Sie hier klicken, wird der Button aktiv und Sie k&ouml;nnen Ihre Empfehlung an Facebook senden. Schon beim Aktivieren werden Daten an Dritte &uuml;bertragen
Vielen Dank für Deine Bemühungen.
Günter

KlausK
08.04.2015, 13:14
/templates/EyeCandy/module/product_info/standard.html
Suche:


{if $SHOW_FACEBOOK}
<div class="social_share_box" id="facebook_share_box">
<div class="social_share_image"></div>
<div class="social_share_content"><img src="templates/EyeCandy/img/social_share_dummy_facebook.png" title="Facebook" /></div>
<div style="clear: both"> <!-- --> </div>
</div>

Änder in:


{if $SHOW_FACEBOOK}
<div class="social_share_box" id="facebook_share_box">
<div class="social_share_image" title="2 Klicks f&uuml;r mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie k&ouml;nnen Ihre Empfehlung an Facebook senden. Schon beim Aktivieren werden Daten an Dritte &uuml;bertragen"></div>
<div class="social_share_content"><img src="templates/EyeCandy/img/social_share_dummy_facebook.png" title="Facebook" /></div>
<div style="clear: both"> <!-- --> </div>
</div>

GB-Shop
08.04.2015, 13:57
Alles Bestens. Habe ich auch so für Twitter und Google+ übernommen.
Vielen Dank
Günter