PDA

View Full Version : How can I do this in vb 3.8.x


v123shine
03-10-2011, 09:47 AM
I want show first post date in forumdisplay?

like this:

http://img852.imageshack.us/img852/8670/postdateinfd.jpg (http://img852.imageshack.us/i/postdateinfd.jpg/)
Uploaded with ImageShack.us (http://imageshack.us)

Help me, please!!

--------------- Added 1299758199 at 1299758199 ---------------

I try to open >> threadbit templates >> threadbit

Find this:

<if condition="$show['guestuser']">
$thread[postusername]
<else />
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]</span>
</if>

I add $post[postdate] in the end of </span>

the result:

<if condition="$show['guestuser']">
$thread[postusername]
<else />
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]</span> - $post[postdate]
</if>

But still not working :(

kh99
03-10-2011, 11:03 AM
I think $thread[dateline] is the date of the first post, but it's not formatted as a string. You'd need to format it using something like

$thread['firstpostdate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline']);


in a plugin (maybe hook location threadbit_display). Then you should be able to use $thread[firstpostdate] in your template.

(BTW, I haven't tried this at all).

v123shine
03-10-2011, 04:58 PM
Thank you so much kh99 >> ur my hero :)