Les avertissements suivants se sont produits :
Warning [2] Undefined array key 0 - Line: 1640 - File: showthread.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 1640 errorHandler->error_callback
/showthread.php 915 buildtree




Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
[Resolu] Pb MàJ 1.12 en 2.0 fatal error fonction loggedin()
#5
Essaye en modifiant ton code ainsi :
Code :
{if isset($ccuser) && $ccuser->loggedin()}
       {menu template='asrk01presse_cssmenu'}
{else}
       {menu template='asrk01presse_cssmenu'  excludeprefix='Private_'}
{/if}

D'un autre côté, si tu regardes l'aide du module CustomContent, cette syntaxe va être supprimée sous peu. Il faut maintenant utiliser :
Code :
{if ccUser::loggedin()}
Attention de bien vérifier que toutes les pages qui utilisent ce gabarit soient cochées non-cachables.
Citation :This module, in conjunction with the FrontEndUsers module allows you to create a page that will look different depending upon the person that looks at it. You can specify different content for certain users, or members of a certain group.

Note 1: Creating logic in a page that could potentially result in different output for each request, you should ensure that that page will not be cached. This is accomplished by ensuring that the "cachable" tag is cleared on the page before submitting or applying

Note 2: If the smarty logic is in your template, you need to ensure that each page that uses that template is not cachable


Messages dans ce sujet

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)