Page 1 of 1

Facebook like mygtukas

Posted: Tue Jan 24, 2012 3:27 pm
by prey
Truiu problemu su facebook integracija. Įdedu like mygtuka su CGFBApp moduliu į Calguys Blog modulį.

Code: Select all

{* set a canonical variable that can be used in the head section if process_whole_template is false in the config.php *}
{if isset($entry->canonical)}
  {assign var='canonical' value=$entry->canonical}
{/if}

{if $entry->postdate}
	<div id="CGBlogPostDetailDate">
		<h1 id="CGBlogPostDetailTitle">{$entry->title|escape} <span style="font-size:11pt">{$entry->postdate|cms_date_format}</span></h1>{cms_module module='ShareItPop'}
	</div>
{/if}
{if $entry->categories}
<div class="CGBlogSummaryCategory">
{if $entry->author}

		{$author_label} {$entry->author};

{/if}
{strip}{$category_label} 
 {foreach from=$entry->categories item='category'}
    {$category.name} 
 {/foreach} 
{/strip}
</div>
{/if}

     <div style="float:left; margin-right: 10px">
{if isset($entry->fields)}
  {foreach from=$entry->fields item='field'}
	  {* this template assumes that every file uploaded is an image of some sort, because CGBlog doesn't distinguish *}
<div class="img">
	   <a class="group" href="{$entry->file_location}/{$field->value}" title="{$field->value}" rel="gallery-1"><img width="200px" src="{$entry->file_location}/{$field->value}" alt="{$field->value}" /></a>
		</div>
  {/foreach}
{/if}
</div>
 <div class="CGBlogPostDetailSummary">
{if $entry->summary}
			{eval var=$entry->summary}
	
{/if}
	{eval var=$entry->content}
</div>

{if $entry->extra}
	<div id="CGBlogPostDetailExtra">
		{$extra_label} {$entry->extra}
	</div>
{/if}

{cgfb_like}
<p> </p>
{cgfb_comments width="600"}
Tačiau facebook mygtukas neatpažysta paveiksliuko, esančio įraše. Taip pat ir nesuteikia nuorodai pavadinima, o tik rodo ilga ir baisia nuorodą. Gal galit padėti?

Re: Facebook like mygtukas

Posted: Wed Jan 25, 2012 7:26 am
by vilkis
Nelabai suprantu kas tau nesigauna.
Gal kur internete prieinamas tavo puslapis?

vilkis

PS Aš nesinaudoju jokiais moduliais facebook like mygtukui - įdedu tiesiogiai kodą sugeneruotą Facebook'e.