DarkLane
24 Dec, 2020
1 402 Vues
2 Commentaires
if ($forum_groups[$member_id['user_group']]['post_edit']) { $group_post_edit = true; } else { $group_post_edit = false; }
/*thanks*/ if ($forum_groups[$member_id['user_group']]['can_thanks']) { $group_can_thanks = true; } else { $group_can_thanks = false; } /*thanks*/
if ($row['is_register'] AND $row['signature']) { $tpl->set_block("'\\[signature\\](.*?)\\[/signature\\]'si","\\1"); $tpl->set('{signature}', stripslashes($row['signature'])); } else $tpl->set_block("'\\[signature\\](.*?)\\[/signature\\]'si","");
/*thanks*/ $users_thanks = array(); $result_thanks = $db->query('SELECT thanks_by, thanks_by_id FROM ' . PREFIX . '_forum_thanks WHERE post_id='.$row['pid']); while ($thanks = $db->get_row($result_thanks)) { if ($config['ajax']) $users_thanks[] = "<a onclick=\"DlePage(\'subaction=userinfo&user=".urlencode($thanks['thanks_by'])."\'); return false;\"><b>".$thanks['thanks_by']."</b></a> "; else $users_thanks[] = ''; if ($config['allow_alt_url'] == 'yes') $users_thanks[] .= "<a href=\"{$config['http_home_url']}user/".urlencode($thanks['thanks_by'])."/\"><b>".$thanks['thanks_by']."</b></a>"; else $users_thanks[] .= "<a href=\"{$config['http_home_url']}index.php?subaction=userinfo&user=".urlencode($thanks['thanks_by'])."\"><b>".$thanks['thanks_by']."</b></a>"; } $numUsers = $db->num_rows($result_thanks ); $user_list = ($numUsers>0) ? implode(', ',$users_thanks) : "Pas encore remercie"; $thank_user = <<<HTML <!--num:{$numUsers}--> <div class="title_spoiler"><img id="image-thanks" style="width:9px; height:13px; border:medium none;vertical-align:middle;" alt="" src="/templates/{$config['skin']}/dleimages/spoiler-plus.gif" /> <a href="jаvascript:ShowOrHide('thanks_{$row['pid']}')">Remerciement: {$numUsers}</a></div> <div id="thanks_{$row['pid']}" class="text_spoiler" style="display:none;">{$user_list}</div> HTML; $tpl->set('{thank_user}', $thank_user); /*thanks*/
$tpl->set('{news-num}', intval($row['news_num']));
$tpl->set('{f_thx_num}', intval($row['f_thx_num']));
// ******************************************************************************** // POST DEL // ********************************************************************************
// ******************************************************************************** // POST THANKS // ******************************************************************************** if (($member_id['name'] == $row['post_author']) && $group_can_thanks && !$row['hidden'] && !$read_mode OR $deny_edit_post) { $tpl->set('[can_thanks]',"<a href=\"{$a_forum_url}&act=thanks&tid={$tid}&pid={$row[pid]}\">"); $tpl->set('[/can_thanks]',"</a>"); } else { $tpl->set_block("'\\[can_thanks\\](.*?)\\[/can_thanks\\]'si",""); }
if( $row['signature'] and $user_group[$row['user_group']]['allow_signature'] ) {
$tpl->set('{f_thx_num}', $row['f_thx_num']) ;
$tpl->compile( 'content' );
$tpl->set('{f_thx_num}', $row['f_thx_num']) ; $row = $db->super_query("SELECT COUNT(*) as count FROM " . PREFIX . "_forum_topics WHERE author_topic='{$row['name']}'"); $forum_topics = $row['count']; $tpl->set('{forum_topics}', intval($forum_topics) ); $tpl->set( '{forum_post}', intval($row['forum_post']) );
<br />Nombre de publications : {news_num}
<br /><B>Merci dans le forum : {f_thx_num}</b>.
<br />Commentaire(s): {comm-num} [ {comments} ]
<br /><B>Sujet(s) dans le forum: {forum_topics} <br /><B>Message(s) dans le forum: {forum_post} <br /><B>Merci dans le forum : {f_thx_num}</b>.
....{signature}[/signature]
<div class="thanks">{thank_user}</div>
<td class="formbuttonrow" nowrap="nowrap"><div align="right">
[can_thanks]<img src="{THEME}/forum/images/th.png" width="74" height="21" border="0" alt="Dire merci" title="Dire merci" />[/can_thanks]
Message(s): {post-num}<br />
Remerciement(s): {f_thx_num}<br />
// ******************************************************************************** // faq // ********************************************************************************
// ******************************************************************************** // THANKS // ******************************************************************************** case "thanks": require_once ENGINE_DIR.'/forum/sources/modules/thanks.php'; break;
.dle_forum .thanks { border: 1px dotted; padding: 10px 20px 10px 20px; margin: 10px 0 10px 0; border-color:#8394B2; }
$db->query("DELETE FROM " . PREFIX . "_forum_topics WHERE `tid` = '$topic_id'");
/*thanks*/ $db->query("DELETE FROM " . PREFIX . "_forum_thanks WHERE topic_id='$topic_id'") /*thanks*/
showRadio($f_lg['group_flash'], $f_lg['group_flash2'], "flash", $row);
showRadio($f_lg['Help'], $f_lg['Say_Thank_you_label'], "can_thanks", $row);
$db->query("UPDATE " . PREFIX . "_forum_groups SET group_colour = '$save[group_colour]', offline = '$save[offline]', post_edit = '$save[post_edit]', post_del = '$save[post_del]', topic_set = '$save[topic_set]', topic_edit = '$save[topic_edit]', topic_del = '$save[topic_del]', vote ='$save[vote]', flood = '$save[flood]', html = '$save[html]', filter = '$save[filter]', youtube = '$save[youtube]', dailymotion = '$save[dailymotion]', flash = '$save[flash]' WHERE group_id = '$id'");
$db->query("UPDATE " . PREFIX . "_forum_groups SET group_colour = '$save[group_colour]', offline = '$save[offline]', post_edit = '$save[post_edit]', post_del = '$save[post_del]', topic_set = '$save[topic_set]', topic_edit = '$save[topic_edit]', topic_del = '$save[topic_del]', vote ='$save[vote]', flood = '$save[flood]', html = '$save[html]', filter = '$save[filter]', youtube = '$save[youtube]', flash = '$save[flash]', can_thanks = '$save[can_thanks]' WHERE group_id = '$id'");
); ?>
'Say_Thanks' => 'Dire "Merci"', 'Thanks' => 'Les %d membres suivants ont dit <strong>"Merci"</strong> pour ce post :', 'Thanks_one' => 'Le membre suivant a dit <strong>"Merci"</strong> pour ce post :', 'Thanks_redirect_ok' => 'Remerciement du post effectué avec succés', 'Thanks_redirect_self' => 'Vous ne pouvez pas remercier votre propre post', 'Thanks_redirect_already' => 'Vous avez déjà remercié ce post', 'No_view' => 'Vous n\'avez pas la permission de dire "Merci" pour ce post.', 'Thanks_back' => 'retour',
'Say_Thank_you_label' => "Cocher la case pour autoriser à dire \"Merci\"", 'Help' => "Autoriser les membres de ce groupe à dire \"Merci\"",
'Say Thanks' => 'Say "Thank You"', 'Thanks' => 'The following %d users say <strong>"Thank You"</strong> for this post:', 'Thanks_one' => 'The following user say <strong>"Thank You"</strong> for this post:', 'Thanks_redirect_ok' => 'This post has successfully been thanked.', 'Thanks_redirect_self' => 'You can\'t thank your own post.', 'Thanks_redirect_already' => 'You have already thanked this post.', 'No_view' => 'You do not have permission to Thanks these post.', 'Thanks_back' => 'back to',
'Say_Thank_you_label' => 'Say "Thank You"', 'Help' => 'Allow users in this group to say "Thank You" for a post',
"Say_Thanks" => "Скажи 'спасибо'", 'Thanks' => "Следующие %d пользователи говорят <strong>'Спасибо'</strong> за этот пост:", 'Thanks_one' => "Следующий пользователь говорит <strong>'Спасибо'</strong> за этот пост:", 'Thanks_redirect ok' => "Этот пост успешно поблагодарили.", 'Thanks_redirect self' => "Ты can\ не благодаришь свой собственный пост.", 'Thank_redirect_already' => "Вы уже поблагодарили этот пост.", 'No_view' => "У вас нет разрешения благодарить этот пост.", 'Thanks_back' => 'возвращение',
'Say Thank you label' => 'Скажи "Спасибо"', 'Help' => 'Позвольте пользователям в этой группе сказать "Спасибо" за сообщение',
Votre adresse électronique ne sera pas publiée. Les champs obligatoires sont marqués *
Les utilisateurs du Invités ne sont pas autorisés à ajouter des commentaires à cette publication.
09-02-2025 15:40
C'est réparé
28-01-2025 20:24
17-12-2020 • Dle
Intégration de la réputation
08-01-2021 • Dle
Google Sitemap pour Dle Forum
11-06-2021 • Dle
Convertisseur Dle-Forum vers