|
Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews. |
Advertisement | |
This is an HTML example. Isn't it just wonderful?!?!
|
|
Learn how to remove ads |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
i'd made it so:
hook: threadbit_process code: PHP Code:
|
#4
|
|||
|
|||
and if you wish to customize the dateformat (though leaving the generic one used in the forums as it is)?
|
#5
|
||||
|
||||
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 |
#6
|
|||
|
|||
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.. |
#7
|
||||
|
||||
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 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 |
Thread Tools | |
Display Modes | |
|
|
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 |