zdaję się że trzeba to zrobić w pliku sobi2.details.tmpl.php...
Pozdrawiam!!!
Kusy
06-09-2011, 21:02
Witam.
Już gdzieś kiedyś o tym było ale wklejam dla przypomnienia. Wystarczy, że wrzucisz ten kod do szablonu widoku szczegółowego (w miejsce w którym chcesz żeby się wyświetlał):
<?php $host = $_SERVER['HTTP_HOST'];
$self = $_SERVER['PHP_SELF']; $query = !empty($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : null; $url = !empty($query) ? "http://$host$self?$query" : "http://$host$self";
$url = substr($url,7); $url = str_replace("/","%2F" ,$url ); $url = str_replace("?","%3F" ,$url );
$url = str_replace("=","%3D" ,$url ); $url = str_replace("&","%26" ,$url );
echo '<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2F'.$url.'&layout=box _count&show_faces=false&width=400&acti on=like&colorscheme=light&height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:400px; height:65px;" allowTransparency="true"></iframe>'; ?>Oczywiście dzięki temu każdy wpis będzie miał swój unikalny przycisk "lubię to"
Pozdrawiam
gabriel8822756
13-12-2011, 23:33
No i masz babo placek, zrobiłem tak i sobi nie wyswietla mi widoku szczegolowego wcale, po usunieciu kode od fejsa tez
<?php
/**
* @version $Id: sobi2.details.tmpl.php 5462 2010-08-18 08:25:37Z Sigrid Suski $
* @package: Sigsiu Online Business Index 2 (Sobi2)
* ================================================== =
* @author
* Name: Sigrid & Radek Suski, Sigsiu.NET GmbH
* Email: sobi[at]sigsiu.net
* Url: http://www.sigsiu.net
* ================================================== =
* @copyright Copyright (C) 2006 - 2010 Sigsiu.NET GmbH (http://www.sigsiu.net). All rights reserved.
* @license see http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL.
* You can use, redistribute this file and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation.
*/
/*please do not remove this line */
defined( '_SOBI2_' ) || exit("Restricted access");
---------- Post dodany o 23:33 ---------- Poprzedni post był o 16:11 ----------
Panowie przepraszam ze podbijam temat ale sypnełem przez to działająca strone. Prosze was o pilna pomoc, sam nie chce sie odzywac bo jeszcze bardziej cos zepsuje