[clair]Pour le problème des avatars des poster de news[/clair]
Dans le XML,
Cherchez :
Code HTML:
$haber[dateposted] - <phrase 1="$vboptions[bburl]/member.php?$session[sessionurl]u=$haber[postuserid]" 2="$haber[postusername]">$vbphrase[by_x]</phrase>
Remplacez par :
Code HTML:
<if condition="$vboptions[osportal_news_avatar]"><img src="image.php?u=$haber[postuserid]"></if> $haber[dateposted] - <phrase 1="$vboptions[bburl]/member.php?$session[sessionurl]u=$haber[postuserid]" 2="$haber[postusername]">$vbphrase[by_x]</phrase>
[clair]Pour le problème des icônes de messages des news[/clair]
Dans portal.php,
Cherchez :
Code PHP:
$haberal = $db->query_read("
SELECT thread.threadid, post.title, thread.replycount, postusername, ".
"postuserid, thread.dateline AS postdateline, thread.lastpostid, thread.lastposter, ".
"thread.lastpost, IF(views<=thread.replycount, thread.replycount+1, views) AS views, ".
"thread.forumid, post.postid, pagetext, allowsmilie FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = thread.firstpostid)
WHERE thread.visible = 1 $iptalforum_query ORDER BY thread.dateline DESC LIMIT 0,$news_limit");
Remplacez par :
Code PHP:
$haberal = $db->query_read("
SELECT thread.threadid, post.title, thread.replycount, postusername, ".
"postuserid, thread.dateline AS postdateline, thread.lastpostid, thread.lastposter, ".
"icon.title AS icontitle, icon.iconpath, ".
"thread.lastpost, IF(views<=thread.replycount, thread.replycount+1, views) AS views, ".
"thread.forumid, post.postid, pagetext, allowsmilie FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = thread.firstpostid)
LEFT JOIN " . TABLE_PREFIX . "icon AS icon ON(icon.iconid = post.iconid)
WHERE thread.visible = 1 $iptalforum_query ORDER BY thread.dateline DESC LIMIT 0,$news_limit");
Dans le XML ,
Cherchez :
Code HTML:
<a href="$vboptions[bburl]/showthread.php?t=$haberbitno">$haber[title]</a></td>
Remplacez par :
Code HTML:
<if condition="$vboptions[osportal_news_icon]"><img class="inlineimg" src="$haber[iconpath]" alt="$haber[icontitle]" border="0" /> </if><a href="$vboptions[bburl]/showthread.php?t=$haberbitno">$haber[title]</a></td>
[clair]Si les dates des news s'affichent avec '%' [/clair]
Dans portal.php,
Cherchez :
Code HTML:
$haber['dateposted'] = vbdate($vbulletin->options['dateformat'], $haber['postdateline'], '', '');
Remplacé par :
Code HTML:
$haber['dateposted'] = vbdate($vbulletin->options['dateformat'], $haber['postdateline']);
[clair]Si vous souhaitez utiliser une page Index pour le portail[/clair]
Voir ce post : vBulletin-Ressources - Afficher un message - [vB 3.6.8] Portail On Sayfa
Ou
Créez une page index.html et mettez-y ce code :
Code HTML:
<HTML>
<HEAD>
<TITLE>Forum Name Here</TITLE>
<META HTTP-EQUIV="refresh"
CONTENT="0;URL=http://www.domain.com/portal.php">
</HEAD>
<BODY>
</BODY>
</HTML>
Remplacez l'URL par votre URL ainsi que le nom de votre forum.
[clair]Si vous n'avez pas toutes les options d'emplacement (droite, centre...) dans l'admincp[/clair]
Utilisez Mozilla Firefox
Liens sociaux