<< Back
Message for this thread
Posted by Messages text
H Psv

Avatar
Total post : 27
> Profile
Written on : 08/11/2010 11:45 ( more than one month )
Object : has user read an article ?
Hi,

My Cms pages are private and I'd like to know which user has read (or not) an article.
If user hasn't read the article, some "new" mention should appear next to the news title...
Is that possible?
 
Derks Giovanni

Avatar
Total post : 1861
> Profile
Written on : 10/11/2010 18:24 ( more than one month )
Object : Re: has user read an article ?
Hello,
I'm sorry but this feature is not available.

bye,
Giovanni. 

Docebo Staff
 - Docebo 4 released! -

 
H Psv

Avatar
Total post : 27
> Profile
Written on : 11/11/2010 23:20 ( more than one month )
Object : Re: has user read an article ? > Security issue, the request seem invalid ! Try a new login and retry
Hi,

I succeeded in creating something : when a logged-in user reads an article, his personal information is recorded in database. It works but when user has to click a "submit button" in order his information to be recorded, he's got this message :

Security issue, the request seem invalid ! Try a new login and retry


My code is :

            if(isset($_POST['signer'])){
            echo '<form method="POST" action="'.$GLOBALS['where_cms'].'"><input type="submit" value="Signer" name="signer">';
            $reponses = "INSERT INTO actu_lecture(nom, prenom, date, ouinon, titre) VALUES('$nom', '$prenom', '$date', '$ouinon', '$titre')";
            mysql_query($reponses) or die('Erreur SQL !'.$reponses.'<br>'.mysql_error());
            echo 'Blablabla';}
            else {echo '<form method="POST" action="'.$GLOBALS['where_cms'].'"><input type="submit" value="Signer" name="signer">';}

What should I change ?

thanks





 
Derks Giovanni

Avatar
Total post : 1861
> Profile
Written on : 12/11/2010 18:21 ( more than one month )
Object : Re: has user read an article ?
Hello,
you should add an hidden field with the authentication tocken.. you can do it with:

echo Authenticate::getSignatureHiddenField('my_id');

bye,
Giovanni. 

Docebo Staff
 - Docebo 4 released! -

 
H Psv

Avatar
Total post : 27
> Profile
Written on : 12/11/2010 19:02 ( more than one month )
Object : Re: has user read an article ?
Great ! You're defintely... great ! Thanks !
 
<< Back