The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2007, 05:37 AM
Scribbller Scribbller is offline
Junior Member
 
Join Date: Dec 2006
Posts: 27
Geek Article and Review System License Holder 
Default Thread start date on forum display

I cant seem to get the thread start date on forum display page, I asked this question over at vbulletin.com but didnt have any luck, can anyone tell me what is the variable which will display the thread start date/time on forum display page.

Here is the link to my thread on vbulletin.com
http://www.vbulletin.com/forum/showthread.php?t=213973
Reply With Quote
  #2  
Old 01-03-2007, 02:37 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

You would need to create a hook that would do something along the lines of:

$thread['startdate'] = vbdate($thread['dateline']);

Cant remember off my head if vbdate requires another argument or not.

HTHs
Reply With Quote
  #3  
Old 01-03-2007, 08:39 PM
ragtek ragtek is offline
Member
 
Join Date: Jun 2006
Posts: 86
Geek Article and Review System License Holder 
Default

i'd made it so:
hook: threadbit_process
code:
PHP Code:
if ($thread['dateline'])
{
    
$thread['threaddate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline'], 1);
    
$thread['threadtime'] = vbdate($vbulletin->options['timeformat'], $thread['dateline']);

and than use thread[threaddate] and thread[threadtime] in the template
Reply With Quote
  #4  
Old 08-19-2008, 08:06 AM
Mad_Griffith Mad_Griffith is offline
Junior Member
 
Join Date: Feb 2006
Posts: 6
Default

and if you wish to customize the dateformat (though leaving the generic one used in the forums as it is)?
Reply With Quote
  #5  
Old 08-19-2008, 04:40 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Replace $vbulletin->options['dateformat'] and $vbulletin->options['timeformat'] with whatever format you want. Please see http://www.php.net/date for possibilities.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #6  
Old 08-19-2008, 05:35 PM
Mad_Griffith Mad_Griffith is offline
Junior Member
 
Join Date: Feb 2006
Posts: 6
Default

I tried, but was unsuccessful. Can you make a real example please?

uh, and, Morgan, can you please help with this too? Is it possible to get the forum name shown with each thread listed in the CMPS block?

I already asked on the official topic, but I'm not confident in anyone's answering...

Last edited by Mad_Griffith; 08-19-2008 at 06:30 PM..
Reply With Quote
  #7  
Old 08-21-2008, 10:46 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Example number four on this page has a number of examples:
Code:
$today = date("F j, Y, g:i a");                 // March 10, 2001, 5:16 pm
$today = date("m.d.y");                         // 03.10.01
$today = date("j, n, Y");                       // 10, 3, 2001
$today = date("Ymd");                           // 20010310
$today = date('h-i-s, j-m-y, it is w Day z ');  // 05-16-17, 10-03-01, 1631 1618 6 Fripm01
$today = date('\i\t \i\s \t\h\e jS \d\a\y.');   // It is the 10th day.
$today = date("D M j G:i:s T Y");               // Sat Mar 10 15:16:08 MST 2001
$today = date('H:m:s \m \i\s\ \m\o\n\t\h');     // 17:03:17 m is month
$today = date("H:i:s");                         // 17:16:17
You replace $vbulletin->options['dateformat'] and $vbulletin->options['timeformat'] with "whatever" you want, i.e., "H:i:s" or "whatever" you want. Note that $vbulletin->options['dateformat'] is for day of week and $vbulletin->options['timeformat'] is for time of day, so replace each with "whatever" you want for day of week and time of day, respectively.

As for the vBa CMPS GARS block, it is dated, being made for vB 3.5, probably for vBa CMPS 2.x, and as much of a pain that it poses, the only thing I can suggest is to read through the thread and see if someone posted a solution.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Date saying December 31, 1969 for info block & date problem with thread preview alldoulas Geek Gazette 0 08-04-2007 04:48 PM
Comments and Views in Thread display rlpartida Geek Article and Review System 1 05-01-2007 01:36 PM
Thread Display Mode Damian Geek Article and Review System 11 02-06-2007 03:09 PM
Is it possible to toggle GARS article style thread display and vB default display? Marris Geek Article and Review System 2 09-13-2006 08:07 AM
forum banner display gamelandz Geek Advertising Banner System 3 06-12-2006 11:21 AM


All times are GMT. The time now is 09:24 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.