Log in

View Full Version : Thread icons are always stored on the file system ?


mihai11
07-18-2007, 08:50 AM
Hi,


There is the table "icon" that has the fields "iconid" and "iconpath". The questions is: are the thread icons always stored in the file system ? For example, avatars can be stored in the file system and in the database. (the retrieval code is not the same)



Regards,
Razvan M.

El_Muerte
07-18-2007, 08:53 AM
yes

mihai11
07-18-2007, 09:00 AM
Thank you. One more question: how do I retrieve the path to the default thread icon ? I don't want to hard code the value on my script. I suppose VB has some variable where is saves this information.

Marco van Herwaarden
07-18-2007, 09:31 AM
The default icon is stored in your vBulletin Options:

AdminCP -> vBulletin Options -> Thread Display Options -> Show Default Post Icon

mihai11
07-18-2007, 09:36 AM
The default icon is stored in your vBulletin Options:

AdminCP -> vBulletin Options -> Thread Display Options -> Show Default Post Icon

I know about that. For example, on my forum this setting has the value "images/icons/icon1.gif"

I have a custom developed page. How do I retrieve this string (images/icons/icon1.gif) in PHP code ? I don't want to hard-code the this string in my PHP script. There has to be a better way.

Marco van Herwaarden
07-18-2007, 09:59 AM
You can access it in a script by using the variable $vbulletin->options['showdeficon']

mihai11
07-18-2007, 10:24 AM
You can access it in a script by using the variable $vbulletin->options['showdeficon']

Thank you very much ! Indeed, this is what I was searching for.