PDA

View Full Version : Set iconid when creating custom thread


Ducks
16 Sep 2007, 14:30
I'm using this to create threads from my own files:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



But I've trouble adding an 'icon id', I've tried to add



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


And


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



But none of them work. Any ideas?

Dismounted
16 Sep 2007, 14:39
What's the fieldname in the database ;)?

Ducks
16 Sep 2007, 15:32
iconid, but how does that helps me?

Opserty
16 Sep 2007, 16:06
Use $threaddm->set() instead of $threaddm->do_set() they are the same but I think $threaddm->set() verifies the contents.

Also you probably need to pass the value as a variable if I remember correctly.

So it would be:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Ducks
16 Sep 2007, 17:09
That works, thank you