Zainspirowany tematem na Oficjalnym Supporcie PHP-Fusion, postanowi?em podzieli? si? z Wami skryptem od Google, który dzia?a mniej wi?cej, jak "Znajd? nas na Facebooku". Ró?nica jest taka, ?e tutaj bawimy si? konkurencyjnym Google+. Oczywi?cie, by ca?o?? w ogóle mia?a sens, nale?y doda? swoj? stron? do Google+.
Instalacja:
- Wchodzimy na stron? https://developer...dge/config.
- Wpisujemy tzw. Google+ Page ID, czyli numer identyfikacyjny naszej strony.
- Nast?pnie mo?na - wedle uznania - ustawi? wygl?d oraz funkcje przysz?ego panelu.
- Tworzy si? kod i teraz trzeba go ?adnie umie?ci? w panelu. Dlatego te? przechodzimy PA --> Zarz?dzanie stron? --> Panele i dodajemy nowy panel.
Tre?? powinna wygl?da? wg schematu:
add_to_head("Tre?? z <!-- Place this tag in the <head> of your document -->");
openside("Znajd? nas na Google+");
echo "Tre?? z <!-- Place this tag where you want the badge to render -->\n";
closeside();
Przyk?ad (wzi?ty z Oficjalnego Supportu):
add_to_head ("
<link href='https://plus.google.com/115557867634843097728' rel='publisher' /><script type='text/javascript'>
window.___gcfg = {lang: 'en'};
(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>
");
openside("Follow us on Google+");
echo "<g:plus href='https://plus.google.com/115557867634843097728' width='180' height='69' theme='light'></g:plus>\n";
closeside();
Demo.
Nie pomagam przez GG, PW itp. Tylko tutaj.

|