vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   how i "select" form database (https://vborg.vbsupport.ru/showthread.php?t=218626)

MAORBARI 07-15-2009 08:22 AM

how i "select" form database
 
hi all'
i need to "SELECT" status of forum (old\new) forom database..
i know SQL but i dont find the table and field.
please help.
thanks.

Marco van Herwaarden 07-15-2009 11:24 AM

Sorry but i don't understand your question.

MAORBARI 07-15-2009 03:33 PM

i build mod and in the mod i wanna to "SELECT" from mysql databast, the status of forums...
i try and i dont success.
plz help.
thx.

Marco van Herwaarden 07-15-2009 03:43 PM

Sorry but i still don't understand. Can you give examples of what you have been trying?

Red Blaze 07-15-2009 03:58 PM

I think what he means is that he wants to select the status of a thread for a forum... I don't think that's done through the database, though. I think that's calculated from the newest date and determines if it's a new post or not...

MAORBARI 07-15-2009 06:43 PM

no i mean to the forum_new forum_old status...
can you help me?
thx.

Lynne 07-15-2009 09:10 PM

So, you want a query to tell whether there are new posts in a forum or not (which is what the forum_new forum_old tells)? Red Blaze is correct in that you need to look at some information regarding the user and whether they have 'read' a forum or have it 'marked as read' or not. There is no field to grab the info out of.

MAORBARI 07-16-2009 07:39 AM

so how i do it?
how i tell whether there are new posts in a forum or not ?
thx.

Marco van Herwaarden 07-16-2009 12:05 PM

Where do you want to do this? In what script?

MAORBARI 07-16-2009 06:45 PM

i want put it in other template..

Gio~Logist 07-16-2009 08:02 PM

That's actually determined by a vb function. It isn't saved in the database.

Marco van Herwaarden 07-17-2009 08:31 AM

Templates are just the way to present the data already collected in a script. If the script that is calling the template have not set a variable (or it is simply not available in the context), then you will first need to populate that data. Hence the question in which script you want to do something.

MAORBARI 07-17-2009 01:32 PM

look,
i do script that select the dorum name and forum id and insert them to other table that i careat, this table's name: forumlistmy.
after this i do query_read to select all the forum name and forum id and show them on another template that i created..
and i success but i want to insert the status of forum (forum_new forum_old)
and select them on the template..
plz help me.. thx.

MAORBARI 07-19-2009 12:28 PM

plz?

MAORBARI 07-21-2009 11:04 AM

someone plz?


All times are GMT. The time now is 03:29 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.03162 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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