hypno
30/11/2003, 21h29
Bonjours voila j essaye de faire un petit hack mais je bloque sur un leger passage
en fiate le hack consite a ce que lorsque l on fasse un reply a un message a partir du reply rapide on puisse cocher une case
[Demander de l'aide pour le tutorial]
si elle et cocher ele ajoute dans un champ de la table thread "baide" elle mette comme valeur "1"
si elle et decocher "0"
jusque la pas de probleme apres je voudrait l afficher dans le forumdisplay
alors la dans le template forumdisplaybit j ai rajouter une colone
<td bgcolor="{firstaltcolor}">$thread[baide]</td>
ca ma bien rajouter la colone
maintenant je veux afficher un tit truc dans cette colone si ca a été cocher j ai donc dans forumdisplay.php modifier ca
$threads=$DB_site->query("
SELECT $dotuserid $votequery ".iif($foruminfo[allowicons],'icon.title as icontitle,icon.iconpath,','')."
thread.threadid,thread.title,lastpost, forumid,pollid,open,replycount,postusername,postus erid,
lastposter,thread.dateline,views,thread.iconid,not es,thread.visible,sticky,votetotal,attach,baide
FROM thread
".iif($foruminfo[allowicons],'LEFT JOIN icon ON (icon.iconid = thread.iconid)','')."
$dotjoin
WHERE $threadids
ORDER BY sticky DESC, $sortfield $sqlsortorder
");
donc je slectionne bien baide aussi
et plus loint en dessous de
if (!$foruminfo[allowicons] or $thread[iconid]==0) {
if ($showdeficon) {
$thread[icon]='<img src="{imagesfolder}/icons/icon1.gif" border="0" alt="">';
} else {
$thread[icon]=" ";
}
} else {
$thread[icon]="<img src=\"$thread[iconpath]\" alt=\"$thread[icontitle]\" width=\"15\" height=\"15\" border=\"0\">";
}
j ai rajouter ca
if ($thread[baide]==0) {
$thread[baide]=" ";
}
else {
$thread[baide]="aide";
}
helas ca nem affiche rien ca reste vide
y a t il quelqu un pour maider merci d avance
en fiate le hack consite a ce que lorsque l on fasse un reply a un message a partir du reply rapide on puisse cocher une case
[Demander de l'aide pour le tutorial]
si elle et cocher ele ajoute dans un champ de la table thread "baide" elle mette comme valeur "1"
si elle et decocher "0"
jusque la pas de probleme apres je voudrait l afficher dans le forumdisplay
alors la dans le template forumdisplaybit j ai rajouter une colone
<td bgcolor="{firstaltcolor}">$thread[baide]</td>
ca ma bien rajouter la colone
maintenant je veux afficher un tit truc dans cette colone si ca a été cocher j ai donc dans forumdisplay.php modifier ca
$threads=$DB_site->query("
SELECT $dotuserid $votequery ".iif($foruminfo[allowicons],'icon.title as icontitle,icon.iconpath,','')."
thread.threadid,thread.title,lastpost, forumid,pollid,open,replycount,postusername,postus erid,
lastposter,thread.dateline,views,thread.iconid,not es,thread.visible,sticky,votetotal,attach,baide
FROM thread
".iif($foruminfo[allowicons],'LEFT JOIN icon ON (icon.iconid = thread.iconid)','')."
$dotjoin
WHERE $threadids
ORDER BY sticky DESC, $sortfield $sqlsortorder
");
donc je slectionne bien baide aussi
et plus loint en dessous de
if (!$foruminfo[allowicons] or $thread[iconid]==0) {
if ($showdeficon) {
$thread[icon]='<img src="{imagesfolder}/icons/icon1.gif" border="0" alt="">';
} else {
$thread[icon]=" ";
}
} else {
$thread[icon]="<img src=\"$thread[iconpath]\" alt=\"$thread[icontitle]\" width=\"15\" height=\"15\" border=\"0\">";
}
j ai rajouter ca
if ($thread[baide]==0) {
$thread[baide]=" ";
}
else {
$thread[baide]="aide";
}
helas ca nem affiche rien ca reste vide
y a t il quelqu un pour maider merci d avance