PDA

View Full Version : Thread custom field


ehabzaky
10-01-2009, 09:37 AM
Hello,

I have added a new custom field to my thread table.

Now I want to access this field in the threadbit template

I used this code

$thread[filedname]

but it doesn't work :mad: I tried the same code with original thread fields like

$thread[threadid]

I found it working.

I also used the same syntax $thread[filedname] in the postbit Template and it is working OK :confused:

Only in threadbit it is not working!

Could anybody help me please.

Regards,
Ehab Zaky

Lynne
10-01-2009, 02:44 PM
Did you check the query that is used just prior to the threadbit being evaled and make sure your variable is selected there? If they just selected thread.threadid and thread.title, then your thread.fieldname is not going to be available for use unless you add it to the query.

Arkham
10-01-2009, 06:53 PM
Did you check the query that is used just prior to the threadbit being evaled and make sure your variable is selected there? If they just selected thread.threadid and thread.title, then your thread.fieldname is not going to be available for use unless you add it to the query.

Ah, this might be something I can use to accomplish this (https://vborg.vbsupport.ru/showthread.php?t=224318).

Where would he/we/I put the thread.<customfieldname>?