CGBloch urgent help needed

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
marmollo
Forum Members
Forum Members
Posts: 33
Joined: Mon Jan 11, 2010 3:27 pm

CGBloch urgent help needed

Post by marmollo »

Hi there I want to do the following, the summary of cgblogs display all the entries I have already tried to adapt the template where only logged in users can see the entries


here is the code




{if $pagecount > 1}
 
{if $pagenumber > 1}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber
{/if}


{foreach from=$items item=entry}
{if !$entry->author != !$ccuser->loggedin()}
sorry geht nicht
{else}


{if $entry->postdate}

{$entry->postdate|cms_date_format}

{/if}


detail_url}" title="{$entry->title|escape:htmlall}">{$entry->title|escape}


{if $entry->categories}

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

{/if}

{if $entry->author}

{$author_label} {$entry->author}

{/if}

{if $entry->summary}

{eval var=$entry->summary}


{else if $entry->content}


{eval var=$entry->content}

{/if}

{if isset($entry->extra)}
   
        {eval var=$entry->extra}
{* {cms_module module='Uploads' mode='simpleurl' upload_id=$entry->extravalue} *}
   
{/if}
{if isset($entry->fields)}
  {foreach from=$entry->fields item='field'}
   
        {if $field->type == 'file'}
          file_location}/{$field->value}"/>
        {else}
          {$field->name}: {eval var=$field->value}
        {/if}
   
  {/foreach}
{/if}


{CGFeedback key1="News" key2=$entry->id action='ratings'}
{/if}
{/foreach}


I wanted to let the logged in users only see there
own blogs but i have no clue how to that the filtetr should be based on entryuser of the blog and the usr loggd in

andy help greatly appreciated
Post Reply

Return to “Modules/Add-Ons”