vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Thread icons are always stored on the file system ? (https://vborg.vbsupport.ru/showthread.php?t=152595)

mihai11 07-18-2007 08:50 AM

Thread icons are always stored on the file system ?
 
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

Quote:

Originally Posted by Marco van Herwaarden (Post 1294457)
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
PHP Code:

$vbulletin->options['showdeficon'


mihai11 07-18-2007 10:24 AM

Quote:

Originally Posted by Marco van Herwaarden (Post 1294474)
You can access it in a script by using the variable
PHP Code:

$vbulletin->options['showdeficon'


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


All times are GMT. The time now is 02:36 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01003 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete