Page 1 of 1

[Solved]About the smarty loggedin() function and cms1.5.1

Posted: Thu Dec 11, 2008 8:50 am
by didou
hello everybody,

I'm brand new on this forum, i have discover cmsmadesimple after using a fwe others cms and i find it verty good

i have just upgrade to the new version 1.5.1 from 1.4.1, eveything work fine except the fact than before i was using the smarty function
loggedin() }
with delight for having on the website  private content.
{ if $ccuser->loggedin() }
Welcome user
{else}
    You must register to access to this content
{/if}
and also, i found it so useful because i used it also this way, to get private (detailtemplate) of an  article
{ if $ccuser->loggedin() }
   
{eval var=$entry->content}

  {else}
    You must register to access to this content..
   {/if}
{news category="Education"  number="1" detailtemplate="sample2" detailpage="Home_1"}
And that was working perfectly, i found it so useful because that was something i was looking for a long time... but now after having upgrade to 1.5.1
this function dosen't do anything I get this error
Fatal error: Call to a member function loggedin() on a non-object in /home/users/00/08/3b/home/www/tmp/templates_c/News^%%7B^7B5^7B51B082%%module_db_tpl%3ANews%3Bdetailsample2.php on line 39


I have tried already to find informations by searching in the posts of the forum but still don't know if the problem is due to

1-the new version core of 1.5.1
2-missing plugin
3-or smarty function missing
or may be something else, even if i know a bit about php i'm not a great developper....

I fell shame cause it was a great solution tout get private content solution on article content,
if somebody have an idea about this

Thanks for reading me

[Solved] About the smarty loggedin() function and cms1.5.1

Posted: Thu Dec 11, 2008 2:24 pm
by didou
Good morning,

So i finaly get by chance, starting again later in the afternoon on new bases, the answer about this deap problem
I finaly discover that i forgot to rienstall the custumcontent module

And every thing go on again, anyway i found here very good post about things we don't hear about down in france spécialy about the pagination that i should try to fixe this afternoon

So long