Witam,
Chcia?bym wstawi? na stron? panel "Google sie? znajomych".
Jednak gdy wpisuj? kod do panelu wywala b??d:
Parse error: syntax error, unexpected T_STRING in domena/administration/panel_editor.php(128) : eval()'d code on line 5
Przy kodzie z poprawionymi " na ' o takim wygl?dzie:
openside("Przyjaciele");
echo ('
<center>
<!-- Include the Google Friend Connect javascript library. -->
<script type='text/javascript' src='http://www.google.com/friendconnect/script/friendconnect.js'></script>
<!-- Define the div tag where the gadget will be inserted. -->
<div id='div-6821685870195143065" style="width:200px;'></div>
<!-- Render the gadget into a div. -->
<script type='text/javascript'>
var skin = {};
skin['BORDER_COLOR'] = 'transparent';
skin['ENDCAP_BG_COLOR'] = 'transparent';
skin['ENDCAP_TEXT_COLOR'] = '#333333';
skin['ENDCAP_LINK_COLOR'] = '#0000cc';
skin['ALTERNATE_BG_COLOR'] = 'transparent';
skin['CONTENT_BG_COLOR'] = 'transparent';
skin['CONTENT_LINK_COLOR'] = '#0000cc';
skin['CONTENT_TEXT_COLOR'] = '#333333';
skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
skin['CONTENT_HEADLINE_COLOR'] = '#333333';
skin['NUMBER_ROWS'] = '7';
google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
google.friendconnect.container.renderMembersGadget(
{ id: 'div-6821685870195143065',
site: '08995517864726796489' },
skin);
</script> </center> ');
closeside();
Kliknij i zaczekaj na załadowanie kodu ...
Gdy kod jest niepoprawiony wygl?da to tak:
B?ad: Parse error: syntax error, unexpected T_STRING in domena/administration/panel_editor.php(128) : eval()'d code on line 11
A kod wygl?da tak:
openside("Przyjaciele");
echo ('
<center>
<!-- Include the Google Friend Connect javascript library. -->
<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
<!-- Define the div tag where the gadget will be inserted. -->
<div id="div-6821685870195143065" style="width:200px;"></div>
<!-- Render the gadget into a div. -->
<script type="text/javascript">
var skin = {};
skin['BORDER_COLOR'] = 'transparent';
skin['ENDCAP_BG_COLOR'] = 'transparent';
skin['ENDCAP_TEXT_COLOR'] = '#333333';
skin['ENDCAP_LINK_COLOR'] = '#0000cc';
skin['ALTERNATE_BG_COLOR'] = 'transparent';
skin['CONTENT_BG_COLOR'] = 'transparent';
skin['CONTENT_LINK_COLOR'] = '#0000cc';
skin['CONTENT_TEXT_COLOR'] = '#333333';
skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
skin['CONTENT_HEADLINE_COLOR'] = '#333333';
skin['NUMBER_ROWS'] = '7';
google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
google.friendconnect.container.renderMembersGadget(
{ id: 'div-6821685870195143065',
site: '08995517864726796489' },
skin);
</script> </center> ');
closeside();
Kliknij i zaczekaj na załadowanie kodu ...
W PA -> banery panel dzia?a.
Prosz? o pomoc w tym temacie, jak to zaimplementowa?, a mo?e wrzuci? to gdzie? zupe?nie indziej?
Mam nadziej? ?e dobrze napisa?em temat.
//B??dy w code - Chemikpil
PW od moderatora:
- Przeniesienie tematu - Chemikpil 20.07 - 23:33
Edytowane przez Pieka dnia 20.07.2009 23:50:20
|