~dont_cache()
~includeonce('../config.tmpl')
~include('../site/header.tmpl')
~includeonce('../lib/settings.tmpl')
~include('../updateuser.tmpl')
~if(~get('user_id')=='',~http_error(403))
Cette page vous permet de suivre les derniers commentaires que vous avez postés.
~include('../site/authbox.ok.tmpl','my')
~list(~get('database'),
"SELECT res_type, obj_id AS res_id
FROM users_lastseen
WHERE user_id=~integer(~get('user_id'))
ORDER BY timestamp DESC LIMIT 15",
'LF','
Dernières conversations vues
',
'LM','
~set('lien_res',~include('../site/make_preview.tmpl',~fld('res_type'),~fld('res_id'),'','link'))
~if(~get('lien_res'),'
~get('lien_res')
')
'
)
Derniers commentaires
~defunc('countall','~set('count~sparam(1)',0)
~list(~get('database'),
"SELECT id,timestamp + 0 as timestamp,com_thread FROM comments WHERE
com_parent='~addslashes(~sparam(1))'
AND user_id!='~get('user_id')'",'LM',
'~if(~fld('timestamp')>~get('tmptime'),~set('tmptime',~fld('timestamp')))
~set('com_thread',~fld('com_thread'),'com_id',~fld('id'))
~set('count~sparam(1)',~get('count~sparam(1)')+1+~countall(~fld('id')))'
)
~get('count~sparam(1)',0)'
)
~list(~get('database'),
"SELECT comments.id, comments.subject, comments.res_type, comments.news_id, comments.com_thread
FROM comments,ressources
WHERE user_id=~integer(~get('user_id'))
AND comments.res_type=ressources.res_type
GROUP BY comments.res_type,comments.news_id
ORDER BY id DESC
LIMIT 20",'LF','
Fil initiateur |
Sujet du commentaire |
Nb de réponses |
Dernière réponse |
','LM','
~set('news_id',~fld('news_id'))
~set('com_thread',~fld('com_thread'))
~set('com_id',~fld('id'))
~include('../site/make_preview.tmpl', ~fld('res_type'), ~get('news_id'), '', 'div')
|
~cuthtml(~ifne(~fld('subject'),'Pas de sujet'),20,5,'...')
|
~set('tmptime',0)
~countall(~fld('id'))
~list(~get('database'),"SELECT timestamp + 0 as timestamp FROM users_lastseen WHERE user_id='~addslashes(~get('user_id'))' AND obj_id='~addslashes(~get('news_id'))' AND res_type='~addslashes(~fld('res_type'))'",'L1',~set('oldtime',~fld('timestamp')))
~if(~get('oldtime')<~get('tmptime'),' New!')
|
~if(~get('tmptime')!=0,~format_timestamp('Le %d/%m/%y à %H:%M',~get('tmptime'))) |
', 'LL','
')
Vos derniers blogs
~list(~get('database'),
"SELECT id, title, insert_timestamp + 0 as timestamp FROM users_journal
WHERE user_id=~integer(~get('user_id'))
AND state=~get('state_ok')
ORDER BY id DESC
LIMIT ~getcnf('users_journal_count_index_my', 10)",
'LM','
~fld('title') |
~include('../site/countcomments.tmpl',~fld('id'),5) |
~format_timestamp('Le %d/%m/%y à %H:%M',~fld('timestamp')) |
','LF','
Sujet | Nombre de commentaire(s) | Date du blog |
',
'LL','
')
Vos derniers messages envoyés sur les forums
~list(~get('database'),
"SELECT title,forums.name,forums_data.group_id,forums_data.id,insert_timestamp + 0 as timestamp FROM forums_data,forums
WHERE user_id='~addslashes(~get('user_id'))'
AND forums_data.group_id=forums.id
AND forums_data.state=~get('state_ok')
ORDER BY forums_data.id DESC
LIMIT ~getcnf('forums_data_count_index_my', 10)",
'LM','
~fld('name') |
~fld('title') |
~include('../site/countcomments.tmpl',~fld('id'),4) |
~format_timestamp('Le %d/%m/%y à %H:%M',~fld('timestamp')) |
','LF','
Forums | Sujet | Nombre de commentaire(s) | Date du message |
',
'LL','
')
~include("../site/footer.tmpl")