Je vous présente la toute nouvelle version de Dle-Forum v3.1 qui annule la version3.0 Avec cette version vous pouvez l'intégrer dans DataLife.
Tous les fichiers ont été revue, ainsi que les templates.
Correction du fichier plugins d'installation.
1- Envoyé tous le fichier sur votre server
2- Installé le plugin via l'administration/gestion des plugins
3- Ouvrez templates/votre_thème/main.tpl cherchez
{content}
Ajoutez au dessus (cela affiche les derniers messages du forum)
[available=main]
{show_last_forum}
[/available]
4- Affichage des infos dans le profile ouvrez profile_popup.tpl et à l'endroit ou vous voulez ajoutez
<li>Sujets sur le forum: <b>{forum_topics}</b></li> <li>Messages sur le forum: <b>{forum_post}</b></li> <li>Voir les messages: <b>{forum_post_link}</b></li>
5- Ouvrez userinfo.tpl et à l'endroit ou vous voulez ajoutez
<li><div class="ui-c1 grey">Sujets sur le forum</div> <div class="ui-c2">{forum_topics}</div></li> <li><div class="ui-c1 grey">Messages sur le forum</div> <div class="ui-c2">{forum_post}</div></li> <li><div class="ui-c1 grey">Liens Forum</div> <div class="ui-c2">{forum_post_link}</div></li>
6- Bouton d'aide pour le forum qui s'affiche en bas de vos publication
Ouvrir fullstory.tpl et ajouter au bon endroit:
<a href="/?do=forum&act=discuss&nid={news-id}">Discuter sur le forum</a>
Aller dans
l'administration du forum est cree vos categorie et forums !
Aller dans la gestion discuss et Choisissez chaque categorie dle pour le bouton aide qui se trouvera dans vos publications!
7- Ouvrez .htaccess à la racine de votre site et cherchez
DirectoryIndex index.php
Ajoutez à coté
index.php?do=forum
Cherchez
RewriteEngine On
Ajoutez juste en dessous
#Dle Forum
RewriteRule ^forum(/?)+$ index.php?do=forum [L]
##type=1
RewriteRule ^forum/forum_([0-9]+)(/?)+$ index.php?do=forum&showforum=$1 [L]
RewriteRule ^forum/forum_([0-9]+)/([0-9]+)(/?)+$ index.php?do=forum&showforum=$1&cstart=$2 [L]
RewriteRule ^forum/topic_([0-9]+)(/?)+$ index.php?do=forum&showtopic=$1 [L]
RewriteRule ^forum/topic_([0-9]+)/last(/?)+$ index.php?do=forum&showtopic=$1&lastpost=1 [L]
RewriteRule ^forum/topic_([0-9]+)/lastpost(/?)+$ index.php?do=forum&showtopic=$1&lastpost=$2#post-$3 [L]
RewriteRule ^forum/topic_([0-9]+)/([0-9]+)(/?)+$ index.php?do=forum&showtopic=$1&cstart=$2 [L]
RewriteRule ^forum/topic_([0-9]+)/reply(/?)+$ index.php?do=forum&act=_topic&code=reply&tid=$1 [L]
RewriteRule ^forum/forum_([0-9]+)/add(/?)+$ index.php?do=forum&act=add_topic&forum_id=$1 [L]
RewriteRule ^forum/getforum_([^/]+)(/?)+$ index.php?do=forum&"&act=getforum&code=user&n=$1 [L]
RewriteRule ^forum/search(/?)+$ index.php?do=forum&act=search [L]
RewriteRule ^forum/search/([0-9]+)-([^/]+)/([0-9]+)(/?)+$ index.php?do=forum&act=search&count_all=$1&search_text=$2&cstart=$3 [L]
RewriteRule ^forum/subscription(/?)+$ index.php?do=forum&act=subscription [L]
RewriteRule ^forum/getnew(/?)+$ index.php?do=forum&act=getnew [L]
RewriteRule ^forum/getnew/([0-9]+)(/?)+$ index.php?do=forum&act=getnew&cstart=$1 [L]
RewriteRule ^forum/warn/([^/]*)(/?)+$ index.php?do=forum&act=warn&user=$1 [L]
RewriteRule ^forum/warn/([^/]*)/([0-9]+)(/?)+$ index.php?do=forum&act=warn&user=$1&cstart=$2 [L]
RewriteRule ^forum/reputation/([^/]*)(/?)+$ index.php?do=forum&act=reputation&user=$1 [L]
RewriteRule ^forum/reputation/([^/]*)/([0-9]+)(/?)+$ index.php?do=forum&act=reputation&user=$1&cstart=$2 [L]
RewriteRule ^forum/textversion.html$ index.php?do=forum&act=textversion [L]
RewriteRule ^forum/whoonline(/?)+$ index.php?do=forum&act=whoonline [L]
RewriteRule ^forum/faq(/?)+$ index.php?do=forum&act=faq [L]
RewriteRule ^forum/getforum_([0-9]+)(/?)+$ index.php?do=forum&act=getforum&code=user&n=$1 [L]
RewriteRule ^forum/user/post_([0-9]+)(/?)+$ index.php?do=forum&act=posts&user=$1 [L]
RewriteRule ^forum/members(/?)+$ index.php?do=forum&act=members [L]
RewriteRule ^forum/members/([0-9]+)(/?)+$ index.php?do=forum&act=members&cstart=$1 [L]
RewriteRule ^forum/friends(/?)+$ index.php?do=forum&act=friends [L]
RewriteRule ^forum/friends/check(/?)+$ index.php?do=forum&act=friends&doaction=check [L]
RewriteRule ^forum/friends/add(/?)+$ index.php?do=forum&act=friends&doaction=add_friend [L]
RewriteRule ^forum/rss/forum_([1-9][0-9]*).xml$ index.php?do=forum&act=rss&fid=$1 [L]
RewriteRule ^forum/user/([^/]*)/posts(/?)+$ index.php?do=forum&act=user_posts&name=$1 [L]
RewriteRule ^forum/user/([^/]*)/posts/page([0-9]+)(/?)+$ index.php?do=forum&act=user_posts&name=$1&cstart=$2 [L]
##type=2
RewriteRule ^forum/forum_([0-9]+)/add.html$ index.php?do=forum&act=add_topic&forum_id=$1 [L]
RewriteRule ^forum/thanks_([0-9]+)/lastpost([0-9]+).html$ index.php?do=forum&showtopic=$1 [L]
RewriteRule ^forum/topic_([0-9]+)/([^/]*).html$ index.php?do=forum&showtopic=$1 [L]
RewriteRule ^forum/showforum_([0-9]+).html$ index.php?do=forum&showforum=$1 [L]
RewriteRule ^forum/topic_([0-9]+)/([^/]*)/page([0-9]+)/([0-9]+).html$ index.php?do=forum&showtopic=$1&cstart=$2 [L]
RewriteRule ^forum/topic_([0-9]+)/([^/]*)/page([0-9]+).html$ index.php?do=forum&showtopic=$1&cstart=$2 [L]
RewriteRule ^forum/topic_([0-9]+)/([^/]*)/last_topic([0-9]+).html$ index.php?do=forum&showtopic=$1&lastpost=1 [L]
RewriteRule ^forum/topic_([0-9]+)/([^/]*).html$ index.php?do=forum&showtopic=$1&cstart=$2#post-$3 [L]
RewriteRule ^forum/topic_([0-9]+)/([^/]*)/reply.html$ index.php?do=forum&act=_topic&code=reply&tid=$1 [L]
RewriteRule ^forum/getforum_([^/]+).html$ index.php?do=forum&"&act=getforum&code=user&n=$1 [L]
RewriteRule ^forum/search.html$ index.php?do=forum&act=search [L]
RewriteRule ^forum/searchtopic_([0-9]+)/([^/]*)/([0-9]+).html$ index.php?do=forum&showtopic=$1&cstart=$2 [L]
RewriteRule ^forum/getnew.html$ index.php?do=forum&act=getnew [L]
RewriteRule ^forum/subscription.html$ index.php?do=forum&act=subscription [L]
RewriteRule ^forum/faq.html$ index.php?do=forum&act=faq [L]
RewriteRule ^forum/members.html$ index.php?do=forum&act=members [L]
RewriteRule ^forum/friends.html$ index.php?do=forum&act=friends [L]
RewriteRule ^forum/friends/check.html$ index.php?do=forum&act=friends&doaction=check [L]
RewriteRule ^forum/friends/add.html$ index.php?do=forum&act=friends&doaction=add_friend [L]
RewriteRule ^forum/user/([^/]*)/posts.html$ index.php?do=forum&act=user_posts&name=$1 [L]
RewriteRule ^forum/last_posts/([^/]*)/user.html$ index.php?do=forumact=last_posts&name=$1 [L]
RewriteRule ^forum/whoonline.html$ index.php?do=forum&act=whoonline [L]
Il y a pas de mise à jour, veuillez supprimer la version que vous avez et réinstallé le forum