PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : مشکل Parse با google friend connect



mot.moh
07-06-2009, 04:19 PM
سلام

من میخوام از گوگل فرند کانکت استفاده کنم توی فروم اما وقتی کد رو میزارم توی قالب با این مشکل برمیخورم.


Template Parse Error!
There was a problem loading the /Themes/MicrosofT/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_STRING, expecting ',' or ';'


چطور این مشکل رو حل کنم؟ آیا باید توی کد تغییری بدم؟
هاستم هم مامبولرنه.

firoozmandan
07-06-2009, 06:27 PM
سلام

کدی که میذارید رو اینجا قرار بدید

به نظر میاد ; رو فراموش میکنید ...

یا علی

mot.moh
07-07-2009, 08:42 AM
<!-- Include the Google Friend Connect javascript library. -->
&lt;script type=&quot;text/javascript&quot; src=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
&lt;!-- Define the div tag where the gadget will be inserted. --&gt;
&lt;div id=&quot;div-627962924236970029&quot;&gt;&lt;/div&gt;
&lt;!-- Render the gadget into a div. --&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var skin = {};
skin[&#039;BORDER_COLOR&#039;] = &#039;#cccccc&#039;;
skin[&#039;ENDCAP_BG_COLOR&#039;] = &#039;#e0ecff&#039;;
skin[&#039;ENDCAP_TEXT_COLOR&#039;] = &#039;#333333&#039;;
skin[&#039;ENDCAP_LINK_COLOR&#039;] = &#039;#0000cc&#039;;
skin[&#039;ALTERNATE_BG_COLOR&#039;] = &#039;#ffffff&#039;;
skin[&#039;CONTENT_BG_COLOR&#039;] = &#039;#ffffff&#039;;
skin[&#039;CONTENT_LINK_COLOR&#039;] = &#039;#0000cc&#039;;
skin[&#039;CONTENT_TEXT_COLOR&#039;] = &#039;#333333&#039;;
skin[&#039;CONTENT_SECONDARY_LINK_COLOR&#039;] = &#039;#7777cc&#039;;
skin[&#039;CONTENT_SECONDARY_TEXT_COLOR&#039;] = &#039;#666666&#039;;
skin[&#039;CONTENT_HEADLINE_COLOR&#039;] = &#039;#333333&#039;;
skin[&#039;POSITION&#039;] = &#039;bottom&#039;;
skin[&#039;DEFAULT_COMMENT_TEXT&#039;] = &#039;- add your comment here -&#039;;
skin[&#039;HEADER_TEXT&#039;] = &#039;Comments&#039;;
google.friendconnect.container.setParentUrl(&#039;/&#039; /* location of rpc_relay.html and canvas.html */);
google.friendconnect.container.renderSocialBar(
{ id: &#039;div-627962924236970029&#039;,
site: &#039;12928990825672368512&#039;,
&#039;view-params&#039;:{&quot;scope&quot;:&quot;PAGE&quot;,&quot;features&quot;:&quot;video,comment&quot; ,&quot;showWall&quot;:&quot;true&quot;}
},
skin);
&lt;/script&gt;

بعید میدونم ! اسکریپتیه که خود گوگل generate می کنه. بعدش هم توی وردپرس امتحان کردم جواب داد !

firoozmandan
07-08-2009, 07:31 AM
کد رو باید از طریق echo در قالب انجمن بذارید
همچنین باید تمام &#039; هارو به &quot; تغییر بدید