vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   "iconid" from table "post" or "thread" ? (https://vborg.vbsupport.ru/showthread.php?t=152592)

mihai11 07-18-2007 06:50 AM

"iconid" from table "post" or "thread" ?
 
Hi,



I see that there is an "iconid" in both tables – "post" and "thread". If I want to display the icon ID of the thread should I take the iconid of the first post from the tread or the iconid or the thread itself ?

As I see it now, the thread should not have an "iconid" field. The one from the first post should be enough.

Any thoughts ?



Regards,
Razvan

EnIgMa1234 07-18-2007 06:55 AM

As you can see from this post I have this icon https://vborg.vbsupport.ru/external/2010/01/19.gif

But when your posting a thread, it is differant because it needs to display in forumdisplay. My icon won't be shown but if you posted one it would be (In forumdisplay)

So basically that's why its needed in the thread table.

mihai11 07-18-2007 07:15 AM

Quote:

Originally Posted by EnIgMa1234 (Post 1294374)
As you can see from this post I have this icon https://vborg.vbsupport.ru/external/2010/01/19.gif

But when your posting a thread, it is differant because it needs to display in forumdisplay. My icon won't be shown but if you posted one it would be (In forumdisplay)

So basically that's why its needed in the thread table.

Sorry ... I still don't get it. If the icon needs to be displayed on forumdisplay, why not take the icon from the first post ? It is very easy to do that since the "thread" table contains a "firstpostid" field.

To be more clear: please give me a situation where the thread icon is different from the icon of the first post from the same thread.

EnIgMa1234 07-18-2007 07:32 AM

If it wasn't in the thread table, the would have to use an extra query in forumdisplay.

mihai11 07-18-2007 07:49 AM

Quote:

Originally Posted by EnIgMa1234 (Post 1294399)
If it wasn't in the thread table, the would have to use an extra query in forumdisplay.

I see .... so they are guaranteed to be the same ALL the time, right ? I can choose to use either of them .... it makes no difference.

EnIgMa1234 07-18-2007 07:55 AM

None whatsoever :)

If your looking to use the first post one, I would suggest using the thread table


All times are GMT. The time now is 01:24 PM.

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.01015 seconds
  • Memory Usage 1,719KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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