Jump to content

Comment avoir le bock authentification si un utilisateur n'est pas authentifié


Recommended Posts

Bonjour,

Dans mon site j'ai un lien qui va oucrir une page dasns un iframe grace a fancybox

 

Il fait appel a cette page (en construction)

<?php
include('../../config/config.inc.php');
/*
Si pas authentifié affiche le block d'authentification sans le header
*/
if(count($_POST) >0){
print_r($_POST);
}
$smarty->assign(array(
   'id_product' => $_GET['id'],
   'now'  => date('Y-m-d H:i:s')
));
$smarty->display(dirname(__FILE__).'/hwdeals_update.tpl');

?>

 

Si le visiteur n'est pas authentifié, j'aimerais qu'il doivent s0authentifier avec de voir la suite.

Mais j'aimerais avoir uniquement lea block "créer un compte" ou "s'authetifier" sans le viseul du theme.

 

Es-ce possible de faire ceci?

Si oui, pourriez-vous me mettre sur la piste?

 

Mille merci

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...