vBulletin Modifications

Really simple question: Thread Start Date?

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 05-29-2006, 11:05 AM   #1
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default Really simple question: Thread Start Date?

How do i find out the start date of the thread?

ie. What code do i have to add to my template to put 'Today, 09:54 AM'




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 05-29-2006, 12:35 PM   #2
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

I think it's this:

You must first be a registered member to view any code.
If that doesn't work I guess you'll have to use a plugin for that.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 12:38 PM   #3
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

ok thanks it's for a mod in the threadbit....

nope doesn't show a thing just a blank space....

Last edited by Nick R; 05-29-2006 at 12:42 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 12:45 PM   #4
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

and ideas for a plugin?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 12:46 PM   #5
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

You could try to play around with the $thread array a little. Try things like $thread[dateline], $thread[startdate], $thread[postdate], etc.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 12:50 PM   #6
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

not very prstical but i'll give it ago :p it's stored in the table 'thread' and the column ' dateline' so do you know which file would contain the array data i need because then you can just look it up




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 01:00 PM   #7
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

I've just looked through it, and I can't seem to find it.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 01:01 PM   #8
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

it must be there somewhere.... can you write a query for it seeing as my average page load time is 0.00015 seconds :p i think it will live with another query

EDIT:I found
You must first be a registered member to view any code.
does that mean it could be $thread[dateline] ?

or what about:
instead of:
You must first be a registered member to view any code.
this:
You must first be a registered member to view any code.
2nd edit the latter didn't work....

Last edited by Nick R; 05-29-2006 at 01:20 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 01:20 PM   #9
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

The dateline is an unformatted number which holds both the time and the date. Find a piece of code where the thread dateline is called, and add this bellow it:

You must first be a registered member to view any code.
You might need to change the thread part in the $thread['dateline'] variable, depending on how the dateline is called.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 01:22 PM   #10
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

ok i'll try that... :S

The thing is it's actually in:
You must first be a registered member to view any code.
i have also found:
You must first be a registered member to view any code.
should i add it somewhere in there?

what shall i add in the template:
$thread[startdate] and $thread[starttime]??

Last edited by Nick R; 05-29-2006 at 01:28 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thread Start count help.. mant3ra General vBulletin Support 6 12-01-2005 07:19 AM
The start thread always stays in the fist hack coolman vBulletin Modification Requests 2 08-18-2005 09:08 AM
[vb help] simple question hkboi General vBulletin Support 10 01-25-2005 01:35 AM
Just a simple question... Infamouz Nex General vBulletin Support 2 04-15-2004 06:05 AM


All times are GMT -3. The time now is 07:00 AM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)