vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   SQL row name for thread date (https://vborg.vbsupport.ru/showthread.php?t=145780)

anaesthetics 04-26-2007 02:25 AM

SQL row name for thread date
 
Hi,

I'm currently writing a script that will display updates I post in my site updates forum inline with my news page (remote from vbulletin). I have been able to successfully list all posts in that forum, but haven't been able to locate the SQL row name for the date that the threads were created. I thought maybe it was simply $row["date"] but no dice.

Can anyone help me out?

Thanks a lot

TheRed 04-26-2007 02:57 AM

Have you tried using $row['dateline'] ?

anaesthetics 04-26-2007 03:03 AM

Thanks for the reply. I tried dateline and it outputted strings of numbers such as: 1177397899, 1177167454, 1175904202 . Any idea how I could get these to translate into a normal date? Such as day, month, year.. etc.

Thanks for your help.

TheRed 04-26-2007 03:16 AM

You could try using the vbdate function. Usage explanation can be found on the includes/functions.php file.

Alternatively you can use the www.php.net/date function.

anaesthetics 04-26-2007 03:39 AM

Man, I'm in a total bind. I looked at functions.php and I don't think that's going to work for me. How would I use the date() function to translate that date? Can you tell me what format a date like "1177397899" is in? I've never seen anything like it before. If I know the format, maybe I can find a solution for translating it into another format.

Thanks

Dismounted 04-26-2007 05:43 AM

PHP Code:

date("DATEFORMAT"$row['dateline']) 

Replace DATEFORMAT with the format you would like (php.net/date).


All times are GMT. The time now is 10:07 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.01040 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
  • (1)bbcode_php_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