vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Last Post Date (https://vborg.vbsupport.ru/showthread.php?t=96167)

theArchitect 09-13-2005 04:28 AM

Last Post Date
 
I have a hack on my forum home page which displays the 10 most recent posts. But next to the "Go To Last Post Button" I want to display the date (like in the forum view which is below this list).

The code I am using to show the date and time of the last post in that thread is

Code:

$lastpostinfo[lastpostdate]
But for some reason nothing is being displayed.

Any thoughts as to what I am doing wrong would be appreciated.

Marco van Herwaarden 09-13-2005 06:17 AM

Maybe you should ask this in the thread of the hack you have installed. Maybe this info don't get queried from teh database. Difficult to give an answer without seeing the hack.

theArchitect 09-13-2005 06:44 AM

Quote:

Originally Posted by MarcoH64
Maybe you should ask this in the thread of the hack you have installed. Maybe this info don't get queried from teh database. Difficult to give an answer without seeing the hack.

Well, the problem is that it was a custom hack I paid for and I haven't heard from the original author for months now.

KirbyDE kindly ported it into 3.5.0 for me but I don't think he has the time to assist or I would not need to ask here.

Marco van Herwaarden 09-13-2005 06:46 AM

Well then you should at least post the hack here, and maybe someone will be so kind to look at it. But without seeing it, there is no chance someone can guess why it doesn't work, or what to changes to make it work.

theArchitect 09-13-2005 07:04 AM

Quote:

Originally Posted by MarcoH64
Well then you should at least post the hack here, and maybe someone will be so kind to look at it. But without seeing it, there is no chance someone can guess why it doesn't work, or what to changes to make it work.

Sure. There is one plug-in (but I am not sure if that is needed) and then the template modification which looks like this.

Code:

<tr>
        <td class="alt1Active" id="t$last[threadid]">
               
                <div>
                        <a

href="showthread.php?$session[sessionurl]t=$last[threadid]"><if condition="$shownewpost"><strong><font color="#ca0000"></if>$last[title]<if condition="$shownewpost"></font></strong></if></a>
                </div>
<div class="smallfont"><span style="float:$stylevar[right]">Forum: <a

href="forumdisplay.php?$session[sessionurl]f=$last[forumid]"

alt="$last[forumtitle]">$last[forumtitle]</a></span><span style="cursor:pointer"

onclick="window.open('member.php?$session[sessionurl]u=$last[postuserid]')">$last[postusername]</span>
</div>
               
        </td>
       

        <td class="alt2" title="<phrase 1="$last[replycount]" 2="$last[views]">$vbphrase[replies_x_views_y]</phrase>">
                <div class="smallfont" style="text-align:$stylevar[right]; white-space:nowrap">
                <div><phrase 1="member.php?find=lastposter&amp;t=$last[threadid]" 2="$last[lastposter]">$vbphrase[by_x]</phrase></div> $last[lastpost]&nbsp<a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$last[threadid]" title="<phrase 1="$last[title]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="<phrase  1="$last[title]">$vbphrase[go_first_unread_in_thread_x]</phrase>" border="0" /></a>

                </div>

        </td>
       
                <td class="alt1" align="center">
$last[replycount]
</td>
                <td class="alt2" align="center">$last[views]</td>

</tr>

I am assuming that the $last[lastpost] is what should draw the date and time of the last post from the DB.

Do you need any other info?

Marco van Herwaarden 09-13-2005 07:06 AM

:D

You should have posted the plugin, not the template. Not much we can see from that.

Logikos 09-13-2005 07:08 AM

Quote:

Originally Posted by MarcoH64
:D

You should have posted the plugin, not the template. Not much we can see from that.

I was just thinking where is the plugin... :p

theArchitect 09-13-2005 07:29 AM

1 Attachment(s)
Quote:

Originally Posted by Live Wire
I was just thinking where is the plugin... :p

Sorry guys. Here you go.

Logikos 09-13-2005 07:34 AM

So you just want the date and time of the lastpost?

theArchitect 09-13-2005 07:41 AM

Quote:

Originally Posted by Live Wire
So you just want the date and time of the lastpost?

Please.


All times are GMT. The time now is 06:26 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.01091 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete